@miradorlabs/web-grpc 2.17.0 → 2.19.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,3609 @@
1
+ // source: proto/gateway/web/v1/slo_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.CreateSloRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.CreateSloResponse', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.DeleteSloRequest', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.DeleteSloResponse', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.GaugeThresholdSli', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.GetSloRequest', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.GetSloResponse', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.ListSlosRequest', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.ListSlosResponse', null, global);
37
+ goog.exportSymbol('proto.gateway.web.v1.Slo', null, global);
38
+ goog.exportSymbol('proto.gateway.web.v1.SloComparator', null, global);
39
+ goog.exportSymbol('proto.gateway.web.v1.SloObjective', null, global);
40
+ goog.exportSymbol('proto.gateway.web.v1.SloObjective.SliCase', null, global);
41
+ goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest', null, global);
42
+ goog.exportSymbol('proto.gateway.web.v1.UpdateSloRequest.SloUpdates', null, global);
43
+ goog.exportSymbol('proto.gateway.web.v1.UpdateSloResponse', null, global);
44
+ /**
45
+ * Generated by JsPbCodeGenerator.
46
+ * @param {Array=} opt_data Optional initial data array, typically from a
47
+ * server response, or constructed directly in Javascript. The array is used
48
+ * in place and becomes part of the constructed object. It is not cloned.
49
+ * If no data is provided, the constructed object will be empty, but still
50
+ * valid.
51
+ * @extends {jspb.Message}
52
+ * @constructor
53
+ */
54
+ proto.gateway.web.v1.Slo = function(opt_data) {
55
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
56
+ };
57
+ goog.inherits(proto.gateway.web.v1.Slo, jspb.Message);
58
+ if (goog.DEBUG && !COMPILED) {
59
+ /**
60
+ * @public
61
+ * @override
62
+ */
63
+ proto.gateway.web.v1.Slo.displayName = 'proto.gateway.web.v1.Slo';
64
+ }
65
+ /**
66
+ * Generated by JsPbCodeGenerator.
67
+ * @param {Array=} opt_data Optional initial data array, typically from a
68
+ * server response, or constructed directly in Javascript. The array is used
69
+ * in place and becomes part of the constructed object. It is not cloned.
70
+ * If no data is provided, the constructed object will be empty, but still
71
+ * valid.
72
+ * @extends {jspb.Message}
73
+ * @constructor
74
+ */
75
+ proto.gateway.web.v1.SloObjective = function(opt_data) {
76
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SloObjective.repeatedFields_, proto.gateway.web.v1.SloObjective.oneofGroups_);
77
+ };
78
+ goog.inherits(proto.gateway.web.v1.SloObjective, jspb.Message);
79
+ if (goog.DEBUG && !COMPILED) {
80
+ /**
81
+ * @public
82
+ * @override
83
+ */
84
+ proto.gateway.web.v1.SloObjective.displayName = 'proto.gateway.web.v1.SloObjective';
85
+ }
86
+ /**
87
+ * Generated by JsPbCodeGenerator.
88
+ * @param {Array=} opt_data Optional initial data array, typically from a
89
+ * server response, or constructed directly in Javascript. The array is used
90
+ * in place and becomes part of the constructed object. It is not cloned.
91
+ * If no data is provided, the constructed object will be empty, but still
92
+ * valid.
93
+ * @extends {jspb.Message}
94
+ * @constructor
95
+ */
96
+ proto.gateway.web.v1.GaugeThresholdSli = function(opt_data) {
97
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
98
+ };
99
+ goog.inherits(proto.gateway.web.v1.GaugeThresholdSli, jspb.Message);
100
+ if (goog.DEBUG && !COMPILED) {
101
+ /**
102
+ * @public
103
+ * @override
104
+ */
105
+ proto.gateway.web.v1.GaugeThresholdSli.displayName = 'proto.gateway.web.v1.GaugeThresholdSli';
106
+ }
107
+ /**
108
+ * Generated by JsPbCodeGenerator.
109
+ * @param {Array=} opt_data Optional initial data array, typically from a
110
+ * server response, or constructed directly in Javascript. The array is used
111
+ * in place and becomes part of the constructed object. It is not cloned.
112
+ * If no data is provided, the constructed object will be empty, but still
113
+ * valid.
114
+ * @extends {jspb.Message}
115
+ * @constructor
116
+ */
117
+ proto.gateway.web.v1.CreateSloRequest = function(opt_data) {
118
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
119
+ };
120
+ goog.inherits(proto.gateway.web.v1.CreateSloRequest, jspb.Message);
121
+ if (goog.DEBUG && !COMPILED) {
122
+ /**
123
+ * @public
124
+ * @override
125
+ */
126
+ proto.gateway.web.v1.CreateSloRequest.displayName = 'proto.gateway.web.v1.CreateSloRequest';
127
+ }
128
+ /**
129
+ * Generated by JsPbCodeGenerator.
130
+ * @param {Array=} opt_data Optional initial data array, typically from a
131
+ * server response, or constructed directly in Javascript. The array is used
132
+ * in place and becomes part of the constructed object. It is not cloned.
133
+ * If no data is provided, the constructed object will be empty, but still
134
+ * valid.
135
+ * @extends {jspb.Message}
136
+ * @constructor
137
+ */
138
+ proto.gateway.web.v1.CreateSloResponse = function(opt_data) {
139
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
140
+ };
141
+ goog.inherits(proto.gateway.web.v1.CreateSloResponse, jspb.Message);
142
+ if (goog.DEBUG && !COMPILED) {
143
+ /**
144
+ * @public
145
+ * @override
146
+ */
147
+ proto.gateway.web.v1.CreateSloResponse.displayName = 'proto.gateway.web.v1.CreateSloResponse';
148
+ }
149
+ /**
150
+ * Generated by JsPbCodeGenerator.
151
+ * @param {Array=} opt_data Optional initial data array, typically from a
152
+ * server response, or constructed directly in Javascript. The array is used
153
+ * in place and becomes part of the constructed object. It is not cloned.
154
+ * If no data is provided, the constructed object will be empty, but still
155
+ * valid.
156
+ * @extends {jspb.Message}
157
+ * @constructor
158
+ */
159
+ proto.gateway.web.v1.GetSloRequest = function(opt_data) {
160
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
161
+ };
162
+ goog.inherits(proto.gateway.web.v1.GetSloRequest, jspb.Message);
163
+ if (goog.DEBUG && !COMPILED) {
164
+ /**
165
+ * @public
166
+ * @override
167
+ */
168
+ proto.gateway.web.v1.GetSloRequest.displayName = 'proto.gateway.web.v1.GetSloRequest';
169
+ }
170
+ /**
171
+ * Generated by JsPbCodeGenerator.
172
+ * @param {Array=} opt_data Optional initial data array, typically from a
173
+ * server response, or constructed directly in Javascript. The array is used
174
+ * in place and becomes part of the constructed object. It is not cloned.
175
+ * If no data is provided, the constructed object will be empty, but still
176
+ * valid.
177
+ * @extends {jspb.Message}
178
+ * @constructor
179
+ */
180
+ proto.gateway.web.v1.GetSloResponse = function(opt_data) {
181
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
182
+ };
183
+ goog.inherits(proto.gateway.web.v1.GetSloResponse, jspb.Message);
184
+ if (goog.DEBUG && !COMPILED) {
185
+ /**
186
+ * @public
187
+ * @override
188
+ */
189
+ proto.gateway.web.v1.GetSloResponse.displayName = 'proto.gateway.web.v1.GetSloResponse';
190
+ }
191
+ /**
192
+ * Generated by JsPbCodeGenerator.
193
+ * @param {Array=} opt_data Optional initial data array, typically from a
194
+ * server response, or constructed directly in Javascript. The array is used
195
+ * in place and becomes part of the constructed object. It is not cloned.
196
+ * If no data is provided, the constructed object will be empty, but still
197
+ * valid.
198
+ * @extends {jspb.Message}
199
+ * @constructor
200
+ */
201
+ proto.gateway.web.v1.ListSlosRequest = function(opt_data) {
202
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
203
+ };
204
+ goog.inherits(proto.gateway.web.v1.ListSlosRequest, jspb.Message);
205
+ if (goog.DEBUG && !COMPILED) {
206
+ /**
207
+ * @public
208
+ * @override
209
+ */
210
+ proto.gateway.web.v1.ListSlosRequest.displayName = 'proto.gateway.web.v1.ListSlosRequest';
211
+ }
212
+ /**
213
+ * Generated by JsPbCodeGenerator.
214
+ * @param {Array=} opt_data Optional initial data array, typically from a
215
+ * server response, or constructed directly in Javascript. The array is used
216
+ * in place and becomes part of the constructed object. It is not cloned.
217
+ * If no data is provided, the constructed object will be empty, but still
218
+ * valid.
219
+ * @extends {jspb.Message}
220
+ * @constructor
221
+ */
222
+ proto.gateway.web.v1.ListSlosResponse = function(opt_data) {
223
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListSlosResponse.repeatedFields_, null);
224
+ };
225
+ goog.inherits(proto.gateway.web.v1.ListSlosResponse, jspb.Message);
226
+ if (goog.DEBUG && !COMPILED) {
227
+ /**
228
+ * @public
229
+ * @override
230
+ */
231
+ proto.gateway.web.v1.ListSlosResponse.displayName = 'proto.gateway.web.v1.ListSlosResponse';
232
+ }
233
+ /**
234
+ * Generated by JsPbCodeGenerator.
235
+ * @param {Array=} opt_data Optional initial data array, typically from a
236
+ * server response, or constructed directly in Javascript. The array is used
237
+ * in place and becomes part of the constructed object. It is not cloned.
238
+ * If no data is provided, the constructed object will be empty, but still
239
+ * valid.
240
+ * @extends {jspb.Message}
241
+ * @constructor
242
+ */
243
+ proto.gateway.web.v1.UpdateSloRequest = function(opt_data) {
244
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
245
+ };
246
+ goog.inherits(proto.gateway.web.v1.UpdateSloRequest, jspb.Message);
247
+ if (goog.DEBUG && !COMPILED) {
248
+ /**
249
+ * @public
250
+ * @override
251
+ */
252
+ proto.gateway.web.v1.UpdateSloRequest.displayName = 'proto.gateway.web.v1.UpdateSloRequest';
253
+ }
254
+ /**
255
+ * Generated by JsPbCodeGenerator.
256
+ * @param {Array=} opt_data Optional initial data array, typically from a
257
+ * server response, or constructed directly in Javascript. The array is used
258
+ * in place and becomes part of the constructed object. It is not cloned.
259
+ * If no data is provided, the constructed object will be empty, but still
260
+ * valid.
261
+ * @extends {jspb.Message}
262
+ * @constructor
263
+ */
264
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates = function(opt_data) {
265
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
266
+ };
267
+ goog.inherits(proto.gateway.web.v1.UpdateSloRequest.SloUpdates, jspb.Message);
268
+ if (goog.DEBUG && !COMPILED) {
269
+ /**
270
+ * @public
271
+ * @override
272
+ */
273
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.displayName = 'proto.gateway.web.v1.UpdateSloRequest.SloUpdates';
274
+ }
275
+ /**
276
+ * Generated by JsPbCodeGenerator.
277
+ * @param {Array=} opt_data Optional initial data array, typically from a
278
+ * server response, or constructed directly in Javascript. The array is used
279
+ * in place and becomes part of the constructed object. It is not cloned.
280
+ * If no data is provided, the constructed object will be empty, but still
281
+ * valid.
282
+ * @extends {jspb.Message}
283
+ * @constructor
284
+ */
285
+ proto.gateway.web.v1.UpdateSloResponse = function(opt_data) {
286
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
287
+ };
288
+ goog.inherits(proto.gateway.web.v1.UpdateSloResponse, jspb.Message);
289
+ if (goog.DEBUG && !COMPILED) {
290
+ /**
291
+ * @public
292
+ * @override
293
+ */
294
+ proto.gateway.web.v1.UpdateSloResponse.displayName = 'proto.gateway.web.v1.UpdateSloResponse';
295
+ }
296
+ /**
297
+ * Generated by JsPbCodeGenerator.
298
+ * @param {Array=} opt_data Optional initial data array, typically from a
299
+ * server response, or constructed directly in Javascript. The array is used
300
+ * in place and becomes part of the constructed object. It is not cloned.
301
+ * If no data is provided, the constructed object will be empty, but still
302
+ * valid.
303
+ * @extends {jspb.Message}
304
+ * @constructor
305
+ */
306
+ proto.gateway.web.v1.DeleteSloRequest = function(opt_data) {
307
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
308
+ };
309
+ goog.inherits(proto.gateway.web.v1.DeleteSloRequest, jspb.Message);
310
+ if (goog.DEBUG && !COMPILED) {
311
+ /**
312
+ * @public
313
+ * @override
314
+ */
315
+ proto.gateway.web.v1.DeleteSloRequest.displayName = 'proto.gateway.web.v1.DeleteSloRequest';
316
+ }
317
+ /**
318
+ * Generated by JsPbCodeGenerator.
319
+ * @param {Array=} opt_data Optional initial data array, typically from a
320
+ * server response, or constructed directly in Javascript. The array is used
321
+ * in place and becomes part of the constructed object. It is not cloned.
322
+ * If no data is provided, the constructed object will be empty, but still
323
+ * valid.
324
+ * @extends {jspb.Message}
325
+ * @constructor
326
+ */
327
+ proto.gateway.web.v1.DeleteSloResponse = function(opt_data) {
328
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
329
+ };
330
+ goog.inherits(proto.gateway.web.v1.DeleteSloResponse, jspb.Message);
331
+ if (goog.DEBUG && !COMPILED) {
332
+ /**
333
+ * @public
334
+ * @override
335
+ */
336
+ proto.gateway.web.v1.DeleteSloResponse.displayName = 'proto.gateway.web.v1.DeleteSloResponse';
337
+ }
338
+
339
+
340
+
341
+ if (jspb.Message.GENERATE_TO_OBJECT) {
342
+ /**
343
+ * Creates an object representation of this proto.
344
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
345
+ * Optional fields that are not set will be set to undefined.
346
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
347
+ * For the list of reserved names please see:
348
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
349
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
350
+ * JSPB instance for transitional soy proto support:
351
+ * http://goto/soy-param-migration
352
+ * @return {!Object}
353
+ */
354
+ proto.gateway.web.v1.Slo.prototype.toObject = function(opt_includeInstance) {
355
+ return proto.gateway.web.v1.Slo.toObject(opt_includeInstance, this);
356
+ };
357
+
358
+
359
+ /**
360
+ * Static version of the {@see toObject} method.
361
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
362
+ * the JSPB instance for transitional soy proto support:
363
+ * http://goto/soy-param-migration
364
+ * @param {!proto.gateway.web.v1.Slo} msg The msg instance to transform.
365
+ * @return {!Object}
366
+ * @suppress {unusedLocalVariables} f is only used for nested messages
367
+ */
368
+ proto.gateway.web.v1.Slo.toObject = function(includeInstance, msg) {
369
+ var f, obj = {
370
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
371
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
372
+ projectId: jspb.Message.getFieldWithDefault(msg, 3, ""),
373
+ name: jspb.Message.getFieldWithDefault(msg, 4, ""),
374
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
375
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
376
+ objective: (f = msg.getObjective()) && proto.gateway.web.v1.SloObjective.toObject(includeInstance, f),
377
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
378
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
379
+ };
380
+
381
+ if (includeInstance) {
382
+ obj.$jspbMessageInstance = msg;
383
+ }
384
+ return obj;
385
+ };
386
+ }
387
+
388
+
389
+ /**
390
+ * Deserializes binary data (in protobuf wire format).
391
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
392
+ * @return {!proto.gateway.web.v1.Slo}
393
+ */
394
+ proto.gateway.web.v1.Slo.deserializeBinary = function(bytes) {
395
+ var reader = new jspb.BinaryReader(bytes);
396
+ var msg = new proto.gateway.web.v1.Slo;
397
+ return proto.gateway.web.v1.Slo.deserializeBinaryFromReader(msg, reader);
398
+ };
399
+
400
+
401
+ /**
402
+ * Deserializes binary data (in protobuf wire format) from the
403
+ * given reader into the given message object.
404
+ * @param {!proto.gateway.web.v1.Slo} msg The message object to deserialize into.
405
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
406
+ * @return {!proto.gateway.web.v1.Slo}
407
+ */
408
+ proto.gateway.web.v1.Slo.deserializeBinaryFromReader = function(msg, reader) {
409
+ while (reader.nextField()) {
410
+ if (reader.isEndGroup()) {
411
+ break;
412
+ }
413
+ var field = reader.getFieldNumber();
414
+ switch (field) {
415
+ case 1:
416
+ var value = /** @type {string} */ (reader.readString());
417
+ msg.setId(value);
418
+ break;
419
+ case 2:
420
+ var value = /** @type {string} */ (reader.readString());
421
+ msg.setOrganizationId(value);
422
+ break;
423
+ case 3:
424
+ var value = /** @type {string} */ (reader.readString());
425
+ msg.setProjectId(value);
426
+ break;
427
+ case 4:
428
+ var value = /** @type {string} */ (reader.readString());
429
+ msg.setName(value);
430
+ break;
431
+ case 5:
432
+ var value = /** @type {string} */ (reader.readString());
433
+ msg.setDescription(value);
434
+ break;
435
+ case 6:
436
+ var value = /** @type {boolean} */ (reader.readBool());
437
+ msg.setEnabled(value);
438
+ break;
439
+ case 7:
440
+ var value = new proto.gateway.web.v1.SloObjective;
441
+ reader.readMessage(value,proto.gateway.web.v1.SloObjective.deserializeBinaryFromReader);
442
+ msg.setObjective(value);
443
+ break;
444
+ case 8:
445
+ var value = new google_protobuf_timestamp_pb.Timestamp;
446
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
447
+ msg.setCreatedAt(value);
448
+ break;
449
+ case 9:
450
+ var value = new google_protobuf_timestamp_pb.Timestamp;
451
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
452
+ msg.setUpdatedAt(value);
453
+ break;
454
+ default:
455
+ reader.skipField();
456
+ break;
457
+ }
458
+ }
459
+ return msg;
460
+ };
461
+
462
+
463
+ /**
464
+ * Serializes the message to binary data (in protobuf wire format).
465
+ * @return {!Uint8Array}
466
+ */
467
+ proto.gateway.web.v1.Slo.prototype.serializeBinary = function() {
468
+ var writer = new jspb.BinaryWriter();
469
+ proto.gateway.web.v1.Slo.serializeBinaryToWriter(this, writer);
470
+ return writer.getResultBuffer();
471
+ };
472
+
473
+
474
+ /**
475
+ * Serializes the given message to binary data (in protobuf wire
476
+ * format), writing to the given BinaryWriter.
477
+ * @param {!proto.gateway.web.v1.Slo} message
478
+ * @param {!jspb.BinaryWriter} writer
479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
480
+ */
481
+ proto.gateway.web.v1.Slo.serializeBinaryToWriter = function(message, writer) {
482
+ var f = undefined;
483
+ f = message.getId();
484
+ if (f.length > 0) {
485
+ writer.writeString(
486
+ 1,
487
+ f
488
+ );
489
+ }
490
+ f = message.getOrganizationId();
491
+ if (f.length > 0) {
492
+ writer.writeString(
493
+ 2,
494
+ f
495
+ );
496
+ }
497
+ f = message.getProjectId();
498
+ if (f.length > 0) {
499
+ writer.writeString(
500
+ 3,
501
+ f
502
+ );
503
+ }
504
+ f = message.getName();
505
+ if (f.length > 0) {
506
+ writer.writeString(
507
+ 4,
508
+ f
509
+ );
510
+ }
511
+ f = message.getDescription();
512
+ if (f.length > 0) {
513
+ writer.writeString(
514
+ 5,
515
+ f
516
+ );
517
+ }
518
+ f = message.getEnabled();
519
+ if (f) {
520
+ writer.writeBool(
521
+ 6,
522
+ f
523
+ );
524
+ }
525
+ f = message.getObjective();
526
+ if (f != null) {
527
+ writer.writeMessage(
528
+ 7,
529
+ f,
530
+ proto.gateway.web.v1.SloObjective.serializeBinaryToWriter
531
+ );
532
+ }
533
+ f = message.getCreatedAt();
534
+ if (f != null) {
535
+ writer.writeMessage(
536
+ 8,
537
+ f,
538
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
539
+ );
540
+ }
541
+ f = message.getUpdatedAt();
542
+ if (f != null) {
543
+ writer.writeMessage(
544
+ 9,
545
+ f,
546
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
547
+ );
548
+ }
549
+ };
550
+
551
+
552
+ /**
553
+ * optional string id = 1;
554
+ * @return {string}
555
+ */
556
+ proto.gateway.web.v1.Slo.prototype.getId = function() {
557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
558
+ };
559
+
560
+
561
+ /**
562
+ * @param {string} value
563
+ * @return {!proto.gateway.web.v1.Slo} returns this
564
+ */
565
+ proto.gateway.web.v1.Slo.prototype.setId = function(value) {
566
+ return jspb.Message.setProto3StringField(this, 1, value);
567
+ };
568
+
569
+
570
+ /**
571
+ * optional string organization_id = 2;
572
+ * @return {string}
573
+ */
574
+ proto.gateway.web.v1.Slo.prototype.getOrganizationId = function() {
575
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
576
+ };
577
+
578
+
579
+ /**
580
+ * @param {string} value
581
+ * @return {!proto.gateway.web.v1.Slo} returns this
582
+ */
583
+ proto.gateway.web.v1.Slo.prototype.setOrganizationId = function(value) {
584
+ return jspb.Message.setProto3StringField(this, 2, value);
585
+ };
586
+
587
+
588
+ /**
589
+ * optional string project_id = 3;
590
+ * @return {string}
591
+ */
592
+ proto.gateway.web.v1.Slo.prototype.getProjectId = function() {
593
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
594
+ };
595
+
596
+
597
+ /**
598
+ * @param {string} value
599
+ * @return {!proto.gateway.web.v1.Slo} returns this
600
+ */
601
+ proto.gateway.web.v1.Slo.prototype.setProjectId = function(value) {
602
+ return jspb.Message.setProto3StringField(this, 3, value);
603
+ };
604
+
605
+
606
+ /**
607
+ * optional string name = 4;
608
+ * @return {string}
609
+ */
610
+ proto.gateway.web.v1.Slo.prototype.getName = function() {
611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
612
+ };
613
+
614
+
615
+ /**
616
+ * @param {string} value
617
+ * @return {!proto.gateway.web.v1.Slo} returns this
618
+ */
619
+ proto.gateway.web.v1.Slo.prototype.setName = function(value) {
620
+ return jspb.Message.setProto3StringField(this, 4, value);
621
+ };
622
+
623
+
624
+ /**
625
+ * optional string description = 5;
626
+ * @return {string}
627
+ */
628
+ proto.gateway.web.v1.Slo.prototype.getDescription = function() {
629
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
630
+ };
631
+
632
+
633
+ /**
634
+ * @param {string} value
635
+ * @return {!proto.gateway.web.v1.Slo} returns this
636
+ */
637
+ proto.gateway.web.v1.Slo.prototype.setDescription = function(value) {
638
+ return jspb.Message.setProto3StringField(this, 5, value);
639
+ };
640
+
641
+
642
+ /**
643
+ * optional bool enabled = 6;
644
+ * @return {boolean}
645
+ */
646
+ proto.gateway.web.v1.Slo.prototype.getEnabled = function() {
647
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
648
+ };
649
+
650
+
651
+ /**
652
+ * @param {boolean} value
653
+ * @return {!proto.gateway.web.v1.Slo} returns this
654
+ */
655
+ proto.gateway.web.v1.Slo.prototype.setEnabled = function(value) {
656
+ return jspb.Message.setProto3BooleanField(this, 6, value);
657
+ };
658
+
659
+
660
+ /**
661
+ * optional SloObjective objective = 7;
662
+ * @return {?proto.gateway.web.v1.SloObjective}
663
+ */
664
+ proto.gateway.web.v1.Slo.prototype.getObjective = function() {
665
+ return /** @type{?proto.gateway.web.v1.SloObjective} */ (
666
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloObjective, 7));
667
+ };
668
+
669
+
670
+ /**
671
+ * @param {?proto.gateway.web.v1.SloObjective|undefined} value
672
+ * @return {!proto.gateway.web.v1.Slo} returns this
673
+ */
674
+ proto.gateway.web.v1.Slo.prototype.setObjective = function(value) {
675
+ return jspb.Message.setWrapperField(this, 7, value);
676
+ };
677
+
678
+
679
+ /**
680
+ * Clears the message field making it undefined.
681
+ * @return {!proto.gateway.web.v1.Slo} returns this
682
+ */
683
+ proto.gateway.web.v1.Slo.prototype.clearObjective = function() {
684
+ return this.setObjective(undefined);
685
+ };
686
+
687
+
688
+ /**
689
+ * Returns whether this field is set.
690
+ * @return {boolean}
691
+ */
692
+ proto.gateway.web.v1.Slo.prototype.hasObjective = function() {
693
+ return jspb.Message.getField(this, 7) != null;
694
+ };
695
+
696
+
697
+ /**
698
+ * optional google.protobuf.Timestamp created_at = 8;
699
+ * @return {?proto.google.protobuf.Timestamp}
700
+ */
701
+ proto.gateway.web.v1.Slo.prototype.getCreatedAt = function() {
702
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
703
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
704
+ };
705
+
706
+
707
+ /**
708
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
709
+ * @return {!proto.gateway.web.v1.Slo} returns this
710
+ */
711
+ proto.gateway.web.v1.Slo.prototype.setCreatedAt = function(value) {
712
+ return jspb.Message.setWrapperField(this, 8, value);
713
+ };
714
+
715
+
716
+ /**
717
+ * Clears the message field making it undefined.
718
+ * @return {!proto.gateway.web.v1.Slo} returns this
719
+ */
720
+ proto.gateway.web.v1.Slo.prototype.clearCreatedAt = function() {
721
+ return this.setCreatedAt(undefined);
722
+ };
723
+
724
+
725
+ /**
726
+ * Returns whether this field is set.
727
+ * @return {boolean}
728
+ */
729
+ proto.gateway.web.v1.Slo.prototype.hasCreatedAt = function() {
730
+ return jspb.Message.getField(this, 8) != null;
731
+ };
732
+
733
+
734
+ /**
735
+ * optional google.protobuf.Timestamp updated_at = 9;
736
+ * @return {?proto.google.protobuf.Timestamp}
737
+ */
738
+ proto.gateway.web.v1.Slo.prototype.getUpdatedAt = function() {
739
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
740
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
741
+ };
742
+
743
+
744
+ /**
745
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
746
+ * @return {!proto.gateway.web.v1.Slo} returns this
747
+ */
748
+ proto.gateway.web.v1.Slo.prototype.setUpdatedAt = function(value) {
749
+ return jspb.Message.setWrapperField(this, 9, value);
750
+ };
751
+
752
+
753
+ /**
754
+ * Clears the message field making it undefined.
755
+ * @return {!proto.gateway.web.v1.Slo} returns this
756
+ */
757
+ proto.gateway.web.v1.Slo.prototype.clearUpdatedAt = function() {
758
+ return this.setUpdatedAt(undefined);
759
+ };
760
+
761
+
762
+ /**
763
+ * Returns whether this field is set.
764
+ * @return {boolean}
765
+ */
766
+ proto.gateway.web.v1.Slo.prototype.hasUpdatedAt = function() {
767
+ return jspb.Message.getField(this, 9) != null;
768
+ };
769
+
770
+
771
+
772
+ /**
773
+ * List of repeated fields within this message type.
774
+ * @private {!Array<number>}
775
+ * @const
776
+ */
777
+ proto.gateway.web.v1.SloObjective.repeatedFields_ = [2];
778
+
779
+ /**
780
+ * Oneof group definitions for this message. Each group defines the field
781
+ * numbers belonging to that group. When of these fields' value is set, all
782
+ * other fields in the group are cleared. During deserialization, if multiple
783
+ * fields are encountered for a group, only the last value seen will be kept.
784
+ * @private {!Array<!Array<number>>}
785
+ * @const
786
+ */
787
+ proto.gateway.web.v1.SloObjective.oneofGroups_ = [[5]];
788
+
789
+ /**
790
+ * @enum {number}
791
+ */
792
+ proto.gateway.web.v1.SloObjective.SliCase = {
793
+ SLI_NOT_SET: 0,
794
+ GAUGE_THRESHOLD: 5
795
+ };
796
+
797
+ /**
798
+ * @return {proto.gateway.web.v1.SloObjective.SliCase}
799
+ */
800
+ proto.gateway.web.v1.SloObjective.prototype.getSliCase = function() {
801
+ return /** @type {proto.gateway.web.v1.SloObjective.SliCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.SloObjective.oneofGroups_[0]));
802
+ };
803
+
804
+
805
+
806
+ if (jspb.Message.GENERATE_TO_OBJECT) {
807
+ /**
808
+ * Creates an object representation of this proto.
809
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
810
+ * Optional fields that are not set will be set to undefined.
811
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
812
+ * For the list of reserved names please see:
813
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
814
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
815
+ * JSPB instance for transitional soy proto support:
816
+ * http://goto/soy-param-migration
817
+ * @return {!Object}
818
+ */
819
+ proto.gateway.web.v1.SloObjective.prototype.toObject = function(opt_includeInstance) {
820
+ return proto.gateway.web.v1.SloObjective.toObject(opt_includeInstance, this);
821
+ };
822
+
823
+
824
+ /**
825
+ * Static version of the {@see toObject} method.
826
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
827
+ * the JSPB instance for transitional soy proto support:
828
+ * http://goto/soy-param-migration
829
+ * @param {!proto.gateway.web.v1.SloObjective} msg The msg instance to transform.
830
+ * @return {!Object}
831
+ * @suppress {unusedLocalVariables} f is only used for nested messages
832
+ */
833
+ proto.gateway.web.v1.SloObjective.toObject = function(includeInstance, msg) {
834
+ var f, obj = {
835
+ metricName: jspb.Message.getFieldWithDefault(msg, 1, ""),
836
+ groupByList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
837
+ target: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
838
+ windowSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
839
+ gaugeThreshold: (f = msg.getGaugeThreshold()) && proto.gateway.web.v1.GaugeThresholdSli.toObject(includeInstance, f)
840
+ };
841
+
842
+ if (includeInstance) {
843
+ obj.$jspbMessageInstance = msg;
844
+ }
845
+ return obj;
846
+ };
847
+ }
848
+
849
+
850
+ /**
851
+ * Deserializes binary data (in protobuf wire format).
852
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
853
+ * @return {!proto.gateway.web.v1.SloObjective}
854
+ */
855
+ proto.gateway.web.v1.SloObjective.deserializeBinary = function(bytes) {
856
+ var reader = new jspb.BinaryReader(bytes);
857
+ var msg = new proto.gateway.web.v1.SloObjective;
858
+ return proto.gateway.web.v1.SloObjective.deserializeBinaryFromReader(msg, reader);
859
+ };
860
+
861
+
862
+ /**
863
+ * Deserializes binary data (in protobuf wire format) from the
864
+ * given reader into the given message object.
865
+ * @param {!proto.gateway.web.v1.SloObjective} msg The message object to deserialize into.
866
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
867
+ * @return {!proto.gateway.web.v1.SloObjective}
868
+ */
869
+ proto.gateway.web.v1.SloObjective.deserializeBinaryFromReader = function(msg, reader) {
870
+ while (reader.nextField()) {
871
+ if (reader.isEndGroup()) {
872
+ break;
873
+ }
874
+ var field = reader.getFieldNumber();
875
+ switch (field) {
876
+ case 1:
877
+ var value = /** @type {string} */ (reader.readString());
878
+ msg.setMetricName(value);
879
+ break;
880
+ case 2:
881
+ var value = /** @type {string} */ (reader.readString());
882
+ msg.addGroupBy(value);
883
+ break;
884
+ case 3:
885
+ var value = /** @type {number} */ (reader.readDouble());
886
+ msg.setTarget(value);
887
+ break;
888
+ case 4:
889
+ var value = /** @type {number} */ (reader.readInt64());
890
+ msg.setWindowSeconds(value);
891
+ break;
892
+ case 5:
893
+ var value = new proto.gateway.web.v1.GaugeThresholdSli;
894
+ reader.readMessage(value,proto.gateway.web.v1.GaugeThresholdSli.deserializeBinaryFromReader);
895
+ msg.setGaugeThreshold(value);
896
+ break;
897
+ default:
898
+ reader.skipField();
899
+ break;
900
+ }
901
+ }
902
+ return msg;
903
+ };
904
+
905
+
906
+ /**
907
+ * Serializes the message to binary data (in protobuf wire format).
908
+ * @return {!Uint8Array}
909
+ */
910
+ proto.gateway.web.v1.SloObjective.prototype.serializeBinary = function() {
911
+ var writer = new jspb.BinaryWriter();
912
+ proto.gateway.web.v1.SloObjective.serializeBinaryToWriter(this, writer);
913
+ return writer.getResultBuffer();
914
+ };
915
+
916
+
917
+ /**
918
+ * Serializes the given message to binary data (in protobuf wire
919
+ * format), writing to the given BinaryWriter.
920
+ * @param {!proto.gateway.web.v1.SloObjective} message
921
+ * @param {!jspb.BinaryWriter} writer
922
+ * @suppress {unusedLocalVariables} f is only used for nested messages
923
+ */
924
+ proto.gateway.web.v1.SloObjective.serializeBinaryToWriter = function(message, writer) {
925
+ var f = undefined;
926
+ f = message.getMetricName();
927
+ if (f.length > 0) {
928
+ writer.writeString(
929
+ 1,
930
+ f
931
+ );
932
+ }
933
+ f = message.getGroupByList();
934
+ if (f.length > 0) {
935
+ writer.writeRepeatedString(
936
+ 2,
937
+ f
938
+ );
939
+ }
940
+ f = message.getTarget();
941
+ if (f !== 0.0) {
942
+ writer.writeDouble(
943
+ 3,
944
+ f
945
+ );
946
+ }
947
+ f = message.getWindowSeconds();
948
+ if (f !== 0) {
949
+ writer.writeInt64(
950
+ 4,
951
+ f
952
+ );
953
+ }
954
+ f = message.getGaugeThreshold();
955
+ if (f != null) {
956
+ writer.writeMessage(
957
+ 5,
958
+ f,
959
+ proto.gateway.web.v1.GaugeThresholdSli.serializeBinaryToWriter
960
+ );
961
+ }
962
+ };
963
+
964
+
965
+ /**
966
+ * optional string metric_name = 1;
967
+ * @return {string}
968
+ */
969
+ proto.gateway.web.v1.SloObjective.prototype.getMetricName = function() {
970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
971
+ };
972
+
973
+
974
+ /**
975
+ * @param {string} value
976
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
977
+ */
978
+ proto.gateway.web.v1.SloObjective.prototype.setMetricName = function(value) {
979
+ return jspb.Message.setProto3StringField(this, 1, value);
980
+ };
981
+
982
+
983
+ /**
984
+ * repeated string group_by = 2;
985
+ * @return {!Array<string>}
986
+ */
987
+ proto.gateway.web.v1.SloObjective.prototype.getGroupByList = function() {
988
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
989
+ };
990
+
991
+
992
+ /**
993
+ * @param {!Array<string>} value
994
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
995
+ */
996
+ proto.gateway.web.v1.SloObjective.prototype.setGroupByList = function(value) {
997
+ return jspb.Message.setField(this, 2, value || []);
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * @param {string} value
1003
+ * @param {number=} opt_index
1004
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
1005
+ */
1006
+ proto.gateway.web.v1.SloObjective.prototype.addGroupBy = function(value, opt_index) {
1007
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * Clears the list making it empty but non-null.
1013
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
1014
+ */
1015
+ proto.gateway.web.v1.SloObjective.prototype.clearGroupByList = function() {
1016
+ return this.setGroupByList([]);
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * optional double target = 3;
1022
+ * @return {number}
1023
+ */
1024
+ proto.gateway.web.v1.SloObjective.prototype.getTarget = function() {
1025
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * @param {number} value
1031
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
1032
+ */
1033
+ proto.gateway.web.v1.SloObjective.prototype.setTarget = function(value) {
1034
+ return jspb.Message.setProto3FloatField(this, 3, value);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * optional int64 window_seconds = 4;
1040
+ * @return {number}
1041
+ */
1042
+ proto.gateway.web.v1.SloObjective.prototype.getWindowSeconds = function() {
1043
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * @param {number} value
1049
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
1050
+ */
1051
+ proto.gateway.web.v1.SloObjective.prototype.setWindowSeconds = function(value) {
1052
+ return jspb.Message.setProto3IntField(this, 4, value);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * optional GaugeThresholdSli gauge_threshold = 5;
1058
+ * @return {?proto.gateway.web.v1.GaugeThresholdSli}
1059
+ */
1060
+ proto.gateway.web.v1.SloObjective.prototype.getGaugeThreshold = function() {
1061
+ return /** @type{?proto.gateway.web.v1.GaugeThresholdSli} */ (
1062
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.GaugeThresholdSli, 5));
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * @param {?proto.gateway.web.v1.GaugeThresholdSli|undefined} value
1068
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
1069
+ */
1070
+ proto.gateway.web.v1.SloObjective.prototype.setGaugeThreshold = function(value) {
1071
+ return jspb.Message.setOneofWrapperField(this, 5, proto.gateway.web.v1.SloObjective.oneofGroups_[0], value);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * Clears the message field making it undefined.
1077
+ * @return {!proto.gateway.web.v1.SloObjective} returns this
1078
+ */
1079
+ proto.gateway.web.v1.SloObjective.prototype.clearGaugeThreshold = function() {
1080
+ return this.setGaugeThreshold(undefined);
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * Returns whether this field is set.
1086
+ * @return {boolean}
1087
+ */
1088
+ proto.gateway.web.v1.SloObjective.prototype.hasGaugeThreshold = function() {
1089
+ return jspb.Message.getField(this, 5) != null;
1090
+ };
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1097
+ /**
1098
+ * Creates an object representation of this proto.
1099
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1100
+ * Optional fields that are not set will be set to undefined.
1101
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1102
+ * For the list of reserved names please see:
1103
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1104
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1105
+ * JSPB instance for transitional soy proto support:
1106
+ * http://goto/soy-param-migration
1107
+ * @return {!Object}
1108
+ */
1109
+ proto.gateway.web.v1.GaugeThresholdSli.prototype.toObject = function(opt_includeInstance) {
1110
+ return proto.gateway.web.v1.GaugeThresholdSli.toObject(opt_includeInstance, this);
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Static version of the {@see toObject} method.
1116
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1117
+ * the JSPB instance for transitional soy proto support:
1118
+ * http://goto/soy-param-migration
1119
+ * @param {!proto.gateway.web.v1.GaugeThresholdSli} msg The msg instance to transform.
1120
+ * @return {!Object}
1121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1122
+ */
1123
+ proto.gateway.web.v1.GaugeThresholdSli.toObject = function(includeInstance, msg) {
1124
+ var f, obj = {
1125
+ comparator: jspb.Message.getFieldWithDefault(msg, 1, 0),
1126
+ threshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
1127
+ };
1128
+
1129
+ if (includeInstance) {
1130
+ obj.$jspbMessageInstance = msg;
1131
+ }
1132
+ return obj;
1133
+ };
1134
+ }
1135
+
1136
+
1137
+ /**
1138
+ * Deserializes binary data (in protobuf wire format).
1139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1140
+ * @return {!proto.gateway.web.v1.GaugeThresholdSli}
1141
+ */
1142
+ proto.gateway.web.v1.GaugeThresholdSli.deserializeBinary = function(bytes) {
1143
+ var reader = new jspb.BinaryReader(bytes);
1144
+ var msg = new proto.gateway.web.v1.GaugeThresholdSli;
1145
+ return proto.gateway.web.v1.GaugeThresholdSli.deserializeBinaryFromReader(msg, reader);
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * Deserializes binary data (in protobuf wire format) from the
1151
+ * given reader into the given message object.
1152
+ * @param {!proto.gateway.web.v1.GaugeThresholdSli} msg The message object to deserialize into.
1153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1154
+ * @return {!proto.gateway.web.v1.GaugeThresholdSli}
1155
+ */
1156
+ proto.gateway.web.v1.GaugeThresholdSli.deserializeBinaryFromReader = function(msg, reader) {
1157
+ while (reader.nextField()) {
1158
+ if (reader.isEndGroup()) {
1159
+ break;
1160
+ }
1161
+ var field = reader.getFieldNumber();
1162
+ switch (field) {
1163
+ case 1:
1164
+ var value = /** @type {!proto.gateway.web.v1.SloComparator} */ (reader.readEnum());
1165
+ msg.setComparator(value);
1166
+ break;
1167
+ case 2:
1168
+ var value = /** @type {number} */ (reader.readDouble());
1169
+ msg.setThreshold(value);
1170
+ break;
1171
+ default:
1172
+ reader.skipField();
1173
+ break;
1174
+ }
1175
+ }
1176
+ return msg;
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * Serializes the message to binary data (in protobuf wire format).
1182
+ * @return {!Uint8Array}
1183
+ */
1184
+ proto.gateway.web.v1.GaugeThresholdSli.prototype.serializeBinary = function() {
1185
+ var writer = new jspb.BinaryWriter();
1186
+ proto.gateway.web.v1.GaugeThresholdSli.serializeBinaryToWriter(this, writer);
1187
+ return writer.getResultBuffer();
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * Serializes the given message to binary data (in protobuf wire
1193
+ * format), writing to the given BinaryWriter.
1194
+ * @param {!proto.gateway.web.v1.GaugeThresholdSli} message
1195
+ * @param {!jspb.BinaryWriter} writer
1196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1197
+ */
1198
+ proto.gateway.web.v1.GaugeThresholdSli.serializeBinaryToWriter = function(message, writer) {
1199
+ var f = undefined;
1200
+ f = message.getComparator();
1201
+ if (f !== 0.0) {
1202
+ writer.writeEnum(
1203
+ 1,
1204
+ f
1205
+ );
1206
+ }
1207
+ f = message.getThreshold();
1208
+ if (f !== 0.0) {
1209
+ writer.writeDouble(
1210
+ 2,
1211
+ f
1212
+ );
1213
+ }
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * optional SloComparator comparator = 1;
1219
+ * @return {!proto.gateway.web.v1.SloComparator}
1220
+ */
1221
+ proto.gateway.web.v1.GaugeThresholdSli.prototype.getComparator = function() {
1222
+ return /** @type {!proto.gateway.web.v1.SloComparator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * @param {!proto.gateway.web.v1.SloComparator} value
1228
+ * @return {!proto.gateway.web.v1.GaugeThresholdSli} returns this
1229
+ */
1230
+ proto.gateway.web.v1.GaugeThresholdSli.prototype.setComparator = function(value) {
1231
+ return jspb.Message.setProto3EnumField(this, 1, value);
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * optional double threshold = 2;
1237
+ * @return {number}
1238
+ */
1239
+ proto.gateway.web.v1.GaugeThresholdSli.prototype.getThreshold = function() {
1240
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * @param {number} value
1246
+ * @return {!proto.gateway.web.v1.GaugeThresholdSli} returns this
1247
+ */
1248
+ proto.gateway.web.v1.GaugeThresholdSli.prototype.setThreshold = function(value) {
1249
+ return jspb.Message.setProto3FloatField(this, 2, value);
1250
+ };
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1257
+ /**
1258
+ * Creates an object representation of this proto.
1259
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1260
+ * Optional fields that are not set will be set to undefined.
1261
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1262
+ * For the list of reserved names please see:
1263
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1264
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1265
+ * JSPB instance for transitional soy proto support:
1266
+ * http://goto/soy-param-migration
1267
+ * @return {!Object}
1268
+ */
1269
+ proto.gateway.web.v1.CreateSloRequest.prototype.toObject = function(opt_includeInstance) {
1270
+ return proto.gateway.web.v1.CreateSloRequest.toObject(opt_includeInstance, this);
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * Static version of the {@see toObject} method.
1276
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1277
+ * the JSPB instance for transitional soy proto support:
1278
+ * http://goto/soy-param-migration
1279
+ * @param {!proto.gateway.web.v1.CreateSloRequest} msg The msg instance to transform.
1280
+ * @return {!Object}
1281
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1282
+ */
1283
+ proto.gateway.web.v1.CreateSloRequest.toObject = function(includeInstance, msg) {
1284
+ var f, obj = {
1285
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1286
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1287
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
1288
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
1289
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
1290
+ objective: (f = msg.getObjective()) && proto.gateway.web.v1.SloObjective.toObject(includeInstance, f)
1291
+ };
1292
+
1293
+ if (includeInstance) {
1294
+ obj.$jspbMessageInstance = msg;
1295
+ }
1296
+ return obj;
1297
+ };
1298
+ }
1299
+
1300
+
1301
+ /**
1302
+ * Deserializes binary data (in protobuf wire format).
1303
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1304
+ * @return {!proto.gateway.web.v1.CreateSloRequest}
1305
+ */
1306
+ proto.gateway.web.v1.CreateSloRequest.deserializeBinary = function(bytes) {
1307
+ var reader = new jspb.BinaryReader(bytes);
1308
+ var msg = new proto.gateway.web.v1.CreateSloRequest;
1309
+ return proto.gateway.web.v1.CreateSloRequest.deserializeBinaryFromReader(msg, reader);
1310
+ };
1311
+
1312
+
1313
+ /**
1314
+ * Deserializes binary data (in protobuf wire format) from the
1315
+ * given reader into the given message object.
1316
+ * @param {!proto.gateway.web.v1.CreateSloRequest} msg The message object to deserialize into.
1317
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1318
+ * @return {!proto.gateway.web.v1.CreateSloRequest}
1319
+ */
1320
+ proto.gateway.web.v1.CreateSloRequest.deserializeBinaryFromReader = function(msg, reader) {
1321
+ while (reader.nextField()) {
1322
+ if (reader.isEndGroup()) {
1323
+ break;
1324
+ }
1325
+ var field = reader.getFieldNumber();
1326
+ switch (field) {
1327
+ case 1:
1328
+ var value = /** @type {string} */ (reader.readString());
1329
+ msg.setOrganizationId(value);
1330
+ break;
1331
+ case 2:
1332
+ var value = /** @type {string} */ (reader.readString());
1333
+ msg.setProjectId(value);
1334
+ break;
1335
+ case 3:
1336
+ var value = /** @type {string} */ (reader.readString());
1337
+ msg.setName(value);
1338
+ break;
1339
+ case 4:
1340
+ var value = /** @type {string} */ (reader.readString());
1341
+ msg.setDescription(value);
1342
+ break;
1343
+ case 5:
1344
+ var value = /** @type {boolean} */ (reader.readBool());
1345
+ msg.setEnabled(value);
1346
+ break;
1347
+ case 6:
1348
+ var value = new proto.gateway.web.v1.SloObjective;
1349
+ reader.readMessage(value,proto.gateway.web.v1.SloObjective.deserializeBinaryFromReader);
1350
+ msg.setObjective(value);
1351
+ break;
1352
+ default:
1353
+ reader.skipField();
1354
+ break;
1355
+ }
1356
+ }
1357
+ return msg;
1358
+ };
1359
+
1360
+
1361
+ /**
1362
+ * Serializes the message to binary data (in protobuf wire format).
1363
+ * @return {!Uint8Array}
1364
+ */
1365
+ proto.gateway.web.v1.CreateSloRequest.prototype.serializeBinary = function() {
1366
+ var writer = new jspb.BinaryWriter();
1367
+ proto.gateway.web.v1.CreateSloRequest.serializeBinaryToWriter(this, writer);
1368
+ return writer.getResultBuffer();
1369
+ };
1370
+
1371
+
1372
+ /**
1373
+ * Serializes the given message to binary data (in protobuf wire
1374
+ * format), writing to the given BinaryWriter.
1375
+ * @param {!proto.gateway.web.v1.CreateSloRequest} message
1376
+ * @param {!jspb.BinaryWriter} writer
1377
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1378
+ */
1379
+ proto.gateway.web.v1.CreateSloRequest.serializeBinaryToWriter = function(message, writer) {
1380
+ var f = undefined;
1381
+ f = message.getOrganizationId();
1382
+ if (f.length > 0) {
1383
+ writer.writeString(
1384
+ 1,
1385
+ f
1386
+ );
1387
+ }
1388
+ f = message.getProjectId();
1389
+ if (f.length > 0) {
1390
+ writer.writeString(
1391
+ 2,
1392
+ f
1393
+ );
1394
+ }
1395
+ f = message.getName();
1396
+ if (f.length > 0) {
1397
+ writer.writeString(
1398
+ 3,
1399
+ f
1400
+ );
1401
+ }
1402
+ f = message.getDescription();
1403
+ if (f.length > 0) {
1404
+ writer.writeString(
1405
+ 4,
1406
+ f
1407
+ );
1408
+ }
1409
+ f = message.getEnabled();
1410
+ if (f) {
1411
+ writer.writeBool(
1412
+ 5,
1413
+ f
1414
+ );
1415
+ }
1416
+ f = message.getObjective();
1417
+ if (f != null) {
1418
+ writer.writeMessage(
1419
+ 6,
1420
+ f,
1421
+ proto.gateway.web.v1.SloObjective.serializeBinaryToWriter
1422
+ );
1423
+ }
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * optional string organization_id = 1;
1429
+ * @return {string}
1430
+ */
1431
+ proto.gateway.web.v1.CreateSloRequest.prototype.getOrganizationId = function() {
1432
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1433
+ };
1434
+
1435
+
1436
+ /**
1437
+ * @param {string} value
1438
+ * @return {!proto.gateway.web.v1.CreateSloRequest} returns this
1439
+ */
1440
+ proto.gateway.web.v1.CreateSloRequest.prototype.setOrganizationId = function(value) {
1441
+ return jspb.Message.setProto3StringField(this, 1, value);
1442
+ };
1443
+
1444
+
1445
+ /**
1446
+ * optional string project_id = 2;
1447
+ * @return {string}
1448
+ */
1449
+ proto.gateway.web.v1.CreateSloRequest.prototype.getProjectId = function() {
1450
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1451
+ };
1452
+
1453
+
1454
+ /**
1455
+ * @param {string} value
1456
+ * @return {!proto.gateway.web.v1.CreateSloRequest} returns this
1457
+ */
1458
+ proto.gateway.web.v1.CreateSloRequest.prototype.setProjectId = function(value) {
1459
+ return jspb.Message.setProto3StringField(this, 2, value);
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * optional string name = 3;
1465
+ * @return {string}
1466
+ */
1467
+ proto.gateway.web.v1.CreateSloRequest.prototype.getName = function() {
1468
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1469
+ };
1470
+
1471
+
1472
+ /**
1473
+ * @param {string} value
1474
+ * @return {!proto.gateway.web.v1.CreateSloRequest} returns this
1475
+ */
1476
+ proto.gateway.web.v1.CreateSloRequest.prototype.setName = function(value) {
1477
+ return jspb.Message.setProto3StringField(this, 3, value);
1478
+ };
1479
+
1480
+
1481
+ /**
1482
+ * optional string description = 4;
1483
+ * @return {string}
1484
+ */
1485
+ proto.gateway.web.v1.CreateSloRequest.prototype.getDescription = function() {
1486
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1487
+ };
1488
+
1489
+
1490
+ /**
1491
+ * @param {string} value
1492
+ * @return {!proto.gateway.web.v1.CreateSloRequest} returns this
1493
+ */
1494
+ proto.gateway.web.v1.CreateSloRequest.prototype.setDescription = function(value) {
1495
+ return jspb.Message.setProto3StringField(this, 4, value);
1496
+ };
1497
+
1498
+
1499
+ /**
1500
+ * optional bool enabled = 5;
1501
+ * @return {boolean}
1502
+ */
1503
+ proto.gateway.web.v1.CreateSloRequest.prototype.getEnabled = function() {
1504
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
1505
+ };
1506
+
1507
+
1508
+ /**
1509
+ * @param {boolean} value
1510
+ * @return {!proto.gateway.web.v1.CreateSloRequest} returns this
1511
+ */
1512
+ proto.gateway.web.v1.CreateSloRequest.prototype.setEnabled = function(value) {
1513
+ return jspb.Message.setProto3BooleanField(this, 5, value);
1514
+ };
1515
+
1516
+
1517
+ /**
1518
+ * optional SloObjective objective = 6;
1519
+ * @return {?proto.gateway.web.v1.SloObjective}
1520
+ */
1521
+ proto.gateway.web.v1.CreateSloRequest.prototype.getObjective = function() {
1522
+ return /** @type{?proto.gateway.web.v1.SloObjective} */ (
1523
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloObjective, 6));
1524
+ };
1525
+
1526
+
1527
+ /**
1528
+ * @param {?proto.gateway.web.v1.SloObjective|undefined} value
1529
+ * @return {!proto.gateway.web.v1.CreateSloRequest} returns this
1530
+ */
1531
+ proto.gateway.web.v1.CreateSloRequest.prototype.setObjective = function(value) {
1532
+ return jspb.Message.setWrapperField(this, 6, value);
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * Clears the message field making it undefined.
1538
+ * @return {!proto.gateway.web.v1.CreateSloRequest} returns this
1539
+ */
1540
+ proto.gateway.web.v1.CreateSloRequest.prototype.clearObjective = function() {
1541
+ return this.setObjective(undefined);
1542
+ };
1543
+
1544
+
1545
+ /**
1546
+ * Returns whether this field is set.
1547
+ * @return {boolean}
1548
+ */
1549
+ proto.gateway.web.v1.CreateSloRequest.prototype.hasObjective = function() {
1550
+ return jspb.Message.getField(this, 6) != null;
1551
+ };
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1558
+ /**
1559
+ * Creates an object representation of this proto.
1560
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1561
+ * Optional fields that are not set will be set to undefined.
1562
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1563
+ * For the list of reserved names please see:
1564
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1565
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1566
+ * JSPB instance for transitional soy proto support:
1567
+ * http://goto/soy-param-migration
1568
+ * @return {!Object}
1569
+ */
1570
+ proto.gateway.web.v1.CreateSloResponse.prototype.toObject = function(opt_includeInstance) {
1571
+ return proto.gateway.web.v1.CreateSloResponse.toObject(opt_includeInstance, this);
1572
+ };
1573
+
1574
+
1575
+ /**
1576
+ * Static version of the {@see toObject} method.
1577
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1578
+ * the JSPB instance for transitional soy proto support:
1579
+ * http://goto/soy-param-migration
1580
+ * @param {!proto.gateway.web.v1.CreateSloResponse} msg The msg instance to transform.
1581
+ * @return {!Object}
1582
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1583
+ */
1584
+ proto.gateway.web.v1.CreateSloResponse.toObject = function(includeInstance, msg) {
1585
+ var f, obj = {
1586
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1587
+ slo: (f = msg.getSlo()) && proto.gateway.web.v1.Slo.toObject(includeInstance, f)
1588
+ };
1589
+
1590
+ if (includeInstance) {
1591
+ obj.$jspbMessageInstance = msg;
1592
+ }
1593
+ return obj;
1594
+ };
1595
+ }
1596
+
1597
+
1598
+ /**
1599
+ * Deserializes binary data (in protobuf wire format).
1600
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1601
+ * @return {!proto.gateway.web.v1.CreateSloResponse}
1602
+ */
1603
+ proto.gateway.web.v1.CreateSloResponse.deserializeBinary = function(bytes) {
1604
+ var reader = new jspb.BinaryReader(bytes);
1605
+ var msg = new proto.gateway.web.v1.CreateSloResponse;
1606
+ return proto.gateway.web.v1.CreateSloResponse.deserializeBinaryFromReader(msg, reader);
1607
+ };
1608
+
1609
+
1610
+ /**
1611
+ * Deserializes binary data (in protobuf wire format) from the
1612
+ * given reader into the given message object.
1613
+ * @param {!proto.gateway.web.v1.CreateSloResponse} msg The message object to deserialize into.
1614
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1615
+ * @return {!proto.gateway.web.v1.CreateSloResponse}
1616
+ */
1617
+ proto.gateway.web.v1.CreateSloResponse.deserializeBinaryFromReader = function(msg, reader) {
1618
+ while (reader.nextField()) {
1619
+ if (reader.isEndGroup()) {
1620
+ break;
1621
+ }
1622
+ var field = reader.getFieldNumber();
1623
+ switch (field) {
1624
+ case 1:
1625
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1626
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1627
+ msg.setStatus(value);
1628
+ break;
1629
+ case 2:
1630
+ var value = new proto.gateway.web.v1.Slo;
1631
+ reader.readMessage(value,proto.gateway.web.v1.Slo.deserializeBinaryFromReader);
1632
+ msg.setSlo(value);
1633
+ break;
1634
+ default:
1635
+ reader.skipField();
1636
+ break;
1637
+ }
1638
+ }
1639
+ return msg;
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * Serializes the message to binary data (in protobuf wire format).
1645
+ * @return {!Uint8Array}
1646
+ */
1647
+ proto.gateway.web.v1.CreateSloResponse.prototype.serializeBinary = function() {
1648
+ var writer = new jspb.BinaryWriter();
1649
+ proto.gateway.web.v1.CreateSloResponse.serializeBinaryToWriter(this, writer);
1650
+ return writer.getResultBuffer();
1651
+ };
1652
+
1653
+
1654
+ /**
1655
+ * Serializes the given message to binary data (in protobuf wire
1656
+ * format), writing to the given BinaryWriter.
1657
+ * @param {!proto.gateway.web.v1.CreateSloResponse} message
1658
+ * @param {!jspb.BinaryWriter} writer
1659
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1660
+ */
1661
+ proto.gateway.web.v1.CreateSloResponse.serializeBinaryToWriter = function(message, writer) {
1662
+ var f = undefined;
1663
+ f = message.getStatus();
1664
+ if (f != null) {
1665
+ writer.writeMessage(
1666
+ 1,
1667
+ f,
1668
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1669
+ );
1670
+ }
1671
+ f = message.getSlo();
1672
+ if (f != null) {
1673
+ writer.writeMessage(
1674
+ 2,
1675
+ f,
1676
+ proto.gateway.web.v1.Slo.serializeBinaryToWriter
1677
+ );
1678
+ }
1679
+ };
1680
+
1681
+
1682
+ /**
1683
+ * optional gateway.common.v1.ResponseStatus status = 1;
1684
+ * @return {?proto.gateway.common.v1.ResponseStatus}
1685
+ */
1686
+ proto.gateway.web.v1.CreateSloResponse.prototype.getStatus = function() {
1687
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1688
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1689
+ };
1690
+
1691
+
1692
+ /**
1693
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1694
+ * @return {!proto.gateway.web.v1.CreateSloResponse} returns this
1695
+ */
1696
+ proto.gateway.web.v1.CreateSloResponse.prototype.setStatus = function(value) {
1697
+ return jspb.Message.setWrapperField(this, 1, value);
1698
+ };
1699
+
1700
+
1701
+ /**
1702
+ * Clears the message field making it undefined.
1703
+ * @return {!proto.gateway.web.v1.CreateSloResponse} returns this
1704
+ */
1705
+ proto.gateway.web.v1.CreateSloResponse.prototype.clearStatus = function() {
1706
+ return this.setStatus(undefined);
1707
+ };
1708
+
1709
+
1710
+ /**
1711
+ * Returns whether this field is set.
1712
+ * @return {boolean}
1713
+ */
1714
+ proto.gateway.web.v1.CreateSloResponse.prototype.hasStatus = function() {
1715
+ return jspb.Message.getField(this, 1) != null;
1716
+ };
1717
+
1718
+
1719
+ /**
1720
+ * optional Slo slo = 2;
1721
+ * @return {?proto.gateway.web.v1.Slo}
1722
+ */
1723
+ proto.gateway.web.v1.CreateSloResponse.prototype.getSlo = function() {
1724
+ return /** @type{?proto.gateway.web.v1.Slo} */ (
1725
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Slo, 2));
1726
+ };
1727
+
1728
+
1729
+ /**
1730
+ * @param {?proto.gateway.web.v1.Slo|undefined} value
1731
+ * @return {!proto.gateway.web.v1.CreateSloResponse} returns this
1732
+ */
1733
+ proto.gateway.web.v1.CreateSloResponse.prototype.setSlo = function(value) {
1734
+ return jspb.Message.setWrapperField(this, 2, value);
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * Clears the message field making it undefined.
1740
+ * @return {!proto.gateway.web.v1.CreateSloResponse} returns this
1741
+ */
1742
+ proto.gateway.web.v1.CreateSloResponse.prototype.clearSlo = function() {
1743
+ return this.setSlo(undefined);
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * Returns whether this field is set.
1749
+ * @return {boolean}
1750
+ */
1751
+ proto.gateway.web.v1.CreateSloResponse.prototype.hasSlo = function() {
1752
+ return jspb.Message.getField(this, 2) != null;
1753
+ };
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1760
+ /**
1761
+ * Creates an object representation of this proto.
1762
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1763
+ * Optional fields that are not set will be set to undefined.
1764
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1765
+ * For the list of reserved names please see:
1766
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1767
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1768
+ * JSPB instance for transitional soy proto support:
1769
+ * http://goto/soy-param-migration
1770
+ * @return {!Object}
1771
+ */
1772
+ proto.gateway.web.v1.GetSloRequest.prototype.toObject = function(opt_includeInstance) {
1773
+ return proto.gateway.web.v1.GetSloRequest.toObject(opt_includeInstance, this);
1774
+ };
1775
+
1776
+
1777
+ /**
1778
+ * Static version of the {@see toObject} method.
1779
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1780
+ * the JSPB instance for transitional soy proto support:
1781
+ * http://goto/soy-param-migration
1782
+ * @param {!proto.gateway.web.v1.GetSloRequest} msg The msg instance to transform.
1783
+ * @return {!Object}
1784
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1785
+ */
1786
+ proto.gateway.web.v1.GetSloRequest.toObject = function(includeInstance, msg) {
1787
+ var f, obj = {
1788
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1789
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1790
+ sloId: jspb.Message.getFieldWithDefault(msg, 3, "")
1791
+ };
1792
+
1793
+ if (includeInstance) {
1794
+ obj.$jspbMessageInstance = msg;
1795
+ }
1796
+ return obj;
1797
+ };
1798
+ }
1799
+
1800
+
1801
+ /**
1802
+ * Deserializes binary data (in protobuf wire format).
1803
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1804
+ * @return {!proto.gateway.web.v1.GetSloRequest}
1805
+ */
1806
+ proto.gateway.web.v1.GetSloRequest.deserializeBinary = function(bytes) {
1807
+ var reader = new jspb.BinaryReader(bytes);
1808
+ var msg = new proto.gateway.web.v1.GetSloRequest;
1809
+ return proto.gateway.web.v1.GetSloRequest.deserializeBinaryFromReader(msg, reader);
1810
+ };
1811
+
1812
+
1813
+ /**
1814
+ * Deserializes binary data (in protobuf wire format) from the
1815
+ * given reader into the given message object.
1816
+ * @param {!proto.gateway.web.v1.GetSloRequest} msg The message object to deserialize into.
1817
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1818
+ * @return {!proto.gateway.web.v1.GetSloRequest}
1819
+ */
1820
+ proto.gateway.web.v1.GetSloRequest.deserializeBinaryFromReader = function(msg, reader) {
1821
+ while (reader.nextField()) {
1822
+ if (reader.isEndGroup()) {
1823
+ break;
1824
+ }
1825
+ var field = reader.getFieldNumber();
1826
+ switch (field) {
1827
+ case 1:
1828
+ var value = /** @type {string} */ (reader.readString());
1829
+ msg.setOrganizationId(value);
1830
+ break;
1831
+ case 2:
1832
+ var value = /** @type {string} */ (reader.readString());
1833
+ msg.setProjectId(value);
1834
+ break;
1835
+ case 3:
1836
+ var value = /** @type {string} */ (reader.readString());
1837
+ msg.setSloId(value);
1838
+ break;
1839
+ default:
1840
+ reader.skipField();
1841
+ break;
1842
+ }
1843
+ }
1844
+ return msg;
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * Serializes the message to binary data (in protobuf wire format).
1850
+ * @return {!Uint8Array}
1851
+ */
1852
+ proto.gateway.web.v1.GetSloRequest.prototype.serializeBinary = function() {
1853
+ var writer = new jspb.BinaryWriter();
1854
+ proto.gateway.web.v1.GetSloRequest.serializeBinaryToWriter(this, writer);
1855
+ return writer.getResultBuffer();
1856
+ };
1857
+
1858
+
1859
+ /**
1860
+ * Serializes the given message to binary data (in protobuf wire
1861
+ * format), writing to the given BinaryWriter.
1862
+ * @param {!proto.gateway.web.v1.GetSloRequest} message
1863
+ * @param {!jspb.BinaryWriter} writer
1864
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1865
+ */
1866
+ proto.gateway.web.v1.GetSloRequest.serializeBinaryToWriter = function(message, writer) {
1867
+ var f = undefined;
1868
+ f = message.getOrganizationId();
1869
+ if (f.length > 0) {
1870
+ writer.writeString(
1871
+ 1,
1872
+ f
1873
+ );
1874
+ }
1875
+ f = message.getProjectId();
1876
+ if (f.length > 0) {
1877
+ writer.writeString(
1878
+ 2,
1879
+ f
1880
+ );
1881
+ }
1882
+ f = message.getSloId();
1883
+ if (f.length > 0) {
1884
+ writer.writeString(
1885
+ 3,
1886
+ f
1887
+ );
1888
+ }
1889
+ };
1890
+
1891
+
1892
+ /**
1893
+ * optional string organization_id = 1;
1894
+ * @return {string}
1895
+ */
1896
+ proto.gateway.web.v1.GetSloRequest.prototype.getOrganizationId = function() {
1897
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1898
+ };
1899
+
1900
+
1901
+ /**
1902
+ * @param {string} value
1903
+ * @return {!proto.gateway.web.v1.GetSloRequest} returns this
1904
+ */
1905
+ proto.gateway.web.v1.GetSloRequest.prototype.setOrganizationId = function(value) {
1906
+ return jspb.Message.setProto3StringField(this, 1, value);
1907
+ };
1908
+
1909
+
1910
+ /**
1911
+ * optional string project_id = 2;
1912
+ * @return {string}
1913
+ */
1914
+ proto.gateway.web.v1.GetSloRequest.prototype.getProjectId = function() {
1915
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1916
+ };
1917
+
1918
+
1919
+ /**
1920
+ * @param {string} value
1921
+ * @return {!proto.gateway.web.v1.GetSloRequest} returns this
1922
+ */
1923
+ proto.gateway.web.v1.GetSloRequest.prototype.setProjectId = function(value) {
1924
+ return jspb.Message.setProto3StringField(this, 2, value);
1925
+ };
1926
+
1927
+
1928
+ /**
1929
+ * optional string slo_id = 3;
1930
+ * @return {string}
1931
+ */
1932
+ proto.gateway.web.v1.GetSloRequest.prototype.getSloId = function() {
1933
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * @param {string} value
1939
+ * @return {!proto.gateway.web.v1.GetSloRequest} returns this
1940
+ */
1941
+ proto.gateway.web.v1.GetSloRequest.prototype.setSloId = function(value) {
1942
+ return jspb.Message.setProto3StringField(this, 3, value);
1943
+ };
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1950
+ /**
1951
+ * Creates an object representation of this proto.
1952
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1953
+ * Optional fields that are not set will be set to undefined.
1954
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1955
+ * For the list of reserved names please see:
1956
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1957
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1958
+ * JSPB instance for transitional soy proto support:
1959
+ * http://goto/soy-param-migration
1960
+ * @return {!Object}
1961
+ */
1962
+ proto.gateway.web.v1.GetSloResponse.prototype.toObject = function(opt_includeInstance) {
1963
+ return proto.gateway.web.v1.GetSloResponse.toObject(opt_includeInstance, this);
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * Static version of the {@see toObject} method.
1969
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1970
+ * the JSPB instance for transitional soy proto support:
1971
+ * http://goto/soy-param-migration
1972
+ * @param {!proto.gateway.web.v1.GetSloResponse} msg The msg instance to transform.
1973
+ * @return {!Object}
1974
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1975
+ */
1976
+ proto.gateway.web.v1.GetSloResponse.toObject = function(includeInstance, msg) {
1977
+ var f, obj = {
1978
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1979
+ slo: (f = msg.getSlo()) && proto.gateway.web.v1.Slo.toObject(includeInstance, f)
1980
+ };
1981
+
1982
+ if (includeInstance) {
1983
+ obj.$jspbMessageInstance = msg;
1984
+ }
1985
+ return obj;
1986
+ };
1987
+ }
1988
+
1989
+
1990
+ /**
1991
+ * Deserializes binary data (in protobuf wire format).
1992
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1993
+ * @return {!proto.gateway.web.v1.GetSloResponse}
1994
+ */
1995
+ proto.gateway.web.v1.GetSloResponse.deserializeBinary = function(bytes) {
1996
+ var reader = new jspb.BinaryReader(bytes);
1997
+ var msg = new proto.gateway.web.v1.GetSloResponse;
1998
+ return proto.gateway.web.v1.GetSloResponse.deserializeBinaryFromReader(msg, reader);
1999
+ };
2000
+
2001
+
2002
+ /**
2003
+ * Deserializes binary data (in protobuf wire format) from the
2004
+ * given reader into the given message object.
2005
+ * @param {!proto.gateway.web.v1.GetSloResponse} msg The message object to deserialize into.
2006
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2007
+ * @return {!proto.gateway.web.v1.GetSloResponse}
2008
+ */
2009
+ proto.gateway.web.v1.GetSloResponse.deserializeBinaryFromReader = function(msg, reader) {
2010
+ while (reader.nextField()) {
2011
+ if (reader.isEndGroup()) {
2012
+ break;
2013
+ }
2014
+ var field = reader.getFieldNumber();
2015
+ switch (field) {
2016
+ case 1:
2017
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
2018
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2019
+ msg.setStatus(value);
2020
+ break;
2021
+ case 2:
2022
+ var value = new proto.gateway.web.v1.Slo;
2023
+ reader.readMessage(value,proto.gateway.web.v1.Slo.deserializeBinaryFromReader);
2024
+ msg.setSlo(value);
2025
+ break;
2026
+ default:
2027
+ reader.skipField();
2028
+ break;
2029
+ }
2030
+ }
2031
+ return msg;
2032
+ };
2033
+
2034
+
2035
+ /**
2036
+ * Serializes the message to binary data (in protobuf wire format).
2037
+ * @return {!Uint8Array}
2038
+ */
2039
+ proto.gateway.web.v1.GetSloResponse.prototype.serializeBinary = function() {
2040
+ var writer = new jspb.BinaryWriter();
2041
+ proto.gateway.web.v1.GetSloResponse.serializeBinaryToWriter(this, writer);
2042
+ return writer.getResultBuffer();
2043
+ };
2044
+
2045
+
2046
+ /**
2047
+ * Serializes the given message to binary data (in protobuf wire
2048
+ * format), writing to the given BinaryWriter.
2049
+ * @param {!proto.gateway.web.v1.GetSloResponse} message
2050
+ * @param {!jspb.BinaryWriter} writer
2051
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2052
+ */
2053
+ proto.gateway.web.v1.GetSloResponse.serializeBinaryToWriter = function(message, writer) {
2054
+ var f = undefined;
2055
+ f = message.getStatus();
2056
+ if (f != null) {
2057
+ writer.writeMessage(
2058
+ 1,
2059
+ f,
2060
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2061
+ );
2062
+ }
2063
+ f = message.getSlo();
2064
+ if (f != null) {
2065
+ writer.writeMessage(
2066
+ 2,
2067
+ f,
2068
+ proto.gateway.web.v1.Slo.serializeBinaryToWriter
2069
+ );
2070
+ }
2071
+ };
2072
+
2073
+
2074
+ /**
2075
+ * optional gateway.common.v1.ResponseStatus status = 1;
2076
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2077
+ */
2078
+ proto.gateway.web.v1.GetSloResponse.prototype.getStatus = function() {
2079
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2080
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2081
+ };
2082
+
2083
+
2084
+ /**
2085
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2086
+ * @return {!proto.gateway.web.v1.GetSloResponse} returns this
2087
+ */
2088
+ proto.gateway.web.v1.GetSloResponse.prototype.setStatus = function(value) {
2089
+ return jspb.Message.setWrapperField(this, 1, value);
2090
+ };
2091
+
2092
+
2093
+ /**
2094
+ * Clears the message field making it undefined.
2095
+ * @return {!proto.gateway.web.v1.GetSloResponse} returns this
2096
+ */
2097
+ proto.gateway.web.v1.GetSloResponse.prototype.clearStatus = function() {
2098
+ return this.setStatus(undefined);
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Returns whether this field is set.
2104
+ * @return {boolean}
2105
+ */
2106
+ proto.gateway.web.v1.GetSloResponse.prototype.hasStatus = function() {
2107
+ return jspb.Message.getField(this, 1) != null;
2108
+ };
2109
+
2110
+
2111
+ /**
2112
+ * optional Slo slo = 2;
2113
+ * @return {?proto.gateway.web.v1.Slo}
2114
+ */
2115
+ proto.gateway.web.v1.GetSloResponse.prototype.getSlo = function() {
2116
+ return /** @type{?proto.gateway.web.v1.Slo} */ (
2117
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Slo, 2));
2118
+ };
2119
+
2120
+
2121
+ /**
2122
+ * @param {?proto.gateway.web.v1.Slo|undefined} value
2123
+ * @return {!proto.gateway.web.v1.GetSloResponse} returns this
2124
+ */
2125
+ proto.gateway.web.v1.GetSloResponse.prototype.setSlo = function(value) {
2126
+ return jspb.Message.setWrapperField(this, 2, value);
2127
+ };
2128
+
2129
+
2130
+ /**
2131
+ * Clears the message field making it undefined.
2132
+ * @return {!proto.gateway.web.v1.GetSloResponse} returns this
2133
+ */
2134
+ proto.gateway.web.v1.GetSloResponse.prototype.clearSlo = function() {
2135
+ return this.setSlo(undefined);
2136
+ };
2137
+
2138
+
2139
+ /**
2140
+ * Returns whether this field is set.
2141
+ * @return {boolean}
2142
+ */
2143
+ proto.gateway.web.v1.GetSloResponse.prototype.hasSlo = function() {
2144
+ return jspb.Message.getField(this, 2) != null;
2145
+ };
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2152
+ /**
2153
+ * Creates an object representation of this proto.
2154
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2155
+ * Optional fields that are not set will be set to undefined.
2156
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2157
+ * For the list of reserved names please see:
2158
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2159
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2160
+ * JSPB instance for transitional soy proto support:
2161
+ * http://goto/soy-param-migration
2162
+ * @return {!Object}
2163
+ */
2164
+ proto.gateway.web.v1.ListSlosRequest.prototype.toObject = function(opt_includeInstance) {
2165
+ return proto.gateway.web.v1.ListSlosRequest.toObject(opt_includeInstance, this);
2166
+ };
2167
+
2168
+
2169
+ /**
2170
+ * Static version of the {@see toObject} method.
2171
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2172
+ * the JSPB instance for transitional soy proto support:
2173
+ * http://goto/soy-param-migration
2174
+ * @param {!proto.gateway.web.v1.ListSlosRequest} msg The msg instance to transform.
2175
+ * @return {!Object}
2176
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2177
+ */
2178
+ proto.gateway.web.v1.ListSlosRequest.toObject = function(includeInstance, msg) {
2179
+ var f, obj = {
2180
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2181
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
2182
+ };
2183
+
2184
+ if (includeInstance) {
2185
+ obj.$jspbMessageInstance = msg;
2186
+ }
2187
+ return obj;
2188
+ };
2189
+ }
2190
+
2191
+
2192
+ /**
2193
+ * Deserializes binary data (in protobuf wire format).
2194
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2195
+ * @return {!proto.gateway.web.v1.ListSlosRequest}
2196
+ */
2197
+ proto.gateway.web.v1.ListSlosRequest.deserializeBinary = function(bytes) {
2198
+ var reader = new jspb.BinaryReader(bytes);
2199
+ var msg = new proto.gateway.web.v1.ListSlosRequest;
2200
+ return proto.gateway.web.v1.ListSlosRequest.deserializeBinaryFromReader(msg, reader);
2201
+ };
2202
+
2203
+
2204
+ /**
2205
+ * Deserializes binary data (in protobuf wire format) from the
2206
+ * given reader into the given message object.
2207
+ * @param {!proto.gateway.web.v1.ListSlosRequest} msg The message object to deserialize into.
2208
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2209
+ * @return {!proto.gateway.web.v1.ListSlosRequest}
2210
+ */
2211
+ proto.gateway.web.v1.ListSlosRequest.deserializeBinaryFromReader = function(msg, reader) {
2212
+ while (reader.nextField()) {
2213
+ if (reader.isEndGroup()) {
2214
+ break;
2215
+ }
2216
+ var field = reader.getFieldNumber();
2217
+ switch (field) {
2218
+ case 1:
2219
+ var value = /** @type {string} */ (reader.readString());
2220
+ msg.setOrganizationId(value);
2221
+ break;
2222
+ case 2:
2223
+ var value = /** @type {string} */ (reader.readString());
2224
+ msg.setProjectId(value);
2225
+ break;
2226
+ default:
2227
+ reader.skipField();
2228
+ break;
2229
+ }
2230
+ }
2231
+ return msg;
2232
+ };
2233
+
2234
+
2235
+ /**
2236
+ * Serializes the message to binary data (in protobuf wire format).
2237
+ * @return {!Uint8Array}
2238
+ */
2239
+ proto.gateway.web.v1.ListSlosRequest.prototype.serializeBinary = function() {
2240
+ var writer = new jspb.BinaryWriter();
2241
+ proto.gateway.web.v1.ListSlosRequest.serializeBinaryToWriter(this, writer);
2242
+ return writer.getResultBuffer();
2243
+ };
2244
+
2245
+
2246
+ /**
2247
+ * Serializes the given message to binary data (in protobuf wire
2248
+ * format), writing to the given BinaryWriter.
2249
+ * @param {!proto.gateway.web.v1.ListSlosRequest} message
2250
+ * @param {!jspb.BinaryWriter} writer
2251
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2252
+ */
2253
+ proto.gateway.web.v1.ListSlosRequest.serializeBinaryToWriter = function(message, writer) {
2254
+ var f = undefined;
2255
+ f = message.getOrganizationId();
2256
+ if (f.length > 0) {
2257
+ writer.writeString(
2258
+ 1,
2259
+ f
2260
+ );
2261
+ }
2262
+ f = message.getProjectId();
2263
+ if (f.length > 0) {
2264
+ writer.writeString(
2265
+ 2,
2266
+ f
2267
+ );
2268
+ }
2269
+ };
2270
+
2271
+
2272
+ /**
2273
+ * optional string organization_id = 1;
2274
+ * @return {string}
2275
+ */
2276
+ proto.gateway.web.v1.ListSlosRequest.prototype.getOrganizationId = function() {
2277
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * @param {string} value
2283
+ * @return {!proto.gateway.web.v1.ListSlosRequest} returns this
2284
+ */
2285
+ proto.gateway.web.v1.ListSlosRequest.prototype.setOrganizationId = function(value) {
2286
+ return jspb.Message.setProto3StringField(this, 1, value);
2287
+ };
2288
+
2289
+
2290
+ /**
2291
+ * optional string project_id = 2;
2292
+ * @return {string}
2293
+ */
2294
+ proto.gateway.web.v1.ListSlosRequest.prototype.getProjectId = function() {
2295
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2296
+ };
2297
+
2298
+
2299
+ /**
2300
+ * @param {string} value
2301
+ * @return {!proto.gateway.web.v1.ListSlosRequest} returns this
2302
+ */
2303
+ proto.gateway.web.v1.ListSlosRequest.prototype.setProjectId = function(value) {
2304
+ return jspb.Message.setProto3StringField(this, 2, value);
2305
+ };
2306
+
2307
+
2308
+
2309
+ /**
2310
+ * List of repeated fields within this message type.
2311
+ * @private {!Array<number>}
2312
+ * @const
2313
+ */
2314
+ proto.gateway.web.v1.ListSlosResponse.repeatedFields_ = [2];
2315
+
2316
+
2317
+
2318
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2319
+ /**
2320
+ * Creates an object representation of this proto.
2321
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2322
+ * Optional fields that are not set will be set to undefined.
2323
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2324
+ * For the list of reserved names please see:
2325
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2326
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2327
+ * JSPB instance for transitional soy proto support:
2328
+ * http://goto/soy-param-migration
2329
+ * @return {!Object}
2330
+ */
2331
+ proto.gateway.web.v1.ListSlosResponse.prototype.toObject = function(opt_includeInstance) {
2332
+ return proto.gateway.web.v1.ListSlosResponse.toObject(opt_includeInstance, this);
2333
+ };
2334
+
2335
+
2336
+ /**
2337
+ * Static version of the {@see toObject} method.
2338
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2339
+ * the JSPB instance for transitional soy proto support:
2340
+ * http://goto/soy-param-migration
2341
+ * @param {!proto.gateway.web.v1.ListSlosResponse} msg The msg instance to transform.
2342
+ * @return {!Object}
2343
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2344
+ */
2345
+ proto.gateway.web.v1.ListSlosResponse.toObject = function(includeInstance, msg) {
2346
+ var f, obj = {
2347
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
2348
+ slosList: jspb.Message.toObjectList(msg.getSlosList(),
2349
+ proto.gateway.web.v1.Slo.toObject, includeInstance)
2350
+ };
2351
+
2352
+ if (includeInstance) {
2353
+ obj.$jspbMessageInstance = msg;
2354
+ }
2355
+ return obj;
2356
+ };
2357
+ }
2358
+
2359
+
2360
+ /**
2361
+ * Deserializes binary data (in protobuf wire format).
2362
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2363
+ * @return {!proto.gateway.web.v1.ListSlosResponse}
2364
+ */
2365
+ proto.gateway.web.v1.ListSlosResponse.deserializeBinary = function(bytes) {
2366
+ var reader = new jspb.BinaryReader(bytes);
2367
+ var msg = new proto.gateway.web.v1.ListSlosResponse;
2368
+ return proto.gateway.web.v1.ListSlosResponse.deserializeBinaryFromReader(msg, reader);
2369
+ };
2370
+
2371
+
2372
+ /**
2373
+ * Deserializes binary data (in protobuf wire format) from the
2374
+ * given reader into the given message object.
2375
+ * @param {!proto.gateway.web.v1.ListSlosResponse} msg The message object to deserialize into.
2376
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2377
+ * @return {!proto.gateway.web.v1.ListSlosResponse}
2378
+ */
2379
+ proto.gateway.web.v1.ListSlosResponse.deserializeBinaryFromReader = function(msg, reader) {
2380
+ while (reader.nextField()) {
2381
+ if (reader.isEndGroup()) {
2382
+ break;
2383
+ }
2384
+ var field = reader.getFieldNumber();
2385
+ switch (field) {
2386
+ case 1:
2387
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
2388
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
2389
+ msg.setStatus(value);
2390
+ break;
2391
+ case 2:
2392
+ var value = new proto.gateway.web.v1.Slo;
2393
+ reader.readMessage(value,proto.gateway.web.v1.Slo.deserializeBinaryFromReader);
2394
+ msg.addSlos(value);
2395
+ break;
2396
+ default:
2397
+ reader.skipField();
2398
+ break;
2399
+ }
2400
+ }
2401
+ return msg;
2402
+ };
2403
+
2404
+
2405
+ /**
2406
+ * Serializes the message to binary data (in protobuf wire format).
2407
+ * @return {!Uint8Array}
2408
+ */
2409
+ proto.gateway.web.v1.ListSlosResponse.prototype.serializeBinary = function() {
2410
+ var writer = new jspb.BinaryWriter();
2411
+ proto.gateway.web.v1.ListSlosResponse.serializeBinaryToWriter(this, writer);
2412
+ return writer.getResultBuffer();
2413
+ };
2414
+
2415
+
2416
+ /**
2417
+ * Serializes the given message to binary data (in protobuf wire
2418
+ * format), writing to the given BinaryWriter.
2419
+ * @param {!proto.gateway.web.v1.ListSlosResponse} message
2420
+ * @param {!jspb.BinaryWriter} writer
2421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2422
+ */
2423
+ proto.gateway.web.v1.ListSlosResponse.serializeBinaryToWriter = function(message, writer) {
2424
+ var f = undefined;
2425
+ f = message.getStatus();
2426
+ if (f != null) {
2427
+ writer.writeMessage(
2428
+ 1,
2429
+ f,
2430
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2431
+ );
2432
+ }
2433
+ f = message.getSlosList();
2434
+ if (f.length > 0) {
2435
+ writer.writeRepeatedMessage(
2436
+ 2,
2437
+ f,
2438
+ proto.gateway.web.v1.Slo.serializeBinaryToWriter
2439
+ );
2440
+ }
2441
+ };
2442
+
2443
+
2444
+ /**
2445
+ * optional gateway.common.v1.ResponseStatus status = 1;
2446
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2447
+ */
2448
+ proto.gateway.web.v1.ListSlosResponse.prototype.getStatus = function() {
2449
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2450
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2451
+ };
2452
+
2453
+
2454
+ /**
2455
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2456
+ * @return {!proto.gateway.web.v1.ListSlosResponse} returns this
2457
+ */
2458
+ proto.gateway.web.v1.ListSlosResponse.prototype.setStatus = function(value) {
2459
+ return jspb.Message.setWrapperField(this, 1, value);
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * Clears the message field making it undefined.
2465
+ * @return {!proto.gateway.web.v1.ListSlosResponse} returns this
2466
+ */
2467
+ proto.gateway.web.v1.ListSlosResponse.prototype.clearStatus = function() {
2468
+ return this.setStatus(undefined);
2469
+ };
2470
+
2471
+
2472
+ /**
2473
+ * Returns whether this field is set.
2474
+ * @return {boolean}
2475
+ */
2476
+ proto.gateway.web.v1.ListSlosResponse.prototype.hasStatus = function() {
2477
+ return jspb.Message.getField(this, 1) != null;
2478
+ };
2479
+
2480
+
2481
+ /**
2482
+ * repeated Slo slos = 2;
2483
+ * @return {!Array<!proto.gateway.web.v1.Slo>}
2484
+ */
2485
+ proto.gateway.web.v1.ListSlosResponse.prototype.getSlosList = function() {
2486
+ return /** @type{!Array<!proto.gateway.web.v1.Slo>} */ (
2487
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.Slo, 2));
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * @param {!Array<!proto.gateway.web.v1.Slo>} value
2493
+ * @return {!proto.gateway.web.v1.ListSlosResponse} returns this
2494
+ */
2495
+ proto.gateway.web.v1.ListSlosResponse.prototype.setSlosList = function(value) {
2496
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2497
+ };
2498
+
2499
+
2500
+ /**
2501
+ * @param {!proto.gateway.web.v1.Slo=} opt_value
2502
+ * @param {number=} opt_index
2503
+ * @return {!proto.gateway.web.v1.Slo}
2504
+ */
2505
+ proto.gateway.web.v1.ListSlosResponse.prototype.addSlos = function(opt_value, opt_index) {
2506
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.Slo, opt_index);
2507
+ };
2508
+
2509
+
2510
+ /**
2511
+ * Clears the list making it empty but non-null.
2512
+ * @return {!proto.gateway.web.v1.ListSlosResponse} returns this
2513
+ */
2514
+ proto.gateway.web.v1.ListSlosResponse.prototype.clearSlosList = function() {
2515
+ return this.setSlosList([]);
2516
+ };
2517
+
2518
+
2519
+
2520
+
2521
+
2522
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2523
+ /**
2524
+ * Creates an object representation of this proto.
2525
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2526
+ * Optional fields that are not set will be set to undefined.
2527
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2528
+ * For the list of reserved names please see:
2529
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2530
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2531
+ * JSPB instance for transitional soy proto support:
2532
+ * http://goto/soy-param-migration
2533
+ * @return {!Object}
2534
+ */
2535
+ proto.gateway.web.v1.UpdateSloRequest.prototype.toObject = function(opt_includeInstance) {
2536
+ return proto.gateway.web.v1.UpdateSloRequest.toObject(opt_includeInstance, this);
2537
+ };
2538
+
2539
+
2540
+ /**
2541
+ * Static version of the {@see toObject} method.
2542
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2543
+ * the JSPB instance for transitional soy proto support:
2544
+ * http://goto/soy-param-migration
2545
+ * @param {!proto.gateway.web.v1.UpdateSloRequest} msg The msg instance to transform.
2546
+ * @return {!Object}
2547
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2548
+ */
2549
+ proto.gateway.web.v1.UpdateSloRequest.toObject = function(includeInstance, msg) {
2550
+ var f, obj = {
2551
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2552
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2553
+ sloId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2554
+ updates: (f = msg.getUpdates()) && proto.gateway.web.v1.UpdateSloRequest.SloUpdates.toObject(includeInstance, f)
2555
+ };
2556
+
2557
+ if (includeInstance) {
2558
+ obj.$jspbMessageInstance = msg;
2559
+ }
2560
+ return obj;
2561
+ };
2562
+ }
2563
+
2564
+
2565
+ /**
2566
+ * Deserializes binary data (in protobuf wire format).
2567
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2568
+ * @return {!proto.gateway.web.v1.UpdateSloRequest}
2569
+ */
2570
+ proto.gateway.web.v1.UpdateSloRequest.deserializeBinary = function(bytes) {
2571
+ var reader = new jspb.BinaryReader(bytes);
2572
+ var msg = new proto.gateway.web.v1.UpdateSloRequest;
2573
+ return proto.gateway.web.v1.UpdateSloRequest.deserializeBinaryFromReader(msg, reader);
2574
+ };
2575
+
2576
+
2577
+ /**
2578
+ * Deserializes binary data (in protobuf wire format) from the
2579
+ * given reader into the given message object.
2580
+ * @param {!proto.gateway.web.v1.UpdateSloRequest} msg The message object to deserialize into.
2581
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2582
+ * @return {!proto.gateway.web.v1.UpdateSloRequest}
2583
+ */
2584
+ proto.gateway.web.v1.UpdateSloRequest.deserializeBinaryFromReader = function(msg, reader) {
2585
+ while (reader.nextField()) {
2586
+ if (reader.isEndGroup()) {
2587
+ break;
2588
+ }
2589
+ var field = reader.getFieldNumber();
2590
+ switch (field) {
2591
+ case 1:
2592
+ var value = /** @type {string} */ (reader.readString());
2593
+ msg.setOrganizationId(value);
2594
+ break;
2595
+ case 2:
2596
+ var value = /** @type {string} */ (reader.readString());
2597
+ msg.setProjectId(value);
2598
+ break;
2599
+ case 3:
2600
+ var value = /** @type {string} */ (reader.readString());
2601
+ msg.setSloId(value);
2602
+ break;
2603
+ case 4:
2604
+ var value = new proto.gateway.web.v1.UpdateSloRequest.SloUpdates;
2605
+ reader.readMessage(value,proto.gateway.web.v1.UpdateSloRequest.SloUpdates.deserializeBinaryFromReader);
2606
+ msg.setUpdates(value);
2607
+ break;
2608
+ default:
2609
+ reader.skipField();
2610
+ break;
2611
+ }
2612
+ }
2613
+ return msg;
2614
+ };
2615
+
2616
+
2617
+ /**
2618
+ * Serializes the message to binary data (in protobuf wire format).
2619
+ * @return {!Uint8Array}
2620
+ */
2621
+ proto.gateway.web.v1.UpdateSloRequest.prototype.serializeBinary = function() {
2622
+ var writer = new jspb.BinaryWriter();
2623
+ proto.gateway.web.v1.UpdateSloRequest.serializeBinaryToWriter(this, writer);
2624
+ return writer.getResultBuffer();
2625
+ };
2626
+
2627
+
2628
+ /**
2629
+ * Serializes the given message to binary data (in protobuf wire
2630
+ * format), writing to the given BinaryWriter.
2631
+ * @param {!proto.gateway.web.v1.UpdateSloRequest} message
2632
+ * @param {!jspb.BinaryWriter} writer
2633
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2634
+ */
2635
+ proto.gateway.web.v1.UpdateSloRequest.serializeBinaryToWriter = function(message, writer) {
2636
+ var f = undefined;
2637
+ f = message.getOrganizationId();
2638
+ if (f.length > 0) {
2639
+ writer.writeString(
2640
+ 1,
2641
+ f
2642
+ );
2643
+ }
2644
+ f = message.getProjectId();
2645
+ if (f.length > 0) {
2646
+ writer.writeString(
2647
+ 2,
2648
+ f
2649
+ );
2650
+ }
2651
+ f = message.getSloId();
2652
+ if (f.length > 0) {
2653
+ writer.writeString(
2654
+ 3,
2655
+ f
2656
+ );
2657
+ }
2658
+ f = message.getUpdates();
2659
+ if (f != null) {
2660
+ writer.writeMessage(
2661
+ 4,
2662
+ f,
2663
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.serializeBinaryToWriter
2664
+ );
2665
+ }
2666
+ };
2667
+
2668
+
2669
+
2670
+
2671
+
2672
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2673
+ /**
2674
+ * Creates an object representation of this proto.
2675
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2676
+ * Optional fields that are not set will be set to undefined.
2677
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2678
+ * For the list of reserved names please see:
2679
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2680
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2681
+ * JSPB instance for transitional soy proto support:
2682
+ * http://goto/soy-param-migration
2683
+ * @return {!Object}
2684
+ */
2685
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.toObject = function(opt_includeInstance) {
2686
+ return proto.gateway.web.v1.UpdateSloRequest.SloUpdates.toObject(opt_includeInstance, this);
2687
+ };
2688
+
2689
+
2690
+ /**
2691
+ * Static version of the {@see toObject} method.
2692
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2693
+ * the JSPB instance for transitional soy proto support:
2694
+ * http://goto/soy-param-migration
2695
+ * @param {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} msg The msg instance to transform.
2696
+ * @return {!Object}
2697
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2698
+ */
2699
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.toObject = function(includeInstance, msg) {
2700
+ var f, obj = {
2701
+ name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
2702
+ description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
2703
+ enabled: (f = jspb.Message.getBooleanField(msg, 3)) == null ? undefined : f,
2704
+ objective: (f = msg.getObjective()) && proto.gateway.web.v1.SloObjective.toObject(includeInstance, f)
2705
+ };
2706
+
2707
+ if (includeInstance) {
2708
+ obj.$jspbMessageInstance = msg;
2709
+ }
2710
+ return obj;
2711
+ };
2712
+ }
2713
+
2714
+
2715
+ /**
2716
+ * Deserializes binary data (in protobuf wire format).
2717
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2718
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates}
2719
+ */
2720
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.deserializeBinary = function(bytes) {
2721
+ var reader = new jspb.BinaryReader(bytes);
2722
+ var msg = new proto.gateway.web.v1.UpdateSloRequest.SloUpdates;
2723
+ return proto.gateway.web.v1.UpdateSloRequest.SloUpdates.deserializeBinaryFromReader(msg, reader);
2724
+ };
2725
+
2726
+
2727
+ /**
2728
+ * Deserializes binary data (in protobuf wire format) from the
2729
+ * given reader into the given message object.
2730
+ * @param {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} msg The message object to deserialize into.
2731
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2732
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates}
2733
+ */
2734
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.deserializeBinaryFromReader = function(msg, reader) {
2735
+ while (reader.nextField()) {
2736
+ if (reader.isEndGroup()) {
2737
+ break;
2738
+ }
2739
+ var field = reader.getFieldNumber();
2740
+ switch (field) {
2741
+ case 1:
2742
+ var value = /** @type {string} */ (reader.readString());
2743
+ msg.setName(value);
2744
+ break;
2745
+ case 2:
2746
+ var value = /** @type {string} */ (reader.readString());
2747
+ msg.setDescription(value);
2748
+ break;
2749
+ case 3:
2750
+ var value = /** @type {boolean} */ (reader.readBool());
2751
+ msg.setEnabled(value);
2752
+ break;
2753
+ case 4:
2754
+ var value = new proto.gateway.web.v1.SloObjective;
2755
+ reader.readMessage(value,proto.gateway.web.v1.SloObjective.deserializeBinaryFromReader);
2756
+ msg.setObjective(value);
2757
+ break;
2758
+ default:
2759
+ reader.skipField();
2760
+ break;
2761
+ }
2762
+ }
2763
+ return msg;
2764
+ };
2765
+
2766
+
2767
+ /**
2768
+ * Serializes the message to binary data (in protobuf wire format).
2769
+ * @return {!Uint8Array}
2770
+ */
2771
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.serializeBinary = function() {
2772
+ var writer = new jspb.BinaryWriter();
2773
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.serializeBinaryToWriter(this, writer);
2774
+ return writer.getResultBuffer();
2775
+ };
2776
+
2777
+
2778
+ /**
2779
+ * Serializes the given message to binary data (in protobuf wire
2780
+ * format), writing to the given BinaryWriter.
2781
+ * @param {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} message
2782
+ * @param {!jspb.BinaryWriter} writer
2783
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2784
+ */
2785
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.serializeBinaryToWriter = function(message, writer) {
2786
+ var f = undefined;
2787
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
2788
+ if (f != null) {
2789
+ writer.writeString(
2790
+ 1,
2791
+ f
2792
+ );
2793
+ }
2794
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
2795
+ if (f != null) {
2796
+ writer.writeString(
2797
+ 2,
2798
+ f
2799
+ );
2800
+ }
2801
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
2802
+ if (f != null) {
2803
+ writer.writeBool(
2804
+ 3,
2805
+ f
2806
+ );
2807
+ }
2808
+ f = message.getObjective();
2809
+ if (f != null) {
2810
+ writer.writeMessage(
2811
+ 4,
2812
+ f,
2813
+ proto.gateway.web.v1.SloObjective.serializeBinaryToWriter
2814
+ );
2815
+ }
2816
+ };
2817
+
2818
+
2819
+ /**
2820
+ * optional string name = 1;
2821
+ * @return {string}
2822
+ */
2823
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.getName = function() {
2824
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2825
+ };
2826
+
2827
+
2828
+ /**
2829
+ * @param {string} value
2830
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2831
+ */
2832
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.setName = function(value) {
2833
+ return jspb.Message.setField(this, 1, value);
2834
+ };
2835
+
2836
+
2837
+ /**
2838
+ * Clears the field making it undefined.
2839
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2840
+ */
2841
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.clearName = function() {
2842
+ return jspb.Message.setField(this, 1, undefined);
2843
+ };
2844
+
2845
+
2846
+ /**
2847
+ * Returns whether this field is set.
2848
+ * @return {boolean}
2849
+ */
2850
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.hasName = function() {
2851
+ return jspb.Message.getField(this, 1) != null;
2852
+ };
2853
+
2854
+
2855
+ /**
2856
+ * optional string description = 2;
2857
+ * @return {string}
2858
+ */
2859
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.getDescription = function() {
2860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2861
+ };
2862
+
2863
+
2864
+ /**
2865
+ * @param {string} value
2866
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2867
+ */
2868
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.setDescription = function(value) {
2869
+ return jspb.Message.setField(this, 2, value);
2870
+ };
2871
+
2872
+
2873
+ /**
2874
+ * Clears the field making it undefined.
2875
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2876
+ */
2877
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.clearDescription = function() {
2878
+ return jspb.Message.setField(this, 2, undefined);
2879
+ };
2880
+
2881
+
2882
+ /**
2883
+ * Returns whether this field is set.
2884
+ * @return {boolean}
2885
+ */
2886
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.hasDescription = function() {
2887
+ return jspb.Message.getField(this, 2) != null;
2888
+ };
2889
+
2890
+
2891
+ /**
2892
+ * optional bool enabled = 3;
2893
+ * @return {boolean}
2894
+ */
2895
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.getEnabled = function() {
2896
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2897
+ };
2898
+
2899
+
2900
+ /**
2901
+ * @param {boolean} value
2902
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2903
+ */
2904
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.setEnabled = function(value) {
2905
+ return jspb.Message.setField(this, 3, value);
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * Clears the field making it undefined.
2911
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2912
+ */
2913
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.clearEnabled = function() {
2914
+ return jspb.Message.setField(this, 3, undefined);
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * Returns whether this field is set.
2920
+ * @return {boolean}
2921
+ */
2922
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.hasEnabled = function() {
2923
+ return jspb.Message.getField(this, 3) != null;
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * optional SloObjective objective = 4;
2929
+ * @return {?proto.gateway.web.v1.SloObjective}
2930
+ */
2931
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.getObjective = function() {
2932
+ return /** @type{?proto.gateway.web.v1.SloObjective} */ (
2933
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SloObjective, 4));
2934
+ };
2935
+
2936
+
2937
+ /**
2938
+ * @param {?proto.gateway.web.v1.SloObjective|undefined} value
2939
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2940
+ */
2941
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.setObjective = function(value) {
2942
+ return jspb.Message.setWrapperField(this, 4, value);
2943
+ };
2944
+
2945
+
2946
+ /**
2947
+ * Clears the message field making it undefined.
2948
+ * @return {!proto.gateway.web.v1.UpdateSloRequest.SloUpdates} returns this
2949
+ */
2950
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.clearObjective = function() {
2951
+ return this.setObjective(undefined);
2952
+ };
2953
+
2954
+
2955
+ /**
2956
+ * Returns whether this field is set.
2957
+ * @return {boolean}
2958
+ */
2959
+ proto.gateway.web.v1.UpdateSloRequest.SloUpdates.prototype.hasObjective = function() {
2960
+ return jspb.Message.getField(this, 4) != null;
2961
+ };
2962
+
2963
+
2964
+ /**
2965
+ * optional string organization_id = 1;
2966
+ * @return {string}
2967
+ */
2968
+ proto.gateway.web.v1.UpdateSloRequest.prototype.getOrganizationId = function() {
2969
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2970
+ };
2971
+
2972
+
2973
+ /**
2974
+ * @param {string} value
2975
+ * @return {!proto.gateway.web.v1.UpdateSloRequest} returns this
2976
+ */
2977
+ proto.gateway.web.v1.UpdateSloRequest.prototype.setOrganizationId = function(value) {
2978
+ return jspb.Message.setProto3StringField(this, 1, value);
2979
+ };
2980
+
2981
+
2982
+ /**
2983
+ * optional string project_id = 2;
2984
+ * @return {string}
2985
+ */
2986
+ proto.gateway.web.v1.UpdateSloRequest.prototype.getProjectId = function() {
2987
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2988
+ };
2989
+
2990
+
2991
+ /**
2992
+ * @param {string} value
2993
+ * @return {!proto.gateway.web.v1.UpdateSloRequest} returns this
2994
+ */
2995
+ proto.gateway.web.v1.UpdateSloRequest.prototype.setProjectId = function(value) {
2996
+ return jspb.Message.setProto3StringField(this, 2, value);
2997
+ };
2998
+
2999
+
3000
+ /**
3001
+ * optional string slo_id = 3;
3002
+ * @return {string}
3003
+ */
3004
+ proto.gateway.web.v1.UpdateSloRequest.prototype.getSloId = function() {
3005
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3006
+ };
3007
+
3008
+
3009
+ /**
3010
+ * @param {string} value
3011
+ * @return {!proto.gateway.web.v1.UpdateSloRequest} returns this
3012
+ */
3013
+ proto.gateway.web.v1.UpdateSloRequest.prototype.setSloId = function(value) {
3014
+ return jspb.Message.setProto3StringField(this, 3, value);
3015
+ };
3016
+
3017
+
3018
+ /**
3019
+ * optional SloUpdates updates = 4;
3020
+ * @return {?proto.gateway.web.v1.UpdateSloRequest.SloUpdates}
3021
+ */
3022
+ proto.gateway.web.v1.UpdateSloRequest.prototype.getUpdates = function() {
3023
+ return /** @type{?proto.gateway.web.v1.UpdateSloRequest.SloUpdates} */ (
3024
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.UpdateSloRequest.SloUpdates, 4));
3025
+ };
3026
+
3027
+
3028
+ /**
3029
+ * @param {?proto.gateway.web.v1.UpdateSloRequest.SloUpdates|undefined} value
3030
+ * @return {!proto.gateway.web.v1.UpdateSloRequest} returns this
3031
+ */
3032
+ proto.gateway.web.v1.UpdateSloRequest.prototype.setUpdates = function(value) {
3033
+ return jspb.Message.setWrapperField(this, 4, value);
3034
+ };
3035
+
3036
+
3037
+ /**
3038
+ * Clears the message field making it undefined.
3039
+ * @return {!proto.gateway.web.v1.UpdateSloRequest} returns this
3040
+ */
3041
+ proto.gateway.web.v1.UpdateSloRequest.prototype.clearUpdates = function() {
3042
+ return this.setUpdates(undefined);
3043
+ };
3044
+
3045
+
3046
+ /**
3047
+ * Returns whether this field is set.
3048
+ * @return {boolean}
3049
+ */
3050
+ proto.gateway.web.v1.UpdateSloRequest.prototype.hasUpdates = function() {
3051
+ return jspb.Message.getField(this, 4) != null;
3052
+ };
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3059
+ /**
3060
+ * Creates an object representation of this proto.
3061
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3062
+ * Optional fields that are not set will be set to undefined.
3063
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3064
+ * For the list of reserved names please see:
3065
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3066
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3067
+ * JSPB instance for transitional soy proto support:
3068
+ * http://goto/soy-param-migration
3069
+ * @return {!Object}
3070
+ */
3071
+ proto.gateway.web.v1.UpdateSloResponse.prototype.toObject = function(opt_includeInstance) {
3072
+ return proto.gateway.web.v1.UpdateSloResponse.toObject(opt_includeInstance, this);
3073
+ };
3074
+
3075
+
3076
+ /**
3077
+ * Static version of the {@see toObject} method.
3078
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3079
+ * the JSPB instance for transitional soy proto support:
3080
+ * http://goto/soy-param-migration
3081
+ * @param {!proto.gateway.web.v1.UpdateSloResponse} msg The msg instance to transform.
3082
+ * @return {!Object}
3083
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3084
+ */
3085
+ proto.gateway.web.v1.UpdateSloResponse.toObject = function(includeInstance, msg) {
3086
+ var f, obj = {
3087
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
3088
+ slo: (f = msg.getSlo()) && proto.gateway.web.v1.Slo.toObject(includeInstance, f)
3089
+ };
3090
+
3091
+ if (includeInstance) {
3092
+ obj.$jspbMessageInstance = msg;
3093
+ }
3094
+ return obj;
3095
+ };
3096
+ }
3097
+
3098
+
3099
+ /**
3100
+ * Deserializes binary data (in protobuf wire format).
3101
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3102
+ * @return {!proto.gateway.web.v1.UpdateSloResponse}
3103
+ */
3104
+ proto.gateway.web.v1.UpdateSloResponse.deserializeBinary = function(bytes) {
3105
+ var reader = new jspb.BinaryReader(bytes);
3106
+ var msg = new proto.gateway.web.v1.UpdateSloResponse;
3107
+ return proto.gateway.web.v1.UpdateSloResponse.deserializeBinaryFromReader(msg, reader);
3108
+ };
3109
+
3110
+
3111
+ /**
3112
+ * Deserializes binary data (in protobuf wire format) from the
3113
+ * given reader into the given message object.
3114
+ * @param {!proto.gateway.web.v1.UpdateSloResponse} msg The message object to deserialize into.
3115
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3116
+ * @return {!proto.gateway.web.v1.UpdateSloResponse}
3117
+ */
3118
+ proto.gateway.web.v1.UpdateSloResponse.deserializeBinaryFromReader = function(msg, reader) {
3119
+ while (reader.nextField()) {
3120
+ if (reader.isEndGroup()) {
3121
+ break;
3122
+ }
3123
+ var field = reader.getFieldNumber();
3124
+ switch (field) {
3125
+ case 1:
3126
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3127
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3128
+ msg.setStatus(value);
3129
+ break;
3130
+ case 2:
3131
+ var value = new proto.gateway.web.v1.Slo;
3132
+ reader.readMessage(value,proto.gateway.web.v1.Slo.deserializeBinaryFromReader);
3133
+ msg.setSlo(value);
3134
+ break;
3135
+ default:
3136
+ reader.skipField();
3137
+ break;
3138
+ }
3139
+ }
3140
+ return msg;
3141
+ };
3142
+
3143
+
3144
+ /**
3145
+ * Serializes the message to binary data (in protobuf wire format).
3146
+ * @return {!Uint8Array}
3147
+ */
3148
+ proto.gateway.web.v1.UpdateSloResponse.prototype.serializeBinary = function() {
3149
+ var writer = new jspb.BinaryWriter();
3150
+ proto.gateway.web.v1.UpdateSloResponse.serializeBinaryToWriter(this, writer);
3151
+ return writer.getResultBuffer();
3152
+ };
3153
+
3154
+
3155
+ /**
3156
+ * Serializes the given message to binary data (in protobuf wire
3157
+ * format), writing to the given BinaryWriter.
3158
+ * @param {!proto.gateway.web.v1.UpdateSloResponse} message
3159
+ * @param {!jspb.BinaryWriter} writer
3160
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3161
+ */
3162
+ proto.gateway.web.v1.UpdateSloResponse.serializeBinaryToWriter = function(message, writer) {
3163
+ var f = undefined;
3164
+ f = message.getStatus();
3165
+ if (f != null) {
3166
+ writer.writeMessage(
3167
+ 1,
3168
+ f,
3169
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3170
+ );
3171
+ }
3172
+ f = message.getSlo();
3173
+ if (f != null) {
3174
+ writer.writeMessage(
3175
+ 2,
3176
+ f,
3177
+ proto.gateway.web.v1.Slo.serializeBinaryToWriter
3178
+ );
3179
+ }
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * optional gateway.common.v1.ResponseStatus status = 1;
3185
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3186
+ */
3187
+ proto.gateway.web.v1.UpdateSloResponse.prototype.getStatus = function() {
3188
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3189
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3190
+ };
3191
+
3192
+
3193
+ /**
3194
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3195
+ * @return {!proto.gateway.web.v1.UpdateSloResponse} returns this
3196
+ */
3197
+ proto.gateway.web.v1.UpdateSloResponse.prototype.setStatus = function(value) {
3198
+ return jspb.Message.setWrapperField(this, 1, value);
3199
+ };
3200
+
3201
+
3202
+ /**
3203
+ * Clears the message field making it undefined.
3204
+ * @return {!proto.gateway.web.v1.UpdateSloResponse} returns this
3205
+ */
3206
+ proto.gateway.web.v1.UpdateSloResponse.prototype.clearStatus = function() {
3207
+ return this.setStatus(undefined);
3208
+ };
3209
+
3210
+
3211
+ /**
3212
+ * Returns whether this field is set.
3213
+ * @return {boolean}
3214
+ */
3215
+ proto.gateway.web.v1.UpdateSloResponse.prototype.hasStatus = function() {
3216
+ return jspb.Message.getField(this, 1) != null;
3217
+ };
3218
+
3219
+
3220
+ /**
3221
+ * optional Slo slo = 2;
3222
+ * @return {?proto.gateway.web.v1.Slo}
3223
+ */
3224
+ proto.gateway.web.v1.UpdateSloResponse.prototype.getSlo = function() {
3225
+ return /** @type{?proto.gateway.web.v1.Slo} */ (
3226
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.Slo, 2));
3227
+ };
3228
+
3229
+
3230
+ /**
3231
+ * @param {?proto.gateway.web.v1.Slo|undefined} value
3232
+ * @return {!proto.gateway.web.v1.UpdateSloResponse} returns this
3233
+ */
3234
+ proto.gateway.web.v1.UpdateSloResponse.prototype.setSlo = function(value) {
3235
+ return jspb.Message.setWrapperField(this, 2, value);
3236
+ };
3237
+
3238
+
3239
+ /**
3240
+ * Clears the message field making it undefined.
3241
+ * @return {!proto.gateway.web.v1.UpdateSloResponse} returns this
3242
+ */
3243
+ proto.gateway.web.v1.UpdateSloResponse.prototype.clearSlo = function() {
3244
+ return this.setSlo(undefined);
3245
+ };
3246
+
3247
+
3248
+ /**
3249
+ * Returns whether this field is set.
3250
+ * @return {boolean}
3251
+ */
3252
+ proto.gateway.web.v1.UpdateSloResponse.prototype.hasSlo = function() {
3253
+ return jspb.Message.getField(this, 2) != null;
3254
+ };
3255
+
3256
+
3257
+
3258
+
3259
+
3260
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3261
+ /**
3262
+ * Creates an object representation of this proto.
3263
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3264
+ * Optional fields that are not set will be set to undefined.
3265
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3266
+ * For the list of reserved names please see:
3267
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3268
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3269
+ * JSPB instance for transitional soy proto support:
3270
+ * http://goto/soy-param-migration
3271
+ * @return {!Object}
3272
+ */
3273
+ proto.gateway.web.v1.DeleteSloRequest.prototype.toObject = function(opt_includeInstance) {
3274
+ return proto.gateway.web.v1.DeleteSloRequest.toObject(opt_includeInstance, this);
3275
+ };
3276
+
3277
+
3278
+ /**
3279
+ * Static version of the {@see toObject} method.
3280
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3281
+ * the JSPB instance for transitional soy proto support:
3282
+ * http://goto/soy-param-migration
3283
+ * @param {!proto.gateway.web.v1.DeleteSloRequest} msg The msg instance to transform.
3284
+ * @return {!Object}
3285
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3286
+ */
3287
+ proto.gateway.web.v1.DeleteSloRequest.toObject = function(includeInstance, msg) {
3288
+ var f, obj = {
3289
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3290
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
3291
+ sloId: jspb.Message.getFieldWithDefault(msg, 3, "")
3292
+ };
3293
+
3294
+ if (includeInstance) {
3295
+ obj.$jspbMessageInstance = msg;
3296
+ }
3297
+ return obj;
3298
+ };
3299
+ }
3300
+
3301
+
3302
+ /**
3303
+ * Deserializes binary data (in protobuf wire format).
3304
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3305
+ * @return {!proto.gateway.web.v1.DeleteSloRequest}
3306
+ */
3307
+ proto.gateway.web.v1.DeleteSloRequest.deserializeBinary = function(bytes) {
3308
+ var reader = new jspb.BinaryReader(bytes);
3309
+ var msg = new proto.gateway.web.v1.DeleteSloRequest;
3310
+ return proto.gateway.web.v1.DeleteSloRequest.deserializeBinaryFromReader(msg, reader);
3311
+ };
3312
+
3313
+
3314
+ /**
3315
+ * Deserializes binary data (in protobuf wire format) from the
3316
+ * given reader into the given message object.
3317
+ * @param {!proto.gateway.web.v1.DeleteSloRequest} msg The message object to deserialize into.
3318
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3319
+ * @return {!proto.gateway.web.v1.DeleteSloRequest}
3320
+ */
3321
+ proto.gateway.web.v1.DeleteSloRequest.deserializeBinaryFromReader = function(msg, reader) {
3322
+ while (reader.nextField()) {
3323
+ if (reader.isEndGroup()) {
3324
+ break;
3325
+ }
3326
+ var field = reader.getFieldNumber();
3327
+ switch (field) {
3328
+ case 1:
3329
+ var value = /** @type {string} */ (reader.readString());
3330
+ msg.setOrganizationId(value);
3331
+ break;
3332
+ case 2:
3333
+ var value = /** @type {string} */ (reader.readString());
3334
+ msg.setProjectId(value);
3335
+ break;
3336
+ case 3:
3337
+ var value = /** @type {string} */ (reader.readString());
3338
+ msg.setSloId(value);
3339
+ break;
3340
+ default:
3341
+ reader.skipField();
3342
+ break;
3343
+ }
3344
+ }
3345
+ return msg;
3346
+ };
3347
+
3348
+
3349
+ /**
3350
+ * Serializes the message to binary data (in protobuf wire format).
3351
+ * @return {!Uint8Array}
3352
+ */
3353
+ proto.gateway.web.v1.DeleteSloRequest.prototype.serializeBinary = function() {
3354
+ var writer = new jspb.BinaryWriter();
3355
+ proto.gateway.web.v1.DeleteSloRequest.serializeBinaryToWriter(this, writer);
3356
+ return writer.getResultBuffer();
3357
+ };
3358
+
3359
+
3360
+ /**
3361
+ * Serializes the given message to binary data (in protobuf wire
3362
+ * format), writing to the given BinaryWriter.
3363
+ * @param {!proto.gateway.web.v1.DeleteSloRequest} message
3364
+ * @param {!jspb.BinaryWriter} writer
3365
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3366
+ */
3367
+ proto.gateway.web.v1.DeleteSloRequest.serializeBinaryToWriter = function(message, writer) {
3368
+ var f = undefined;
3369
+ f = message.getOrganizationId();
3370
+ if (f.length > 0) {
3371
+ writer.writeString(
3372
+ 1,
3373
+ f
3374
+ );
3375
+ }
3376
+ f = message.getProjectId();
3377
+ if (f.length > 0) {
3378
+ writer.writeString(
3379
+ 2,
3380
+ f
3381
+ );
3382
+ }
3383
+ f = message.getSloId();
3384
+ if (f.length > 0) {
3385
+ writer.writeString(
3386
+ 3,
3387
+ f
3388
+ );
3389
+ }
3390
+ };
3391
+
3392
+
3393
+ /**
3394
+ * optional string organization_id = 1;
3395
+ * @return {string}
3396
+ */
3397
+ proto.gateway.web.v1.DeleteSloRequest.prototype.getOrganizationId = function() {
3398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3399
+ };
3400
+
3401
+
3402
+ /**
3403
+ * @param {string} value
3404
+ * @return {!proto.gateway.web.v1.DeleteSloRequest} returns this
3405
+ */
3406
+ proto.gateway.web.v1.DeleteSloRequest.prototype.setOrganizationId = function(value) {
3407
+ return jspb.Message.setProto3StringField(this, 1, value);
3408
+ };
3409
+
3410
+
3411
+ /**
3412
+ * optional string project_id = 2;
3413
+ * @return {string}
3414
+ */
3415
+ proto.gateway.web.v1.DeleteSloRequest.prototype.getProjectId = function() {
3416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3417
+ };
3418
+
3419
+
3420
+ /**
3421
+ * @param {string} value
3422
+ * @return {!proto.gateway.web.v1.DeleteSloRequest} returns this
3423
+ */
3424
+ proto.gateway.web.v1.DeleteSloRequest.prototype.setProjectId = function(value) {
3425
+ return jspb.Message.setProto3StringField(this, 2, value);
3426
+ };
3427
+
3428
+
3429
+ /**
3430
+ * optional string slo_id = 3;
3431
+ * @return {string}
3432
+ */
3433
+ proto.gateway.web.v1.DeleteSloRequest.prototype.getSloId = function() {
3434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3435
+ };
3436
+
3437
+
3438
+ /**
3439
+ * @param {string} value
3440
+ * @return {!proto.gateway.web.v1.DeleteSloRequest} returns this
3441
+ */
3442
+ proto.gateway.web.v1.DeleteSloRequest.prototype.setSloId = function(value) {
3443
+ return jspb.Message.setProto3StringField(this, 3, value);
3444
+ };
3445
+
3446
+
3447
+
3448
+
3449
+
3450
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3451
+ /**
3452
+ * Creates an object representation of this proto.
3453
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3454
+ * Optional fields that are not set will be set to undefined.
3455
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3456
+ * For the list of reserved names please see:
3457
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3458
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3459
+ * JSPB instance for transitional soy proto support:
3460
+ * http://goto/soy-param-migration
3461
+ * @return {!Object}
3462
+ */
3463
+ proto.gateway.web.v1.DeleteSloResponse.prototype.toObject = function(opt_includeInstance) {
3464
+ return proto.gateway.web.v1.DeleteSloResponse.toObject(opt_includeInstance, this);
3465
+ };
3466
+
3467
+
3468
+ /**
3469
+ * Static version of the {@see toObject} method.
3470
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3471
+ * the JSPB instance for transitional soy proto support:
3472
+ * http://goto/soy-param-migration
3473
+ * @param {!proto.gateway.web.v1.DeleteSloResponse} msg The msg instance to transform.
3474
+ * @return {!Object}
3475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3476
+ */
3477
+ proto.gateway.web.v1.DeleteSloResponse.toObject = function(includeInstance, msg) {
3478
+ var f, obj = {
3479
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
3480
+ };
3481
+
3482
+ if (includeInstance) {
3483
+ obj.$jspbMessageInstance = msg;
3484
+ }
3485
+ return obj;
3486
+ };
3487
+ }
3488
+
3489
+
3490
+ /**
3491
+ * Deserializes binary data (in protobuf wire format).
3492
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3493
+ * @return {!proto.gateway.web.v1.DeleteSloResponse}
3494
+ */
3495
+ proto.gateway.web.v1.DeleteSloResponse.deserializeBinary = function(bytes) {
3496
+ var reader = new jspb.BinaryReader(bytes);
3497
+ var msg = new proto.gateway.web.v1.DeleteSloResponse;
3498
+ return proto.gateway.web.v1.DeleteSloResponse.deserializeBinaryFromReader(msg, reader);
3499
+ };
3500
+
3501
+
3502
+ /**
3503
+ * Deserializes binary data (in protobuf wire format) from the
3504
+ * given reader into the given message object.
3505
+ * @param {!proto.gateway.web.v1.DeleteSloResponse} msg The message object to deserialize into.
3506
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3507
+ * @return {!proto.gateway.web.v1.DeleteSloResponse}
3508
+ */
3509
+ proto.gateway.web.v1.DeleteSloResponse.deserializeBinaryFromReader = function(msg, reader) {
3510
+ while (reader.nextField()) {
3511
+ if (reader.isEndGroup()) {
3512
+ break;
3513
+ }
3514
+ var field = reader.getFieldNumber();
3515
+ switch (field) {
3516
+ case 1:
3517
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
3518
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
3519
+ msg.setStatus(value);
3520
+ break;
3521
+ default:
3522
+ reader.skipField();
3523
+ break;
3524
+ }
3525
+ }
3526
+ return msg;
3527
+ };
3528
+
3529
+
3530
+ /**
3531
+ * Serializes the message to binary data (in protobuf wire format).
3532
+ * @return {!Uint8Array}
3533
+ */
3534
+ proto.gateway.web.v1.DeleteSloResponse.prototype.serializeBinary = function() {
3535
+ var writer = new jspb.BinaryWriter();
3536
+ proto.gateway.web.v1.DeleteSloResponse.serializeBinaryToWriter(this, writer);
3537
+ return writer.getResultBuffer();
3538
+ };
3539
+
3540
+
3541
+ /**
3542
+ * Serializes the given message to binary data (in protobuf wire
3543
+ * format), writing to the given BinaryWriter.
3544
+ * @param {!proto.gateway.web.v1.DeleteSloResponse} message
3545
+ * @param {!jspb.BinaryWriter} writer
3546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3547
+ */
3548
+ proto.gateway.web.v1.DeleteSloResponse.serializeBinaryToWriter = function(message, writer) {
3549
+ var f = undefined;
3550
+ f = message.getStatus();
3551
+ if (f != null) {
3552
+ writer.writeMessage(
3553
+ 1,
3554
+ f,
3555
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
3556
+ );
3557
+ }
3558
+ };
3559
+
3560
+
3561
+ /**
3562
+ * optional gateway.common.v1.ResponseStatus status = 1;
3563
+ * @return {?proto.gateway.common.v1.ResponseStatus}
3564
+ */
3565
+ proto.gateway.web.v1.DeleteSloResponse.prototype.getStatus = function() {
3566
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
3567
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
3568
+ };
3569
+
3570
+
3571
+ /**
3572
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
3573
+ * @return {!proto.gateway.web.v1.DeleteSloResponse} returns this
3574
+ */
3575
+ proto.gateway.web.v1.DeleteSloResponse.prototype.setStatus = function(value) {
3576
+ return jspb.Message.setWrapperField(this, 1, value);
3577
+ };
3578
+
3579
+
3580
+ /**
3581
+ * Clears the message field making it undefined.
3582
+ * @return {!proto.gateway.web.v1.DeleteSloResponse} returns this
3583
+ */
3584
+ proto.gateway.web.v1.DeleteSloResponse.prototype.clearStatus = function() {
3585
+ return this.setStatus(undefined);
3586
+ };
3587
+
3588
+
3589
+ /**
3590
+ * Returns whether this field is set.
3591
+ * @return {boolean}
3592
+ */
3593
+ proto.gateway.web.v1.DeleteSloResponse.prototype.hasStatus = function() {
3594
+ return jspb.Message.getField(this, 1) != null;
3595
+ };
3596
+
3597
+
3598
+ /**
3599
+ * @enum {number}
3600
+ */
3601
+ proto.gateway.web.v1.SloComparator = {
3602
+ SLO_COMPARATOR_UNSPECIFIED: 0,
3603
+ SLO_COMPARATOR_GREATER_THAN: 1,
3604
+ SLO_COMPARATOR_GREATER_THAN_OR_EQUAL: 2,
3605
+ SLO_COMPARATOR_LESS_THAN: 3,
3606
+ SLO_COMPARATOR_LESS_THAN_OR_EQUAL: 4
3607
+ };
3608
+
3609
+ goog.object.extend(exports, proto.gateway.web.v1);