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