@miradorlabs/web-grpc 2.20.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,6 +34,8 @@ 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);
39
41
  goog.exportSymbol('proto.gateway.web.v1.Slo', null, global);
@@ -43,6 +45,8 @@ goog.exportSymbol('proto.gateway.web.v1.SloCorridorStatus', null, global);
43
45
  goog.exportSymbol('proto.gateway.web.v1.SloObjective', null, global);
44
46
  goog.exportSymbol('proto.gateway.web.v1.SloObjective.SliCase', null, global);
45
47
  goog.exportSymbol('proto.gateway.web.v1.SloStatus', null, global);
48
+ goog.exportSymbol('proto.gateway.web.v1.SloTimeline', null, global);
49
+ goog.exportSymbol('proto.gateway.web.v1.SloTimelineBucket', null, global);
46
50
  goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest', null, global);
47
51
  goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest.SloUpdates', null, global);
48
52
  goog.exportSymbol('proto.gateway.web.v1.UpdateSloResponse', null, global);
@@ -424,6 +428,90 @@ if (goog.DEBUG && !COMPILED) {
424
428
  */
425
429
  proto.gateway.web.v1.SloCorridorStatus.displayName = 'proto.gateway.web.v1.SloCorridorStatus';
426
430
  }
431
+ /**
432
+ * Generated by JsPbCodeGenerator.
433
+ * @param {Array=} opt_data Optional initial data array, typically from a
434
+ * server response, or constructed directly in Javascript. The array is used
435
+ * in place and becomes part of the constructed object. It is not cloned.
436
+ * If no data is provided, the constructed object will be empty, but still
437
+ * valid.
438
+ * @extends {jspb.Message}
439
+ * @constructor
440
+ */
441
+ proto.gateway.web.v1.GetSloTimelineRequest = function(opt_data) {
442
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
443
+ };
444
+ goog.inherits(proto.gateway.web.v1.GetSloTimelineRequest, jspb.Message);
445
+ if (goog.DEBUG && !COMPILED) {
446
+ /**
447
+ * @public
448
+ * @override
449
+ */
450
+ proto.gateway.web.v1.GetSloTimelineRequest.displayName = 'proto.gateway.web.v1.GetSloTimelineRequest';
451
+ }
452
+ /**
453
+ * Generated by JsPbCodeGenerator.
454
+ * @param {Array=} opt_data Optional initial data array, typically from a
455
+ * server response, or constructed directly in Javascript. The array is used
456
+ * in place and becomes part of the constructed object. It is not cloned.
457
+ * If no data is provided, the constructed object will be empty, but still
458
+ * valid.
459
+ * @extends {jspb.Message}
460
+ * @constructor
461
+ */
462
+ proto.gateway.web.v1.GetSloTimelineResponse = function(opt_data) {
463
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
464
+ };
465
+ goog.inherits(proto.gateway.web.v1.GetSloTimelineResponse, jspb.Message);
466
+ if (goog.DEBUG && !COMPILED) {
467
+ /**
468
+ * @public
469
+ * @override
470
+ */
471
+ proto.gateway.web.v1.GetSloTimelineResponse.displayName = 'proto.gateway.web.v1.GetSloTimelineResponse';
472
+ }
473
+ /**
474
+ * Generated by JsPbCodeGenerator.
475
+ * @param {Array=} opt_data Optional initial data array, typically from a
476
+ * server response, or constructed directly in Javascript. The array is used
477
+ * in place and becomes part of the constructed object. It is not cloned.
478
+ * If no data is provided, the constructed object will be empty, but still
479
+ * valid.
480
+ * @extends {jspb.Message}
481
+ * @constructor
482
+ */
483
+ proto.gateway.web.v1.SloTimeline = function(opt_data) {
484
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloTimeline.repeatedFields_, null);
485
+ };
486
+ goog.inherits(proto.gateway.web.v1.SloTimeline, jspb.Message);
487
+ if (goog.DEBUG && !COMPILED) {
488
+ /**
489
+ * @public
490
+ * @override
491
+ */
492
+ proto.gateway.web.v1.SloTimeline.displayName = 'proto.gateway.web.v1.SloTimeline';
493
+ }
494
+ /**
495
+ * Generated by JsPbCodeGenerator.
496
+ * @param {Array=} opt_data Optional initial data array, typically from a
497
+ * server response, or constructed directly in Javascript. The array is used
498
+ * in place and becomes part of the constructed object. It is not cloned.
499
+ * If no data is provided, the constructed object will be empty, but still
500
+ * valid.
501
+ * @extends {jspb.Message}
502
+ * @constructor
503
+ */
504
+ proto.gateway.web.v1.SloTimelineBucket = function(opt_data) {
505
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
506
+ };
507
+ goog.inherits(proto.gateway.web.v1.SloTimelineBucket, jspb.Message);
508
+ if (goog.DEBUG && !COMPILED) {
509
+ /**
510
+ * @public
511
+ * @override
512
+ */
513
+ proto.gateway.web.v1.SloTimelineBucket.displayName = 'proto.gateway.web.v1.SloTimelineBucket';
514
+ }
427
515
 
428
516
 
429
517
 
@@ -4785,6 +4873,1132 @@ proto.gateway.web.v1.SloCorridorStatus.prototype.setState = function(value) {
4785
4873
  };
4786
4874
 
