@miradorlabs/web-grpc 2.6.0 → 2.8.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.
@@ -0,0 +1,4845 @@
1
+ // source: proto/gateway/web/v1/sla_gateway.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
27
+ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
28
+ goog.exportSymbol('proto.gateway.web.v1.CreateSlaRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.CreateSlaResponse', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.DeleteSlaRequest', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.DeleteSlaResponse', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.GetSlaRequest', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.GetSlaResponse', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.ListSlaOutcomesRequest', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.ListSlaOutcomesResponse', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.ListSlasRequest', null, global);
37
+ goog.exportSymbol('proto.gateway.web.v1.ListSlasResponse', null, global);
38
+ goog.exportSymbol('proto.gateway.web.v1.Sla', null, global);
39
+ goog.exportSymbol('proto.gateway.web.v1.SlaAttributeRef', null, global);
40
+ goog.exportSymbol('proto.gateway.web.v1.SlaCheck', null, global);
41
+ goog.exportSymbol('proto.gateway.web.v1.SlaComparator', null, global);
42
+ goog.exportSymbol('proto.gateway.web.v1.SlaOccurrence', null, global);
43
+ goog.exportSymbol('proto.gateway.web.v1.SlaOutcome', null, global);
44
+ goog.exportSymbol('proto.gateway.web.v1.SlaOutcomeStatus', null, global);
45
+ goog.exportSymbol('proto.gateway.web.v1.UpdateSlaRequest', null, global);
46
+ goog.exportSymbol('proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates', null, global);
47
+ goog.exportSymbol('proto.gateway.web.v1.UpdateSlaResponse', null, global);
48
+ /**
49
+ * Generated by JsPbCodeGenerator.
50
+ * @param {Array=} opt_data Optional initial data array, typically from a
51
+ * server response, or constructed directly in Javascript. The array is used
52
+ * in place and becomes part of the constructed object. It is not cloned.
53
+ * If no data is provided, the constructed object will be empty, but still
54
+ * valid.
55
+ * @extends {jspb.Message}
56
+ * @constructor
57
+ */
58
+ proto.gateway.web.v1.Sla = function(opt_data) {
59
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
60
+ };
61
+ goog.inherits(proto.gateway.web.v1.Sla, jspb.Message);
62
+ if (goog.DEBUG && !COMPILED) {
63
+ /**
64
+ * @public
65
+ * @override
66
+ */
67
+ proto.gateway.web.v1.Sla.displayName = 'proto.gateway.web.v1.Sla';
68
+ }
69
+ /**
70
+ * Generated by JsPbCodeGenerator.
71
+ * @param {Array=} opt_data Optional initial data array, typically from a
72
+ * server response, or constructed directly in Javascript. The array is used
73
+ * in place and becomes part of the constructed object. It is not cloned.
74
+ * If no data is provided, the constructed object will be empty, but still
75
+ * valid.
76
+ * @extends {jspb.Message}
77
+ * @constructor
78
+ */
79
+ proto.gateway.web.v1.SlaCheck = function(opt_data) {
80
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
81
+ };
82
+ goog.inherits(proto.gateway.web.v1.SlaCheck, jspb.Message);
83
+ if (goog.DEBUG && !COMPILED) {
84
+ /**
85
+ * @public
86
+ * @override
87
+ */
88
+ proto.gateway.web.v1.SlaCheck.displayName = 'proto.gateway.web.v1.SlaCheck';
89
+ }
90
+ /**
91
+ * Generated by JsPbCodeGenerator.
92
+ * @param {Array=} opt_data Optional initial data array, typically from a
93
+ * server response, or constructed directly in Javascript. The array is used
94
+ * in place and becomes part of the constructed object. It is not cloned.
95
+ * If no data is provided, the constructed object will be empty, but still
96
+ * valid.
97
+ * @extends {jspb.Message}
98
+ * @constructor
99
+ */
100
+ proto.gateway.web.v1.SlaAttributeRef = function(opt_data) {
101
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
102
+ };
103
+ goog.inherits(proto.gateway.web.v1.SlaAttributeRef, jspb.Message);
104
+ if (goog.DEBUG && !COMPILED) {
105
+ /**
106
+ * @public
107
+ * @override
108
+ */
109
+ proto.gateway.web.v1.SlaAttributeRef.displayName = 'proto.gateway.web.v1.SlaAttributeRef';
110
+ }
111
+ /**
112
+ * Generated by JsPbCodeGenerator.
113
+ * @param {Array=} opt_data Optional initial data array, typically from a
114
+ * server response, or constructed directly in Javascript. The array is used
115
+ * in place and becomes part of the constructed object. It is not cloned.
116
+ * If no data is provided, the constructed object will be empty, but still
117
+ * valid.
118
+ * @extends {jspb.Message}
119
+ * @constructor
120
+ */
121
+ proto.gateway.web.v1.SlaOutcome = function(opt_data) {
122
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
123
+ };
124
+ goog.inherits(proto.gateway.web.v1.SlaOutcome, jspb.Message);
125
+ if (goog.DEBUG && !COMPILED) {
126
+ /**
127
+ * @public
128
+ * @override
129
+ */
130
+ proto.gateway.web.v1.SlaOutcome.displayName = 'proto.gateway.web.v1.SlaOutcome';
131
+ }
132
+ /**
133
+ * Generated by JsPbCodeGenerator.
134
+ * @param {Array=} opt_data Optional initial data array, typically from a
135
+ * server response, or constructed directly in Javascript. The array is used
136
+ * in place and becomes part of the constructed object. It is not cloned.
137
+ * If no data is provided, the constructed object will be empty, but still
138
+ * valid.
139
+ * @extends {jspb.Message}
140
+ * @constructor
141
+ */
142
+ proto.gateway.web.v1.CreateSlaRequest = function(opt_data) {
143
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
144
+ };
145
+ goog.inherits(proto.gateway.web.v1.CreateSlaRequest, jspb.Message);
146
+ if (goog.DEBUG && !COMPILED) {
147
+ /**
148
+ * @public
149
+ * @override
150
+ */
151
+ proto.gateway.web.v1.CreateSlaRequest.displayName = 'proto.gateway.web.v1.CreateSlaRequest';
152
+ }
153
+ /**
154
+ * Generated by JsPbCodeGenerator.
155
+ * @param {Array=} opt_data Optional initial data array, typically from a
156
+ * server response, or constructed directly in Javascript. The array is used
157
+ * in place and becomes part of the constructed object. It is not cloned.
158
+ * If no data is provided, the constructed object will be empty, but still
159
+ * valid.
160
+ * @extends {jspb.Message}
161
+ * @constructor
162
+ */
163
+ proto.gateway.web.v1.CreateSlaResponse = function(opt_data) {
164
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
165
+ };
166
+ goog.inherits(proto.gateway.web.v1.CreateSlaResponse, jspb.Message);
167
+ if (goog.DEBUG && !COMPILED) {
168
+ /**
169
+ * @public
170
+ * @override
171
+ */
172
+ proto.gateway.web.v1.CreateSlaResponse.displayName = 'proto.gateway.web.v1.CreateSlaResponse';
173
+ }
174
+ /**
175
+ * Generated by JsPbCodeGenerator.
176
+ * @param {Array=} opt_data Optional initial data array, typically from a
177
+ * server response, or constructed directly in Javascript. The array is used
178
+ * in place and becomes part of the constructed object. It is not cloned.
179
+ * If no data is provided, the constructed object will be empty, but still
180
+ * valid.
181
+ * @extends {jspb.Message}
182
+ * @constructor
183
+ */
184
+ proto.gateway.web.v1.GetSlaRequest = function(opt_data) {
185
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
186
+ };
187
+ goog.inherits(proto.gateway.web.v1.GetSlaRequest, jspb.Message);
188
+ if (goog.DEBUG && !COMPILED) {
189
+ /**
190
+ * @public
191
+ * @override
192
+ */
193
+ proto.gateway.web.v1.GetSlaRequest.displayName = 'proto.gateway.web.v1.GetSlaRequest';
194
+ }
195
+ /**
196
+ * Generated by JsPbCodeGenerator.
197
+ * @param {Array=} opt_data Optional initial data array, typically from a
198
+ * server response, or constructed directly in Javascript. The array is used
199
+ * in place and becomes part of the constructed object. It is not cloned.
200
+ * If no data is provided, the constructed object will be empty, but still
201
+ * valid.
202
+ * @extends {jspb.Message}
203
+ * @constructor
204
+ */
205
+ proto.gateway.web.v1.GetSlaResponse = function(opt_data) {
206
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
207
+ };
208
+ goog.inherits(proto.gateway.web.v1.GetSlaResponse, jspb.Message);
209
+ if (goog.DEBUG && !COMPILED) {
210
+ /**
211
+ * @public
212
+ * @override
213
+ */
214
+ proto.gateway.web.v1.GetSlaResponse.displayName = 'proto.gateway.web.v1.GetSlaResponse';
215
+ }
216
+ /**
217
+ * Generated by JsPbCodeGenerator.
218
+ * @param {Array=} opt_data Optional initial data array, typically from a
219
+ * server response, or constructed directly in Javascript. The array is used
220
+ * in place and becomes part of the constructed object. It is not cloned.
221
+ * If no data is provided, the constructed object will be empty, but still
222
+ * valid.
223
+ * @extends {jspb.Message}
224
+ * @constructor
225
+ */
226
+ proto.gateway.web.v1.ListSlasRequest = function(opt_data) {
227
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
228
+ };
229
+ goog.inherits(proto.gateway.web.v1.ListSlasRequest, jspb.Message);
230
+ if (goog.DEBUG && !COMPILED) {
231
+ /**
232
+ * @public
233
+ * @override
234
+ */
235
+ proto.gateway.web.v1.ListSlasRequest.displayName = 'proto.gateway.web.v1.ListSlasRequest';
236
+ }
237
+ /**
238
+ * Generated by JsPbCodeGenerator.
239
+ * @param {Array=} opt_data Optional initial data array, typically from a
240
+ * server response, or constructed directly in Javascript. The array is used
241
+ * in place and becomes part of the constructed object. It is not cloned.
242
+ * If no data is provided, the constructed object will be empty, but still
243
+ * valid.
244
+ * @extends {jspb.Message}
245
+ * @constructor
246
+ */
247
+ proto.gateway.web.v1.ListSlasResponse = function(opt_data) {
248
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListSlasResponse.repeatedFields_, null);
249
+ };
250
+ goog.inherits(proto.gateway.web.v1.ListSlasResponse, jspb.Message);
251
+ if (goog.DEBUG && !COMPILED) {
252
+ /**
253
+ * @public
254
+ * @override
255
+ */
256
+ proto.gateway.web.v1.ListSlasResponse.displayName = 'proto.gateway.web.v1.ListSlasResponse';
257
+ }
258
+ /**
259
+ * Generated by JsPbCodeGenerator.
260
+ * @param {Array=} opt_data Optional initial data array, typically from a
261
+ * server response, or constructed directly in Javascript. The array is used
262
+ * in place and becomes part of the constructed object. It is not cloned.
263
+ * If no data is provided, the constructed object will be empty, but still
264
+ * valid.
265
+ * @extends {jspb.Message}
266
+ * @constructor
267
+ */
268
+ proto.gateway.web.v1.UpdateSlaRequest = function(opt_data) {
269
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
270
+ };
271
+ goog.inherits(proto.gateway.web.v1.UpdateSlaRequest, jspb.Message);
272
+ if (goog.DEBUG && !COMPILED) {
273
+ /**
274
+ * @public
275
+ * @override
276
+ */
277
+ proto.gateway.web.v1.UpdateSlaRequest.displayName = 'proto.gateway.web.v1.UpdateSlaRequest';
278
+ }
279
+ /**
280
+ * Generated by JsPbCodeGenerator.
281
+ * @param {Array=} opt_data Optional initial data array, typically from a
282
+ * server response, or constructed directly in Javascript. The array is used
283
+ * in place and becomes part of the constructed object. It is not cloned.
284
+ * If no data is provided, the constructed object will be empty, but still
285
+ * valid.
286
+ * @extends {jspb.Message}
287
+ * @constructor
288
+ */
289
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates = function(opt_data) {
290
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
291
+ };
292
+ goog.inherits(proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates, jspb.Message);
293
+ if (goog.DEBUG && !COMPILED) {
294
+ /**
295
+ * @public
296
+ * @override
297
+ */
298
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.displayName = 'proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates';
299
+ }
300
+ /**
301
+ * Generated by JsPbCodeGenerator.
302
+ * @param {Array=} opt_data Optional initial data array, typically from a
303
+ * server response, or constructed directly in Javascript. The array is used
304
+ * in place and becomes part of the constructed object. It is not cloned.
305
+ * If no data is provided, the constructed object will be empty, but still
306
+ * valid.
307
+ * @extends {jspb.Message}
308
+ * @constructor
309
+ */
310
+ proto.gateway.web.v1.UpdateSlaResponse = function(opt_data) {
311
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
312
+ };
313
+ goog.inherits(proto.gateway.web.v1.UpdateSlaResponse, jspb.Message);
314
+ if (goog.DEBUG && !COMPILED) {
315
+ /**
316
+ * @public
317
+ * @override
318
+ */
319
+ proto.gateway.web.v1.UpdateSlaResponse.displayName = 'proto.gateway.web.v1.UpdateSlaResponse';
320
+ }
321
+ /**
322
+ * Generated by JsPbCodeGenerator.
323
+ * @param {Array=} opt_data Optional initial data array, typically from a
324
+ * server response, or constructed directly in Javascript. The array is used
325
+ * in place and becomes part of the constructed object. It is not cloned.
326
+ * If no data is provided, the constructed object will be empty, but still
327
+ * valid.
328
+ * @extends {jspb.Message}
329
+ * @constructor
330
+ */
331
+ proto.gateway.web.v1.DeleteSlaRequest = function(opt_data) {
332
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
333
+ };
334
+ goog.inherits(proto.gateway.web.v1.DeleteSlaRequest, jspb.Message);
335
+ if (goog.DEBUG && !COMPILED) {
336
+ /**
337
+ * @public
338
+ * @override
339
+ */
340
+ proto.gateway.web.v1.DeleteSlaRequest.displayName = 'proto.gateway.web.v1.DeleteSlaRequest';
341
+ }
342
+ /**
343
+ * Generated by JsPbCodeGenerator.
344
+ * @param {Array=} opt_data Optional initial data array, typically from a
345
+ * server response, or constructed directly in Javascript. The array is used
346
+ * in place and becomes part of the constructed object. It is not cloned.
347
+ * If no data is provided, the constructed object will be empty, but still
348
+ * valid.
349
+ * @extends {jspb.Message}
350
+ * @constructor
351
+ */
352
+ proto.gateway.web.v1.DeleteSlaResponse = function(opt_data) {
353
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
354
+ };
355
+ goog.inherits(proto.gateway.web.v1.DeleteSlaResponse, jspb.Message);
356
+ if (goog.DEBUG && !COMPILED) {
357
+ /**
358
+ * @public
359
+ * @override
360
+ */
361
+ proto.gateway.web.v1.DeleteSlaResponse.displayName = 'proto.gateway.web.v1.DeleteSlaResponse';
362
+ }
363
+ /**
364
+ * Generated by JsPbCodeGenerator.
365
+ * @param {Array=} opt_data Optional initial data array, typically from a
366
+ * server response, or constructed directly in Javascript. The array is used
367
+ * in place and becomes part of the constructed object. It is not cloned.
368
+ * If no data is provided, the constructed object will be empty, but still
369
+ * valid.
370
+ * @extends {jspb.Message}
371
+ * @constructor
372
+ */
373
+ proto.gateway.web.v1.ListSlaOutcomesRequest = function(opt_data) {
374
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
375
+ };
376
+ goog.inherits(proto.gateway.web.v1.ListSlaOutcomesRequest, jspb.Message);
377
+ if (goog.DEBUG && !COMPILED) {
378
+ /**
379
+ * @public
380
+ * @override
381
+ */
382
+ proto.gateway.web.v1.ListSlaOutcomesRequest.displayName = 'proto.gateway.web.v1.ListSlaOutcomesRequest';
383
+ }
384
+ /**
385
+ * Generated by JsPbCodeGenerator.
386
+ * @param {Array=} opt_data Optional initial data array, typically from a
387
+ * server response, or constructed directly in Javascript. The array is used
388
+ * in place and becomes part of the constructed object. It is not cloned.
389
+ * If no data is provided, the constructed object will be empty, but still
390
+ * valid.
391
+ * @extends {jspb.Message}
392
+ * @constructor
393
+ */
394
+ proto.gateway.web.v1.ListSlaOutcomesResponse = function(opt_data) {
395
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListSlaOutcomesResponse.repeatedFields_, null);
396
+ };
397
+ goog.inherits(proto.gateway.web.v1.ListSlaOutcomesResponse, jspb.Message);
398
+ if (goog.DEBUG && !COMPILED) {
399
+ /**
400
+ * @public
401
+ * @override
402
+ */
403
+ proto.gateway.web.v1.ListSlaOutcomesResponse.displayName = 'proto.gateway.web.v1.ListSlaOutcomesResponse';
404
+ }
405
+
406
+
407
+
408
+ if (jspb.Message.GENERATE_TO_OBJECT) {
409
+ /**
410
+ * Creates an object representation of this proto.
411
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
412
+ * Optional fields that are not set will be set to undefined.
413
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
414
+ * For the list of reserved names please see:
415
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
416
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
417
+ * JSPB instance for transitional soy proto support:
418
+ * http://goto/soy-param-migration
419
+ * @return {!Object}
420
+ */
421
+ proto.gateway.web.v1.Sla.prototype.toObject = function(opt_includeInstance) {
422
+ return proto.gateway.web.v1.Sla.toObject(opt_includeInstance, this);
423
+ };
424
+
425
+
426
+ /**
427
+ * Static version of the {@see toObject} method.
428
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
429
+ * the JSPB instance for transitional soy proto support:
430
+ * http://goto/soy-param-migration
431
+ * @param {!proto.gateway.web.v1.Sla} msg The msg instance to transform.
432
+ * @return {!Object}
433
+ * @suppress {unusedLocalVariables} f is only used for nested messages
434
+ */
435
+ proto.gateway.web.v1.Sla.toObject = function(includeInstance, msg) {
436
+ var f, obj = {
437
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
438
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
439
+ projectId: jspb.Message.getFieldWithDefault(msg, 3, ""),
440
+ name: jspb.Message.getFieldWithDefault(msg, 4, ""),
441
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
442
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
443
+ check: (f = msg.getCheck()) && proto.gateway.web.v1.SlaCheck.toObject(includeInstance, f),
444
+ currentRevision: jspb.Message.getFieldWithDefault(msg, 8, 0),
445
+ metricName: jspb.Message.getFieldWithDefault(msg, 9, ""),
446
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
447
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
448
+ };
449
+
450
+ if (includeInstance) {
451
+ obj.$jspbMessageInstance = msg;
452
+ }
453
+ return obj;
454
+ };
455
+ }
456
+
457
+
458
+ /**
459
+ * Deserializes binary data (in protobuf wire format).
460
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
461
+ * @return {!proto.gateway.web.v1.Sla}
462
+ */
463
+ proto.gateway.web.v1.Sla.deserializeBinary = function(bytes) {
464
+ var reader = new jspb.BinaryReader(bytes);
465
+ var msg = new proto.gateway.web.v1.Sla;
466
+ return proto.gateway.web.v1.Sla.deserializeBinaryFromReader(msg, reader);
467
+ };
468
+
469
+
470
+ /**
471
+ * Deserializes binary data (in protobuf wire format) from the
472
+ * given reader into the given message object.
473
+ * @param {!proto.gateway.web.v1.Sla} msg The message object to deserialize into.
474
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
475
+ * @return {!proto.gateway.web.v1.Sla}
476
+ */
477
+ proto.gateway.web.v1.Sla.deserializeBinaryFromReader = function(msg, reader) {
478
+ while (reader.nextField()) {
479
+ if (reader.isEndGroup()) {
480
+ break;
481
+ }
482
+ var field = reader.getFieldNumber();
483
+ switch (field) {
484
+ case 1:
485
+ var value = /** @type {string} */ (reader.readString());
486
+ msg.setId(value);
487
+ break;
488
+ case 2:
489
+ var value = /** @type {string} */ (reader.readString());
490
+ msg.setOrganizationId(value);
491
+ break;
492
+ case 3:
493
+ var value = /** @type {string} */ (reader.readString());
494
+ msg.setProjectId(value);
495
+ break;
496
+ case 4:
497
+ var value = /** @type {string} */ (reader.readString());
498
+ msg.setName(value);
499
+ break;
500
+ case 5:
501
+ var value = /** @type {string} */ (reader.readString());
502
+ msg.setDescription(value);
503
+ break;
504
+ case 6:
505
+ var value = /** @type {boolean} */ (reader.readBool());
506
+ msg.setEnabled(value);
507
+ break;
508
+ case 7:
509
+ var value = new proto.gateway.web.v1.SlaCheck;
510
+ reader.readMessage(value,proto.gateway.web.v1.SlaCheck.deserializeBinaryFromReader);
511
+ msg.setCheck(value);
512
+ break;
513
+ case 8:
514
+ var value = /** @type {number} */ (reader.readInt32());
515
+ msg.setCurrentRevision(value);
516
+ break;
517
+ case 9:
518
+ var value = /** @type {string} */ (reader.readString());
519
+ msg.setMetricName(value);
520
+ break;
521
+ case 10:
522
+ var value = new google_protobuf_timestamp_pb.Timestamp;
523
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
524
+ msg.setCreatedAt(value);
525
+ break;
526
+ case 11:
527
+ var value = new google_protobuf_timestamp_pb.Timestamp;
528
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
529
+ msg.setUpdatedAt(value);
530
+ break;
531
+ default:
532
+ reader.skipField();
533
+ break;
534
+ }
535
+ }
536
+ return msg;
537
+ };
538
+
539
+
540
+ /**
541
+ * Serializes the message to binary data (in protobuf wire format).
542
+ * @return {!Uint8Array}
543
+ */
544
+ proto.gateway.web.v1.Sla.prototype.serializeBinary = function() {
545
+ var writer = new jspb.BinaryWriter();
546
+ proto.gateway.web.v1.Sla.serializeBinaryToWriter(this, writer);
547
+ return writer.getResultBuffer();
548
+ };
549
+
550
+
551
+ /**
552
+ * Serializes the given message to binary data (in protobuf wire
553
+ * format), writing to the given BinaryWriter.
554
+ * @param {!proto.gateway.web.v1.Sla} message
555
+ * @param {!jspb.BinaryWriter} writer
556
+ * @suppress {unusedLocalVariables} f is only used for nested messages
557
+ */
558
+ proto.gateway.web.v1.Sla.serializeBinaryToWriter = function(message, writer) {
559
+ var f = undefined;
560
+ f = message.getId();
561
+ if (f.length > 0) {
562
+ writer.writeString(
563
+ 1,
564
+ f
565
+ );
566
+ }
567
+ f = message.getOrganizationId();
568
+ if (f.length > 0) {
569
+ writer.writeString(
570
+ 2,
571
+ f
572
+ );
573
+ }
574
+ f = message.getProjectId();
575
+ if (f.length > 0) {
576
+ writer.writeString(
577
+ 3,
578
+ f
579
+ );
580
+ }
581
+ f = message.getName();
582
+ if (f.length > 0) {
583
+ writer.writeString(
584
+ 4,
585
+ f
586
+ );
587
+ }
588
+ f = message.getDescription();
589
+ if (f.length > 0) {
590
+ writer.writeString(
591
+ 5,
592
+ f
593
+ );
594
+ }
595
+ f = message.getEnabled();
596
+ if (f) {
597
+ writer.writeBool(
598
+ 6,
599
+ f
600
+ );
601
+ }
602
+ f = message.getCheck();
603
+ if (f != null) {
604
+ writer.writeMessage(
605
+ 7,
606
+ f,
607
+ proto.gateway.web.v1.SlaCheck.serializeBinaryToWriter
608
+ );
609
+ }
610
+ f = message.getCurrentRevision();
611
+ if (f !== 0) {
612
+ writer.writeInt32(
613
+ 8,
614
+ f
615
+ );
616
+ }
617
+ f = message.getMetricName();
618
+ if (f.length > 0) {
619
+ writer.writeString(
620
+ 9,
621
+ f
622
+ );
623
+ }
624
+ f = message.getCreatedAt();
625
+ if (f != null) {
626
+ writer.writeMessage(
627
+ 10,
628
+ f,
629
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
630
+ );
631
+ }
632
+ f = message.getUpdatedAt();
633
+ if (f != null) {
634
+ writer.writeMessage(
635
+ 11,
636
+ f,
637
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
638
+ );
639
+ }
640
+ };
641
+
642
+
643
+ /**
644
+ * optional string id = 1;
645
+ * @return {string}
646
+ */
647
+ proto.gateway.web.v1.Sla.prototype.getId = function() {
648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
649
+ };
650
+
651
+
652
+ /**
653
+ * @param {string} value
654
+ * @return {!proto.gateway.web.v1.Sla} returns this
655
+ */
656
+ proto.gateway.web.v1.Sla.prototype.setId = function(value) {
657
+ return jspb.Message.setProto3StringField(this, 1, value);
658
+ };
659
+
660
+
661
+ /**
662
+ * optional string organization_id = 2;
663
+ * @return {string}
664
+ */
665
+ proto.gateway.web.v1.Sla.prototype.getOrganizationId = function() {
666
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
667
+ };
668
+
669
+
670
+ /**
671
+ * @param {string} value
672
+ * @return {!proto.gateway.web.v1.Sla} returns this
673
+ */
674
+ proto.gateway.web.v1.Sla.prototype.setOrganizationId = function(value) {
675
+ return jspb.Message.setProto3StringField(this, 2, value);
676
+ };
677
+
678
+
679
+ /**
680
+ * optional string project_id = 3;
681
+ * @return {string}
682
+ */
683
+ proto.gateway.web.v1.Sla.prototype.getProjectId = function() {
684
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
685
+ };
686
+
687
+
688
+ /**
689
+ * @param {string} value
690
+ * @return {!proto.gateway.web.v1.Sla} returns this
691
+ */
692
+ proto.gateway.web.v1.Sla.prototype.setProjectId = function(value) {
693
+ return jspb.Message.setProto3StringField(this, 3, value);
694
+ };
695
+
696
+
697
+ /**
698
+ * optional string name = 4;
699
+ * @return {string}
700
+ */
701
+ proto.gateway.web.v1.Sla.prototype.getName = function() {
702
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
703
+ };
704
+
705
+
706
+ /**
707
+ * @param {string} value
708
+ * @return {!proto.gateway.web.v1.Sla} returns this
709
+ */
710
+ proto.gateway.web.v1.Sla.prototype.setName = function(value) {
711
+ return jspb.Message.setProto3StringField(this, 4, value);
712
+ };
713
+
714
+
715
+ /**
716
+ * optional string description = 5;
717
+ * @return {string}
718
+ */
719
+ proto.gateway.web.v1.Sla.prototype.getDescription = function() {
720
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
721
+ };
722
+
723
+
724
+ /**
725
+ * @param {string} value
726
+ * @return {!proto.gateway.web.v1.Sla} returns this
727
+ */
728
+ proto.gateway.web.v1.Sla.prototype.setDescription = function(value) {
729
+ return jspb.Message.setProto3StringField(this, 5, value);
730
+ };
731
+
732
+
733
+ /**
734
+ * optional bool enabled = 6;
735
+ * @return {boolean}
736
+ */
737
+ proto.gateway.web.v1.Sla.prototype.getEnabled = function() {
738
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {boolean} value
744
+ * @return {!proto.gateway.web.v1.Sla} returns this
745
+ */
746
+ proto.gateway.web.v1.Sla.prototype.setEnabled = function(value) {
747
+ return jspb.Message.setProto3BooleanField(this, 6, value);
748
+ };
749
+
750
+
751
+ /**
752
+ * optional SlaCheck check = 7;
753
+ * @return {?proto.gateway.web.v1.SlaCheck}
754
+ */
755
+ proto.gateway.web.v1.Sla.prototype.getCheck = function() {
756
+ return /** @type{?proto.gateway.web.v1.SlaCheck} */ (
757
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SlaCheck, 7));
758
+ };
759
+
760
+
761
+ /**
762
+ * @param {?proto.gateway.web.v1.SlaCheck|undefined} value
763
+ * @return {!proto.gateway.web.v1.Sla} returns this
764
+ */
765
+ proto.gateway.web.v1.Sla.prototype.setCheck = function(value) {
766
+ return jspb.Message.setWrapperField(this, 7, value);
767
+ };
768
+
769
+
770
+ /**
771
+ * Clears the message field making it undefined.
772
+ * @return {!proto.gateway.web.v1.Sla} returns this
773
+ */
774
+ proto.gateway.web.v1.Sla.prototype.clearCheck = function() {
775
+ return this.setCheck(undefined);
776
+ };
777
+
778
+
779
+ /**
780
+ * Returns whether this field is set.
781
+ * @return {boolean}
782
+ */
783
+ proto.gateway.web.v1.Sla.prototype.hasCheck = function() {
784
+ return jspb.Message.getField(this, 7) != null;
785
+ };
786
+
787
+
788
+ /**
789
+ * optional int32 current_revision = 8;
790
+ * @return {number}
791
+ */
792
+ proto.gateway.web.v1.Sla.prototype.getCurrentRevision = function() {
793
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
794
+ };
795
+
796
+
797
+ /**
798
+ * @param {number} value
799
+ * @return {!proto.gateway.web.v1.Sla} returns this
800
+ */
801
+ proto.gateway.web.v1.Sla.prototype.setCurrentRevision = function(value) {
802
+ return jspb.Message.setProto3IntField(this, 8, value);
803
+ };
804
+
805
+
806
+ /**
807
+ * optional string metric_name = 9;
808
+ * @return {string}
809
+ */
810
+ proto.gateway.web.v1.Sla.prototype.getMetricName = function() {
811
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
812
+ };
813
+
814
+
815
+ /**
816
+ * @param {string} value
817
+ * @return {!proto.gateway.web.v1.Sla} returns this
818
+ */
819
+ proto.gateway.web.v1.Sla.prototype.setMetricName = function(value) {
820
+ return jspb.Message.setProto3StringField(this, 9, value);
821
+ };
822
+
823
+
824
+ /**
825
+ * optional google.protobuf.Timestamp created_at = 10;
826
+ * @return {?proto.google.protobuf.Timestamp}
827
+ */
828
+ proto.gateway.web.v1.Sla.prototype.getCreatedAt = function() {
829
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
830
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
831
+ };
832
+
833
+
834
+ /**
835
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
836
+ * @return {!proto.gateway.web.v1.Sla} returns this
837
+ */
838
+ proto.gateway.web.v1.Sla.prototype.setCreatedAt = function(value) {
839
+ return jspb.Message.setWrapperField(this, 10, value);
840
+ };
841
+
842
+
843
+ /**
844
+ * Clears the message field making it undefined.
845
+ * @return {!proto.gateway.web.v1.Sla} returns this
846
+ */
847
+ proto.gateway.web.v1.Sla.prototype.clearCreatedAt = function() {
848
+ return this.setCreatedAt(undefined);
849
+ };
850
+
851
+
852
+ /**
853
+ * Returns whether this field is set.
854
+ * @return {boolean}
855
+ */
856
+ proto.gateway.web.v1.Sla.prototype.hasCreatedAt = function() {
857
+ return jspb.Message.getField(this, 10) != null;
858
+ };
859
+
860
+
861
+ /**
862
+ * optional google.protobuf.Timestamp updated_at = 11;
863
+ * @return {?proto.google.protobuf.Timestamp}
864
+ */
865
+ proto.gateway.web.v1.Sla.prototype.getUpdatedAt = function() {
866
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
867
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
868
+ };
869
+
870
+
871
+ /**
872
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
873
+ * @return {!proto.gateway.web.v1.Sla} returns this
874
+ */
875
+ proto.gateway.web.v1.Sla.prototype.setUpdatedAt = function(value) {
876
+ return jspb.Message.setWrapperField(this, 11, value);
877
+ };
878
+
879
+
880
+ /**
881
+ * Clears the message field making it undefined.
882
+ * @return {!proto.gateway.web.v1.Sla} returns this
883
+ */
884
+ proto.gateway.web.v1.Sla.prototype.clearUpdatedAt = function() {
885
+ return this.setUpdatedAt(undefined);
886
+ };
887
+
888
+
889
+ /**
890
+ * Returns whether this field is set.
891
+ * @return {boolean}
892
+ */
893
+ proto.gateway.web.v1.Sla.prototype.hasUpdatedAt = function() {
894
+ return jspb.Message.getField(this, 11) != null;
895
+ };
896
+
897
+
898
+
899
+
900
+
901
+ if (jspb.Message.GENERATE_TO_OBJECT) {
902
+ /**
903
+ * Creates an object representation of this proto.
904
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
905
+ * Optional fields that are not set will be set to undefined.
906
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
907
+ * For the list of reserved names please see:
908
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
909
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
910
+ * JSPB instance for transitional soy proto support:
911
+ * http://goto/soy-param-migration
912
+ * @return {!Object}
913
+ */
914
+ proto.gateway.web.v1.SlaCheck.prototype.toObject = function(opt_includeInstance) {
915
+ return proto.gateway.web.v1.SlaCheck.toObject(opt_includeInstance, this);
916
+ };
917
+
918
+
919
+ /**
920
+ * Static version of the {@see toObject} method.
921
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
922
+ * the JSPB instance for transitional soy proto support:
923
+ * http://goto/soy-param-migration
924
+ * @param {!proto.gateway.web.v1.SlaCheck} msg The msg instance to transform.
925
+ * @return {!Object}
926
+ * @suppress {unusedLocalVariables} f is only used for nested messages
927
+ */
928
+ proto.gateway.web.v1.SlaCheck.toObject = function(includeInstance, msg) {
929
+ var f, obj = {
930
+ sideA: (f = msg.getSideA()) && proto.gateway.web.v1.SlaAttributeRef.toObject(includeInstance, f),
931
+ sideB: (f = msg.getSideB()) && proto.gateway.web.v1.SlaAttributeRef.toObject(includeInstance, f),
932
+ comparator: jspb.Message.getFieldWithDefault(msg, 3, 0),
933
+ threshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
934
+ };
935
+
936
+ if (includeInstance) {
937
+ obj.$jspbMessageInstance = msg;
938
+ }
939
+ return obj;
940
+ };
941
+ }
942
+
943
+
944
+ /**
945
+ * Deserializes binary data (in protobuf wire format).
946
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
947
+ * @return {!proto.gateway.web.v1.SlaCheck}
948
+ */
949
+ proto.gateway.web.v1.SlaCheck.deserializeBinary = function(bytes) {
950
+ var reader = new jspb.BinaryReader(bytes);
951
+ var msg = new proto.gateway.web.v1.SlaCheck;
952
+ return proto.gateway.web.v1.SlaCheck.deserializeBinaryFromReader(msg, reader);
953
+ };
954
+
955
+
956
+ /**
957
+ * Deserializes binary data (in protobuf wire format) from the
958
+ * given reader into the given message object.
959
+ * @param {!proto.gateway.web.v1.SlaCheck} msg The message object to deserialize into.
960
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
961
+ * @return {!proto.gateway.web.v1.SlaCheck}
962
+ */
963
+ proto.gateway.web.v1.SlaCheck.deserializeBinaryFromReader = function(msg, reader) {
964
+ while (reader.nextField()) {
965
+ if (reader.isEndGroup()) {
966
+ break;
967
+ }
968
+ var field = reader.getFieldNumber();
969
+ switch (field) {
970
+ case 1:
971
+ var value = new proto.gateway.web.v1.SlaAttributeRef;
972
+ reader.readMessage(value,proto.gateway.web.v1.SlaAttributeRef.deserializeBinaryFromReader);
973
+ msg.setSideA(value);
974
+ break;
975
+ case 2:
976
+ var value = new proto.gateway.web.v1.SlaAttributeRef;
977
+ reader.readMessage(value,proto.gateway.web.v1.SlaAttributeRef.deserializeBinaryFromReader);
978
+ msg.setSideB(value);
979
+ break;
980
+ case 3:
981
+ var value = /** @type {!proto.gateway.web.v1.SlaComparator} */ (reader.readEnum());
982
+ msg.setComparator(value);
983
+ break;
984
+ case 4:
985
+ var value = /** @type {number} */ (reader.readDouble());
986
+ msg.setThreshold(value);
987
+ break;
988
+ default:
989
+ reader.skipField();
990
+ break;
991
+ }
992
+ }
993
+ return msg;
994
+ };
995
+
996
+
997
+ /**
998
+ * Serializes the message to binary data (in protobuf wire format).
999
+ * @return {!Uint8Array}
1000
+ */
1001
+ proto.gateway.web.v1.SlaCheck.prototype.serializeBinary = function() {
1002
+ var writer = new jspb.BinaryWriter();
1003
+ proto.gateway.web.v1.SlaCheck.serializeBinaryToWriter(this, writer);
1004
+ return writer.getResultBuffer();
1005
+ };
1006
+
1007
+
1008
+ /**
1009
+ * Serializes the given message to binary data (in protobuf wire
1010
+ * format), writing to the given BinaryWriter.
1011
+ * @param {!proto.gateway.web.v1.SlaCheck} message
1012
+ * @param {!jspb.BinaryWriter} writer
1013
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1014
+ */
1015
+ proto.gateway.web.v1.SlaCheck.serializeBinaryToWriter = function(message, writer) {
1016
+ var f = undefined;
1017
+ f = message.getSideA();
1018
+ if (f != null) {
1019
+ writer.writeMessage(
1020
+ 1,
1021
+ f,
1022
+ proto.gateway.web.v1.SlaAttributeRef.serializeBinaryToWriter
1023
+ );
1024
+ }
1025
+ f = message.getSideB();
1026
+ if (f != null) {
1027
+ writer.writeMessage(
1028
+ 2,
1029
+ f,
1030
+ proto.gateway.web.v1.SlaAttributeRef.serializeBinaryToWriter
1031
+ );
1032
+ }
1033
+ f = message.getComparator();
1034
+ if (f !== 0.0) {
1035
+ writer.writeEnum(
1036
+ 3,
1037
+ f
1038
+ );
1039
+ }
1040
+ f = message.getThreshold();
1041
+ if (f !== 0.0) {
1042
+ writer.writeDouble(
1043
+ 4,
1044
+ f
1045
+ );
1046
+ }
1047
+ };
1048
+
1049
+
1050
+ /**
1051
+ * optional SlaAttributeRef side_a = 1;
1052
+ * @return {?proto.gateway.web.v1.SlaAttributeRef}
1053
+ */
1054
+ proto.gateway.web.v1.SlaCheck.prototype.getSideA = function() {
1055
+ return /** @type{?proto.gateway.web.v1.SlaAttributeRef} */ (
1056
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SlaAttributeRef, 1));
1057
+ };
1058
+
1059
+
1060
+ /**
1061
+ * @param {?proto.gateway.web.v1.SlaAttributeRef|undefined} value
1062
+ * @return {!proto.gateway.web.v1.SlaCheck} returns this
1063
+ */
1064
+ proto.gateway.web.v1.SlaCheck.prototype.setSideA = function(value) {
1065
+ return jspb.Message.setWrapperField(this, 1, value);
1066
+ };
1067
+
1068
+
1069
+ /**
1070
+ * Clears the message field making it undefined.
1071
+ * @return {!proto.gateway.web.v1.SlaCheck} returns this
1072
+ */
1073
+ proto.gateway.web.v1.SlaCheck.prototype.clearSideA = function() {
1074
+ return this.setSideA(undefined);
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * Returns whether this field is set.
1080
+ * @return {boolean}
1081
+ */
1082
+ proto.gateway.web.v1.SlaCheck.prototype.hasSideA = function() {
1083
+ return jspb.Message.getField(this, 1) != null;
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * optional SlaAttributeRef side_b = 2;
1089
+ * @return {?proto.gateway.web.v1.SlaAttributeRef}
1090
+ */
1091
+ proto.gateway.web.v1.SlaCheck.prototype.getSideB = function() {
1092
+ return /** @type{?proto.gateway.web.v1.SlaAttributeRef} */ (
1093
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SlaAttributeRef, 2));
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * @param {?proto.gateway.web.v1.SlaAttributeRef|undefined} value
1099
+ * @return {!proto.gateway.web.v1.SlaCheck} returns this
1100
+ */
1101
+ proto.gateway.web.v1.SlaCheck.prototype.setSideB = function(value) {
1102
+ return jspb.Message.setWrapperField(this, 2, value);
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * Clears the message field making it undefined.
1108
+ * @return {!proto.gateway.web.v1.SlaCheck} returns this
1109
+ */
1110
+ proto.gateway.web.v1.SlaCheck.prototype.clearSideB = function() {
1111
+ return this.setSideB(undefined);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * Returns whether this field is set.
1117
+ * @return {boolean}
1118
+ */
1119
+ proto.gateway.web.v1.SlaCheck.prototype.hasSideB = function() {
1120
+ return jspb.Message.getField(this, 2) != null;
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * optional SlaComparator comparator = 3;
1126
+ * @return {!proto.gateway.web.v1.SlaComparator}
1127
+ */
1128
+ proto.gateway.web.v1.SlaCheck.prototype.getComparator = function() {
1129
+ return /** @type {!proto.gateway.web.v1.SlaComparator} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {!proto.gateway.web.v1.SlaComparator} value
1135
+ * @return {!proto.gateway.web.v1.SlaCheck} returns this
1136
+ */
1137
+ proto.gateway.web.v1.SlaCheck.prototype.setComparator = function(value) {
1138
+ return jspb.Message.setProto3EnumField(this, 3, value);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * optional double threshold = 4;
1144
+ * @return {number}
1145
+ */
1146
+ proto.gateway.web.v1.SlaCheck.prototype.getThreshold = function() {
1147
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * @param {number} value
1153
+ * @return {!proto.gateway.web.v1.SlaCheck} returns this
1154
+ */
1155
+ proto.gateway.web.v1.SlaCheck.prototype.setThreshold = function(value) {
1156
+ return jspb.Message.setProto3FloatField(this, 4, value);
1157
+ };
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1164
+ /**
1165
+ * Creates an object representation of this proto.
1166
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1167
+ * Optional fields that are not set will be set to undefined.
1168
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1169
+ * For the list of reserved names please see:
1170
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1171
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1172
+ * JSPB instance for transitional soy proto support:
1173
+ * http://goto/soy-param-migration
1174
+ * @return {!Object}
1175
+ */
1176
+ proto.gateway.web.v1.SlaAttributeRef.prototype.toObject = function(opt_includeInstance) {
1177
+ return proto.gateway.web.v1.SlaAttributeRef.toObject(opt_includeInstance, this);
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * Static version of the {@see toObject} method.
1183
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1184
+ * the JSPB instance for transitional soy proto support:
1185
+ * http://goto/soy-param-migration
1186
+ * @param {!proto.gateway.web.v1.SlaAttributeRef} msg The msg instance to transform.
1187
+ * @return {!Object}
1188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1189
+ */
1190
+ proto.gateway.web.v1.SlaAttributeRef.toObject = function(includeInstance, msg) {
1191
+ var f, obj = {
1192
+ attributeKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
1193
+ eventName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1194
+ occurrence: jspb.Message.getFieldWithDefault(msg, 3, 0)
1195
+ };
1196
+
1197
+ if (includeInstance) {
1198
+ obj.$jspbMessageInstance = msg;
1199
+ }
1200
+ return obj;
1201
+ };
1202
+ }
1203
+
1204
+
1205
+ /**
1206
+ * Deserializes binary data (in protobuf wire format).
1207
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1208
+ * @return {!proto.gateway.web.v1.SlaAttributeRef}
1209
+ */
1210
+ proto.gateway.web.v1.SlaAttributeRef.deserializeBinary = function(bytes) {
1211
+ var reader = new jspb.BinaryReader(bytes);
1212
+ var msg = new proto.gateway.web.v1.SlaAttributeRef;
1213
+ return proto.gateway.web.v1.SlaAttributeRef.deserializeBinaryFromReader(msg, reader);
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * Deserializes binary data (in protobuf wire format) from the
1219
+ * given reader into the given message object.
1220
+ * @param {!proto.gateway.web.v1.SlaAttributeRef} msg The message object to deserialize into.
1221
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1222
+ * @return {!proto.gateway.web.v1.SlaAttributeRef}
1223
+ */
1224
+ proto.gateway.web.v1.SlaAttributeRef.deserializeBinaryFromReader = function(msg, reader) {
1225
+ while (reader.nextField()) {
1226
+ if (reader.isEndGroup()) {
1227
+ break;
1228
+ }
1229
+ var field = reader.getFieldNumber();
1230
+ switch (field) {
1231
+ case 1:
1232
+ var value = /** @type {string} */ (reader.readString());
1233
+ msg.setAttributeKey(value);
1234
+ break;
1235
+ case 2:
1236
+ var value = /** @type {string} */ (reader.readString());
1237
+ msg.setEventName(value);
1238
+ break;
1239
+ case 3:
1240
+ var value = /** @type {!proto.gateway.web.v1.SlaOccurrence} */ (reader.readEnum());
1241
+ msg.setOccurrence(value);
1242
+ break;
1243
+ default:
1244
+ reader.skipField();
1245
+ break;
1246
+ }
1247
+ }
1248
+ return msg;
1249
+ };
1250
+
1251
+
1252
+ /**
1253
+ * Serializes the message to binary data (in protobuf wire format).
1254
+ * @return {!Uint8Array}
1255
+ */
1256
+ proto.gateway.web.v1.SlaAttributeRef.prototype.serializeBinary = function() {
1257
+ var writer = new jspb.BinaryWriter();
1258
+ proto.gateway.web.v1.SlaAttributeRef.serializeBinaryToWriter(this, writer);
1259
+ return writer.getResultBuffer();
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * Serializes the given message to binary data (in protobuf wire
1265
+ * format), writing to the given BinaryWriter.
1266
+ * @param {!proto.gateway.web.v1.SlaAttributeRef} message
1267
+ * @param {!jspb.BinaryWriter} writer
1268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1269
+ */
1270
+ proto.gateway.web.v1.SlaAttributeRef.serializeBinaryToWriter = function(message, writer) {
1271
+ var f = undefined;
1272
+ f = message.getAttributeKey();
1273
+ if (f.length > 0) {
1274
+ writer.writeString(
1275
+ 1,
1276
+ f
1277
+ );
1278
+ }
1279
+ f = message.getEventName();
1280
+ if (f.length > 0) {
1281
+ writer.writeString(
1282
+ 2,
1283
+ f
1284
+ );
1285
+ }
1286
+ f = message.getOccurrence();
1287
+ if (f !== 0.0) {
1288
+ writer.writeEnum(
1289
+ 3,
1290
+ f
1291
+ );
1292
+ }
1293
+ };
1294
+
1295
+
1296
+ /**
1297
+ * optional string attribute_key = 1;
1298
+ * @return {string}
1299
+ */
1300
+ proto.gateway.web.v1.SlaAttributeRef.prototype.getAttributeKey = function() {
1301
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1302
+ };
1303
+
1304
+
1305
+ /**
1306
+ * @param {string} value
1307
+ * @return {!proto.gateway.web.v1.SlaAttributeRef} returns this
1308
+ */
1309
+ proto.gateway.web.v1.SlaAttributeRef.prototype.setAttributeKey = function(value) {
1310
+ return jspb.Message.setProto3StringField(this, 1, value);
1311
+ };
1312
+
1313
+
1314
+ /**
1315
+ * optional string event_name = 2;
1316
+ * @return {string}
1317
+ */
1318
+ proto.gateway.web.v1.SlaAttributeRef.prototype.getEventName = function() {
1319
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * @param {string} value
1325
+ * @return {!proto.gateway.web.v1.SlaAttributeRef} returns this
1326
+ */
1327
+ proto.gateway.web.v1.SlaAttributeRef.prototype.setEventName = function(value) {
1328
+ return jspb.Message.setProto3StringField(this, 2, value);
1329
+ };
1330
+
1331
+
1332
+ /**
1333
+ * optional SlaOccurrence occurrence = 3;
1334
+ * @return {!proto.gateway.web.v1.SlaOccurrence}
1335
+ */
1336
+ proto.gateway.web.v1.SlaAttributeRef.prototype.getOccurrence = function() {
1337
+ return /** @type {!proto.gateway.web.v1.SlaOccurrence} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1338
+ };
1339
+
1340
+
1341
+ /**
1342
+ * @param {!proto.gateway.web.v1.SlaOccurrence} value
1343
+ * @return {!proto.gateway.web.v1.SlaAttributeRef} returns this
1344
+ */
1345
+ proto.gateway.web.v1.SlaAttributeRef.prototype.setOccurrence = function(value) {
1346
+ return jspb.Message.setProto3EnumField(this, 3, value);
1347
+ };
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1354
+ /**
1355
+ * Creates an object representation of this proto.
1356
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1357
+ * Optional fields that are not set will be set to undefined.
1358
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1359
+ * For the list of reserved names please see:
1360
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1361
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1362
+ * JSPB instance for transitional soy proto support:
1363
+ * http://goto/soy-param-migration
1364
+ * @return {!Object}
1365
+ */
1366
+ proto.gateway.web.v1.SlaOutcome.prototype.toObject = function(opt_includeInstance) {
1367
+ return proto.gateway.web.v1.SlaOutcome.toObject(opt_includeInstance, this);
1368
+ };
1369
+
1370
+
1371
+ /**
1372
+ * Static version of the {@see toObject} method.
1373
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1374
+ * the JSPB instance for transitional soy proto support:
1375
+ * http://goto/soy-param-migration
1376
+ * @param {!proto.gateway.web.v1.SlaOutcome} msg The msg instance to transform.
1377
+ * @return {!Object}
1378
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1379
+ */
1380
+ proto.gateway.web.v1.SlaOutcome.toObject = function(includeInstance, msg) {
1381
+ var f, obj = {
1382
+ slaId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1383
+ revision: jspb.Message.getFieldWithDefault(msg, 2, 0),
1384
+ traceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1385
+ terminalVersion: jspb.Message.getFieldWithDefault(msg, 4, 0),
1386
+ outcome: jspb.Message.getFieldWithDefault(msg, 5, 0),
1387
+ sideAValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 6)) == null ? undefined : f,
1388
+ sideBValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 7)) == null ? undefined : f,
1389
+ diff: (f = jspb.Message.getOptionalFloatingPointField(msg, 8)) == null ? undefined : f,
1390
+ reasonCode: jspb.Message.getFieldWithDefault(msg, 9, ""),
1391
+ traceFinishedAt: (f = msg.getTraceFinishedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1392
+ evaluatedAt: (f = msg.getEvaluatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1393
+ };
1394
+
1395
+ if (includeInstance) {
1396
+ obj.$jspbMessageInstance = msg;
1397
+ }
1398
+ return obj;
1399
+ };
1400
+ }
1401
+
1402
+
1403
+ /**
1404
+ * Deserializes binary data (in protobuf wire format).
1405
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1406
+ * @return {!proto.gateway.web.v1.SlaOutcome}
1407
+ */
1408
+ proto.gateway.web.v1.SlaOutcome.deserializeBinary = function(bytes) {
1409
+ var reader = new jspb.BinaryReader(bytes);
1410
+ var msg = new proto.gateway.web.v1.SlaOutcome;
1411
+ return proto.gateway.web.v1.SlaOutcome.deserializeBinaryFromReader(msg, reader);
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * Deserializes binary data (in protobuf wire format) from the
1417
+ * given reader into the given message object.
1418
+ * @param {!proto.gateway.web.v1.SlaOutcome} msg The message object to deserialize into.
1419
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1420
+ * @return {!proto.gateway.web.v1.SlaOutcome}
1421
+ */
1422
+ proto.gateway.web.v1.SlaOutcome.deserializeBinaryFromReader = function(msg, reader) {
1423
+ while (reader.nextField()) {
1424
+ if (reader.isEndGroup()) {
1425
+ break;
1426
+ }
1427
+ var field = reader.getFieldNumber();
1428
+ switch (field) {
1429
+ case 1:
1430
+ var value = /** @type {string} */ (reader.readString());
1431
+ msg.setSlaId(value);
1432
+ break;
1433
+ case 2:
1434
+ var value = /** @type {number} */ (reader.readInt32());
1435
+ msg.setRevision(value);
1436
+ break;
1437
+ case 3:
1438
+ var value = /** @type {string} */ (reader.readString());
1439
+ msg.setTraceId(value);
1440
+ break;
1441
+ case 4:
1442
+ var value = /** @type {number} */ (reader.readUint64());
1443
+ msg.setTerminalVersion(value);
1444
+ break;
1445
+ case 5:
1446
+ var value = /** @type {!proto.gateway.web.v1.SlaOutcomeStatus} */ (reader.readEnum());
1447
+ msg.setOutcome(value);
1448
+ break;
1449
+ case 6:
1450
+ var value = /** @type {number} */ (reader.readDouble());
1451
+ msg.setSideAValue(value);
1452
+ break;
1453
+ case 7:
1454
+ var value = /** @type {number} */ (reader.readDouble());
1455
+ msg.setSideBValue(value);
1456
+ break;
1457
+ case 8:
1458
+ var value = /** @type {number} */ (reader.readDouble());
1459
+ msg.setDiff(value);
1460
+ break;
1461
+ case 9:
1462
+ var value = /** @type {string} */ (reader.readString());
1463
+ msg.setReasonCode(value);
1464
+ break;
1465
+ case 10:
1466
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1467
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1468
+ msg.setTraceFinishedAt(value);
1469
+ break;
1470
+ case 11:
1471
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1472
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1473
+ msg.setEvaluatedAt(value);
1474
+ break;
1475
+ default:
1476
+ reader.skipField();
1477
+ break;
1478
+ }
1479
+ }
1480
+ return msg;
1481
+ };
1482
+
1483
+
1484
+ /**
1485
+ * Serializes the message to binary data (in protobuf wire format).
1486
+ * @return {!Uint8Array}
1487
+ */
1488
+ proto.gateway.web.v1.SlaOutcome.prototype.serializeBinary = function() {
1489
+ var writer = new jspb.BinaryWriter();
1490
+ proto.gateway.web.v1.SlaOutcome.serializeBinaryToWriter(this, writer);
1491
+ return writer.getResultBuffer();
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * Serializes the given message to binary data (in protobuf wire
1497
+ * format), writing to the given BinaryWriter.
1498
+ * @param {!proto.gateway.web.v1.SlaOutcome} message
1499
+ * @param {!jspb.BinaryWriter} writer
1500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1501
+ */
1502
+ proto.gateway.web.v1.SlaOutcome.serializeBinaryToWriter = function(message, writer) {
1503
+ var f = undefined;
1504
+ f = message.getSlaId();
1505
+ if (f.length > 0) {
1506
+ writer.writeString(
1507
+ 1,
1508
+ f
1509
+ );
1510
+ }
1511
+ f = message.getRevision();
1512
+ if (f !== 0) {
1513
+ writer.writeInt32(
1514
+ 2,
1515
+ f
1516
+ );
1517
+ }
1518
+ f = message.getTraceId();
1519
+ if (f.length > 0) {
1520
+ writer.writeString(
1521
+ 3,
1522
+ f
1523
+ );
1524
+ }
1525
+ f = message.getTerminalVersion();
1526
+ if (f !== 0) {
1527
+ writer.writeUint64(
1528
+ 4,
1529
+ f
1530
+ );
1531
+ }
1532
+ f = message.getOutcome();
1533
+ if (f !== 0.0) {
1534
+ writer.writeEnum(
1535
+ 5,
1536
+ f
1537
+ );
1538
+ }
1539
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
1540
+ if (f != null) {
1541
+ writer.writeDouble(
1542
+ 6,
1543
+ f
1544
+ );
1545
+ }
1546
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
1547
+ if (f != null) {
1548
+ writer.writeDouble(
1549
+ 7,
1550
+ f
1551
+ );
1552
+ }
1553
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
1554
+ if (f != null) {
1555
+ writer.writeDouble(
1556
+ 8,
1557
+ f
1558
+ );
1559
+ }
1560
+ f = message.getReasonCode();
1561
+ if (f.length > 0) {
1562
+ writer.writeString(
1563
+ 9,
1564
+ f
1565
+ );
1566
+ }
1567
+ f = message.getTraceFinishedAt();
1568
+ if (f != null) {
1569
+ writer.writeMessage(
1570
+ 10,
1571
+ f,
1572
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1573
+ );
1574
+ }
1575
+ f = message.getEvaluatedAt();
1576
+ if (f != null) {
1577
+ writer.writeMessage(
1578
+ 11,
1579
+ f,
1580
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1581
+ );
1582
+ }
1583
+ };
1584
+
1585
+
1586
+ /**
1587
+ * optional string sla_id = 1;
1588
+ * @return {string}
1589
+ */
1590
+ proto.gateway.web.v1.SlaOutcome.prototype.getSlaId = function() {
1591
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1592
+ };
1593
+
1594
+
1595
+ /**
1596
+ * @param {string} value
1597
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1598
+ */
1599
+ proto.gateway.web.v1.SlaOutcome.prototype.setSlaId = function(value) {
1600
+ return jspb.Message.setProto3StringField(this, 1, value);
1601
+ };
1602
+
1603
+
1604
+ /**
1605
+ * optional int32 revision = 2;
1606
+ * @return {number}
1607
+ */
1608
+ proto.gateway.web.v1.SlaOutcome.prototype.getRevision = function() {
1609
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1610
+ };
1611
+
1612
+
1613
+ /**
1614
+ * @param {number} value
1615
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1616
+ */
1617
+ proto.gateway.web.v1.SlaOutcome.prototype.setRevision = function(value) {
1618
+ return jspb.Message.setProto3IntField(this, 2, value);
1619
+ };
1620
+
1621
+
1622
+ /**
1623
+ * optional string trace_id = 3;
1624
+ * @return {string}
1625
+ */
1626
+ proto.gateway.web.v1.SlaOutcome.prototype.getTraceId = function() {
1627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1628
+ };
1629
+
1630
+
1631
+ /**
1632
+ * @param {string} value
1633
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1634
+ */
1635
+ proto.gateway.web.v1.SlaOutcome.prototype.setTraceId = function(value) {
1636
+ return jspb.Message.setProto3StringField(this, 3, value);
1637
+ };
1638
+
1639
+
1640
+ /**
1641
+ * optional uint64 terminal_version = 4;
1642
+ * @return {number}
1643
+ */
1644
+ proto.gateway.web.v1.SlaOutcome.prototype.getTerminalVersion = function() {
1645
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1646
+ };
1647
+
1648
+
1649
+ /**
1650
+ * @param {number} value
1651
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1652
+ */
1653
+ proto.gateway.web.v1.SlaOutcome.prototype.setTerminalVersion = function(value) {
1654
+ return jspb.Message.setProto3IntField(this, 4, value);
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * optional SlaOutcomeStatus outcome = 5;
1660
+ * @return {!proto.gateway.web.v1.SlaOutcomeStatus}
1661
+ */
1662
+ proto.gateway.web.v1.SlaOutcome.prototype.getOutcome = function() {
1663
+ return /** @type {!proto.gateway.web.v1.SlaOutcomeStatus} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * @param {!proto.gateway.web.v1.SlaOutcomeStatus} value
1669
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1670
+ */
1671
+ proto.gateway.web.v1.SlaOutcome.prototype.setOutcome = function(value) {
1672
+ return jspb.Message.setProto3EnumField(this, 5, value);
1673
+ };
1674
+
1675
+
1676
+ /**
1677
+ * optional double side_a_value = 6;
1678
+ * @return {number}
1679
+ */
1680
+ proto.gateway.web.v1.SlaOutcome.prototype.getSideAValue = function() {
1681
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
1682
+ };
1683
+
1684
+
1685
+ /**
1686
+ * @param {number} value
1687
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1688
+ */
1689
+ proto.gateway.web.v1.SlaOutcome.prototype.setSideAValue = function(value) {
1690
+ return jspb.Message.setField(this, 6, value);
1691
+ };
1692
+
1693
+
1694
+ /**
1695
+ * Clears the field making it undefined.
1696
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1697
+ */
1698
+ proto.gateway.web.v1.SlaOutcome.prototype.clearSideAValue = function() {
1699
+ return jspb.Message.setField(this, 6, undefined);
1700
+ };
1701
+
1702
+
1703
+ /**
1704
+ * Returns whether this field is set.
1705
+ * @return {boolean}
1706
+ */
1707
+ proto.gateway.web.v1.SlaOutcome.prototype.hasSideAValue = function() {
1708
+ return jspb.Message.getField(this, 6) != null;
1709
+ };
1710
+
1711
+
1712
+ /**
1713
+ * optional double side_b_value = 7;
1714
+ * @return {number}
1715
+ */
1716
+ proto.gateway.web.v1.SlaOutcome.prototype.getSideBValue = function() {
1717
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * @param {number} value
1723
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1724
+ */
1725
+ proto.gateway.web.v1.SlaOutcome.prototype.setSideBValue = function(value) {
1726
+ return jspb.Message.setField(this, 7, value);
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * Clears the field making it undefined.
1732
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1733
+ */
1734
+ proto.gateway.web.v1.SlaOutcome.prototype.clearSideBValue = function() {
1735
+ return jspb.Message.setField(this, 7, undefined);
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * Returns whether this field is set.
1741
+ * @return {boolean}
1742
+ */
1743
+ proto.gateway.web.v1.SlaOutcome.prototype.hasSideBValue = function() {
1744
+ return jspb.Message.getField(this, 7) != null;
1745
+ };
1746
+
1747
+
1748
+ /**
1749
+ * optional double diff = 8;
1750
+ * @return {number}
1751
+ */
1752
+ proto.gateway.web.v1.SlaOutcome.prototype.getDiff = function() {
1753
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
1754
+ };
1755
+
1756
+
1757
+ /**
1758
+ * @param {number} value
1759
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1760
+ */
1761
+ proto.gateway.web.v1.SlaOutcome.prototype.setDiff = function(value) {
1762
+ return jspb.Message.setField(this, 8, value);
1763
+ };
1764
+
1765
+
1766
+ /**
1767
+ * Clears the field making it undefined.
1768
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1769
+ */
1770
+ proto.gateway.web.v1.SlaOutcome.prototype.clearDiff = function() {
1771
+ return jspb.Message.setField(this, 8, undefined);
1772
+ };
1773
+
1774
+
1775
+ /**
1776
+ * Returns whether this field is set.
1777
+ * @return {boolean}
1778
+ */
1779
+ proto.gateway.web.v1.SlaOutcome.prototype.hasDiff = function() {
1780
+ return jspb.Message.getField(this, 8) != null;
1781
+ };
1782
+
1783
+
1784
+ /**
1785
+ * optional string reason_code = 9;
1786
+ * @return {string}
1787
+ */
1788
+ proto.gateway.web.v1.SlaOutcome.prototype.getReasonCode = function() {
1789
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * @param {string} value
1795
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1796
+ */
1797
+ proto.gateway.web.v1.SlaOutcome.prototype.setReasonCode = function(value) {
1798
+ return jspb.Message.setProto3StringField(this, 9, value);
1799
+ };
1800
+
1801
+
1802
+ /**
1803
+ * optional google.protobuf.Timestamp trace_finished_at = 10;
1804
+ * @return {?proto.google.protobuf.Timestamp}
1805
+ */
1806
+ proto.gateway.web.v1.SlaOutcome.prototype.getTraceFinishedAt = function() {
1807
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1808
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
1809
+ };
1810
+
1811
+
1812
+ /**
1813
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1814
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1815
+ */
1816
+ proto.gateway.web.v1.SlaOutcome.prototype.setTraceFinishedAt = function(value) {
1817
+ return jspb.Message.setWrapperField(this, 10, value);
1818
+ };
1819
+
1820
+
1821
+ /**
1822
+ * Clears the message field making it undefined.
1823
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1824
+ */
1825
+ proto.gateway.web.v1.SlaOutcome.prototype.clearTraceFinishedAt = function() {
1826
+ return this.setTraceFinishedAt(undefined);
1827
+ };
1828
+
1829
+
1830
+ /**
1831
+ * Returns whether this field is set.
1832
+ * @return {boolean}
1833
+ */
1834
+ proto.gateway.web.v1.SlaOutcome.prototype.hasTraceFinishedAt = function() {
1835
+ return jspb.Message.getField(this, 10) != null;
1836
+ };
1837
+
1838
+
1839
+ /**
1840
+ * optional google.protobuf.Timestamp evaluated_at = 11;
1841
+ * @return {?proto.google.protobuf.Timestamp}
1842
+ */
1843
+ proto.gateway.web.v1.SlaOutcome.prototype.getEvaluatedAt = function() {
1844
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1845
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1851
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1852
+ */
1853
+ proto.gateway.web.v1.SlaOutcome.prototype.setEvaluatedAt = function(value) {
1854
+ return jspb.Message.setWrapperField(this, 11, value);
1855
+ };
1856
+
1857
+
1858
+ /**
1859
+ * Clears the message field making it undefined.
1860
+ * @return {!proto.gateway.web.v1.SlaOutcome} returns this
1861
+ */
1862
+ proto.gateway.web.v1.SlaOutcome.prototype.clearEvaluatedAt = function() {
1863
+ return this.setEvaluatedAt(undefined);
1864
+ };
1865
+
1866
+
1867
+ /**
1868
+ * Returns whether this field is set.
1869
+ * @return {boolean}
1870
+ */
1871
+ proto.gateway.web.v1.SlaOutcome.prototype.hasEvaluatedAt = function() {
1872
+ return jspb.Message.getField(this, 11) != null;
1873
+ };
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1880
+ /**
1881
+ * Creates an object representation of this proto.
1882
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1883
+ * Optional fields that are not set will be set to undefined.
1884
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1885
+ * For the list of reserved names please see:
1886
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1887
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1888
+ * JSPB instance for transitional soy proto support:
1889
+ * http://goto/soy-param-migration
1890
+ * @return {!Object}
1891
+ */
1892
+ proto.gateway.web.v1.CreateSlaRequest.prototype.toObject = function(opt_includeInstance) {
1893
+ return proto.gateway.web.v1.CreateSlaRequest.toObject(opt_includeInstance, this);
1894
+ };
1895
+
1896
+
1897
+ /**
1898
+ * Static version of the {@see toObject} method.
1899
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1900
+ * the JSPB instance for transitional soy proto support:
1901
+ * http://goto/soy-param-migration
1902
+ * @param {!proto.gateway.web.v1.CreateSlaRequest} msg The msg instance to transform.
1903
+ * @return {!Object}
1904
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1905
+ */
1906
+ proto.gateway.web.v1.CreateSlaRequest.toObject = function(includeInstance, msg) {
1907
+ var f, obj = {
1908
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1909
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1910
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1911
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
1912
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
1913
+ check: (f = msg.getCheck()) && proto.gateway.web.v1.SlaCheck.toObject(includeInstance, f)
1914
+ };
1915
+
1916
+ if (includeInstance) {
1917
+ obj.$jspbMessageInstance = msg;
1918
+ }
1919
+ return obj;
1920
+ };
1921
+ }
1922
+
1923
+
1924
+ /**
1925
+ * Deserializes binary data (in protobuf wire format).
1926
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1927
+ * @return {!proto.gateway.web.v1.CreateSlaRequest}
1928
+ */
1929
+ proto.gateway.web.v1.CreateSlaRequest.deserializeBinary = function(bytes) {
1930
+ var reader = new jspb.BinaryReader(bytes);
1931
+ var msg = new proto.gateway.web.v1.CreateSlaRequest;
1932
+ return proto.gateway.web.v1.CreateSlaRequest.deserializeBinaryFromReader(msg, reader);
1933
+ };
1934
+
1935
+
1936
+ /**
1937
+ * Deserializes binary data (in protobuf wire format) from the
1938
+ * given reader into the given message object.
1939
+ * @param {!proto.gateway.web.v1.CreateSlaRequest} msg The message object to deserialize into.
1940
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1941
+ * @return {!proto.gateway.web.v1.CreateSlaRequest}
1942
+ */
1943
+ proto.gateway.web.v1.CreateSlaRequest.deserializeBinaryFromReader = function(msg, reader) {
1944
+ while (reader.nextField()) {
1945
+ if (reader.isEndGroup()) {
1946
+ break;
1947
+ }
1948
+ var field = reader.getFieldNumber();
1949
+ switch (field) {
1950
+ case 1:
1951
+ var value = /** @type {string} */ (reader.readString());
1952
+ msg.setOrganizationId(value);
1953
+ break;
1954
+ case 2:
1955
+ var value = /** @type {string} */ (reader.readString());
1956
+ msg.setProjectId(value);
1957
+ break;
1958
+ case 3:
1959
+ var value = /** @type {string} */ (reader.readString());
1960
+ msg.setName(value);
1961
+ break;
1962
+ case 4:
1963
+ var value = /** @type {string} */ (reader.readString());
1964
+ msg.setDescription(value);
1965
+ break;
1966
+ case 5:
1967
+ var value = /** @type {boolean} */ (reader.readBool());
1968
+ msg.setEnabled(value);
1969
+ break;
1970
+ case 6:
1971
+ var value = new proto.gateway.web.v1.SlaCheck;
1972
+ reader.readMessage(value,proto.gateway.web.v1.SlaCheck.deserializeBinaryFromReader);
1973
+ msg.setCheck(value);
1974
+ break;
1975
+ default:
1976
+ reader.skipField();
1977
+ break;
1978
+ }
1979
+ }
1980
+ return msg;
1981
+ };
1982
+
1983
+
1984
+ /**
1985
+ * Serializes the message to binary data (in protobuf wire format).
1986
+ * @return {!Uint8Array}
1987
+ */
1988
+ proto.gateway.web.v1.CreateSlaRequest.prototype.serializeBinary = function() {
1989
+ var writer = new jspb.BinaryWriter();
1990
+ proto.gateway.web.v1.CreateSlaRequest.serializeBinaryToWriter(this, writer);
1991
+ return writer.getResultBuffer();
1992
+ };
1993
+
1994
+
1995
+ /**
1996
+ * Serializes the given message to binary data (in protobuf wire
1997
+ * format), writing to the given BinaryWriter.
1998
+ * @param {!proto.gateway.web.v1.CreateSlaRequest} message
1999
+ * @param {!jspb.BinaryWriter} writer
2000
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2001
+ */
2002
+ proto.gateway.web.v1.CreateSlaRequest.serializeBinaryToWriter = function(message, writer) {
2003
+ var f = undefined;
2004
+ f = message.getOrganizationId();
2005
+ if (f.length > 0) {
2006
+ writer.writeString(
2007
+ 1,
2008
+ f
2009
+ );
2010
+ }
2011
+ f = message.getProjectId();
2012
+ if (f.length > 0) {
2013
+ writer.writeString(
2014
+ 2,
2015
+ f
2016
+ );
2017
+ }
2018
+ f = message.getName();
2019
+ if (f.length > 0) {
2020
+ writer.writeString(
2021
+ 3,
2022
+ f
2023
+ );
2024
+ }
2025
+ f = message.getDescription();
2026
+ if (f.length > 0) {
2027
+ writer.writeString(
2028
+ 4,
2029
+ f
2030
+ );
2031
+ }
2032
+ f = message.getEnabled();
2033
+ if (f) {
2034
+ writer.writeBool(
2035
+ 5,
2036
+ f
2037
+ );
2038
+ }
2039
+ f = message.getCheck();
2040
+ if (f != null) {
2041
+ writer.writeMessage(
2042
+ 6,
2043
+ f,
2044
+ proto.gateway.web.v1.SlaCheck.serializeBinaryToWriter
2045
+ );
2046
+ }
2047
+ };
2048
+
2049
+
2050
+ /**
2051
+ * optional string organization_id = 1;
2052
+ * @return {string}
2053
+ */
2054
+ proto.gateway.web.v1.CreateSlaRequest.prototype.getOrganizationId = function() {
2055
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2056
+ };
2057
+
2058
+
2059
+ /**
2060
+ * @param {string} value
2061
+ * @return {!proto.gateway.web.v1.CreateSlaRequest} returns this
2062
+ */
2063
+ proto.gateway.web.v1.CreateSlaRequest.prototype.setOrganizationId = function(value) {
2064
+ return jspb.Message.setProto3StringField(this, 1, value);
2065
+ };
2066
+
2067
+
2068
+ /**
2069
+ * optional string project_id = 2;
2070
+ * @return {string}
2071
+ */
2072
+ proto.gateway.web.v1.CreateSlaRequest.prototype.getProjectId = function() {
2073
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2074
+ };
2075
+
2076
+
2077
+ /**
2078
+ * @param {string} value
2079
+ * @return {!proto.gateway.web.v1.CreateSlaRequest} returns this
2080
+ */
2081
+ proto.gateway.web.v1.CreateSlaRequest.prototype.setProjectId = function(value) {
2082
+ return jspb.Message.setProto3StringField(this, 2, value);
2083
+ };
2084
+
2085
+
2086
+ /**
2087
+ * optional string name = 3;
2088
+ * @return {string}
2089
+ */
2090
+ proto.gateway.web.v1.CreateSlaRequest.prototype.getName = function() {
2091
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2092
+ };
2093
+
2094
+
2095
+ /**
2096
+ * @param {string} value
2097
+ * @return {!proto.gateway.web.v1.CreateSlaRequest} returns this
2098
+ */
2099
+ proto.gateway.web.v1.CreateSlaRequest.prototype.setName = function(value) {
2100
+ return jspb.Message.setProto3StringField(this, 3, value);
2101
+ };
2102
+
2103
+
2104
+ /**
2105
+ * optional string description = 4;
2106
+ * @return {string}
2107
+ */
2108
+ proto.gateway.web.v1.CreateSlaRequest.prototype.getDescription = function() {
2109
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2110
+ };
2111
+
2112
+
2113
+ /**
2114
+ * @param {string} value
2115
+ * @return {!proto.gateway.web.v1.CreateSlaRequest} returns this
2116
+ */
2117
+ proto.gateway.web.v1.CreateSlaRequest.prototype.setDescription = function(value) {
2118
+ return jspb.Message.setProto3StringField(this, 4, value);
2119
+ };
2120
+
2121
+
2122
+ /**
2123
+ * optional bool enabled = 5;
2124
+ * @return {boolean}
2125
+ */
2126
+ proto.gateway.web.v1.CreateSlaRequest.prototype.getEnabled = function() {
2127
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
2128
+ };
2129
+
2130
+
2131
+ /**
2132
+ * @param {boolean} value
2133
+ * @return {!proto.gateway.web.v1.CreateSlaRequest} returns this
2134
+ */
2135
+ proto.gateway.web.v1.CreateSlaRequest.prototype.setEnabled = function(value) {
2136
+ return jspb.Message.setProto3BooleanField(this, 5, value);
2137
+ };
2138
+
2139
+
2140
+ /**
2141
+ * optional SlaCheck check = 6;
2142
+ * @return {?proto.gateway.web.v1.SlaCheck}
2143
+ */
2144
+ proto.gateway.web.v1.CreateSlaRequest.prototype.getCheck = function() {
2145
+ return /** @type{?proto.gateway.web.v1.SlaCheck} */ (
2146
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SlaCheck, 6));
2147
+ };
2148
+
2149
+
2150
+ /**
2151
+ * @param {?proto.gateway.web.v1.SlaCheck|undefined} value
2152
+ * @return {!proto.gateway.web.v1.CreateSlaRequest} returns this
2153
+ */
2154
+ proto.gateway.web.v1.CreateSlaRequest.prototype.setCheck = function(value) {
2155
+ return jspb.Message.setWrapperField(this, 6, value);
2156
+ };
2157
+
2158
+
2159
+ /**
2160
+ * Clears the message field making it undefined.
2161
+ * @return {!proto.gateway.web.v1.CreateSlaRequest} returns this
2162
+ */
2163
+ proto.gateway.web.v1.CreateSlaRequest.prototype.clearCheck = function() {
2164
+ return this.setCheck(undefined);
2165
+ };
2166
+
2167
+
2168
+ /**
2169
+ * Returns whether this field is set.
2170
+ * @return {boolean}
2171
+ */
2172
+ proto.gateway.web.v1.CreateSlaRequest.prototype.hasCheck = function() {
2173
+ return jspb.Message.getField(this, 6) != null;
2174
+ };
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2181
+ /**
2182
+ * Creates an object representation of this proto.
2183
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2184
+ * Optional fields that are not set will be set to undefined.
2185
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2186
+ * For the list of reserved names please see:
2187
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2188
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2189
+ * JSPB instance for transitional soy proto support:
2190
+ * http://goto/soy-param-migration
2191
+ * @return {!Object}
2192
+ */
2193
+ proto.gateway.web.v1.CreateSlaResponse.prototype.toObject = function(opt_includeInstance) {
2194
+ return proto.gateway.web.v1.CreateSlaResponse.toObject(opt_includeInstance, this);
2195
+ };
2196
+
2197
+
2198
+ /**
2199
+ * Static version of the {@see toObject} method.
2200
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2201
+ * the JSPB instance for transitional soy proto support:
2202
+ * http://goto/soy-param-migration
2203
+ * @param {!proto.gateway.web.v1.CreateSlaResponse} msg The msg instance to transform.
2204
+ * @return {!Object}
2205
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2206
+ */
2207
+ proto.gateway.web.v1.CreateSlaResponse.toObject = function(includeInstance, msg) {
2208
+ var f, obj = {
2209
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
2210
+ sla: (f = msg.getSla()) && proto.gateway.web.v1.Sla.toObject(includeInstance, f)
2211
+ };
2212
+
2213
+ if (includeInstance) {
2214
+ obj.$jspbMessageInstance = msg;
2215
+ }
2216
+ return obj;
2217
+ };
2218
+ }
2219
+
2220
+
2221
+ /**
2222
+ * Deserializes binary data (in protobuf wire format).
2223
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2224
+ * @return {!proto.gateway.web.v1.CreateSlaResponse}
2225
+ */
2226
+ proto.gateway.web.v1.CreateSlaResponse.deserializeBinary = function(bytes) {
2227
+ var reader = new jspb.BinaryReader(bytes);
2228
+ var msg = new proto.gateway.web.v1.CreateSlaResponse;
2229
+ return proto.gateway.web.v1.CreateSlaResponse.deserializeBinaryFromReader(msg, reader);
2230
+ };
2231
+
2232
+
2233
+ /**
2234
+ * Deserializes binary data (in protobuf wire format) from the
2235
+ * given reader into the given message object.
2236
+ * @param {!proto.gateway.web.v1.CreateSlaResponse} msg The message object to deserialize into.
2237
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2238
+ * @return {!proto.gateway.web.v1.CreateSlaResponse}
2239
+ */
2240
+ proto.gateway.web.v1.CreateSlaResponse.deserializeBinaryFromReader = function(msg, reader) {
2241
+ while (reader.nextField()) {
2242
+ if (reader.isEndGroup()) {
2243
+ break;
2244
+ }
2245
+ var field = reader.getFieldNumber();
2246
+ switch (field) {
2247
+ case 1:
2248
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
2249
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2250
+ msg.setStatus(value);
2251
+ break;
2252
+ case 2:
2253
+ var value = new proto.gateway.web.v1.Sla;
2254
+ reader.readMessage(value,proto.gateway.web.v1.Sla.deserializeBinaryFromReader);
2255
+ msg.setSla(value);
2256
+ break;
2257
+ default:
2258
+ reader.skipField();
2259
+ break;
2260
+ }
2261
+ }
2262
+ return msg;
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * Serializes the message to binary data (in protobuf wire format).
2268
+ * @return {!Uint8Array}
2269
+ */
2270
+ proto.gateway.web.v1.CreateSlaResponse.prototype.serializeBinary = function() {
2271
+ var writer = new jspb.BinaryWriter();
2272
+ proto.gateway.web.v1.CreateSlaResponse.serializeBinaryToWriter(this, writer);
2273
+ return writer.getResultBuffer();
2274
+ };
2275
+
2276
+
2277
+ /**
2278
+ * Serializes the given message to binary data (in protobuf wire
2279
+ * format), writing to the given BinaryWriter.
2280
+ * @param {!proto.gateway.web.v1.CreateSlaResponse} message
2281
+ * @param {!jspb.BinaryWriter} writer
2282
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2283
+ */
2284
+ proto.gateway.web.v1.CreateSlaResponse.serializeBinaryToWriter = function(message, writer) {
2285
+ var f = undefined;
2286
+ f = message.getStatus();
2287
+ if (f != null) {
2288
+ writer.writeMessage(
2289
+ 1,
2290
+ f,
2291
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2292
+ );
2293
+ }
2294
+ f = message.getSla();
2295
+ if (f != null) {
2296
+ writer.writeMessage(
2297
+ 2,
2298
+ f,
2299
+ proto.gateway.web.v1.Sla.serializeBinaryToWriter
2300
+ );
2301
+ }
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * optional gateway.common.v1.ResponseStatus status = 1;
2307
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2308
+ */
2309
+ proto.gateway.web.v1.CreateSlaResponse.prototype.getStatus = function() {
2310
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2311
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2312
+ };
2313
+
2314
+
2315
+ /**
2316
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2317
+ * @return {!proto.gateway.web.v1.CreateSlaResponse} returns this
2318
+ */
2319
+ proto.gateway.web.v1.CreateSlaResponse.prototype.setStatus = function(value) {
2320
+ return jspb.Message.setWrapperField(this, 1, value);
2321
+ };
2322
+
2323
+
2324
+ /**
2325
+ * Clears the message field making it undefined.
2326
+ * @return {!proto.gateway.web.v1.CreateSlaResponse} returns this
2327
+ */
2328
+ proto.gateway.web.v1.CreateSlaResponse.prototype.clearStatus = function() {
2329
+ return this.setStatus(undefined);
2330
+ };
2331
+
2332
+
2333
+ /**
2334
+ * Returns whether this field is set.
2335
+ * @return {boolean}
2336
+ */
2337
+ proto.gateway.web.v1.CreateSlaResponse.prototype.hasStatus = function() {
2338
+ return jspb.Message.getField(this, 1) != null;
2339
+ };
2340
+
2341
+
2342
+ /**
2343
+ * optional Sla sla = 2;
2344
+ * @return {?proto.gateway.web.v1.Sla}
2345
+ */
2346
+ proto.gateway.web.v1.CreateSlaResponse.prototype.getSla = function() {
2347
+ return /** @type{?proto.gateway.web.v1.Sla} */ (
2348
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Sla, 2));
2349
+ };
2350
+
2351
+
2352
+ /**
2353
+ * @param {?proto.gateway.web.v1.Sla|undefined} value
2354
+ * @return {!proto.gateway.web.v1.CreateSlaResponse} returns this
2355
+ */
2356
+ proto.gateway.web.v1.CreateSlaResponse.prototype.setSla = function(value) {
2357
+ return jspb.Message.setWrapperField(this, 2, value);
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * Clears the message field making it undefined.
2363
+ * @return {!proto.gateway.web.v1.CreateSlaResponse} returns this
2364
+ */
2365
+ proto.gateway.web.v1.CreateSlaResponse.prototype.clearSla = function() {
2366
+ return this.setSla(undefined);
2367
+ };
2368
+
2369
+
2370
+ /**
2371
+ * Returns whether this field is set.
2372
+ * @return {boolean}
2373
+ */
2374
+ proto.gateway.web.v1.CreateSlaResponse.prototype.hasSla = function() {
2375
+ return jspb.Message.getField(this, 2) != null;
2376
+ };
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2383
+ /**
2384
+ * Creates an object representation of this proto.
2385
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2386
+ * Optional fields that are not set will be set to undefined.
2387
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2388
+ * For the list of reserved names please see:
2389
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2390
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2391
+ * JSPB instance for transitional soy proto support:
2392
+ * http://goto/soy-param-migration
2393
+ * @return {!Object}
2394
+ */
2395
+ proto.gateway.web.v1.GetSlaRequest.prototype.toObject = function(opt_includeInstance) {
2396
+ return proto.gateway.web.v1.GetSlaRequest.toObject(opt_includeInstance, this);
2397
+ };
2398
+
2399
+
2400
+ /**
2401
+ * Static version of the {@see toObject} method.
2402
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2403
+ * the JSPB instance for transitional soy proto support:
2404
+ * http://goto/soy-param-migration
2405
+ * @param {!proto.gateway.web.v1.GetSlaRequest} msg The msg instance to transform.
2406
+ * @return {!Object}
2407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2408
+ */
2409
+ proto.gateway.web.v1.GetSlaRequest.toObject = function(includeInstance, msg) {
2410
+ var f, obj = {
2411
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2412
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2413
+ slaId: jspb.Message.getFieldWithDefault(msg, 3, "")
2414
+ };
2415
+
2416
+ if (includeInstance) {
2417
+ obj.$jspbMessageInstance = msg;
2418
+ }
2419
+ return obj;
2420
+ };
2421
+ }
2422
+
2423
+
2424
+ /**
2425
+ * Deserializes binary data (in protobuf wire format).
2426
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2427
+ * @return {!proto.gateway.web.v1.GetSlaRequest}
2428
+ */
2429
+ proto.gateway.web.v1.GetSlaRequest.deserializeBinary = function(bytes) {
2430
+ var reader = new jspb.BinaryReader(bytes);
2431
+ var msg = new proto.gateway.web.v1.GetSlaRequest;
2432
+ return proto.gateway.web.v1.GetSlaRequest.deserializeBinaryFromReader(msg, reader);
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * Deserializes binary data (in protobuf wire format) from the
2438
+ * given reader into the given message object.
2439
+ * @param {!proto.gateway.web.v1.GetSlaRequest} msg The message object to deserialize into.
2440
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2441
+ * @return {!proto.gateway.web.v1.GetSlaRequest}
2442
+ */
2443
+ proto.gateway.web.v1.GetSlaRequest.deserializeBinaryFromReader = function(msg, reader) {
2444
+ while (reader.nextField()) {
2445
+ if (reader.isEndGroup()) {
2446
+ break;
2447
+ }
2448
+ var field = reader.getFieldNumber();
2449
+ switch (field) {
2450
+ case 1:
2451
+ var value = /** @type {string} */ (reader.readString());
2452
+ msg.setOrganizationId(value);
2453
+ break;
2454
+ case 2:
2455
+ var value = /** @type {string} */ (reader.readString());
2456
+ msg.setProjectId(value);
2457
+ break;
2458
+ case 3:
2459
+ var value = /** @type {string} */ (reader.readString());
2460
+ msg.setSlaId(value);
2461
+ break;
2462
+ default:
2463
+ reader.skipField();
2464
+ break;
2465
+ }
2466
+ }
2467
+ return msg;
2468
+ };
2469
+
2470
+
2471
+ /**
2472
+ * Serializes the message to binary data (in protobuf wire format).
2473
+ * @return {!Uint8Array}
2474
+ */
2475
+ proto.gateway.web.v1.GetSlaRequest.prototype.serializeBinary = function() {
2476
+ var writer = new jspb.BinaryWriter();
2477
+ proto.gateway.web.v1.GetSlaRequest.serializeBinaryToWriter(this, writer);
2478
+ return writer.getResultBuffer();
2479
+ };
2480
+
2481
+
2482
+ /**
2483
+ * Serializes the given message to binary data (in protobuf wire
2484
+ * format), writing to the given BinaryWriter.
2485
+ * @param {!proto.gateway.web.v1.GetSlaRequest} message
2486
+ * @param {!jspb.BinaryWriter} writer
2487
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2488
+ */
2489
+ proto.gateway.web.v1.GetSlaRequest.serializeBinaryToWriter = function(message, writer) {
2490
+ var f = undefined;
2491
+ f = message.getOrganizationId();
2492
+ if (f.length > 0) {
2493
+ writer.writeString(
2494
+ 1,
2495
+ f
2496
+ );
2497
+ }
2498
+ f = message.getProjectId();
2499
+ if (f.length > 0) {
2500
+ writer.writeString(
2501
+ 2,
2502
+ f
2503
+ );
2504
+ }
2505
+ f = message.getSlaId();
2506
+ if (f.length > 0) {
2507
+ writer.writeString(
2508
+ 3,
2509
+ f
2510
+ );
2511
+ }
2512
+ };
2513
+
2514
+
2515
+ /**
2516
+ * optional string organization_id = 1;
2517
+ * @return {string}
2518
+ */
2519
+ proto.gateway.web.v1.GetSlaRequest.prototype.getOrganizationId = function() {
2520
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2521
+ };
2522
+
2523
+
2524
+ /**
2525
+ * @param {string} value
2526
+ * @return {!proto.gateway.web.v1.GetSlaRequest} returns this
2527
+ */
2528
+ proto.gateway.web.v1.GetSlaRequest.prototype.setOrganizationId = function(value) {
2529
+ return jspb.Message.setProto3StringField(this, 1, value);
2530
+ };
2531
+
2532
+
2533
+ /**
2534
+ * optional string project_id = 2;
2535
+ * @return {string}
2536
+ */
2537
+ proto.gateway.web.v1.GetSlaRequest.prototype.getProjectId = function() {
2538
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2539
+ };
2540
+
2541
+
2542
+ /**
2543
+ * @param {string} value
2544
+ * @return {!proto.gateway.web.v1.GetSlaRequest} returns this
2545
+ */
2546
+ proto.gateway.web.v1.GetSlaRequest.prototype.setProjectId = function(value) {
2547
+ return jspb.Message.setProto3StringField(this, 2, value);
2548
+ };
2549
+
2550
+
2551
+ /**
2552
+ * optional string sla_id = 3;
2553
+ * @return {string}
2554
+ */
2555
+ proto.gateway.web.v1.GetSlaRequest.prototype.getSlaId = function() {
2556
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2557
+ };
2558
+
2559
+
2560
+ /**
2561
+ * @param {string} value
2562
+ * @return {!proto.gateway.web.v1.GetSlaRequest} returns this
2563
+ */
2564
+ proto.gateway.web.v1.GetSlaRequest.prototype.setSlaId = function(value) {
2565
+ return jspb.Message.setProto3StringField(this, 3, value);
2566
+ };
2567
+
2568
+
2569
+
2570
+
2571
+
2572
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2573
+ /**
2574
+ * Creates an object representation of this proto.
2575
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2576
+ * Optional fields that are not set will be set to undefined.
2577
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2578
+ * For the list of reserved names please see:
2579
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2580
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2581
+ * JSPB instance for transitional soy proto support:
2582
+ * http://goto/soy-param-migration
2583
+ * @return {!Object}
2584
+ */
2585
+ proto.gateway.web.v1.GetSlaResponse.prototype.toObject = function(opt_includeInstance) {
2586
+ return proto.gateway.web.v1.GetSlaResponse.toObject(opt_includeInstance, this);
2587
+ };
2588
+
2589
+
2590
+ /**
2591
+ * Static version of the {@see toObject} method.
2592
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2593
+ * the JSPB instance for transitional soy proto support:
2594
+ * http://goto/soy-param-migration
2595
+ * @param {!proto.gateway.web.v1.GetSlaResponse} msg The msg instance to transform.
2596
+ * @return {!Object}
2597
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2598
+ */
2599
+ proto.gateway.web.v1.GetSlaResponse.toObject = function(includeInstance, msg) {
2600
+ var f, obj = {
2601
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
2602
+ sla: (f = msg.getSla()) && proto.gateway.web.v1.Sla.toObject(includeInstance, f)
2603
+ };
2604
+
2605
+ if (includeInstance) {
2606
+ obj.$jspbMessageInstance = msg;
2607
+ }
2608
+ return obj;
2609
+ };
2610
+ }
2611
+
2612
+
2613
+ /**
2614
+ * Deserializes binary data (in protobuf wire format).
2615
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2616
+ * @return {!proto.gateway.web.v1.GetSlaResponse}
2617
+ */
2618
+ proto.gateway.web.v1.GetSlaResponse.deserializeBinary = function(bytes) {
2619
+ var reader = new jspb.BinaryReader(bytes);
2620
+ var msg = new proto.gateway.web.v1.GetSlaResponse;
2621
+ return proto.gateway.web.v1.GetSlaResponse.deserializeBinaryFromReader(msg, reader);
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * Deserializes binary data (in protobuf wire format) from the
2627
+ * given reader into the given message object.
2628
+ * @param {!proto.gateway.web.v1.GetSlaResponse} msg The message object to deserialize into.
2629
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2630
+ * @return {!proto.gateway.web.v1.GetSlaResponse}
2631
+ */
2632
+ proto.gateway.web.v1.GetSlaResponse.deserializeBinaryFromReader = function(msg, reader) {
2633
+ while (reader.nextField()) {
2634
+ if (reader.isEndGroup()) {
2635
+ break;
2636
+ }
2637
+ var field = reader.getFieldNumber();
2638
+ switch (field) {
2639
+ case 1:
2640
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
2641
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2642
+ msg.setStatus(value);
2643
+ break;
2644
+ case 2:
2645
+ var value = new proto.gateway.web.v1.Sla;
2646
+ reader.readMessage(value,proto.gateway.web.v1.Sla.deserializeBinaryFromReader);
2647
+ msg.setSla(value);
2648
+ break;
2649
+ default:
2650
+ reader.skipField();
2651
+ break;
2652
+ }
2653
+ }
2654
+ return msg;
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * Serializes the message to binary data (in protobuf wire format).
2660
+ * @return {!Uint8Array}
2661
+ */
2662
+ proto.gateway.web.v1.GetSlaResponse.prototype.serializeBinary = function() {
2663
+ var writer = new jspb.BinaryWriter();
2664
+ proto.gateway.web.v1.GetSlaResponse.serializeBinaryToWriter(this, writer);
2665
+ return writer.getResultBuffer();
2666
+ };
2667
+
2668
+
2669
+ /**
2670
+ * Serializes the given message to binary data (in protobuf wire
2671
+ * format), writing to the given BinaryWriter.
2672
+ * @param {!proto.gateway.web.v1.GetSlaResponse} message
2673
+ * @param {!jspb.BinaryWriter} writer
2674
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2675
+ */
2676
+ proto.gateway.web.v1.GetSlaResponse.serializeBinaryToWriter = function(message, writer) {
2677
+ var f = undefined;
2678
+ f = message.getStatus();
2679
+ if (f != null) {
2680
+ writer.writeMessage(
2681
+ 1,
2682
+ f,
2683
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2684
+ );
2685
+ }
2686
+ f = message.getSla();
2687
+ if (f != null) {
2688
+ writer.writeMessage(
2689
+ 2,
2690
+ f,
2691
+ proto.gateway.web.v1.Sla.serializeBinaryToWriter
2692
+ );
2693
+ }
2694
+ };
2695
+
2696
+
2697
+ /**
2698
+ * optional gateway.common.v1.ResponseStatus status = 1;
2699
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2700
+ */
2701
+ proto.gateway.web.v1.GetSlaResponse.prototype.getStatus = function() {
2702
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2703
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2704
+ };
2705
+
2706
+
2707
+ /**
2708
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2709
+ * @return {!proto.gateway.web.v1.GetSlaResponse} returns this
2710
+ */
2711
+ proto.gateway.web.v1.GetSlaResponse.prototype.setStatus = function(value) {
2712
+ return jspb.Message.setWrapperField(this, 1, value);
2713
+ };
2714
+
2715
+
2716
+ /**
2717
+ * Clears the message field making it undefined.
2718
+ * @return {!proto.gateway.web.v1.GetSlaResponse} returns this
2719
+ */
2720
+ proto.gateway.web.v1.GetSlaResponse.prototype.clearStatus = function() {
2721
+ return this.setStatus(undefined);
2722
+ };
2723
+
2724
+
2725
+ /**
2726
+ * Returns whether this field is set.
2727
+ * @return {boolean}
2728
+ */
2729
+ proto.gateway.web.v1.GetSlaResponse.prototype.hasStatus = function() {
2730
+ return jspb.Message.getField(this, 1) != null;
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * optional Sla sla = 2;
2736
+ * @return {?proto.gateway.web.v1.Sla}
2737
+ */
2738
+ proto.gateway.web.v1.GetSlaResponse.prototype.getSla = function() {
2739
+ return /** @type{?proto.gateway.web.v1.Sla} */ (
2740
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Sla, 2));
2741
+ };
2742
+
2743
+
2744
+ /**
2745
+ * @param {?proto.gateway.web.v1.Sla|undefined} value
2746
+ * @return {!proto.gateway.web.v1.GetSlaResponse} returns this
2747
+ */
2748
+ proto.gateway.web.v1.GetSlaResponse.prototype.setSla = function(value) {
2749
+ return jspb.Message.setWrapperField(this, 2, value);
2750
+ };
2751
+
2752
+
2753
+ /**
2754
+ * Clears the message field making it undefined.
2755
+ * @return {!proto.gateway.web.v1.GetSlaResponse} returns this
2756
+ */
2757
+ proto.gateway.web.v1.GetSlaResponse.prototype.clearSla = function() {
2758
+ return this.setSla(undefined);
2759
+ };
2760
+
2761
+
2762
+ /**
2763
+ * Returns whether this field is set.
2764
+ * @return {boolean}
2765
+ */
2766
+ proto.gateway.web.v1.GetSlaResponse.prototype.hasSla = function() {
2767
+ return jspb.Message.getField(this, 2) != null;
2768
+ };
2769
+
2770
+
2771
+
2772
+
2773
+
2774
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2775
+ /**
2776
+ * Creates an object representation of this proto.
2777
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2778
+ * Optional fields that are not set will be set to undefined.
2779
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2780
+ * For the list of reserved names please see:
2781
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2782
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2783
+ * JSPB instance for transitional soy proto support:
2784
+ * http://goto/soy-param-migration
2785
+ * @return {!Object}
2786
+ */
2787
+ proto.gateway.web.v1.ListSlasRequest.prototype.toObject = function(opt_includeInstance) {
2788
+ return proto.gateway.web.v1.ListSlasRequest.toObject(opt_includeInstance, this);
2789
+ };
2790
+
2791
+
2792
+ /**
2793
+ * Static version of the {@see toObject} method.
2794
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2795
+ * the JSPB instance for transitional soy proto support:
2796
+ * http://goto/soy-param-migration
2797
+ * @param {!proto.gateway.web.v1.ListSlasRequest} msg The msg instance to transform.
2798
+ * @return {!Object}
2799
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2800
+ */
2801
+ proto.gateway.web.v1.ListSlasRequest.toObject = function(includeInstance, msg) {
2802
+ var f, obj = {
2803
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2804
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
2805
+ };
2806
+
2807
+ if (includeInstance) {
2808
+ obj.$jspbMessageInstance = msg;
2809
+ }
2810
+ return obj;
2811
+ };
2812
+ }
2813
+
2814
+
2815
+ /**
2816
+ * Deserializes binary data (in protobuf wire format).
2817
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2818
+ * @return {!proto.gateway.web.v1.ListSlasRequest}
2819
+ */
2820
+ proto.gateway.web.v1.ListSlasRequest.deserializeBinary = function(bytes) {
2821
+ var reader = new jspb.BinaryReader(bytes);
2822
+ var msg = new proto.gateway.web.v1.ListSlasRequest;
2823
+ return proto.gateway.web.v1.ListSlasRequest.deserializeBinaryFromReader(msg, reader);
2824
+ };
2825
+
2826
+
2827
+ /**
2828
+ * Deserializes binary data (in protobuf wire format) from the
2829
+ * given reader into the given message object.
2830
+ * @param {!proto.gateway.web.v1.ListSlasRequest} msg The message object to deserialize into.
2831
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2832
+ * @return {!proto.gateway.web.v1.ListSlasRequest}
2833
+ */
2834
+ proto.gateway.web.v1.ListSlasRequest.deserializeBinaryFromReader = function(msg, reader) {
2835
+ while (reader.nextField()) {
2836
+ if (reader.isEndGroup()) {
2837
+ break;
2838
+ }
2839
+ var field = reader.getFieldNumber();
2840
+ switch (field) {
2841
+ case 1:
2842
+ var value = /** @type {string} */ (reader.readString());
2843
+ msg.setOrganizationId(value);
2844
+ break;
2845
+ case 2:
2846
+ var value = /** @type {string} */ (reader.readString());
2847
+ msg.setProjectId(value);
2848
+ break;
2849
+ default:
2850
+ reader.skipField();
2851
+ break;
2852
+ }
2853
+ }
2854
+ return msg;
2855
+ };
2856
+
2857
+
2858
+ /**
2859
+ * Serializes the message to binary data (in protobuf wire format).
2860
+ * @return {!Uint8Array}
2861
+ */
2862
+ proto.gateway.web.v1.ListSlasRequest.prototype.serializeBinary = function() {
2863
+ var writer = new jspb.BinaryWriter();
2864
+ proto.gateway.web.v1.ListSlasRequest.serializeBinaryToWriter(this, writer);
2865
+ return writer.getResultBuffer();
2866
+ };
2867
+
2868
+
2869
+ /**
2870
+ * Serializes the given message to binary data (in protobuf wire
2871
+ * format), writing to the given BinaryWriter.
2872
+ * @param {!proto.gateway.web.v1.ListSlasRequest} message
2873
+ * @param {!jspb.BinaryWriter} writer
2874
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2875
+ */
2876
+ proto.gateway.web.v1.ListSlasRequest.serializeBinaryToWriter = function(message, writer) {
2877
+ var f = undefined;
2878
+ f = message.getOrganizationId();
2879
+ if (f.length > 0) {
2880
+ writer.writeString(
2881
+ 1,
2882
+ f
2883
+ );
2884
+ }
2885
+ f = message.getProjectId();
2886
+ if (f.length > 0) {
2887
+ writer.writeString(
2888
+ 2,
2889
+ f
2890
+ );
2891
+ }
2892
+ };
2893
+
2894
+
2895
+ /**
2896
+ * optional string organization_id = 1;
2897
+ * @return {string}
2898
+ */
2899
+ proto.gateway.web.v1.ListSlasRequest.prototype.getOrganizationId = function() {
2900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2901
+ };
2902
+
2903
+
2904
+ /**
2905
+ * @param {string} value
2906
+ * @return {!proto.gateway.web.v1.ListSlasRequest} returns this
2907
+ */
2908
+ proto.gateway.web.v1.ListSlasRequest.prototype.setOrganizationId = function(value) {
2909
+ return jspb.Message.setProto3StringField(this, 1, value);
2910
+ };
2911
+
2912
+
2913
+ /**
2914
+ * optional string project_id = 2;
2915
+ * @return {string}
2916
+ */
2917
+ proto.gateway.web.v1.ListSlasRequest.prototype.getProjectId = function() {
2918
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2919
+ };
2920
+
2921
+
2922
+ /**
2923
+ * @param {string} value
2924
+ * @return {!proto.gateway.web.v1.ListSlasRequest} returns this
2925
+ */
2926
+ proto.gateway.web.v1.ListSlasRequest.prototype.setProjectId = function(value) {
2927
+ return jspb.Message.setProto3StringField(this, 2, value);
2928
+ };
2929
+
2930
+
2931
+
2932
+ /**
2933
+ * List of repeated fields within this message type.
2934
+ * @private {!Array<number>}
2935
+ * @const
2936
+ */
2937
+ proto.gateway.web.v1.ListSlasResponse.repeatedFields_ = [2];
2938
+
2939
+
2940
+
2941
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2942
+ /**
2943
+ * Creates an object representation of this proto.
2944
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2945
+ * Optional fields that are not set will be set to undefined.
2946
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2947
+ * For the list of reserved names please see:
2948
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2949
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2950
+ * JSPB instance for transitional soy proto support:
2951
+ * http://goto/soy-param-migration
2952
+ * @return {!Object}
2953
+ */
2954
+ proto.gateway.web.v1.ListSlasResponse.prototype.toObject = function(opt_includeInstance) {
2955
+ return proto.gateway.web.v1.ListSlasResponse.toObject(opt_includeInstance, this);
2956
+ };
2957
+
2958
+
2959
+ /**
2960
+ * Static version of the {@see toObject} method.
2961
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2962
+ * the JSPB instance for transitional soy proto support:
2963
+ * http://goto/soy-param-migration
2964
+ * @param {!proto.gateway.web.v1.ListSlasResponse} msg The msg instance to transform.
2965
+ * @return {!Object}
2966
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2967
+ */
2968
+ proto.gateway.web.v1.ListSlasResponse.toObject = function(includeInstance, msg) {
2969
+ var f, obj = {
2970
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
2971
+ slasList: jspb.Message.toObjectList(msg.getSlasList(),
2972
+ proto.gateway.web.v1.Sla.toObject, includeInstance)
2973
+ };
2974
+
2975
+ if (includeInstance) {
2976
+ obj.$jspbMessageInstance = msg;
2977
+ }
2978
+ return obj;
2979
+ };
2980
+ }
2981
+
2982
+
2983
+ /**
2984
+ * Deserializes binary data (in protobuf wire format).
2985
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2986
+ * @return {!proto.gateway.web.v1.ListSlasResponse}
2987
+ */
2988
+ proto.gateway.web.v1.ListSlasResponse.deserializeBinary = function(bytes) {
2989
+ var reader = new jspb.BinaryReader(bytes);
2990
+ var msg = new proto.gateway.web.v1.ListSlasResponse;
2991
+ return proto.gateway.web.v1.ListSlasResponse.deserializeBinaryFromReader(msg, reader);
2992
+ };
2993
+
2994
+
2995
+ /**
2996
+ * Deserializes binary data (in protobuf wire format) from the
2997
+ * given reader into the given message object.
2998
+ * @param {!proto.gateway.web.v1.ListSlasResponse} msg The message object to deserialize into.
2999
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3000
+ * @return {!proto.gateway.web.v1.ListSlasResponse}
3001
+ */
3002
+ proto.gateway.web.v1.ListSlasResponse.deserializeBinaryFromReader = function(msg, reader) {
3003
+ while (reader.nextField()) {
3004
+ if (reader.isEndGroup()) {
3005
+ break;
3006
+ }
3007
+ var field = reader.getFieldNumber();
3008
+ switch (field) {
3009
+ case 1:
3010
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3011
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3012
+ msg.setStatus(value);
3013
+ break;
3014
+ case 2:
3015
+ var value = new proto.gateway.web.v1.Sla;
3016
+ reader.readMessage(value,proto.gateway.web.v1.Sla.deserializeBinaryFromReader);
3017
+ msg.addSlas(value);
3018
+ break;
3019
+ default:
3020
+ reader.skipField();
3021
+ break;
3022
+ }
3023
+ }
3024
+ return msg;
3025
+ };
3026
+
3027
+
3028
+ /**
3029
+ * Serializes the message to binary data (in protobuf wire format).
3030
+ * @return {!Uint8Array}
3031
+ */
3032
+ proto.gateway.web.v1.ListSlasResponse.prototype.serializeBinary = function() {
3033
+ var writer = new jspb.BinaryWriter();
3034
+ proto.gateway.web.v1.ListSlasResponse.serializeBinaryToWriter(this, writer);
3035
+ return writer.getResultBuffer();
3036
+ };
3037
+
3038
+
3039
+ /**
3040
+ * Serializes the given message to binary data (in protobuf wire
3041
+ * format), writing to the given BinaryWriter.
3042
+ * @param {!proto.gateway.web.v1.ListSlasResponse} message
3043
+ * @param {!jspb.BinaryWriter} writer
3044
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3045
+ */
3046
+ proto.gateway.web.v1.ListSlasResponse.serializeBinaryToWriter = function(message, writer) {
3047
+ var f = undefined;
3048
+ f = message.getStatus();
3049
+ if (f != null) {
3050
+ writer.writeMessage(
3051
+ 1,
3052
+ f,
3053
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3054
+ );
3055
+ }
3056
+ f = message.getSlasList();
3057
+ if (f.length > 0) {
3058
+ writer.writeRepeatedMessage(
3059
+ 2,
3060
+ f,
3061
+ proto.gateway.web.v1.Sla.serializeBinaryToWriter
3062
+ );
3063
+ }
3064
+ };
3065
+
3066
+
3067
+ /**
3068
+ * optional gateway.common.v1.ResponseStatus status = 1;
3069
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3070
+ */
3071
+ proto.gateway.web.v1.ListSlasResponse.prototype.getStatus = function() {
3072
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3073
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3074
+ };
3075
+
3076
+
3077
+ /**
3078
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3079
+ * @return {!proto.gateway.web.v1.ListSlasResponse} returns this
3080
+ */
3081
+ proto.gateway.web.v1.ListSlasResponse.prototype.setStatus = function(value) {
3082
+ return jspb.Message.setWrapperField(this, 1, value);
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * Clears the message field making it undefined.
3088
+ * @return {!proto.gateway.web.v1.ListSlasResponse} returns this
3089
+ */
3090
+ proto.gateway.web.v1.ListSlasResponse.prototype.clearStatus = function() {
3091
+ return this.setStatus(undefined);
3092
+ };
3093
+
3094
+
3095
+ /**
3096
+ * Returns whether this field is set.
3097
+ * @return {boolean}
3098
+ */
3099
+ proto.gateway.web.v1.ListSlasResponse.prototype.hasStatus = function() {
3100
+ return jspb.Message.getField(this, 1) != null;
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * repeated Sla slas = 2;
3106
+ * @return {!Array<!proto.gateway.web.v1.Sla>}
3107
+ */
3108
+ proto.gateway.web.v1.ListSlasResponse.prototype.getSlasList = function() {
3109
+ return /** @type{!Array<!proto.gateway.web.v1.Sla>} */ (
3110
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.Sla, 2));
3111
+ };
3112
+
3113
+
3114
+ /**
3115
+ * @param {!Array<!proto.gateway.web.v1.Sla>} value
3116
+ * @return {!proto.gateway.web.v1.ListSlasResponse} returns this
3117
+ */
3118
+ proto.gateway.web.v1.ListSlasResponse.prototype.setSlasList = function(value) {
3119
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3120
+ };
3121
+
3122
+
3123
+ /**
3124
+ * @param {!proto.gateway.web.v1.Sla=} opt_value
3125
+ * @param {number=} opt_index
3126
+ * @return {!proto.gateway.web.v1.Sla}
3127
+ */
3128
+ proto.gateway.web.v1.ListSlasResponse.prototype.addSlas = function(opt_value, opt_index) {
3129
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.Sla, opt_index);
3130
+ };
3131
+
3132
+
3133
+ /**
3134
+ * Clears the list making it empty but non-null.
3135
+ * @return {!proto.gateway.web.v1.ListSlasResponse} returns this
3136
+ */
3137
+ proto.gateway.web.v1.ListSlasResponse.prototype.clearSlasList = function() {
3138
+ return this.setSlasList([]);
3139
+ };
3140
+
3141
+
3142
+
3143
+
3144
+
3145
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3146
+ /**
3147
+ * Creates an object representation of this proto.
3148
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3149
+ * Optional fields that are not set will be set to undefined.
3150
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3151
+ * For the list of reserved names please see:
3152
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3153
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3154
+ * JSPB instance for transitional soy proto support:
3155
+ * http://goto/soy-param-migration
3156
+ * @return {!Object}
3157
+ */
3158
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.toObject = function(opt_includeInstance) {
3159
+ return proto.gateway.web.v1.UpdateSlaRequest.toObject(opt_includeInstance, this);
3160
+ };
3161
+
3162
+
3163
+ /**
3164
+ * Static version of the {@see toObject} method.
3165
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3166
+ * the JSPB instance for transitional soy proto support:
3167
+ * http://goto/soy-param-migration
3168
+ * @param {!proto.gateway.web.v1.UpdateSlaRequest} msg The msg instance to transform.
3169
+ * @return {!Object}
3170
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3171
+ */
3172
+ proto.gateway.web.v1.UpdateSlaRequest.toObject = function(includeInstance, msg) {
3173
+ var f, obj = {
3174
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3175
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3176
+ slaId: jspb.Message.getFieldWithDefault(msg, 3, ""),
3177
+ updates: (f = msg.getUpdates()) && proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.toObject(includeInstance, f)
3178
+ };
3179
+
3180
+ if (includeInstance) {
3181
+ obj.$jspbMessageInstance = msg;
3182
+ }
3183
+ return obj;
3184
+ };
3185
+ }
3186
+
3187
+
3188
+ /**
3189
+ * Deserializes binary data (in protobuf wire format).
3190
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3191
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest}
3192
+ */
3193
+ proto.gateway.web.v1.UpdateSlaRequest.deserializeBinary = function(bytes) {
3194
+ var reader = new jspb.BinaryReader(bytes);
3195
+ var msg = new proto.gateway.web.v1.UpdateSlaRequest;
3196
+ return proto.gateway.web.v1.UpdateSlaRequest.deserializeBinaryFromReader(msg, reader);
3197
+ };
3198
+
3199
+
3200
+ /**
3201
+ * Deserializes binary data (in protobuf wire format) from the
3202
+ * given reader into the given message object.
3203
+ * @param {!proto.gateway.web.v1.UpdateSlaRequest} msg The message object to deserialize into.
3204
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3205
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest}
3206
+ */
3207
+ proto.gateway.web.v1.UpdateSlaRequest.deserializeBinaryFromReader = function(msg, reader) {
3208
+ while (reader.nextField()) {
3209
+ if (reader.isEndGroup()) {
3210
+ break;
3211
+ }
3212
+ var field = reader.getFieldNumber();
3213
+ switch (field) {
3214
+ case 1:
3215
+ var value = /** @type {string} */ (reader.readString());
3216
+ msg.setOrganizationId(value);
3217
+ break;
3218
+ case 2:
3219
+ var value = /** @type {string} */ (reader.readString());
3220
+ msg.setProjectId(value);
3221
+ break;
3222
+ case 3:
3223
+ var value = /** @type {string} */ (reader.readString());
3224
+ msg.setSlaId(value);
3225
+ break;
3226
+ case 4:
3227
+ var value = new proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates;
3228
+ reader.readMessage(value,proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.deserializeBinaryFromReader);
3229
+ msg.setUpdates(value);
3230
+ break;
3231
+ default:
3232
+ reader.skipField();
3233
+ break;
3234
+ }
3235
+ }
3236
+ return msg;
3237
+ };
3238
+
3239
+
3240
+ /**
3241
+ * Serializes the message to binary data (in protobuf wire format).
3242
+ * @return {!Uint8Array}
3243
+ */
3244
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.serializeBinary = function() {
3245
+ var writer = new jspb.BinaryWriter();
3246
+ proto.gateway.web.v1.UpdateSlaRequest.serializeBinaryToWriter(this, writer);
3247
+ return writer.getResultBuffer();
3248
+ };
3249
+
3250
+
3251
+ /**
3252
+ * Serializes the given message to binary data (in protobuf wire
3253
+ * format), writing to the given BinaryWriter.
3254
+ * @param {!proto.gateway.web.v1.UpdateSlaRequest} message
3255
+ * @param {!jspb.BinaryWriter} writer
3256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3257
+ */
3258
+ proto.gateway.web.v1.UpdateSlaRequest.serializeBinaryToWriter = function(message, writer) {
3259
+ var f = undefined;
3260
+ f = message.getOrganizationId();
3261
+ if (f.length > 0) {
3262
+ writer.writeString(
3263
+ 1,
3264
+ f
3265
+ );
3266
+ }
3267
+ f = message.getProjectId();
3268
+ if (f.length > 0) {
3269
+ writer.writeString(
3270
+ 2,
3271
+ f
3272
+ );
3273
+ }
3274
+ f = message.getSlaId();
3275
+ if (f.length > 0) {
3276
+ writer.writeString(
3277
+ 3,
3278
+ f
3279
+ );
3280
+ }
3281
+ f = message.getUpdates();
3282
+ if (f != null) {
3283
+ writer.writeMessage(
3284
+ 4,
3285
+ f,
3286
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.serializeBinaryToWriter
3287
+ );
3288
+ }
3289
+ };
3290
+
3291
+
3292
+
3293
+
3294
+
3295
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3296
+ /**
3297
+ * Creates an object representation of this proto.
3298
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3299
+ * Optional fields that are not set will be set to undefined.
3300
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3301
+ * For the list of reserved names please see:
3302
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3303
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3304
+ * JSPB instance for transitional soy proto support:
3305
+ * http://goto/soy-param-migration
3306
+ * @return {!Object}
3307
+ */
3308
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.toObject = function(opt_includeInstance) {
3309
+ return proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.toObject(opt_includeInstance, this);
3310
+ };
3311
+
3312
+
3313
+ /**
3314
+ * Static version of the {@see toObject} method.
3315
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3316
+ * the JSPB instance for transitional soy proto support:
3317
+ * http://goto/soy-param-migration
3318
+ * @param {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} msg The msg instance to transform.
3319
+ * @return {!Object}
3320
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3321
+ */
3322
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.toObject = function(includeInstance, msg) {
3323
+ var f, obj = {
3324
+ name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
3325
+ description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
3326
+ enabled: (f = jspb.Message.getBooleanField(msg, 3)) == null ? undefined : f,
3327
+ check: (f = msg.getCheck()) && proto.gateway.web.v1.SlaCheck.toObject(includeInstance, f)
3328
+ };
3329
+
3330
+ if (includeInstance) {
3331
+ obj.$jspbMessageInstance = msg;
3332
+ }
3333
+ return obj;
3334
+ };
3335
+ }
3336
+
3337
+
3338
+ /**
3339
+ * Deserializes binary data (in protobuf wire format).
3340
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3341
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates}
3342
+ */
3343
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.deserializeBinary = function(bytes) {
3344
+ var reader = new jspb.BinaryReader(bytes);
3345
+ var msg = new proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates;
3346
+ return proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.deserializeBinaryFromReader(msg, reader);
3347
+ };
3348
+
3349
+
3350
+ /**
3351
+ * Deserializes binary data (in protobuf wire format) from the
3352
+ * given reader into the given message object.
3353
+ * @param {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} msg The message object to deserialize into.
3354
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3355
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates}
3356
+ */
3357
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.deserializeBinaryFromReader = function(msg, reader) {
3358
+ while (reader.nextField()) {
3359
+ if (reader.isEndGroup()) {
3360
+ break;
3361
+ }
3362
+ var field = reader.getFieldNumber();
3363
+ switch (field) {
3364
+ case 1:
3365
+ var value = /** @type {string} */ (reader.readString());
3366
+ msg.setName(value);
3367
+ break;
3368
+ case 2:
3369
+ var value = /** @type {string} */ (reader.readString());
3370
+ msg.setDescription(value);
3371
+ break;
3372
+ case 3:
3373
+ var value = /** @type {boolean} */ (reader.readBool());
3374
+ msg.setEnabled(value);
3375
+ break;
3376
+ case 4:
3377
+ var value = new proto.gateway.web.v1.SlaCheck;
3378
+ reader.readMessage(value,proto.gateway.web.v1.SlaCheck.deserializeBinaryFromReader);
3379
+ msg.setCheck(value);
3380
+ break;
3381
+ default:
3382
+ reader.skipField();
3383
+ break;
3384
+ }
3385
+ }
3386
+ return msg;
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * Serializes the message to binary data (in protobuf wire format).
3392
+ * @return {!Uint8Array}
3393
+ */
3394
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.serializeBinary = function() {
3395
+ var writer = new jspb.BinaryWriter();
3396
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.serializeBinaryToWriter(this, writer);
3397
+ return writer.getResultBuffer();
3398
+ };
3399
+
3400
+
3401
+ /**
3402
+ * Serializes the given message to binary data (in protobuf wire
3403
+ * format), writing to the given BinaryWriter.
3404
+ * @param {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} message
3405
+ * @param {!jspb.BinaryWriter} writer
3406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3407
+ */
3408
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.serializeBinaryToWriter = function(message, writer) {
3409
+ var f = undefined;
3410
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
3411
+ if (f != null) {
3412
+ writer.writeString(
3413
+ 1,
3414
+ f
3415
+ );
3416
+ }
3417
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3418
+ if (f != null) {
3419
+ writer.writeString(
3420
+ 2,
3421
+ f
3422
+ );
3423
+ }
3424
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
3425
+ if (f != null) {
3426
+ writer.writeBool(
3427
+ 3,
3428
+ f
3429
+ );
3430
+ }
3431
+ f = message.getCheck();
3432
+ if (f != null) {
3433
+ writer.writeMessage(
3434
+ 4,
3435
+ f,
3436
+ proto.gateway.web.v1.SlaCheck.serializeBinaryToWriter
3437
+ );
3438
+ }
3439
+ };
3440
+
3441
+
3442
+ /**
3443
+ * optional string name = 1;
3444
+ * @return {string}
3445
+ */
3446
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.getName = function() {
3447
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3448
+ };
3449
+
3450
+
3451
+ /**
3452
+ * @param {string} value
3453
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3454
+ */
3455
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.setName = function(value) {
3456
+ return jspb.Message.setField(this, 1, value);
3457
+ };
3458
+
3459
+
3460
+ /**
3461
+ * Clears the field making it undefined.
3462
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3463
+ */
3464
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.clearName = function() {
3465
+ return jspb.Message.setField(this, 1, undefined);
3466
+ };
3467
+
3468
+
3469
+ /**
3470
+ * Returns whether this field is set.
3471
+ * @return {boolean}
3472
+ */
3473
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.hasName = function() {
3474
+ return jspb.Message.getField(this, 1) != null;
3475
+ };
3476
+
3477
+
3478
+ /**
3479
+ * optional string description = 2;
3480
+ * @return {string}
3481
+ */
3482
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.getDescription = function() {
3483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3484
+ };
3485
+
3486
+
3487
+ /**
3488
+ * @param {string} value
3489
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3490
+ */
3491
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.setDescription = function(value) {
3492
+ return jspb.Message.setField(this, 2, value);
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * Clears the field making it undefined.
3498
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3499
+ */
3500
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.clearDescription = function() {
3501
+ return jspb.Message.setField(this, 2, undefined);
3502
+ };
3503
+
3504
+
3505
+ /**
3506
+ * Returns whether this field is set.
3507
+ * @return {boolean}
3508
+ */
3509
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.hasDescription = function() {
3510
+ return jspb.Message.getField(this, 2) != null;
3511
+ };
3512
+
3513
+
3514
+ /**
3515
+ * optional bool enabled = 3;
3516
+ * @return {boolean}
3517
+ */
3518
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.getEnabled = function() {
3519
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3520
+ };
3521
+
3522
+
3523
+ /**
3524
+ * @param {boolean} value
3525
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3526
+ */
3527
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.setEnabled = function(value) {
3528
+ return jspb.Message.setField(this, 3, value);
3529
+ };
3530
+
3531
+
3532
+ /**
3533
+ * Clears the field making it undefined.
3534
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3535
+ */
3536
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.clearEnabled = function() {
3537
+ return jspb.Message.setField(this, 3, undefined);
3538
+ };
3539
+
3540
+
3541
+ /**
3542
+ * Returns whether this field is set.
3543
+ * @return {boolean}
3544
+ */
3545
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.hasEnabled = function() {
3546
+ return jspb.Message.getField(this, 3) != null;
3547
+ };
3548
+
3549
+
3550
+ /**
3551
+ * optional SlaCheck check = 4;
3552
+ * @return {?proto.gateway.web.v1.SlaCheck}
3553
+ */
3554
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.getCheck = function() {
3555
+ return /** @type{?proto.gateway.web.v1.SlaCheck} */ (
3556
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SlaCheck, 4));
3557
+ };
3558
+
3559
+
3560
+ /**
3561
+ * @param {?proto.gateway.web.v1.SlaCheck|undefined} value
3562
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3563
+ */
3564
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.setCheck = function(value) {
3565
+ return jspb.Message.setWrapperField(this, 4, value);
3566
+ };
3567
+
3568
+
3569
+ /**
3570
+ * Clears the message field making it undefined.
3571
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} returns this
3572
+ */
3573
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.clearCheck = function() {
3574
+ return this.setCheck(undefined);
3575
+ };
3576
+
3577
+
3578
+ /**
3579
+ * Returns whether this field is set.
3580
+ * @return {boolean}
3581
+ */
3582
+ proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates.prototype.hasCheck = function() {
3583
+ return jspb.Message.getField(this, 4) != null;
3584
+ };
3585
+
3586
+
3587
+ /**
3588
+ * optional string organization_id = 1;
3589
+ * @return {string}
3590
+ */
3591
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.getOrganizationId = function() {
3592
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3593
+ };
3594
+
3595
+
3596
+ /**
3597
+ * @param {string} value
3598
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest} returns this
3599
+ */
3600
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.setOrganizationId = function(value) {
3601
+ return jspb.Message.setProto3StringField(this, 1, value);
3602
+ };
3603
+
3604
+
3605
+ /**
3606
+ * optional string project_id = 2;
3607
+ * @return {string}
3608
+ */
3609
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.getProjectId = function() {
3610
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3611
+ };
3612
+
3613
+
3614
+ /**
3615
+ * @param {string} value
3616
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest} returns this
3617
+ */
3618
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.setProjectId = function(value) {
3619
+ return jspb.Message.setProto3StringField(this, 2, value);
3620
+ };
3621
+
3622
+
3623
+ /**
3624
+ * optional string sla_id = 3;
3625
+ * @return {string}
3626
+ */
3627
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.getSlaId = function() {
3628
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3629
+ };
3630
+
3631
+
3632
+ /**
3633
+ * @param {string} value
3634
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest} returns this
3635
+ */
3636
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.setSlaId = function(value) {
3637
+ return jspb.Message.setProto3StringField(this, 3, value);
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * optional SlaUpdates updates = 4;
3643
+ * @return {?proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates}
3644
+ */
3645
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.getUpdates = function() {
3646
+ return /** @type{?proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates} */ (
3647
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates, 4));
3648
+ };
3649
+
3650
+
3651
+ /**
3652
+ * @param {?proto.gateway.web.v1.UpdateSlaRequest.SlaUpdates|undefined} value
3653
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest} returns this
3654
+ */
3655
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.setUpdates = function(value) {
3656
+ return jspb.Message.setWrapperField(this, 4, value);
3657
+ };
3658
+
3659
+
3660
+ /**
3661
+ * Clears the message field making it undefined.
3662
+ * @return {!proto.gateway.web.v1.UpdateSlaRequest} returns this
3663
+ */
3664
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.clearUpdates = function() {
3665
+ return this.setUpdates(undefined);
3666
+ };
3667
+
3668
+
3669
+ /**
3670
+ * Returns whether this field is set.
3671
+ * @return {boolean}
3672
+ */
3673
+ proto.gateway.web.v1.UpdateSlaRequest.prototype.hasUpdates = function() {
3674
+ return jspb.Message.getField(this, 4) != null;
3675
+ };
3676
+
3677
+
3678
+
3679
+
3680
+
3681
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3682
+ /**
3683
+ * Creates an object representation of this proto.
3684
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3685
+ * Optional fields that are not set will be set to undefined.
3686
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3687
+ * For the list of reserved names please see:
3688
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3689
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3690
+ * JSPB instance for transitional soy proto support:
3691
+ * http://goto/soy-param-migration
3692
+ * @return {!Object}
3693
+ */
3694
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.toObject = function(opt_includeInstance) {
3695
+ return proto.gateway.web.v1.UpdateSlaResponse.toObject(opt_includeInstance, this);
3696
+ };
3697
+
3698
+
3699
+ /**
3700
+ * Static version of the {@see toObject} method.
3701
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3702
+ * the JSPB instance for transitional soy proto support:
3703
+ * http://goto/soy-param-migration
3704
+ * @param {!proto.gateway.web.v1.UpdateSlaResponse} msg The msg instance to transform.
3705
+ * @return {!Object}
3706
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3707
+ */
3708
+ proto.gateway.web.v1.UpdateSlaResponse.toObject = function(includeInstance, msg) {
3709
+ var f, obj = {
3710
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3711
+ sla: (f = msg.getSla()) && proto.gateway.web.v1.Sla.toObject(includeInstance, f)
3712
+ };
3713
+
3714
+ if (includeInstance) {
3715
+ obj.$jspbMessageInstance = msg;
3716
+ }
3717
+ return obj;
3718
+ };
3719
+ }
3720
+
3721
+
3722
+ /**
3723
+ * Deserializes binary data (in protobuf wire format).
3724
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3725
+ * @return {!proto.gateway.web.v1.UpdateSlaResponse}
3726
+ */
3727
+ proto.gateway.web.v1.UpdateSlaResponse.deserializeBinary = function(bytes) {
3728
+ var reader = new jspb.BinaryReader(bytes);
3729
+ var msg = new proto.gateway.web.v1.UpdateSlaResponse;
3730
+ return proto.gateway.web.v1.UpdateSlaResponse.deserializeBinaryFromReader(msg, reader);
3731
+ };
3732
+
3733
+
3734
+ /**
3735
+ * Deserializes binary data (in protobuf wire format) from the
3736
+ * given reader into the given message object.
3737
+ * @param {!proto.gateway.web.v1.UpdateSlaResponse} msg The message object to deserialize into.
3738
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3739
+ * @return {!proto.gateway.web.v1.UpdateSlaResponse}
3740
+ */
3741
+ proto.gateway.web.v1.UpdateSlaResponse.deserializeBinaryFromReader = function(msg, reader) {
3742
+ while (reader.nextField()) {
3743
+ if (reader.isEndGroup()) {
3744
+ break;
3745
+ }
3746
+ var field = reader.getFieldNumber();
3747
+ switch (field) {
3748
+ case 1:
3749
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3750
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3751
+ msg.setStatus(value);
3752
+ break;
3753
+ case 2:
3754
+ var value = new proto.gateway.web.v1.Sla;
3755
+ reader.readMessage(value,proto.gateway.web.v1.Sla.deserializeBinaryFromReader);
3756
+ msg.setSla(value);
3757
+ break;
3758
+ default:
3759
+ reader.skipField();
3760
+ break;
3761
+ }
3762
+ }
3763
+ return msg;
3764
+ };
3765
+
3766
+
3767
+ /**
3768
+ * Serializes the message to binary data (in protobuf wire format).
3769
+ * @return {!Uint8Array}
3770
+ */
3771
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.serializeBinary = function() {
3772
+ var writer = new jspb.BinaryWriter();
3773
+ proto.gateway.web.v1.UpdateSlaResponse.serializeBinaryToWriter(this, writer);
3774
+ return writer.getResultBuffer();
3775
+ };
3776
+
3777
+
3778
+ /**
3779
+ * Serializes the given message to binary data (in protobuf wire
3780
+ * format), writing to the given BinaryWriter.
3781
+ * @param {!proto.gateway.web.v1.UpdateSlaResponse} message
3782
+ * @param {!jspb.BinaryWriter} writer
3783
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3784
+ */
3785
+ proto.gateway.web.v1.UpdateSlaResponse.serializeBinaryToWriter = function(message, writer) {
3786
+ var f = undefined;
3787
+ f = message.getStatus();
3788
+ if (f != null) {
3789
+ writer.writeMessage(
3790
+ 1,
3791
+ f,
3792
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3793
+ );
3794
+ }
3795
+ f = message.getSla();
3796
+ if (f != null) {
3797
+ writer.writeMessage(
3798
+ 2,
3799
+ f,
3800
+ proto.gateway.web.v1.Sla.serializeBinaryToWriter
3801
+ );
3802
+ }
3803
+ };
3804
+
3805
+
3806
+ /**
3807
+ * optional gateway.common.v1.ResponseStatus status = 1;
3808
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3809
+ */
3810
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.getStatus = function() {
3811
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3812
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3813
+ };
3814
+
3815
+
3816
+ /**
3817
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3818
+ * @return {!proto.gateway.web.v1.UpdateSlaResponse} returns this
3819
+ */
3820
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.setStatus = function(value) {
3821
+ return jspb.Message.setWrapperField(this, 1, value);
3822
+ };
3823
+
3824
+
3825
+ /**
3826
+ * Clears the message field making it undefined.
3827
+ * @return {!proto.gateway.web.v1.UpdateSlaResponse} returns this
3828
+ */
3829
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.clearStatus = function() {
3830
+ return this.setStatus(undefined);
3831
+ };
3832
+
3833
+
3834
+ /**
3835
+ * Returns whether this field is set.
3836
+ * @return {boolean}
3837
+ */
3838
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.hasStatus = function() {
3839
+ return jspb.Message.getField(this, 1) != null;
3840
+ };
3841
+
3842
+
3843
+ /**
3844
+ * optional Sla sla = 2;
3845
+ * @return {?proto.gateway.web.v1.Sla}
3846
+ */
3847
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.getSla = function() {
3848
+ return /** @type{?proto.gateway.web.v1.Sla} */ (
3849
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Sla, 2));
3850
+ };
3851
+
3852
+
3853
+ /**
3854
+ * @param {?proto.gateway.web.v1.Sla|undefined} value
3855
+ * @return {!proto.gateway.web.v1.UpdateSlaResponse} returns this
3856
+ */
3857
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.setSla = function(value) {
3858
+ return jspb.Message.setWrapperField(this, 2, value);
3859
+ };
3860
+
3861
+
3862
+ /**
3863
+ * Clears the message field making it undefined.
3864
+ * @return {!proto.gateway.web.v1.UpdateSlaResponse} returns this
3865
+ */
3866
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.clearSla = function() {
3867
+ return this.setSla(undefined);
3868
+ };
3869
+
3870
+
3871
+ /**
3872
+ * Returns whether this field is set.
3873
+ * @return {boolean}
3874
+ */
3875
+ proto.gateway.web.v1.UpdateSlaResponse.prototype.hasSla = function() {
3876
+ return jspb.Message.getField(this, 2) != null;
3877
+ };
3878
+
3879
+
3880
+
3881
+
3882
+
3883
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3884
+ /**
3885
+ * Creates an object representation of this proto.
3886
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3887
+ * Optional fields that are not set will be set to undefined.
3888
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3889
+ * For the list of reserved names please see:
3890
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3891
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3892
+ * JSPB instance for transitional soy proto support:
3893
+ * http://goto/soy-param-migration
3894
+ * @return {!Object}
3895
+ */
3896
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.toObject = function(opt_includeInstance) {
3897
+ return proto.gateway.web.v1.DeleteSlaRequest.toObject(opt_includeInstance, this);
3898
+ };
3899
+
3900
+
3901
+ /**
3902
+ * Static version of the {@see toObject} method.
3903
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3904
+ * the JSPB instance for transitional soy proto support:
3905
+ * http://goto/soy-param-migration
3906
+ * @param {!proto.gateway.web.v1.DeleteSlaRequest} msg The msg instance to transform.
3907
+ * @return {!Object}
3908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3909
+ */
3910
+ proto.gateway.web.v1.DeleteSlaRequest.toObject = function(includeInstance, msg) {
3911
+ var f, obj = {
3912
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3913
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3914
+ slaId: jspb.Message.getFieldWithDefault(msg, 3, "")
3915
+ };
3916
+
3917
+ if (includeInstance) {
3918
+ obj.$jspbMessageInstance = msg;
3919
+ }
3920
+ return obj;
3921
+ };
3922
+ }
3923
+
3924
+
3925
+ /**
3926
+ * Deserializes binary data (in protobuf wire format).
3927
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3928
+ * @return {!proto.gateway.web.v1.DeleteSlaRequest}
3929
+ */
3930
+ proto.gateway.web.v1.DeleteSlaRequest.deserializeBinary = function(bytes) {
3931
+ var reader = new jspb.BinaryReader(bytes);
3932
+ var msg = new proto.gateway.web.v1.DeleteSlaRequest;
3933
+ return proto.gateway.web.v1.DeleteSlaRequest.deserializeBinaryFromReader(msg, reader);
3934
+ };
3935
+
3936
+
3937
+ /**
3938
+ * Deserializes binary data (in protobuf wire format) from the
3939
+ * given reader into the given message object.
3940
+ * @param {!proto.gateway.web.v1.DeleteSlaRequest} msg The message object to deserialize into.
3941
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3942
+ * @return {!proto.gateway.web.v1.DeleteSlaRequest}
3943
+ */
3944
+ proto.gateway.web.v1.DeleteSlaRequest.deserializeBinaryFromReader = function(msg, reader) {
3945
+ while (reader.nextField()) {
3946
+ if (reader.isEndGroup()) {
3947
+ break;
3948
+ }
3949
+ var field = reader.getFieldNumber();
3950
+ switch (field) {
3951
+ case 1:
3952
+ var value = /** @type {string} */ (reader.readString());
3953
+ msg.setOrganizationId(value);
3954
+ break;
3955
+ case 2:
3956
+ var value = /** @type {string} */ (reader.readString());
3957
+ msg.setProjectId(value);
3958
+ break;
3959
+ case 3:
3960
+ var value = /** @type {string} */ (reader.readString());
3961
+ msg.setSlaId(value);
3962
+ break;
3963
+ default:
3964
+ reader.skipField();
3965
+ break;
3966
+ }
3967
+ }
3968
+ return msg;
3969
+ };
3970
+
3971
+
3972
+ /**
3973
+ * Serializes the message to binary data (in protobuf wire format).
3974
+ * @return {!Uint8Array}
3975
+ */
3976
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.serializeBinary = function() {
3977
+ var writer = new jspb.BinaryWriter();
3978
+ proto.gateway.web.v1.DeleteSlaRequest.serializeBinaryToWriter(this, writer);
3979
+ return writer.getResultBuffer();
3980
+ };
3981
+
3982
+
3983
+ /**
3984
+ * Serializes the given message to binary data (in protobuf wire
3985
+ * format), writing to the given BinaryWriter.
3986
+ * @param {!proto.gateway.web.v1.DeleteSlaRequest} message
3987
+ * @param {!jspb.BinaryWriter} writer
3988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3989
+ */
3990
+ proto.gateway.web.v1.DeleteSlaRequest.serializeBinaryToWriter = function(message, writer) {
3991
+ var f = undefined;
3992
+ f = message.getOrganizationId();
3993
+ if (f.length > 0) {
3994
+ writer.writeString(
3995
+ 1,
3996
+ f
3997
+ );
3998
+ }
3999
+ f = message.getProjectId();
4000
+ if (f.length > 0) {
4001
+ writer.writeString(
4002
+ 2,
4003
+ f
4004
+ );
4005
+ }
4006
+ f = message.getSlaId();
4007
+ if (f.length > 0) {
4008
+ writer.writeString(
4009
+ 3,
4010
+ f
4011
+ );
4012
+ }
4013
+ };
4014
+
4015
+
4016
+ /**
4017
+ * optional string organization_id = 1;
4018
+ * @return {string}
4019
+ */
4020
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.getOrganizationId = function() {
4021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4022
+ };
4023
+
4024
+
4025
+ /**
4026
+ * @param {string} value
4027
+ * @return {!proto.gateway.web.v1.DeleteSlaRequest} returns this
4028
+ */
4029
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.setOrganizationId = function(value) {
4030
+ return jspb.Message.setProto3StringField(this, 1, value);
4031
+ };
4032
+
4033
+
4034
+ /**
4035
+ * optional string project_id = 2;
4036
+ * @return {string}
4037
+ */
4038
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.getProjectId = function() {
4039
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4040
+ };
4041
+
4042
+
4043
+ /**
4044
+ * @param {string} value
4045
+ * @return {!proto.gateway.web.v1.DeleteSlaRequest} returns this
4046
+ */
4047
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.setProjectId = function(value) {
4048
+ return jspb.Message.setProto3StringField(this, 2, value);
4049
+ };
4050
+
4051
+
4052
+ /**
4053
+ * optional string sla_id = 3;
4054
+ * @return {string}
4055
+ */
4056
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.getSlaId = function() {
4057
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4058
+ };
4059
+
4060
+
4061
+ /**
4062
+ * @param {string} value
4063
+ * @return {!proto.gateway.web.v1.DeleteSlaRequest} returns this
4064
+ */
4065
+ proto.gateway.web.v1.DeleteSlaRequest.prototype.setSlaId = function(value) {
4066
+ return jspb.Message.setProto3StringField(this, 3, value);
4067
+ };
4068
+
4069
+
4070
+
4071
+
4072
+
4073
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4074
+ /**
4075
+ * Creates an object representation of this proto.
4076
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4077
+ * Optional fields that are not set will be set to undefined.
4078
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4079
+ * For the list of reserved names please see:
4080
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4081
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4082
+ * JSPB instance for transitional soy proto support:
4083
+ * http://goto/soy-param-migration
4084
+ * @return {!Object}
4085
+ */
4086
+ proto.gateway.web.v1.DeleteSlaResponse.prototype.toObject = function(opt_includeInstance) {
4087
+ return proto.gateway.web.v1.DeleteSlaResponse.toObject(opt_includeInstance, this);
4088
+ };
4089
+
4090
+
4091
+ /**
4092
+ * Static version of the {@see toObject} method.
4093
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4094
+ * the JSPB instance for transitional soy proto support:
4095
+ * http://goto/soy-param-migration
4096
+ * @param {!proto.gateway.web.v1.DeleteSlaResponse} msg The msg instance to transform.
4097
+ * @return {!Object}
4098
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4099
+ */
4100
+ proto.gateway.web.v1.DeleteSlaResponse.toObject = function(includeInstance, msg) {
4101
+ var f, obj = {
4102
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
4103
+ };
4104
+
4105
+ if (includeInstance) {
4106
+ obj.$jspbMessageInstance = msg;
4107
+ }
4108
+ return obj;
4109
+ };
4110
+ }
4111
+
4112
+
4113
+ /**
4114
+ * Deserializes binary data (in protobuf wire format).
4115
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4116
+ * @return {!proto.gateway.web.v1.DeleteSlaResponse}
4117
+ */
4118
+ proto.gateway.web.v1.DeleteSlaResponse.deserializeBinary = function(bytes) {
4119
+ var reader = new jspb.BinaryReader(bytes);
4120
+ var msg = new proto.gateway.web.v1.DeleteSlaResponse;
4121
+ return proto.gateway.web.v1.DeleteSlaResponse.deserializeBinaryFromReader(msg, reader);
4122
+ };
4123
+
4124
+
4125
+ /**
4126
+ * Deserializes binary data (in protobuf wire format) from the
4127
+ * given reader into the given message object.
4128
+ * @param {!proto.gateway.web.v1.DeleteSlaResponse} msg The message object to deserialize into.
4129
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4130
+ * @return {!proto.gateway.web.v1.DeleteSlaResponse}
4131
+ */
4132
+ proto.gateway.web.v1.DeleteSlaResponse.deserializeBinaryFromReader = function(msg, reader) {
4133
+ while (reader.nextField()) {
4134
+ if (reader.isEndGroup()) {
4135
+ break;
4136
+ }
4137
+ var field = reader.getFieldNumber();
4138
+ switch (field) {
4139
+ case 1:
4140
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4141
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4142
+ msg.setStatus(value);
4143
+ break;
4144
+ default:
4145
+ reader.skipField();
4146
+ break;
4147
+ }
4148
+ }
4149
+ return msg;
4150
+ };
4151
+
4152
+
4153
+ /**
4154
+ * Serializes the message to binary data (in protobuf wire format).
4155
+ * @return {!Uint8Array}
4156
+ */
4157
+ proto.gateway.web.v1.DeleteSlaResponse.prototype.serializeBinary = function() {
4158
+ var writer = new jspb.BinaryWriter();
4159
+ proto.gateway.web.v1.DeleteSlaResponse.serializeBinaryToWriter(this, writer);
4160
+ return writer.getResultBuffer();
4161
+ };
4162
+
4163
+
4164
+ /**
4165
+ * Serializes the given message to binary data (in protobuf wire
4166
+ * format), writing to the given BinaryWriter.
4167
+ * @param {!proto.gateway.web.v1.DeleteSlaResponse} message
4168
+ * @param {!jspb.BinaryWriter} writer
4169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4170
+ */
4171
+ proto.gateway.web.v1.DeleteSlaResponse.serializeBinaryToWriter = function(message, writer) {
4172
+ var f = undefined;
4173
+ f = message.getStatus();
4174
+ if (f != null) {
4175
+ writer.writeMessage(
4176
+ 1,
4177
+ f,
4178
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4179
+ );
4180
+ }
4181
+ };
4182
+
4183
+
4184
+ /**
4185
+ * optional gateway.common.v1.ResponseStatus status = 1;
4186
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4187
+ */
4188
+ proto.gateway.web.v1.DeleteSlaResponse.prototype.getStatus = function() {
4189
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4190
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4191
+ };
4192
+
4193
+
4194
+ /**
4195
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4196
+ * @return {!proto.gateway.web.v1.DeleteSlaResponse} returns this
4197
+ */
4198
+ proto.gateway.web.v1.DeleteSlaResponse.prototype.setStatus = function(value) {
4199
+ return jspb.Message.setWrapperField(this, 1, value);
4200
+ };
4201
+
4202
+
4203
+ /**
4204
+ * Clears the message field making it undefined.
4205
+ * @return {!proto.gateway.web.v1.DeleteSlaResponse} returns this
4206
+ */
4207
+ proto.gateway.web.v1.DeleteSlaResponse.prototype.clearStatus = function() {
4208
+ return this.setStatus(undefined);
4209
+ };
4210
+
4211
+
4212
+ /**
4213
+ * Returns whether this field is set.
4214
+ * @return {boolean}
4215
+ */
4216
+ proto.gateway.web.v1.DeleteSlaResponse.prototype.hasStatus = function() {
4217
+ return jspb.Message.getField(this, 1) != null;
4218
+ };
4219
+
4220
+
4221
+
4222
+
4223
+
4224
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4225
+ /**
4226
+ * Creates an object representation of this proto.
4227
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4228
+ * Optional fields that are not set will be set to undefined.
4229
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4230
+ * For the list of reserved names please see:
4231
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4232
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4233
+ * JSPB instance for transitional soy proto support:
4234
+ * http://goto/soy-param-migration
4235
+ * @return {!Object}
4236
+ */
4237
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.toObject = function(opt_includeInstance) {
4238
+ return proto.gateway.web.v1.ListSlaOutcomesRequest.toObject(opt_includeInstance, this);
4239
+ };
4240
+
4241
+
4242
+ /**
4243
+ * Static version of the {@see toObject} method.
4244
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4245
+ * the JSPB instance for transitional soy proto support:
4246
+ * http://goto/soy-param-migration
4247
+ * @param {!proto.gateway.web.v1.ListSlaOutcomesRequest} msg The msg instance to transform.
4248
+ * @return {!Object}
4249
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4250
+ */
4251
+ proto.gateway.web.v1.ListSlaOutcomesRequest.toObject = function(includeInstance, msg) {
4252
+ var f, obj = {
4253
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4254
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
4255
+ slaId: jspb.Message.getFieldWithDefault(msg, 3, ""),
4256
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4257
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
4258
+ outcome: jspb.Message.getFieldWithDefault(msg, 6, 0),
4259
+ limit: jspb.Message.getFieldWithDefault(msg, 7, 0),
4260
+ offset: jspb.Message.getFieldWithDefault(msg, 8, 0)
4261
+ };
4262
+
4263
+ if (includeInstance) {
4264
+ obj.$jspbMessageInstance = msg;
4265
+ }
4266
+ return obj;
4267
+ };
4268
+ }
4269
+
4270
+
4271
+ /**
4272
+ * Deserializes binary data (in protobuf wire format).
4273
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4274
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest}
4275
+ */
4276
+ proto.gateway.web.v1.ListSlaOutcomesRequest.deserializeBinary = function(bytes) {
4277
+ var reader = new jspb.BinaryReader(bytes);
4278
+ var msg = new proto.gateway.web.v1.ListSlaOutcomesRequest;
4279
+ return proto.gateway.web.v1.ListSlaOutcomesRequest.deserializeBinaryFromReader(msg, reader);
4280
+ };
4281
+
4282
+
4283
+ /**
4284
+ * Deserializes binary data (in protobuf wire format) from the
4285
+ * given reader into the given message object.
4286
+ * @param {!proto.gateway.web.v1.ListSlaOutcomesRequest} msg The message object to deserialize into.
4287
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4288
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest}
4289
+ */
4290
+ proto.gateway.web.v1.ListSlaOutcomesRequest.deserializeBinaryFromReader = function(msg, reader) {
4291
+ while (reader.nextField()) {
4292
+ if (reader.isEndGroup()) {
4293
+ break;
4294
+ }
4295
+ var field = reader.getFieldNumber();
4296
+ switch (field) {
4297
+ case 1:
4298
+ var value = /** @type {string} */ (reader.readString());
4299
+ msg.setOrganizationId(value);
4300
+ break;
4301
+ case 2:
4302
+ var value = /** @type {string} */ (reader.readString());
4303
+ msg.setProjectId(value);
4304
+ break;
4305
+ case 3:
4306
+ var value = /** @type {string} */ (reader.readString());
4307
+ msg.setSlaId(value);
4308
+ break;
4309
+ case 4:
4310
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4311
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4312
+ msg.setStartTime(value);
4313
+ break;
4314
+ case 5:
4315
+ var value = new google_protobuf_timestamp_pb.Timestamp;
4316
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
4317
+ msg.setEndTime(value);
4318
+ break;
4319
+ case 6:
4320
+ var value = /** @type {!proto.gateway.web.v1.SlaOutcomeStatus} */ (reader.readEnum());
4321
+ msg.setOutcome(value);
4322
+ break;
4323
+ case 7:
4324
+ var value = /** @type {number} */ (reader.readInt32());
4325
+ msg.setLimit(value);
4326
+ break;
4327
+ case 8:
4328
+ var value = /** @type {number} */ (reader.readInt32());
4329
+ msg.setOffset(value);
4330
+ break;
4331
+ default:
4332
+ reader.skipField();
4333
+ break;
4334
+ }
4335
+ }
4336
+ return msg;
4337
+ };
4338
+
4339
+
4340
+ /**
4341
+ * Serializes the message to binary data (in protobuf wire format).
4342
+ * @return {!Uint8Array}
4343
+ */
4344
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.serializeBinary = function() {
4345
+ var writer = new jspb.BinaryWriter();
4346
+ proto.gateway.web.v1.ListSlaOutcomesRequest.serializeBinaryToWriter(this, writer);
4347
+ return writer.getResultBuffer();
4348
+ };
4349
+
4350
+
4351
+ /**
4352
+ * Serializes the given message to binary data (in protobuf wire
4353
+ * format), writing to the given BinaryWriter.
4354
+ * @param {!proto.gateway.web.v1.ListSlaOutcomesRequest} message
4355
+ * @param {!jspb.BinaryWriter} writer
4356
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4357
+ */
4358
+ proto.gateway.web.v1.ListSlaOutcomesRequest.serializeBinaryToWriter = function(message, writer) {
4359
+ var f = undefined;
4360
+ f = message.getOrganizationId();
4361
+ if (f.length > 0) {
4362
+ writer.writeString(
4363
+ 1,
4364
+ f
4365
+ );
4366
+ }
4367
+ f = message.getProjectId();
4368
+ if (f.length > 0) {
4369
+ writer.writeString(
4370
+ 2,
4371
+ f
4372
+ );
4373
+ }
4374
+ f = message.getSlaId();
4375
+ if (f.length > 0) {
4376
+ writer.writeString(
4377
+ 3,
4378
+ f
4379
+ );
4380
+ }
4381
+ f = message.getStartTime();
4382
+ if (f != null) {
4383
+ writer.writeMessage(
4384
+ 4,
4385
+ f,
4386
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4387
+ );
4388
+ }
4389
+ f = message.getEndTime();
4390
+ if (f != null) {
4391
+ writer.writeMessage(
4392
+ 5,
4393
+ f,
4394
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
4395
+ );
4396
+ }
4397
+ f = message.getOutcome();
4398
+ if (f !== 0.0) {
4399
+ writer.writeEnum(
4400
+ 6,
4401
+ f
4402
+ );
4403
+ }
4404
+ f = message.getLimit();
4405
+ if (f !== 0) {
4406
+ writer.writeInt32(
4407
+ 7,
4408
+ f
4409
+ );
4410
+ }
4411
+ f = message.getOffset();
4412
+ if (f !== 0) {
4413
+ writer.writeInt32(
4414
+ 8,
4415
+ f
4416
+ );
4417
+ }
4418
+ };
4419
+
4420
+
4421
+ /**
4422
+ * optional string organization_id = 1;
4423
+ * @return {string}
4424
+ */
4425
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getOrganizationId = function() {
4426
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4427
+ };
4428
+
4429
+
4430
+ /**
4431
+ * @param {string} value
4432
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4433
+ */
4434
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setOrganizationId = function(value) {
4435
+ return jspb.Message.setProto3StringField(this, 1, value);
4436
+ };
4437
+
4438
+
4439
+ /**
4440
+ * optional string project_id = 2;
4441
+ * @return {string}
4442
+ */
4443
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getProjectId = function() {
4444
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4445
+ };
4446
+
4447
+
4448
+ /**
4449
+ * @param {string} value
4450
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4451
+ */
4452
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setProjectId = function(value) {
4453
+ return jspb.Message.setProto3StringField(this, 2, value);
4454
+ };
4455
+
4456
+
4457
+ /**
4458
+ * optional string sla_id = 3;
4459
+ * @return {string}
4460
+ */
4461
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getSlaId = function() {
4462
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4463
+ };
4464
+
4465
+
4466
+ /**
4467
+ * @param {string} value
4468
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4469
+ */
4470
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setSlaId = function(value) {
4471
+ return jspb.Message.setProto3StringField(this, 3, value);
4472
+ };
4473
+
4474
+
4475
+ /**
4476
+ * optional google.protobuf.Timestamp start_time = 4;
4477
+ * @return {?proto.google.protobuf.Timestamp}
4478
+ */
4479
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getStartTime = function() {
4480
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4481
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
4482
+ };
4483
+
4484
+
4485
+ /**
4486
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4487
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4488
+ */
4489
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setStartTime = function(value) {
4490
+ return jspb.Message.setWrapperField(this, 4, value);
4491
+ };
4492
+
4493
+
4494
+ /**
4495
+ * Clears the message field making it undefined.
4496
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4497
+ */
4498
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.clearStartTime = function() {
4499
+ return this.setStartTime(undefined);
4500
+ };
4501
+
4502
+
4503
+ /**
4504
+ * Returns whether this field is set.
4505
+ * @return {boolean}
4506
+ */
4507
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.hasStartTime = function() {
4508
+ return jspb.Message.getField(this, 4) != null;
4509
+ };
4510
+
4511
+
4512
+ /**
4513
+ * optional google.protobuf.Timestamp end_time = 5;
4514
+ * @return {?proto.google.protobuf.Timestamp}
4515
+ */
4516
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getEndTime = function() {
4517
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4518
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
4519
+ };
4520
+
4521
+
4522
+ /**
4523
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4524
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4525
+ */
4526
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setEndTime = function(value) {
4527
+ return jspb.Message.setWrapperField(this, 5, value);
4528
+ };
4529
+
4530
+
4531
+ /**
4532
+ * Clears the message field making it undefined.
4533
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4534
+ */
4535
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.clearEndTime = function() {
4536
+ return this.setEndTime(undefined);
4537
+ };
4538
+
4539
+
4540
+ /**
4541
+ * Returns whether this field is set.
4542
+ * @return {boolean}
4543
+ */
4544
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.hasEndTime = function() {
4545
+ return jspb.Message.getField(this, 5) != null;
4546
+ };
4547
+
4548
+
4549
+ /**
4550
+ * optional SlaOutcomeStatus outcome = 6;
4551
+ * @return {!proto.gateway.web.v1.SlaOutcomeStatus}
4552
+ */
4553
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getOutcome = function() {
4554
+ return /** @type {!proto.gateway.web.v1.SlaOutcomeStatus} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
4555
+ };
4556
+
4557
+
4558
+ /**
4559
+ * @param {!proto.gateway.web.v1.SlaOutcomeStatus} value
4560
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4561
+ */
4562
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setOutcome = function(value) {
4563
+ return jspb.Message.setProto3EnumField(this, 6, value);
4564
+ };
4565
+
4566
+
4567
+ /**
4568
+ * optional int32 limit = 7;
4569
+ * @return {number}
4570
+ */
4571
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getLimit = function() {
4572
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
4573
+ };
4574
+
4575
+
4576
+ /**
4577
+ * @param {number} value
4578
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4579
+ */
4580
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setLimit = function(value) {
4581
+ return jspb.Message.setProto3IntField(this, 7, value);
4582
+ };
4583
+
4584
+
4585
+ /**
4586
+ * optional int32 offset = 8;
4587
+ * @return {number}
4588
+ */
4589
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.getOffset = function() {
4590
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
4591
+ };
4592
+
4593
+
4594
+ /**
4595
+ * @param {number} value
4596
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesRequest} returns this
4597
+ */
4598
+ proto.gateway.web.v1.ListSlaOutcomesRequest.prototype.setOffset = function(value) {
4599
+ return jspb.Message.setProto3IntField(this, 8, value);
4600
+ };
4601
+
4602
+
4603
+
4604
+ /**
4605
+ * List of repeated fields within this message type.
4606
+ * @private {!Array<number>}
4607
+ * @const
4608
+ */
4609
+ proto.gateway.web.v1.ListSlaOutcomesResponse.repeatedFields_ = [2];
4610
+
4611
+
4612
+
4613
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4614
+ /**
4615
+ * Creates an object representation of this proto.
4616
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4617
+ * Optional fields that are not set will be set to undefined.
4618
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4619
+ * For the list of reserved names please see:
4620
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4621
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4622
+ * JSPB instance for transitional soy proto support:
4623
+ * http://goto/soy-param-migration
4624
+ * @return {!Object}
4625
+ */
4626
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.toObject = function(opt_includeInstance) {
4627
+ return proto.gateway.web.v1.ListSlaOutcomesResponse.toObject(opt_includeInstance, this);
4628
+ };
4629
+
4630
+
4631
+ /**
4632
+ * Static version of the {@see toObject} method.
4633
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4634
+ * the JSPB instance for transitional soy proto support:
4635
+ * http://goto/soy-param-migration
4636
+ * @param {!proto.gateway.web.v1.ListSlaOutcomesResponse} msg The msg instance to transform.
4637
+ * @return {!Object}
4638
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4639
+ */
4640
+ proto.gateway.web.v1.ListSlaOutcomesResponse.toObject = function(includeInstance, msg) {
4641
+ var f, obj = {
4642
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
4643
+ outcomesList: jspb.Message.toObjectList(msg.getOutcomesList(),
4644
+ proto.gateway.web.v1.SlaOutcome.toObject, includeInstance)
4645
+ };
4646
+
4647
+ if (includeInstance) {
4648
+ obj.$jspbMessageInstance = msg;
4649
+ }
4650
+ return obj;
4651
+ };
4652
+ }
4653
+
4654
+
4655
+ /**
4656
+ * Deserializes binary data (in protobuf wire format).
4657
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4658
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesResponse}
4659
+ */
4660
+ proto.gateway.web.v1.ListSlaOutcomesResponse.deserializeBinary = function(bytes) {
4661
+ var reader = new jspb.BinaryReader(bytes);
4662
+ var msg = new proto.gateway.web.v1.ListSlaOutcomesResponse;
4663
+ return proto.gateway.web.v1.ListSlaOutcomesResponse.deserializeBinaryFromReader(msg, reader);
4664
+ };
4665
+
4666
+
4667
+ /**
4668
+ * Deserializes binary data (in protobuf wire format) from the
4669
+ * given reader into the given message object.
4670
+ * @param {!proto.gateway.web.v1.ListSlaOutcomesResponse} msg The message object to deserialize into.
4671
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4672
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesResponse}
4673
+ */
4674
+ proto.gateway.web.v1.ListSlaOutcomesResponse.deserializeBinaryFromReader = function(msg, reader) {
4675
+ while (reader.nextField()) {
4676
+ if (reader.isEndGroup()) {
4677
+ break;
4678
+ }
4679
+ var field = reader.getFieldNumber();
4680
+ switch (field) {
4681
+ case 1:
4682
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
4683
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
4684
+ msg.setStatus(value);
4685
+ break;
4686
+ case 2:
4687
+ var value = new proto.gateway.web.v1.SlaOutcome;
4688
+ reader.readMessage(value,proto.gateway.web.v1.SlaOutcome.deserializeBinaryFromReader);
4689
+ msg.addOutcomes(value);
4690
+ break;
4691
+ default:
4692
+ reader.skipField();
4693
+ break;
4694
+ }
4695
+ }
4696
+ return msg;
4697
+ };
4698
+
4699
+
4700
+ /**
4701
+ * Serializes the message to binary data (in protobuf wire format).
4702
+ * @return {!Uint8Array}
4703
+ */
4704
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.serializeBinary = function() {
4705
+ var writer = new jspb.BinaryWriter();
4706
+ proto.gateway.web.v1.ListSlaOutcomesResponse.serializeBinaryToWriter(this, writer);
4707
+ return writer.getResultBuffer();
4708
+ };
4709
+
4710
+
4711
+ /**
4712
+ * Serializes the given message to binary data (in protobuf wire
4713
+ * format), writing to the given BinaryWriter.
4714
+ * @param {!proto.gateway.web.v1.ListSlaOutcomesResponse} message
4715
+ * @param {!jspb.BinaryWriter} writer
4716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4717
+ */
4718
+ proto.gateway.web.v1.ListSlaOutcomesResponse.serializeBinaryToWriter = function(message, writer) {
4719
+ var f = undefined;
4720
+ f = message.getStatus();
4721
+ if (f != null) {
4722
+ writer.writeMessage(
4723
+ 1,
4724
+ f,
4725
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
4726
+ );
4727
+ }
4728
+ f = message.getOutcomesList();
4729
+ if (f.length > 0) {
4730
+ writer.writeRepeatedMessage(
4731
+ 2,
4732
+ f,
4733
+ proto.gateway.web.v1.SlaOutcome.serializeBinaryToWriter
4734
+ );
4735
+ }
4736
+ };
4737
+
4738
+
4739
+ /**
4740
+ * optional gateway.common.v1.ResponseStatus status = 1;
4741
+ * @return {?proto.gateway.common.v1.ResponseStatus}
4742
+ */
4743
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.getStatus = function() {
4744
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
4745
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
4746
+ };
4747
+
4748
+
4749
+ /**
4750
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
4751
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesResponse} returns this
4752
+ */
4753
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.setStatus = function(value) {
4754
+ return jspb.Message.setWrapperField(this, 1, value);
4755
+ };
4756
+
4757
+
4758
+ /**
4759
+ * Clears the message field making it undefined.
4760
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesResponse} returns this
4761
+ */
4762
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.clearStatus = function() {
4763
+ return this.setStatus(undefined);
4764
+ };
4765
+
4766
+
4767
+ /**
4768
+ * Returns whether this field is set.
4769
+ * @return {boolean}
4770
+ */
4771
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.hasStatus = function() {
4772
+ return jspb.Message.getField(this, 1) != null;
4773
+ };
4774
+
4775
+
4776
+ /**
4777
+ * repeated SlaOutcome outcomes = 2;
4778
+ * @return {!Array<!proto.gateway.web.v1.SlaOutcome>}
4779
+ */
4780
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.getOutcomesList = function() {
4781
+ return /** @type{!Array<!proto.gateway.web.v1.SlaOutcome>} */ (
4782
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SlaOutcome, 2));
4783
+ };
4784
+
4785
+
4786
+ /**
4787
+ * @param {!Array<!proto.gateway.web.v1.SlaOutcome>} value
4788
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesResponse} returns this
4789
+ */
4790
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.setOutcomesList = function(value) {
4791
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
4792
+ };
4793
+
4794
+
4795
+ /**
4796
+ * @param {!proto.gateway.web.v1.SlaOutcome=} opt_value
4797
+ * @param {number=} opt_index
4798
+ * @return {!proto.gateway.web.v1.SlaOutcome}
4799
+ */
4800
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.addOutcomes = function(opt_value, opt_index) {
4801
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.SlaOutcome, opt_index);
4802
+ };
4803
+
4804
+
4805
+ /**
4806
+ * Clears the list making it empty but non-null.
4807
+ * @return {!proto.gateway.web.v1.ListSlaOutcomesResponse} returns this
4808
+ */
4809
+ proto.gateway.web.v1.ListSlaOutcomesResponse.prototype.clearOutcomesList = function() {
4810
+ return this.setOutcomesList([]);
4811
+ };
4812
+
4813
+
4814
+ /**
4815
+ * @enum {number}
4816
+ */
4817
+ proto.gateway.web.v1.SlaComparator = {
4818
+ SLA_COMPARATOR_UNSPECIFIED: 0,
4819
+ SLA_COMPARATOR_GREATER_THAN: 1,
4820
+ SLA_COMPARATOR_GREATER_THAN_OR_EQUAL: 2,
4821
+ SLA_COMPARATOR_LESS_THAN: 3,
4822
+ SLA_COMPARATOR_LESS_THAN_OR_EQUAL: 4
4823
+ };
4824
+
4825
+ /**
4826
+ * @enum {number}
4827
+ */
4828
+ proto.gateway.web.v1.SlaOccurrence = {
4829
+ SLA_OCCURRENCE_UNSPECIFIED: 0,
4830
+ SLA_OCCURRENCE_EARLIEST: 1,
4831
+ SLA_OCCURRENCE_LATEST: 2
4832
+ };
4833
+
4834
+ /**
4835
+ * @enum {number}
4836
+ */
4837
+ proto.gateway.web.v1.SlaOutcomeStatus = {
4838
+ SLA_OUTCOME_STATUS_UNSPECIFIED: 0,
4839
+ SLA_OUTCOME_STATUS_PASS: 1,
4840
+ SLA_OUTCOME_STATUS_FAIL: 2,
4841
+ SLA_OUTCOME_STATUS_NO_DATA: 3,
4842
+ SLA_OUTCOME_STATUS_ERROR: 4
4843
+ };
4844
+
4845
+ goog.object.extend(exports, proto.gateway.web.v1);