4787
4875
 
4876
+
4877
+
4878
+
4879
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4880
+ /**
4881
+ * Creates an object representation of this proto.
4882
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4883
+ * Optional fields that are not set will be set to undefined.
4884
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4885
+ * For the list of reserved names please see:
4886
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4887
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4888
+ * JSPB instance for transitional soy proto support:
4889
+ * http://goto/soy-param-migration
4890
+ * @return {!Object}
4891
+ */
4892
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.toObject = function(opt_includeInstance) {
4893
+ return proto.gateway.web.v1.GetSloTimelineRequest.toObject(opt_includeInstance, this);
4894
+ };
4895
+
4896
+
4897
+ /**
4898
+ * Static version of the {@see toObject} method.
4899
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4900
+ * the JSPB instance for transitional soy proto support:
4901
+ * http://goto/soy-param-migration
4902
+ * @param {!proto.gateway.web.v1.GetSloTimelineRequest} msg The msg instance to transform.
4903
+ * @return {!Object}
4904
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4905
+ */
4906
+ proto.gateway.web.v1.GetSloTimelineRequest.toObject = function(includeInstance, msg) {
4907
+ var f, obj = {
4908
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4909
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
4910
+ sloId: jspb.Message.getFieldWithDefault(msg, 3, ""),
4911
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4912
+ bucketCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
4913
+ };
4914
+
4915
+ if (includeInstance) {
4916
+ obj.$jspbMessageInstance = msg;
4917
+ }
4918
+ return obj;
4919
+ };
4920
+ }
4921
+
4922
+
4923
+ /**
4924
+ * Deserializes binary data (in protobuf wire format).
4925
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4926
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest}
4927
+ */
4928
+ proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinary = function(bytes) {
4929
+ var reader = new jspb.BinaryReader(bytes);
4930
+ var msg = new proto.gateway.web.v1.GetSloTimelineRequest;
4931
+ return proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinaryFromReader(msg, reader);
4932
+ };
4933
+
4934
+
4935
+ /**
4936
+ * Deserializes binary data (in protobuf wire format) from the
4937
+ * given reader into the given message object.
4938
+ * @param {!proto.gateway.web.v1.GetSloTimelineRequest} msg The message object to deserialize into.
4939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4940
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest}
4941
+ */
4942
+ proto.gateway.web.v1.GetSloTimelineRequest.deserializeBinaryFromReader = function(msg, reader) {
4943
+ while (reader.nextField()) {
4944
+ if (reader.isEndGroup()) {
4945
+ break;
4946
+ }
4947
+ var field = reader.getFieldNumber();
4948
+ switch (field) {
4949
+ case 1:
4950
+ var value = /** @type {string} */ (reader.readString());
4951
+ msg.setOrganizationId(value);
4952
+ break;
4953
+ case 2:
4954
+ var value = /** @type {string} */ (reader.readString());
4955
+ msg.setProjectId(value);
4956
+ break;
4957
+ case 3:
4958
+ var value = /** @type {string} */ (reader.readString());
4959
+ msg.setSloId(value);
4960
+ break;
4961
+ case 4:
4962
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4963
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4964
+ msg.setEndTime(value);
4965
+ break;
4966
+ case 5:
4967
+ var value = /** @type {number} */ (reader.readUint32());
4968
+ msg.setBucketCount(value);
4969
+ break;
4970
+ default:
4971
+ reader.skipField();
4972
+ break;
4973
+ }
4974
+ }
4975
+ return msg;
4976
+ };
4977
+
4978
+
4979
+ /**
4980
+ * Serializes the message to binary data (in protobuf wire format).
4981
+ * @return {!Uint8Array}
4982
+ */
4983
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.serializeBinary = function() {
4984
+ var writer = new jspb.BinaryWriter();
4985
+ proto.gateway.web.v1.GetSloTimelineRequest.serializeBinaryToWriter(this, writer);
4986
+ return writer.getResultBuffer();
4987
+ };
4988
+
4989
+
4990
+ /**
4991
+ * Serializes the given message to binary data (in protobuf wire
4992
+ * format), writing to the given BinaryWriter.
4993
+ * @param {!proto.gateway.web.v1.GetSloTimelineRequest} message
4994
+ * @param {!jspb.BinaryWriter} writer
4995
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4996
+ */
4997
+ proto.gateway.web.v1.GetSloTimelineRequest.serializeBinaryToWriter = function(message, writer) {
4998
+ var f = undefined;
4999
+ f = message.getOrganizationId();
5000
+ if (f.length > 0) {
5001
+ writer.writeString(
5002
+ 1,
5003
+ f
5004
+ );
5005
+ }
5006
+ f = message.getProjectId();
5007
+ if (f.length > 0) {
5008
+ writer.writeString(
5009
+ 2,
5010
+ f
5011
+ );
5012
+ }
5013
+ f = message.getSloId();
5014
+ if (f.length > 0) {
5015
+ writer.writeString(
5016
+ 3,
5017
+ f
5018
+ );
5019
+ }
5020
+ f = message.getEndTime();
5021
+ if (f != null) {
5022
+ writer.writeMessage(
5023
+ 4,
5024
+ f,
5025
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5026
+ );
5027
+ }
5028
+ f = message.getBucketCount();
5029
+ if (f !== 0) {
5030
+ writer.writeUint32(
5031
+ 5,
5032
+ f
5033
+ );
5034
+ }
5035
+ };
5036
+
5037
+
5038
+ /**
5039
+ * optional string organization_id = 1;
5040
+ * @return {string}
5041
+ */
5042
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getOrganizationId = function() {
5043
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5044
+ };
5045
+
5046
+
5047
+ /**
5048
+ * @param {string} value
5049
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5050
+ */
5051
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setOrganizationId = function(value) {
5052
+ return jspb.Message.setProto3StringField(this, 1, value);
5053
+ };
5054
+
5055
+
5056
+ /**
5057
+ * optional string project_id = 2;
5058
+ * @return {string}
5059
+ */
5060
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getProjectId = function() {
5061
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5062
+ };
5063
+
5064
+
5065
+ /**
5066
+ * @param {string} value
5067
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5068
+ */
5069
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setProjectId = function(value) {
5070
+ return jspb.Message.setProto3StringField(this, 2, value);
5071
+ };
5072
+
5073
+
5074
+ /**
5075
+ * optional string slo_id = 3;
5076
+ * @return {string}
5077
+ */
5078
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getSloId = function() {
5079
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5080
+ };
5081
+
5082
+
5083
+ /**
5084
+ * @param {string} value
5085
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5086
+ */
5087
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setSloId = function(value) {
5088
+ return jspb.Message.setProto3StringField(this, 3, value);
5089
+ };
5090
+
5091
+
5092
+ /**
5093
+ * optional google.protobuf.Timestamp end_time = 4;
5094
+ * @return {?proto.google.protobuf.Timestamp}
5095
+ */
5096
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getEndTime = function() {
5097
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5098
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
5099
+ };
5100
+
5101
+
5102
+ /**
5103
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5104
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5105
+ */
5106
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setEndTime = function(value) {
5107
+ return jspb.Message.setWrapperField(this, 4, value);
5108
+ };
5109
+
5110
+
5111
+ /**
5112
+ * Clears the message field making it undefined.
5113
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5114
+ */
5115
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.clearEndTime = function() {
5116
+ return this.setEndTime(undefined);
5117
+ };
5118
+
5119
+
5120
+ /**
5121
+ * Returns whether this field is set.
5122
+ * @return {boolean}
5123
+ */
5124
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.hasEndTime = function() {
5125
+ return jspb.Message.getField(this, 4) != null;
5126
+ };
5127
+
5128
+
5129
+ /**
5130
+ * optional uint32 bucket_count = 5;
5131
+ * @return {number}
5132
+ */
5133
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.getBucketCount = function() {
5134
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5135
+ };
5136
+
5137
+
5138
+ /**
5139
+ * @param {number} value
5140
+ * @return {!proto.gateway.web.v1.GetSloTimelineRequest} returns this
5141
+ */
5142
+ proto.gateway.web.v1.GetSloTimelineRequest.prototype.setBucketCount = function(value) {
5143
+ return jspb.Message.setProto3IntField(this, 5, value);
5144
+ };
5145
+
5146
+
5147
+
5148
+
5149
+
5150
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5151
+ /**
5152
+ * Creates an object representation of this proto.
5153
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5154
+ * Optional fields that are not set will be set to undefined.
5155
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5156
+ * For the list of reserved names please see:
5157
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5158
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5159
+ * JSPB instance for transitional soy proto support:
5160
+ * http://goto/soy-param-migration
5161
+ * @return {!Object}
5162
+ */
5163
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.toObject = function(opt_includeInstance) {
5164
+ return proto.gateway.web.v1.GetSloTimelineResponse.toObject(opt_includeInstance, this);
5165
+ };
5166
+
5167
+
5168
+ /**
5169
+ * Static version of the {@see toObject} method.
5170
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5171
+ * the JSPB instance for transitional soy proto support:
5172
+ * http://goto/soy-param-migration
5173
+ * @param {!proto.gateway.web.v1.GetSloTimelineResponse} msg The msg instance to transform.
5174
+ * @return {!Object}
5175
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5176
+ */
5177
+ proto.gateway.web.v1.GetSloTimelineResponse.toObject = function(includeInstance, msg) {
5178
+ var f, obj = {
5179
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
5180
+ timeline: (f = msg.getTimeline()) && proto.gateway.web.v1.SloTimeline.toObject(includeInstance, f)
5181
+ };
5182
+
5183
+ if (includeInstance) {
5184
+ obj.$jspbMessageInstance = msg;
5185
+ }
5186
+ return obj;
5187
+ };
5188
+ }
5189
+
5190
+
5191
+ /**
5192
+ * Deserializes binary data (in protobuf wire format).
5193
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5194
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse}
5195
+ */
5196
+ proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinary = function(bytes) {
5197
+ var reader = new jspb.BinaryReader(bytes);
5198
+ var msg = new proto.gateway.web.v1.GetSloTimelineResponse;
5199
+ return proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinaryFromReader(msg, reader);
5200
+ };
5201
+
5202
+
5203
+ /**
5204
+ * Deserializes binary data (in protobuf wire format) from the
5205
+ * given reader into the given message object.
5206
+ * @param {!proto.gateway.web.v1.GetSloTimelineResponse} msg The message object to deserialize into.
5207
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5208
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse}
5209
+ */
5210
+ proto.gateway.web.v1.GetSloTimelineResponse.deserializeBinaryFromReader = function(msg, reader) {
5211
+ while (reader.nextField()) {
5212
+ if (reader.isEndGroup()) {
5213
+ break;
5214
+ }
5215
+ var field = reader.getFieldNumber();
5216
+ switch (field) {
5217
+ case 1:
5218
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
5219
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
5220
+ msg.setStatus(value);
5221
+ break;
5222
+ case 2:
5223
+ var value = new proto.gateway.web.v1.SloTimeline;
5224
+ reader.readMessage(value,proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader);
5225
+ msg.setTimeline(value);
5226
+ break;
5227
+ default:
5228
+ reader.skipField();
5229
+ break;
5230
+ }
5231
+ }
5232
+ return msg;
5233
+ };
5234
+
5235
+
5236
+ /**
5237
+ * Serializes the message to binary data (in protobuf wire format).
5238
+ * @return {!Uint8Array}
5239
+ */
5240
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.serializeBinary = function() {
5241
+ var writer = new jspb.BinaryWriter();
5242
+ proto.gateway.web.v1.GetSloTimelineResponse.serializeBinaryToWriter(this, writer);
5243
+ return writer.getResultBuffer();
5244
+ };
5245
+
5246
+
5247
+ /**
5248
+ * Serializes the given message to binary data (in protobuf wire
5249
+ * format), writing to the given BinaryWriter.
5250
+ * @param {!proto.gateway.web.v1.GetSloTimelineResponse} message
5251
+ * @param {!jspb.BinaryWriter} writer
5252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5253
+ */
5254
+ proto.gateway.web.v1.GetSloTimelineResponse.serializeBinaryToWriter = function(message, writer) {
5255
+ var f = undefined;
5256
+ f = message.getStatus();
5257
+ if (f != null) {
5258
+ writer.writeMessage(
5259
+ 1,
5260
+ f,
5261
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
5262
+ );
5263
+ }
5264
+ f = message.getTimeline();
5265
+ if (f != null) {
5266
+ writer.writeMessage(
5267
+ 2,
5268
+ f,
5269
+ proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter
5270
+ );
5271
+ }
5272
+ };
5273
+
5274
+
5275
+ /**
5276
+ * optional gateway.common.v1.ResponseStatus status = 1;
5277
+ * @return {?proto.gateway.common.v1.ResponseStatus}
5278
+ */
5279
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.getStatus = function() {
5280
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
5281
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
5282
+ };
5283
+
5284
+
5285
+ /**
5286
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
5287
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5288
+ */
5289
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.setStatus = function(value) {
5290
+ return jspb.Message.setWrapperField(this, 1, value);
5291
+ };
5292
+
5293
+
5294
+ /**
5295
+ * Clears the message field making it undefined.
5296
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5297
+ */
5298
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.clearStatus = function() {
5299
+ return this.setStatus(undefined);
5300
+ };
5301
+
5302
+
5303
+ /**
5304
+ * Returns whether this field is set.
5305
+ * @return {boolean}
5306
+ */
5307
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.hasStatus = function() {
5308
+ return jspb.Message.getField(this, 1) != null;
5309
+ };
5310
+
5311
+
5312
+ /**
5313
+ * optional SloTimeline timeline = 2;
5314
+ * @return {?proto.gateway.web.v1.SloTimeline}
5315
+ */
5316
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.getTimeline = function() {
5317
+ return /** @type{?proto.gateway.web.v1.SloTimeline} */ (
5318
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloTimeline, 2));
5319
+ };
5320
+
5321
+
5322
+ /**
5323
+ * @param {?proto.gateway.web.v1.SloTimeline|undefined} value
5324
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5325
+ */
5326
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.setTimeline = function(value) {
5327
+ return jspb.Message.setWrapperField(this, 2, value);
5328
+ };
5329
+
5330
+
5331
+ /**
5332
+ * Clears the message field making it undefined.
5333
+ * @return {!proto.gateway.web.v1.GetSloTimelineResponse} returns this
5334
+ */
5335
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.clearTimeline = function() {
5336
+ return this.setTimeline(undefined);
5337
+ };
5338
+
5339
+
5340
+ /**
5341
+ * Returns whether this field is set.
5342
+ * @return {boolean}
5343
+ */
5344
+ proto.gateway.web.v1.GetSloTimelineResponse.prototype.hasTimeline = function() {
5345
+ return jspb.Message.getField(this, 2) != null;
5346
+ };
5347
+
5348
+
5349
+
5350
+ /**
5351
+ * List of repeated fields within this message type.
5352
+ * @private {!Array<number>}
5353
+ * @const
5354
+ */
5355
+ proto.gateway.web.v1.SloTimeline.repeatedFields_ = [7];
5356
+
5357
+
5358
+
5359
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5360
+ /**
5361
+ * Creates an object representation of this proto.
5362
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5363
+ * Optional fields that are not set will be set to undefined.
5364
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5365
+ * For the list of reserved names please see:
5366
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5367
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5368
+ * JSPB instance for transitional soy proto support:
5369
+ * http://goto/soy-param-migration
5370
+ * @return {!Object}
5371
+ */
5372
+ proto.gateway.web.v1.SloTimeline.prototype.toObject = function(opt_includeInstance) {
5373
+ return proto.gateway.web.v1.SloTimeline.toObject(opt_includeInstance, this);
5374
+ };
5375
+
5376
+
5377
+ /**
5378
+ * Static version of the {@see toObject} method.
5379
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5380
+ * the JSPB instance for transitional soy proto support:
5381
+ * http://goto/soy-param-migration
5382
+ * @param {!proto.gateway.web.v1.SloTimeline} msg The msg instance to transform.
5383
+ * @return {!Object}
5384
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5385
+ */
5386
+ proto.gateway.web.v1.SloTimeline.toObject = function(includeInstance, msg) {
5387
+ var f, obj = {
5388
+ sloId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5389
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
5390
+ target: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
5391
+ bucketSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
5392
+ windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5393
+ windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5394
+ bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
5395
+ proto.gateway.web.v1.SloTimelineBucket.toObject, includeInstance)
5396
+ };
5397
+
5398
+ if (includeInstance) {
5399
+ obj.$jspbMessageInstance = msg;
5400
+ }
5401
+ return obj;
5402
+ };
5403
+ }
5404
+
5405
+
5406
+ /**
5407
+ * Deserializes binary data (in protobuf wire format).
5408
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5409
+ * @return {!proto.gateway.web.v1.SloTimeline}
5410
+ */
5411
+ proto.gateway.web.v1.SloTimeline.deserializeBinary = function(bytes) {
5412
+ var reader = new jspb.BinaryReader(bytes);
5413
+ var msg = new proto.gateway.web.v1.SloTimeline;
5414
+ return proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader(msg, reader);
5415
+ };
5416
+
5417
+
5418
+ /**
5419
+ * Deserializes binary data (in protobuf wire format) from the
5420
+ * given reader into the given message object.
5421
+ * @param {!proto.gateway.web.v1.SloTimeline} msg The message object to deserialize into.
5422
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5423
+ * @return {!proto.gateway.web.v1.SloTimeline}
5424
+ */
5425
+ proto.gateway.web.v1.SloTimeline.deserializeBinaryFromReader = function(msg, reader) {
5426
+ while (reader.nextField()) {
5427
+ if (reader.isEndGroup()) {
5428
+ break;
5429
+ }
5430
+ var field = reader.getFieldNumber();
5431
+ switch (field) {
5432
+ case 1:
5433
+ var value = /** @type {string} */ (reader.readString());
5434
+ msg.setSloId(value);
5435
+ break;
5436
+ case 2:
5437
+ var value = /** @type {boolean} */ (reader.readBool());
5438
+ msg.setEnabled(value);
5439
+ break;
5440
+ case 3:
5441
+ var value = /** @type {number} */ (reader.readDouble());
5442
+ msg.setTarget(value);
5443
+ break;
5444
+ case 4:
5445
+ var value = /** @type {number} */ (reader.readInt64());
5446
+ msg.setBucketSeconds(value);
5447
+ break;
5448
+ case 5:
5449
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5450
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5451
+ msg.setWindowStart(value);
5452
+ break;
5453
+ case 6:
5454
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5455
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5456
+ msg.setWindowEnd(value);
5457
+ break;
5458
+ case 7:
5459
+ var value = new proto.gateway.web.v1.SloTimelineBucket;
5460
+ reader.readMessage(value,proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader);
5461
+ msg.addBuckets(value);
5462
+ break;
5463
+ default:
5464
+ reader.skipField();
5465
+ break;
5466
+ }
5467
+ }
5468
+ return msg;
5469
+ };
5470
+
5471
+
5472
+ /**
5473
+ * Serializes the message to binary data (in protobuf wire format).
5474
+ * @return {!Uint8Array}
5475
+ */
5476
+ proto.gateway.web.v1.SloTimeline.prototype.serializeBinary = function() {
5477
+ var writer = new jspb.BinaryWriter();
5478
+ proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter(this, writer);
5479
+ return writer.getResultBuffer();
5480
+ };
5481
+
5482
+
5483
+ /**
5484
+ * Serializes the given message to binary data (in protobuf wire
5485
+ * format), writing to the given BinaryWriter.
5486
+ * @param {!proto.gateway.web.v1.SloTimeline} message
5487
+ * @param {!jspb.BinaryWriter} writer
5488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5489
+ */
5490
+ proto.gateway.web.v1.SloTimeline.serializeBinaryToWriter = function(message, writer) {
5491
+ var f = undefined;
5492
+ f = message.getSloId();
5493
+ if (f.length > 0) {
5494
+ writer.writeString(
5495
+ 1,
5496
+ f
5497
+ );
5498
+ }
5499
+ f = message.getEnabled();
5500
+ if (f) {
5501
+ writer.writeBool(
5502
+ 2,
5503
+ f
5504
+ );
5505
+ }
5506
+ f = message.getTarget();
5507
+ if (f !== 0.0) {
5508
+ writer.writeDouble(
5509
+ 3,
5510
+ f
5511
+ );
5512
+ }
5513
+ f = message.getBucketSeconds();
5514
+ if (f !== 0) {
5515
+ writer.writeInt64(
5516
+ 4,
5517
+ f
5518
+ );
5519
+ }
5520
+ f = message.getWindowStart();
5521
+ if (f != null) {
5522
+ writer.writeMessage(
5523
+ 5,
5524
+ f,
5525
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5526
+ );
5527
+ }
5528
+ f = message.getWindowEnd();
5529
+ if (f != null) {
5530
+ writer.writeMessage(
5531
+ 6,
5532
+ f,
5533
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5534
+ );
5535
+ }
5536
+ f = message.getBucketsList();
5537
+ if (f.length > 0) {
5538
+ writer.writeRepeatedMessage(
5539
+ 7,
5540
+ f,
5541
+ proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter
5542
+ );
5543
+ }
5544
+ };
5545
+
5546
+
5547
+ /**
5548
+ * optional string slo_id = 1;
5549
+ * @return {string}
5550
+ */
5551
+ proto.gateway.web.v1.SloTimeline.prototype.getSloId = function() {
5552
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5553
+ };
5554
+
5555
+
5556
+ /**
5557
+ * @param {string} value
5558
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5559
+ */
5560
+ proto.gateway.web.v1.SloTimeline.prototype.setSloId = function(value) {
5561
+ return jspb.Message.setProto3StringField(this, 1, value);
5562
+ };
5563
+
5564
+
5565
+ /**
5566
+ * optional bool enabled = 2;
5567
+ * @return {boolean}
5568
+ */
5569
+ proto.gateway.web.v1.SloTimeline.prototype.getEnabled = function() {
5570
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
5571
+ };
5572
+
5573
+
5574
+ /**
5575
+ * @param {boolean} value
5576
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5577
+ */
5578
+ proto.gateway.web.v1.SloTimeline.prototype.setEnabled = function(value) {
5579
+ return jspb.Message.setProto3BooleanField(this, 2, value);
5580
+ };
5581
+
5582
+
5583
+ /**
5584
+ * optional double target = 3;
5585
+ * @return {number}
5586
+ */
5587
+ proto.gateway.web.v1.SloTimeline.prototype.getTarget = function() {
5588
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
5589
+ };
5590
+
5591
+
5592
+ /**
5593
+ * @param {number} value
5594
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5595
+ */
5596
+ proto.gateway.web.v1.SloTimeline.prototype.setTarget = function(value) {
5597
+ return jspb.Message.setProto3FloatField(this, 3, value);
5598
+ };
5599
+
5600
+
5601
+ /**
5602
+ * optional int64 bucket_seconds = 4;
5603
+ * @return {number}
5604
+ */
5605
+ proto.gateway.web.v1.SloTimeline.prototype.getBucketSeconds = function() {
5606
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
5607
+ };
5608
+
5609
+
5610
+ /**
5611
+ * @param {number} value
5612
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5613
+ */
5614
+ proto.gateway.web.v1.SloTimeline.prototype.setBucketSeconds = function(value) {
5615
+ return jspb.Message.setProto3IntField(this, 4, value);
5616
+ };
5617
+
5618
+
5619
+ /**
5620
+ * optional google.protobuf.Timestamp window_start = 5;
5621
+ * @return {?proto.google.protobuf.Timestamp}
5622
+ */
5623
+ proto.gateway.web.v1.SloTimeline.prototype.getWindowStart = function() {
5624
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5625
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
5626
+ };
5627
+
5628
+
5629
+ /**
5630
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5631
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5632
+ */
5633
+ proto.gateway.web.v1.SloTimeline.prototype.setWindowStart = function(value) {
5634
+ return jspb.Message.setWrapperField(this, 5, value);
5635
+ };
5636
+
5637
+
5638
+ /**
5639
+ * Clears the message field making it undefined.
5640
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5641
+ */
5642
+ proto.gateway.web.v1.SloTimeline.prototype.clearWindowStart = function() {
5643
+ return this.setWindowStart(undefined);
5644
+ };
5645
+
5646
+
5647
+ /**
5648
+ * Returns whether this field is set.
5649
+ * @return {boolean}
5650
+ */
5651
+ proto.gateway.web.v1.SloTimeline.prototype.hasWindowStart = function() {
5652
+ return jspb.Message.getField(this, 5) != null;
5653
+ };
5654
+
5655
+
5656
+ /**
5657
+ * optional google.protobuf.Timestamp window_end = 6;
5658
+ * @return {?proto.google.protobuf.Timestamp}
5659
+ */
5660
+ proto.gateway.web.v1.SloTimeline.prototype.getWindowEnd = function() {
5661
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5662
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
5663
+ };
5664
+
5665
+
5666
+ /**
5667
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5668
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5669
+ */
5670
+ proto.gateway.web.v1.SloTimeline.prototype.setWindowEnd = function(value) {
5671
+ return jspb.Message.setWrapperField(this, 6, value);
5672
+ };
5673
+
5674
+
5675
+ /**
5676
+ * Clears the message field making it undefined.
5677
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5678
+ */
5679
+ proto.gateway.web.v1.SloTimeline.prototype.clearWindowEnd = function() {
5680
+ return this.setWindowEnd(undefined);
5681
+ };
5682
+
5683
+
5684
+ /**
5685
+ * Returns whether this field is set.
5686
+ * @return {boolean}
5687
+ */
5688
+ proto.gateway.web.v1.SloTimeline.prototype.hasWindowEnd = function() {
5689
+ return jspb.Message.getField(this, 6) != null;
5690
+ };
5691
+
5692
+
5693
+ /**
5694
+ * repeated SloTimelineBucket buckets = 7;
5695
+ * @return {!Array<!proto.gateway.web.v1.SloTimelineBucket>}
5696
+ */
5697
+ proto.gateway.web.v1.SloTimeline.prototype.getBucketsList = function() {
5698
+ return /** @type{!Array<!proto.gateway.web.v1.SloTimelineBucket>} */ (
5699
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SloTimelineBucket, 7));
5700
+ };
5701
+
5702
+
5703
+ /**
5704
+ * @param {!Array<!proto.gateway.web.v1.SloTimelineBucket>} value
5705
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5706
+ */
5707
+ proto.gateway.web.v1.SloTimeline.prototype.setBucketsList = function(value) {
5708
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
5709
+ };
5710
+
5711
+
5712
+ /**
5713
+ * @param {!proto.gateway.web.v1.SloTimelineBucket=} opt_value
5714
+ * @param {number=} opt_index
5715
+ * @return {!proto.gateway.web.v1.SloTimelineBucket}
5716
+ */
5717
+ proto.gateway.web.v1.SloTimeline.prototype.addBuckets = function(opt_value, opt_index) {
5718
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.gateway.web.v1.SloTimelineBucket, opt_index);
5719
+ };
5720
+
5721
+
5722
+ /**
5723
+ * Clears the list making it empty but non-null.
5724
+ * @return {!proto.gateway.web.v1.SloTimeline} returns this
5725
+ */
5726
+ proto.gateway.web.v1.SloTimeline.prototype.clearBucketsList = function() {
5727
+ return this.setBucketsList([]);
5728
+ };
5729
+
5730
+
5731
+
5732
+
5733
+
5734
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5735
+ /**
5736
+ * Creates an object representation of this proto.
5737
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5738
+ * Optional fields that are not set will be set to undefined.
5739
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5740
+ * For the list of reserved names please see:
5741
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5742
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5743
+ * JSPB instance for transitional soy proto support:
5744
+ * http://goto/soy-param-migration
5745
+ * @return {!Object}
5746
+ */
5747
+ proto.gateway.web.v1.SloTimelineBucket.prototype.toObject = function(opt_includeInstance) {
5748
+ return proto.gateway.web.v1.SloTimelineBucket.toObject(opt_includeInstance, this);
5749
+ };
5750
+
5751
+
5752
+ /**
5753
+ * Static version of the {@see toObject} method.
5754
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5755
+ * the JSPB instance for transitional soy proto support:
5756
+ * http://goto/soy-param-migration
5757
+ * @param {!proto.gateway.web.v1.SloTimelineBucket} msg The msg instance to transform.
5758
+ * @return {!Object}
5759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5760
+ */
5761
+ proto.gateway.web.v1.SloTimelineBucket.toObject = function(includeInstance, msg) {
5762
+ var f, obj = {
5763
+ bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
5764
+ eligibleCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
5765
+ goodCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
5766
+ compliance: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
5767
+ state: jspb.Message.getFieldWithDefault(msg, 5, 0)
5768
+ };
5769
+
5770
+ if (includeInstance) {
5771
+ obj.$jspbMessageInstance = msg;
5772
+ }
5773
+ return obj;
5774
+ };
5775
+ }
5776
+
5777
+
5778
+ /**
5779
+ * Deserializes binary data (in protobuf wire format).
5780
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5781
+ * @return {!proto.gateway.web.v1.SloTimelineBucket}
5782
+ */
5783
+ proto.gateway.web.v1.SloTimelineBucket.deserializeBinary = function(bytes) {
5784
+ var reader = new jspb.BinaryReader(bytes);
5785
+ var msg = new proto.gateway.web.v1.SloTimelineBucket;
5786
+ return proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader(msg, reader);
5787
+ };
5788
+
5789
+
5790
+ /**
5791
+ * Deserializes binary data (in protobuf wire format) from the
5792
+ * given reader into the given message object.
5793
+ * @param {!proto.gateway.web.v1.SloTimelineBucket} msg The message object to deserialize into.
5794
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5795
+ * @return {!proto.gateway.web.v1.SloTimelineBucket}
5796
+ */
5797
+ proto.gateway.web.v1.SloTimelineBucket.deserializeBinaryFromReader = function(msg, reader) {
5798
+ while (reader.nextField()) {
5799
+ if (reader.isEndGroup()) {
5800
+ break;
5801
+ }
5802
+ var field = reader.getFieldNumber();
5803
+ switch (field) {
5804
+ case 1:
5805
+ var value = new google_protobuf_timestamp_pb.Timestamp;
5806
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
5807
+ msg.setBucketStart(value);
5808
+ break;
5809
+ case 2:
5810
+ var value = /** @type {number} */ (reader.readUint64());
5811
+ msg.setEligibleCount(value);
5812
+ break;
5813
+ case 3:
5814
+ var value = /** @type {number} */ (reader.readUint64());
5815
+ msg.setGoodCount(value);
5816
+ break;
5817
+ case 4:
5818
+ var value = /** @type {number} */ (reader.readDouble());
5819
+ msg.setCompliance(value);
5820
+ break;
5821
+ case 5:
5822
+ var value = /** @type {!proto.gateway.web.v1.SloCorridorState} */ (reader.readEnum());
5823
+ msg.setState(value);
5824
+ break;
5825
+ default:
5826
+ reader.skipField();
5827
+ break;
5828
+ }
5829
+ }
5830
+ return msg;
5831
+ };
5832
+
5833
+
5834
+ /**
5835
+ * Serializes the message to binary data (in protobuf wire format).
5836
+ * @return {!Uint8Array}
5837
+ */
5838
+ proto.gateway.web.v1.SloTimelineBucket.prototype.serializeBinary = function() {
5839
+ var writer = new jspb.BinaryWriter();
5840
+ proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter(this, writer);
5841
+ return writer.getResultBuffer();
5842
+ };
5843
+
5844
+
5845
+ /**
5846
+ * Serializes the given message to binary data (in protobuf wire
5847
+ * format), writing to the given BinaryWriter.
5848
+ * @param {!proto.gateway.web.v1.SloTimelineBucket} message
5849
+ * @param {!jspb.BinaryWriter} writer
5850
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5851
+ */
5852
+ proto.gateway.web.v1.SloTimelineBucket.serializeBinaryToWriter = function(message, writer) {
5853
+ var f = undefined;
5854
+ f = message.getBucketStart();
5855
+ if (f != null) {
5856
+ writer.writeMessage(
5857
+ 1,
5858
+ f,
5859
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
5860
+ );
5861
+ }
5862
+ f = message.getEligibleCount();
5863
+ if (f !== 0) {
5864
+ writer.writeUint64(
5865
+ 2,
5866
+ f
5867
+ );
5868
+ }
5869
+ f = message.getGoodCount();
5870
+ if (f !== 0) {
5871
+ writer.writeUint64(
5872
+ 3,
5873
+ f
5874
+ );
5875
+ }
5876
+ f = message.getCompliance();
5877
+ if (f !== 0.0) {
5878
+ writer.writeDouble(
5879
+ 4,
5880
+ f
5881
+ );
5882
+ }
5883
+ f = message.getState();
5884
+ if (f !== 0.0) {
5885
+ writer.writeEnum(
5886
+ 5,
5887
+ f
5888
+ );
5889
+ }
5890
+ };
5891
+
5892
+
5893
+ /**
5894
+ * optional google.protobuf.Timestamp bucket_start = 1;
5895
+ * @return {?proto.google.protobuf.Timestamp}
5896
+ */
5897
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getBucketStart = function() {
5898
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
5899
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
5900
+ };
5901
+
5902
+
5903
+ /**
5904
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
5905
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5906
+ */
5907
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setBucketStart = function(value) {
5908
+ return jspb.Message.setWrapperField(this, 1, value);
5909
+ };
5910
+
5911
+
5912
+ /**
5913
+ * Clears the message field making it undefined.
5914
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5915
+ */
5916
+ proto.gateway.web.v1.SloTimelineBucket.prototype.clearBucketStart = function() {
5917
+ return this.setBucketStart(undefined);
5918
+ };
5919
+
5920
+
5921
+ /**
5922
+ * Returns whether this field is set.
5923
+ * @return {boolean}
5924
+ */
5925
+ proto.gateway.web.v1.SloTimelineBucket.prototype.hasBucketStart = function() {
5926
+ return jspb.Message.getField(this, 1) != null;
5927
+ };
5928
+
5929
+
5930
+ /**
5931
+ * optional uint64 eligible_count = 2;
5932
+ * @return {number}
5933
+ */
5934
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getEligibleCount = function() {
5935
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5936
+ };
5937
+
5938
+
5939
+ /**
5940
+ * @param {number} value
5941
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5942
+ */
5943
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setEligibleCount = function(value) {
5944
+ return jspb.Message.setProto3IntField(this, 2, value);
5945
+ };
5946
+
5947
+
5948
+ /**
5949
+ * optional uint64 good_count = 3;
5950
+ * @return {number}
5951
+ */
5952
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getGoodCount = function() {
5953
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
5954
+ };
5955
+
5956
+
5957
+ /**
5958
+ * @param {number} value
5959
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5960
+ */
5961
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setGoodCount = function(value) {
5962
+ return jspb.Message.setProto3IntField(this, 3, value);
5963
+ };
5964
+
5965
+
5966
+ /**
5967
+ * optional double compliance = 4;
5968
+ * @return {number}
5969
+ */
5970
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getCompliance = function() {
5971
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
5972
+ };
5973
+
5974
+
5975
+ /**
5976
+ * @param {number} value
5977
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5978
+ */
5979
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setCompliance = function(value) {
5980
+ return jspb.Message.setProto3FloatField(this, 4, value);
5981
+ };
5982
+
5983
+
5984
+ /**
5985
+ * optional SloCorridorState state = 5;
5986
+ * @return {!proto.gateway.web.v1.SloCorridorState}
5987
+ */
5988
+ proto.gateway.web.v1.SloTimelineBucket.prototype.getState = function() {
5989
+ return /** @type {!proto.gateway.web.v1.SloCorridorState} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5990
+ };
5991
+
5992
+
5993
+ /**
5994
+ * @param {!proto.gateway.web.v1.SloCorridorState} value
5995
+ * @return {!proto.gateway.web.v1.SloTimelineBucket} returns this
5996
+ */
5997
+ proto.gateway.web.v1.SloTimelineBucket.prototype.setState = function(value) {
5998
+ return jspb.Message.setProto3EnumField(this, 5, value);
5999
+ };
6000
+
6001
+
4788
6002
  /**
4789
6003
  * @enum {number}
4790
6004
  */