@superblocksteam/sabs-types-js 0.696.0 → 0.697.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,1656 @@
1
+ // source: liveedit/v2/service.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 = globalThis;
17
+
18
+ var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
+ goog.object.extend(proto, google_api_annotations_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
22
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb.js');
23
+ goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
24
+ goog.exportSymbol('proto.liveedit.v2.Application', null, global);
25
+ goog.exportSymbol('proto.liveedit.v2.EnsureLiveEditRequest', null, global);
26
+ goog.exportSymbol('proto.liveedit.v2.EnsureLiveEditResponse', null, global);
27
+ goog.exportSymbol('proto.liveedit.v2.GetLiveEditRequest', null, global);
28
+ goog.exportSymbol('proto.liveedit.v2.GetLiveEditResponse', null, global);
29
+ goog.exportSymbol('proto.liveedit.v2.LiveEdit', null, global);
30
+ goog.exportSymbol('proto.liveedit.v2.LiveEditSpec', null, global);
31
+ goog.exportSymbol('proto.liveedit.v2.LiveEditStatus', null, global);
32
+ /**
33
+ * Generated by JsPbCodeGenerator.
34
+ * @param {Array=} opt_data Optional initial data array, typically from a
35
+ * server response, or constructed directly in Javascript. The array is used
36
+ * in place and becomes part of the constructed object. It is not cloned.
37
+ * If no data is provided, the constructed object will be empty, but still
38
+ * valid.
39
+ * @extends {jspb.Message}
40
+ * @constructor
41
+ */
42
+ proto.liveedit.v2.LiveEditSpec = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.liveedit.v2.LiveEditSpec, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.liveedit.v2.LiveEditSpec.displayName = 'proto.liveedit.v2.LiveEditSpec';
52
+ }
53
+ /**
54
+ * Generated by JsPbCodeGenerator.
55
+ * @param {Array=} opt_data Optional initial data array, typically from a
56
+ * server response, or constructed directly in Javascript. The array is used
57
+ * in place and becomes part of the constructed object. It is not cloned.
58
+ * If no data is provided, the constructed object will be empty, but still
59
+ * valid.
60
+ * @extends {jspb.Message}
61
+ * @constructor
62
+ */
63
+ proto.liveedit.v2.LiveEdit = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.liveedit.v2.LiveEdit, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.liveedit.v2.LiveEdit.displayName = 'proto.liveedit.v2.LiveEdit';
73
+ }
74
+ /**
75
+ * Generated by JsPbCodeGenerator.
76
+ * @param {Array=} opt_data Optional initial data array, typically from a
77
+ * server response, or constructed directly in Javascript. The array is used
78
+ * in place and becomes part of the constructed object. It is not cloned.
79
+ * If no data is provided, the constructed object will be empty, but still
80
+ * valid.
81
+ * @extends {jspb.Message}
82
+ * @constructor
83
+ */
84
+ proto.liveedit.v2.EnsureLiveEditRequest = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.liveedit.v2.EnsureLiveEditRequest, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.liveedit.v2.EnsureLiveEditRequest.displayName = 'proto.liveedit.v2.EnsureLiveEditRequest';
94
+ }
95
+ /**
96
+ * Generated by JsPbCodeGenerator.
97
+ * @param {Array=} opt_data Optional initial data array, typically from a
98
+ * server response, or constructed directly in Javascript. The array is used
99
+ * in place and becomes part of the constructed object. It is not cloned.
100
+ * If no data is provided, the constructed object will be empty, but still
101
+ * valid.
102
+ * @extends {jspb.Message}
103
+ * @constructor
104
+ */
105
+ proto.liveedit.v2.EnsureLiveEditResponse = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.liveedit.v2.EnsureLiveEditResponse, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ /**
111
+ * @public
112
+ * @override
113
+ */
114
+ proto.liveedit.v2.EnsureLiveEditResponse.displayName = 'proto.liveedit.v2.EnsureLiveEditResponse';
115
+ }
116
+ /**
117
+ * Generated by JsPbCodeGenerator.
118
+ * @param {Array=} opt_data Optional initial data array, typically from a
119
+ * server response, or constructed directly in Javascript. The array is used
120
+ * in place and becomes part of the constructed object. It is not cloned.
121
+ * If no data is provided, the constructed object will be empty, but still
122
+ * valid.
123
+ * @extends {jspb.Message}
124
+ * @constructor
125
+ */
126
+ proto.liveedit.v2.GetLiveEditRequest = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
128
+ };
129
+ goog.inherits(proto.liveedit.v2.GetLiveEditRequest, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.liveedit.v2.GetLiveEditRequest.displayName = 'proto.liveedit.v2.GetLiveEditRequest';
136
+ }
137
+ /**
138
+ * Generated by JsPbCodeGenerator.
139
+ * @param {Array=} opt_data Optional initial data array, typically from a
140
+ * server response, or constructed directly in Javascript. The array is used
141
+ * in place and becomes part of the constructed object. It is not cloned.
142
+ * If no data is provided, the constructed object will be empty, but still
143
+ * valid.
144
+ * @extends {jspb.Message}
145
+ * @constructor
146
+ */
147
+ proto.liveedit.v2.GetLiveEditResponse = function(opt_data) {
148
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
+ };
150
+ goog.inherits(proto.liveedit.v2.GetLiveEditResponse, jspb.Message);
151
+ if (goog.DEBUG && !COMPILED) {
152
+ /**
153
+ * @public
154
+ * @override
155
+ */
156
+ proto.liveedit.v2.GetLiveEditResponse.displayName = 'proto.liveedit.v2.GetLiveEditResponse';
157
+ }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.liveedit.v2.Application = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
170
+ };
171
+ goog.inherits(proto.liveedit.v2.Application, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.liveedit.v2.Application.displayName = 'proto.liveedit.v2.Application';
178
+ }
179
+
180
+
181
+
182
+ if (jspb.Message.GENERATE_TO_OBJECT) {
183
+ /**
184
+ * Creates an object representation of this proto.
185
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
186
+ * Optional fields that are not set will be set to undefined.
187
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
188
+ * For the list of reserved names please see:
189
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
190
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
191
+ * JSPB instance for transitional soy proto support:
192
+ * http://goto/soy-param-migration
193
+ * @return {!Object}
194
+ */
195
+ proto.liveedit.v2.LiveEditSpec.prototype.toObject = function(opt_includeInstance) {
196
+ return proto.liveedit.v2.LiveEditSpec.toObject(opt_includeInstance, this);
197
+ };
198
+
199
+
200
+ /**
201
+ * Static version of the {@see toObject} method.
202
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
203
+ * the JSPB instance for transitional soy proto support:
204
+ * http://goto/soy-param-migration
205
+ * @param {!proto.liveedit.v2.LiveEditSpec} msg The msg instance to transform.
206
+ * @return {!Object}
207
+ * @suppress {unusedLocalVariables} f is only used for nested messages
208
+ */
209
+ proto.liveedit.v2.LiveEditSpec.toObject = function(includeInstance, msg) {
210
+ var f, obj = {
211
+ application: (f = msg.getApplication()) && proto.liveedit.v2.Application.toObject(includeInstance, f),
212
+ expiresIn: jspb.Message.getFieldWithDefault(msg, 2, 0),
213
+ clientKey: jspb.Message.getFieldWithDefault(msg, 3, "")
214
+ };
215
+
216
+ if (includeInstance) {
217
+ obj.$jspbMessageInstance = msg;
218
+ }
219
+ return obj;
220
+ };
221
+ }
222
+
223
+
224
+ /**
225
+ * Deserializes binary data (in protobuf wire format).
226
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
227
+ * @return {!proto.liveedit.v2.LiveEditSpec}
228
+ */
229
+ proto.liveedit.v2.LiveEditSpec.deserializeBinary = function(bytes) {
230
+ var reader = new jspb.BinaryReader(bytes);
231
+ var msg = new proto.liveedit.v2.LiveEditSpec;
232
+ return proto.liveedit.v2.LiveEditSpec.deserializeBinaryFromReader(msg, reader);
233
+ };
234
+
235
+
236
+ /**
237
+ * Deserializes binary data (in protobuf wire format) from the
238
+ * given reader into the given message object.
239
+ * @param {!proto.liveedit.v2.LiveEditSpec} msg The message object to deserialize into.
240
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
241
+ * @return {!proto.liveedit.v2.LiveEditSpec}
242
+ */
243
+ proto.liveedit.v2.LiveEditSpec.deserializeBinaryFromReader = function(msg, reader) {
244
+ while (reader.nextField()) {
245
+ if (reader.isEndGroup()) {
246
+ break;
247
+ }
248
+ var field = reader.getFieldNumber();
249
+ switch (field) {
250
+ case 1:
251
+ var value = new proto.liveedit.v2.Application;
252
+ reader.readMessage(value,proto.liveedit.v2.Application.deserializeBinaryFromReader);
253
+ msg.setApplication(value);
254
+ break;
255
+ case 2:
256
+ var value = /** @type {number} */ (reader.readInt64());
257
+ msg.setExpiresIn(value);
258
+ break;
259
+ case 3:
260
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
261
+ msg.setClientKey(value);
262
+ break;
263
+ default:
264
+ reader.skipField();
265
+ break;
266
+ }
267
+ }
268
+ return msg;
269
+ };
270
+
271
+
272
+ /**
273
+ * Serializes the message to binary data (in protobuf wire format).
274
+ * @return {!Uint8Array}
275
+ */
276
+ proto.liveedit.v2.LiveEditSpec.prototype.serializeBinary = function() {
277
+ var writer = new jspb.BinaryWriter();
278
+ proto.liveedit.v2.LiveEditSpec.serializeBinaryToWriter(this, writer);
279
+ return writer.getResultBuffer();
280
+ };
281
+
282
+
283
+ /**
284
+ * Serializes the given message to binary data (in protobuf wire
285
+ * format), writing to the given BinaryWriter.
286
+ * @param {!proto.liveedit.v2.LiveEditSpec} message
287
+ * @param {!jspb.BinaryWriter} writer
288
+ * @suppress {unusedLocalVariables} f is only used for nested messages
289
+ */
290
+ proto.liveedit.v2.LiveEditSpec.serializeBinaryToWriter = function(message, writer) {
291
+ var f = undefined;
292
+ f = message.getApplication();
293
+ if (f != null) {
294
+ writer.writeMessage(
295
+ 1,
296
+ f,
297
+ proto.liveedit.v2.Application.serializeBinaryToWriter
298
+ );
299
+ }
300
+ f = message.getExpiresIn();
301
+ if (f !== 0) {
302
+ writer.writeInt64(
303
+ 2,
304
+ f
305
+ );
306
+ }
307
+ f = message.getClientKey();
308
+ if (f.length > 0) {
309
+ writer.writeString(
310
+ 3,
311
+ f
312
+ );
313
+ }
314
+ };
315
+
316
+
317
+ /**
318
+ * optional Application application = 1;
319
+ * @return {?proto.liveedit.v2.Application}
320
+ */
321
+ proto.liveedit.v2.LiveEditSpec.prototype.getApplication = function() {
322
+ return /** @type{?proto.liveedit.v2.Application} */ (
323
+ jspb.Message.getWrapperField(this, proto.liveedit.v2.Application, 1));
324
+ };
325
+
326
+
327
+ /**
328
+ * @param {?proto.liveedit.v2.Application|undefined} value
329
+ * @return {!proto.liveedit.v2.LiveEditSpec} returns this
330
+ */
331
+ proto.liveedit.v2.LiveEditSpec.prototype.setApplication = function(value) {
332
+ return jspb.Message.setWrapperField(this, 1, value);
333
+ };
334
+
335
+
336
+ /**
337
+ * Clears the message field making it undefined.
338
+ * @return {!proto.liveedit.v2.LiveEditSpec} returns this
339
+ */
340
+ proto.liveedit.v2.LiveEditSpec.prototype.clearApplication = function() {
341
+ return this.setApplication(undefined);
342
+ };
343
+
344
+
345
+ /**
346
+ * Returns whether this field is set.
347
+ * @return {boolean}
348
+ */
349
+ proto.liveedit.v2.LiveEditSpec.prototype.hasApplication = function() {
350
+ return jspb.Message.getField(this, 1) != null;
351
+ };
352
+
353
+
354
+ /**
355
+ * optional int64 expires_in = 2;
356
+ * @return {number}
357
+ */
358
+ proto.liveedit.v2.LiveEditSpec.prototype.getExpiresIn = function() {
359
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
360
+ };
361
+
362
+
363
+ /**
364
+ * @param {number} value
365
+ * @return {!proto.liveedit.v2.LiveEditSpec} returns this
366
+ */
367
+ proto.liveedit.v2.LiveEditSpec.prototype.setExpiresIn = function(value) {
368
+ return jspb.Message.setProto3IntField(this, 2, value);
369
+ };
370
+
371
+
372
+ /**
373
+ * optional string client_key = 3;
374
+ * @return {string}
375
+ */
376
+ proto.liveedit.v2.LiveEditSpec.prototype.getClientKey = function() {
377
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
378
+ };
379
+
380
+
381
+ /**
382
+ * @param {string} value
383
+ * @return {!proto.liveedit.v2.LiveEditSpec} returns this
384
+ */
385
+ proto.liveedit.v2.LiveEditSpec.prototype.setClientKey = function(value) {
386
+ return jspb.Message.setProto3StringField(this, 3, value);
387
+ };
388
+
389
+
390
+
391
+
392
+
393
+ if (jspb.Message.GENERATE_TO_OBJECT) {
394
+ /**
395
+ * Creates an object representation of this proto.
396
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
397
+ * Optional fields that are not set will be set to undefined.
398
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
399
+ * For the list of reserved names please see:
400
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
401
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
402
+ * JSPB instance for transitional soy proto support:
403
+ * http://goto/soy-param-migration
404
+ * @return {!Object}
405
+ */
406
+ proto.liveedit.v2.LiveEdit.prototype.toObject = function(opt_includeInstance) {
407
+ return proto.liveedit.v2.LiveEdit.toObject(opt_includeInstance, this);
408
+ };
409
+
410
+
411
+ /**
412
+ * Static version of the {@see toObject} method.
413
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
414
+ * the JSPB instance for transitional soy proto support:
415
+ * http://goto/soy-param-migration
416
+ * @param {!proto.liveedit.v2.LiveEdit} msg The msg instance to transform.
417
+ * @return {!Object}
418
+ * @suppress {unusedLocalVariables} f is only used for nested messages
419
+ */
420
+ proto.liveedit.v2.LiveEdit.toObject = function(includeInstance, msg) {
421
+ var f, obj = {
422
+ liveEditId: jspb.Message.getFieldWithDefault(msg, 1, ""),
423
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0),
424
+ liveEditUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
425
+ application: (f = msg.getApplication()) && proto.liveedit.v2.Application.toObject(includeInstance, f),
426
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
427
+ updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
428
+ expiresAt: jspb.Message.getFieldWithDefault(msg, 7, 0)
429
+ };
430
+
431
+ if (includeInstance) {
432
+ obj.$jspbMessageInstance = msg;
433
+ }
434
+ return obj;
435
+ };
436
+ }
437
+
438
+
439
+ /**
440
+ * Deserializes binary data (in protobuf wire format).
441
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
442
+ * @return {!proto.liveedit.v2.LiveEdit}
443
+ */
444
+ proto.liveedit.v2.LiveEdit.deserializeBinary = function(bytes) {
445
+ var reader = new jspb.BinaryReader(bytes);
446
+ var msg = new proto.liveedit.v2.LiveEdit;
447
+ return proto.liveedit.v2.LiveEdit.deserializeBinaryFromReader(msg, reader);
448
+ };
449
+
450
+
451
+ /**
452
+ * Deserializes binary data (in protobuf wire format) from the
453
+ * given reader into the given message object.
454
+ * @param {!proto.liveedit.v2.LiveEdit} msg The message object to deserialize into.
455
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
456
+ * @return {!proto.liveedit.v2.LiveEdit}
457
+ */
458
+ proto.liveedit.v2.LiveEdit.deserializeBinaryFromReader = function(msg, reader) {
459
+ while (reader.nextField()) {
460
+ if (reader.isEndGroup()) {
461
+ break;
462
+ }
463
+ var field = reader.getFieldNumber();
464
+ switch (field) {
465
+ case 1:
466
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
467
+ msg.setLiveEditId(value);
468
+ break;
469
+ case 2:
470
+ var value = /** @type {!proto.liveedit.v2.LiveEditStatus} */ (reader.readEnum());
471
+ msg.setStatus(value);
472
+ break;
473
+ case 3:
474
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
475
+ msg.setLiveEditUrl(value);
476
+ break;
477
+ case 4:
478
+ var value = new proto.liveedit.v2.Application;
479
+ reader.readMessage(value,proto.liveedit.v2.Application.deserializeBinaryFromReader);
480
+ msg.setApplication(value);
481
+ break;
482
+ case 5:
483
+ var value = new google_protobuf_timestamp_pb.Timestamp;
484
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
485
+ msg.setCreated(value);
486
+ break;
487
+ case 6:
488
+ var value = new google_protobuf_timestamp_pb.Timestamp;
489
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
490
+ msg.setUpdated(value);
491
+ break;
492
+ case 7:
493
+ var value = /** @type {number} */ (reader.readInt64());
494
+ msg.setExpiresAt(value);
495
+ break;
496
+ default:
497
+ reader.skipField();
498
+ break;
499
+ }
500
+ }
501
+ return msg;
502
+ };
503
+
504
+
505
+ /**
506
+ * Serializes the message to binary data (in protobuf wire format).
507
+ * @return {!Uint8Array}
508
+ */
509
+ proto.liveedit.v2.LiveEdit.prototype.serializeBinary = function() {
510
+ var writer = new jspb.BinaryWriter();
511
+ proto.liveedit.v2.LiveEdit.serializeBinaryToWriter(this, writer);
512
+ return writer.getResultBuffer();
513
+ };
514
+
515
+
516
+ /**
517
+ * Serializes the given message to binary data (in protobuf wire
518
+ * format), writing to the given BinaryWriter.
519
+ * @param {!proto.liveedit.v2.LiveEdit} message
520
+ * @param {!jspb.BinaryWriter} writer
521
+ * @suppress {unusedLocalVariables} f is only used for nested messages
522
+ */
523
+ proto.liveedit.v2.LiveEdit.serializeBinaryToWriter = function(message, writer) {
524
+ var f = undefined;
525
+ f = message.getLiveEditId();
526
+ if (f.length > 0) {
527
+ writer.writeString(
528
+ 1,
529
+ f
530
+ );
531
+ }
532
+ f = message.getStatus();
533
+ if (f !== 0.0) {
534
+ writer.writeEnum(
535
+ 2,
536
+ f
537
+ );
538
+ }
539
+ f = message.getLiveEditUrl();
540
+ if (f.length > 0) {
541
+ writer.writeString(
542
+ 3,
543
+ f
544
+ );
545
+ }
546
+ f = message.getApplication();
547
+ if (f != null) {
548
+ writer.writeMessage(
549
+ 4,
550
+ f,
551
+ proto.liveedit.v2.Application.serializeBinaryToWriter
552
+ );
553
+ }
554
+ f = message.getCreated();
555
+ if (f != null) {
556
+ writer.writeMessage(
557
+ 5,
558
+ f,
559
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
560
+ );
561
+ }
562
+ f = message.getUpdated();
563
+ if (f != null) {
564
+ writer.writeMessage(
565
+ 6,
566
+ f,
567
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
568
+ );
569
+ }
570
+ f = message.getExpiresAt();
571
+ if (f !== 0) {
572
+ writer.writeInt64(
573
+ 7,
574
+ f
575
+ );
576
+ }
577
+ };
578
+
579
+
580
+ /**
581
+ * optional string live_edit_id = 1;
582
+ * @return {string}
583
+ */
584
+ proto.liveedit.v2.LiveEdit.prototype.getLiveEditId = function() {
585
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
586
+ };
587
+
588
+
589
+ /**
590
+ * @param {string} value
591
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
592
+ */
593
+ proto.liveedit.v2.LiveEdit.prototype.setLiveEditId = function(value) {
594
+ return jspb.Message.setProto3StringField(this, 1, value);
595
+ };
596
+
597
+
598
+ /**
599
+ * optional LiveEditStatus status = 2;
600
+ * @return {!proto.liveedit.v2.LiveEditStatus}
601
+ */
602
+ proto.liveedit.v2.LiveEdit.prototype.getStatus = function() {
603
+ return /** @type {!proto.liveedit.v2.LiveEditStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
604
+ };
605
+
606
+
607
+ /**
608
+ * @param {!proto.liveedit.v2.LiveEditStatus} value
609
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
610
+ */
611
+ proto.liveedit.v2.LiveEdit.prototype.setStatus = function(value) {
612
+ return jspb.Message.setProto3EnumField(this, 2, value);
613
+ };
614
+
615
+
616
+ /**
617
+ * optional string live_edit_url = 3;
618
+ * @return {string}
619
+ */
620
+ proto.liveedit.v2.LiveEdit.prototype.getLiveEditUrl = function() {
621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
622
+ };
623
+
624
+
625
+ /**
626
+ * @param {string} value
627
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
628
+ */
629
+ proto.liveedit.v2.LiveEdit.prototype.setLiveEditUrl = function(value) {
630
+ return jspb.Message.setProto3StringField(this, 3, value);
631
+ };
632
+
633
+
634
+ /**
635
+ * optional Application application = 4;
636
+ * @return {?proto.liveedit.v2.Application}
637
+ */
638
+ proto.liveedit.v2.LiveEdit.prototype.getApplication = function() {
639
+ return /** @type{?proto.liveedit.v2.Application} */ (
640
+ jspb.Message.getWrapperField(this, proto.liveedit.v2.Application, 4));
641
+ };
642
+
643
+
644
+ /**
645
+ * @param {?proto.liveedit.v2.Application|undefined} value
646
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
647
+ */
648
+ proto.liveedit.v2.LiveEdit.prototype.setApplication = function(value) {
649
+ return jspb.Message.setWrapperField(this, 4, value);
650
+ };
651
+
652
+
653
+ /**
654
+ * Clears the message field making it undefined.
655
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
656
+ */
657
+ proto.liveedit.v2.LiveEdit.prototype.clearApplication = function() {
658
+ return this.setApplication(undefined);
659
+ };
660
+
661
+
662
+ /**
663
+ * Returns whether this field is set.
664
+ * @return {boolean}
665
+ */
666
+ proto.liveedit.v2.LiveEdit.prototype.hasApplication = function() {
667
+ return jspb.Message.getField(this, 4) != null;
668
+ };
669
+
670
+
671
+ /**
672
+ * optional google.protobuf.Timestamp created = 5;
673
+ * @return {?proto.google.protobuf.Timestamp}
674
+ */
675
+ proto.liveedit.v2.LiveEdit.prototype.getCreated = function() {
676
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
677
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
678
+ };
679
+
680
+
681
+ /**
682
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
683
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
684
+ */
685
+ proto.liveedit.v2.LiveEdit.prototype.setCreated = function(value) {
686
+ return jspb.Message.setWrapperField(this, 5, value);
687
+ };
688
+
689
+
690
+ /**
691
+ * Clears the message field making it undefined.
692
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
693
+ */
694
+ proto.liveedit.v2.LiveEdit.prototype.clearCreated = function() {
695
+ return this.setCreated(undefined);
696
+ };
697
+
698
+
699
+ /**
700
+ * Returns whether this field is set.
701
+ * @return {boolean}
702
+ */
703
+ proto.liveedit.v2.LiveEdit.prototype.hasCreated = function() {
704
+ return jspb.Message.getField(this, 5) != null;
705
+ };
706
+
707
+
708
+ /**
709
+ * optional google.protobuf.Timestamp updated = 6;
710
+ * @return {?proto.google.protobuf.Timestamp}
711
+ */
712
+ proto.liveedit.v2.LiveEdit.prototype.getUpdated = function() {
713
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
714
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
715
+ };
716
+
717
+
718
+ /**
719
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
720
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
721
+ */
722
+ proto.liveedit.v2.LiveEdit.prototype.setUpdated = function(value) {
723
+ return jspb.Message.setWrapperField(this, 6, value);
724
+ };
725
+
726
+
727
+ /**
728
+ * Clears the message field making it undefined.
729
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
730
+ */
731
+ proto.liveedit.v2.LiveEdit.prototype.clearUpdated = function() {
732
+ return this.setUpdated(undefined);
733
+ };
734
+
735
+
736
+ /**
737
+ * Returns whether this field is set.
738
+ * @return {boolean}
739
+ */
740
+ proto.liveedit.v2.LiveEdit.prototype.hasUpdated = function() {
741
+ return jspb.Message.getField(this, 6) != null;
742
+ };
743
+
744
+
745
+ /**
746
+ * optional int64 expires_at = 7;
747
+ * @return {number}
748
+ */
749
+ proto.liveedit.v2.LiveEdit.prototype.getExpiresAt = function() {
750
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
751
+ };
752
+
753
+
754
+ /**
755
+ * @param {number} value
756
+ * @return {!proto.liveedit.v2.LiveEdit} returns this
757
+ */
758
+ proto.liveedit.v2.LiveEdit.prototype.setExpiresAt = function(value) {
759
+ return jspb.Message.setProto3IntField(this, 7, value);
760
+ };
761
+
762
+
763
+
764
+
765
+
766
+ if (jspb.Message.GENERATE_TO_OBJECT) {
767
+ /**
768
+ * Creates an object representation of this proto.
769
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
770
+ * Optional fields that are not set will be set to undefined.
771
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
772
+ * For the list of reserved names please see:
773
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
774
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
775
+ * JSPB instance for transitional soy proto support:
776
+ * http://goto/soy-param-migration
777
+ * @return {!Object}
778
+ */
779
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.toObject = function(opt_includeInstance) {
780
+ return proto.liveedit.v2.EnsureLiveEditRequest.toObject(opt_includeInstance, this);
781
+ };
782
+
783
+
784
+ /**
785
+ * Static version of the {@see toObject} method.
786
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
787
+ * the JSPB instance for transitional soy proto support:
788
+ * http://goto/soy-param-migration
789
+ * @param {!proto.liveedit.v2.EnsureLiveEditRequest} msg The msg instance to transform.
790
+ * @return {!Object}
791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
792
+ */
793
+ proto.liveedit.v2.EnsureLiveEditRequest.toObject = function(includeInstance, msg) {
794
+ var f, obj = {
795
+ spec: (f = msg.getSpec()) && proto.liveedit.v2.LiveEditSpec.toObject(includeInstance, f),
796
+ sessionJwt: jspb.Message.getFieldWithDefault(msg, 3, "")
797
+ };
798
+
799
+ if (includeInstance) {
800
+ obj.$jspbMessageInstance = msg;
801
+ }
802
+ return obj;
803
+ };
804
+ }
805
+
806
+
807
+ /**
808
+ * Deserializes binary data (in protobuf wire format).
809
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
810
+ * @return {!proto.liveedit.v2.EnsureLiveEditRequest}
811
+ */
812
+ proto.liveedit.v2.EnsureLiveEditRequest.deserializeBinary = function(bytes) {
813
+ var reader = new jspb.BinaryReader(bytes);
814
+ var msg = new proto.liveedit.v2.EnsureLiveEditRequest;
815
+ return proto.liveedit.v2.EnsureLiveEditRequest.deserializeBinaryFromReader(msg, reader);
816
+ };
817
+
818
+
819
+ /**
820
+ * Deserializes binary data (in protobuf wire format) from the
821
+ * given reader into the given message object.
822
+ * @param {!proto.liveedit.v2.EnsureLiveEditRequest} msg The message object to deserialize into.
823
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
824
+ * @return {!proto.liveedit.v2.EnsureLiveEditRequest}
825
+ */
826
+ proto.liveedit.v2.EnsureLiveEditRequest.deserializeBinaryFromReader = function(msg, reader) {
827
+ while (reader.nextField()) {
828
+ if (reader.isEndGroup()) {
829
+ break;
830
+ }
831
+ var field = reader.getFieldNumber();
832
+ switch (field) {
833
+ case 2:
834
+ var value = new proto.liveedit.v2.LiveEditSpec;
835
+ reader.readMessage(value,proto.liveedit.v2.LiveEditSpec.deserializeBinaryFromReader);
836
+ msg.setSpec(value);
837
+ break;
838
+ case 3:
839
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
840
+ msg.setSessionJwt(value);
841
+ break;
842
+ default:
843
+ reader.skipField();
844
+ break;
845
+ }
846
+ }
847
+ return msg;
848
+ };
849
+
850
+
851
+ /**
852
+ * Serializes the message to binary data (in protobuf wire format).
853
+ * @return {!Uint8Array}
854
+ */
855
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.serializeBinary = function() {
856
+ var writer = new jspb.BinaryWriter();
857
+ proto.liveedit.v2.EnsureLiveEditRequest.serializeBinaryToWriter(this, writer);
858
+ return writer.getResultBuffer();
859
+ };
860
+
861
+
862
+ /**
863
+ * Serializes the given message to binary data (in protobuf wire
864
+ * format), writing to the given BinaryWriter.
865
+ * @param {!proto.liveedit.v2.EnsureLiveEditRequest} message
866
+ * @param {!jspb.BinaryWriter} writer
867
+ * @suppress {unusedLocalVariables} f is only used for nested messages
868
+ */
869
+ proto.liveedit.v2.EnsureLiveEditRequest.serializeBinaryToWriter = function(message, writer) {
870
+ var f = undefined;
871
+ f = message.getSpec();
872
+ if (f != null) {
873
+ writer.writeMessage(
874
+ 2,
875
+ f,
876
+ proto.liveedit.v2.LiveEditSpec.serializeBinaryToWriter
877
+ );
878
+ }
879
+ f = message.getSessionJwt();
880
+ if (f.length > 0) {
881
+ writer.writeString(
882
+ 3,
883
+ f
884
+ );
885
+ }
886
+ };
887
+
888
+
889
+ /**
890
+ * optional LiveEditSpec spec = 2;
891
+ * @return {?proto.liveedit.v2.LiveEditSpec}
892
+ */
893
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.getSpec = function() {
894
+ return /** @type{?proto.liveedit.v2.LiveEditSpec} */ (
895
+ jspb.Message.getWrapperField(this, proto.liveedit.v2.LiveEditSpec, 2));
896
+ };
897
+
898
+
899
+ /**
900
+ * @param {?proto.liveedit.v2.LiveEditSpec|undefined} value
901
+ * @return {!proto.liveedit.v2.EnsureLiveEditRequest} returns this
902
+ */
903
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.setSpec = function(value) {
904
+ return jspb.Message.setWrapperField(this, 2, value);
905
+ };
906
+
907
+
908
+ /**
909
+ * Clears the message field making it undefined.
910
+ * @return {!proto.liveedit.v2.EnsureLiveEditRequest} returns this
911
+ */
912
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.clearSpec = function() {
913
+ return this.setSpec(undefined);
914
+ };
915
+
916
+
917
+ /**
918
+ * Returns whether this field is set.
919
+ * @return {boolean}
920
+ */
921
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.hasSpec = function() {
922
+ return jspb.Message.getField(this, 2) != null;
923
+ };
924
+
925
+
926
+ /**
927
+ * optional string session_jwt = 3;
928
+ * @return {string}
929
+ */
930
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.getSessionJwt = function() {
931
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
932
+ };
933
+
934
+
935
+ /**
936
+ * @param {string} value
937
+ * @return {!proto.liveedit.v2.EnsureLiveEditRequest} returns this
938
+ */
939
+ proto.liveedit.v2.EnsureLiveEditRequest.prototype.setSessionJwt = function(value) {
940
+ return jspb.Message.setProto3StringField(this, 3, value);
941
+ };
942
+
943
+
944
+
945
+
946
+
947
+ if (jspb.Message.GENERATE_TO_OBJECT) {
948
+ /**
949
+ * Creates an object representation of this proto.
950
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
951
+ * Optional fields that are not set will be set to undefined.
952
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
953
+ * For the list of reserved names please see:
954
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
955
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
956
+ * JSPB instance for transitional soy proto support:
957
+ * http://goto/soy-param-migration
958
+ * @return {!Object}
959
+ */
960
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.toObject = function(opt_includeInstance) {
961
+ return proto.liveedit.v2.EnsureLiveEditResponse.toObject(opt_includeInstance, this);
962
+ };
963
+
964
+
965
+ /**
966
+ * Static version of the {@see toObject} method.
967
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
968
+ * the JSPB instance for transitional soy proto support:
969
+ * http://goto/soy-param-migration
970
+ * @param {!proto.liveedit.v2.EnsureLiveEditResponse} msg The msg instance to transform.
971
+ * @return {!Object}
972
+ * @suppress {unusedLocalVariables} f is only used for nested messages
973
+ */
974
+ proto.liveedit.v2.EnsureLiveEditResponse.toObject = function(includeInstance, msg) {
975
+ var f, obj = {
976
+ liveEdit: (f = msg.getLiveEdit()) && proto.liveedit.v2.LiveEdit.toObject(includeInstance, f),
977
+ wasCreated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
978
+ };
979
+
980
+ if (includeInstance) {
981
+ obj.$jspbMessageInstance = msg;
982
+ }
983
+ return obj;
984
+ };
985
+ }
986
+
987
+
988
+ /**
989
+ * Deserializes binary data (in protobuf wire format).
990
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
991
+ * @return {!proto.liveedit.v2.EnsureLiveEditResponse}
992
+ */
993
+ proto.liveedit.v2.EnsureLiveEditResponse.deserializeBinary = function(bytes) {
994
+ var reader = new jspb.BinaryReader(bytes);
995
+ var msg = new proto.liveedit.v2.EnsureLiveEditResponse;
996
+ return proto.liveedit.v2.EnsureLiveEditResponse.deserializeBinaryFromReader(msg, reader);
997
+ };
998
+
999
+
1000
+ /**
1001
+ * Deserializes binary data (in protobuf wire format) from the
1002
+ * given reader into the given message object.
1003
+ * @param {!proto.liveedit.v2.EnsureLiveEditResponse} msg The message object to deserialize into.
1004
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1005
+ * @return {!proto.liveedit.v2.EnsureLiveEditResponse}
1006
+ */
1007
+ proto.liveedit.v2.EnsureLiveEditResponse.deserializeBinaryFromReader = function(msg, reader) {
1008
+ while (reader.nextField()) {
1009
+ if (reader.isEndGroup()) {
1010
+ break;
1011
+ }
1012
+ var field = reader.getFieldNumber();
1013
+ switch (field) {
1014
+ case 1:
1015
+ var value = new proto.liveedit.v2.LiveEdit;
1016
+ reader.readMessage(value,proto.liveedit.v2.LiveEdit.deserializeBinaryFromReader);
1017
+ msg.setLiveEdit(value);
1018
+ break;
1019
+ case 2:
1020
+ var value = /** @type {boolean} */ (reader.readBool());
1021
+ msg.setWasCreated(value);
1022
+ break;
1023
+ default:
1024
+ reader.skipField();
1025
+ break;
1026
+ }
1027
+ }
1028
+ return msg;
1029
+ };
1030
+
1031
+
1032
+ /**
1033
+ * Serializes the message to binary data (in protobuf wire format).
1034
+ * @return {!Uint8Array}
1035
+ */
1036
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.serializeBinary = function() {
1037
+ var writer = new jspb.BinaryWriter();
1038
+ proto.liveedit.v2.EnsureLiveEditResponse.serializeBinaryToWriter(this, writer);
1039
+ return writer.getResultBuffer();
1040
+ };
1041
+
1042
+
1043
+ /**
1044
+ * Serializes the given message to binary data (in protobuf wire
1045
+ * format), writing to the given BinaryWriter.
1046
+ * @param {!proto.liveedit.v2.EnsureLiveEditResponse} message
1047
+ * @param {!jspb.BinaryWriter} writer
1048
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1049
+ */
1050
+ proto.liveedit.v2.EnsureLiveEditResponse.serializeBinaryToWriter = function(message, writer) {
1051
+ var f = undefined;
1052
+ f = message.getLiveEdit();
1053
+ if (f != null) {
1054
+ writer.writeMessage(
1055
+ 1,
1056
+ f,
1057
+ proto.liveedit.v2.LiveEdit.serializeBinaryToWriter
1058
+ );
1059
+ }
1060
+ f = message.getWasCreated();
1061
+ if (f) {
1062
+ writer.writeBool(
1063
+ 2,
1064
+ f
1065
+ );
1066
+ }
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * optional LiveEdit live_edit = 1;
1072
+ * @return {?proto.liveedit.v2.LiveEdit}
1073
+ */
1074
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.getLiveEdit = function() {
1075
+ return /** @type{?proto.liveedit.v2.LiveEdit} */ (
1076
+ jspb.Message.getWrapperField(this, proto.liveedit.v2.LiveEdit, 1));
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * @param {?proto.liveedit.v2.LiveEdit|undefined} value
1082
+ * @return {!proto.liveedit.v2.EnsureLiveEditResponse} returns this
1083
+ */
1084
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.setLiveEdit = function(value) {
1085
+ return jspb.Message.setWrapperField(this, 1, value);
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * Clears the message field making it undefined.
1091
+ * @return {!proto.liveedit.v2.EnsureLiveEditResponse} returns this
1092
+ */
1093
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.clearLiveEdit = function() {
1094
+ return this.setLiveEdit(undefined);
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * Returns whether this field is set.
1100
+ * @return {boolean}
1101
+ */
1102
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.hasLiveEdit = function() {
1103
+ return jspb.Message.getField(this, 1) != null;
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * optional bool was_created = 2;
1109
+ * @return {boolean}
1110
+ */
1111
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.getWasCreated = function() {
1112
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * @param {boolean} value
1118
+ * @return {!proto.liveedit.v2.EnsureLiveEditResponse} returns this
1119
+ */
1120
+ proto.liveedit.v2.EnsureLiveEditResponse.prototype.setWasCreated = function(value) {
1121
+ return jspb.Message.setProto3BooleanField(this, 2, value);
1122
+ };
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1129
+ /**
1130
+ * Creates an object representation of this proto.
1131
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1132
+ * Optional fields that are not set will be set to undefined.
1133
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1134
+ * For the list of reserved names please see:
1135
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1136
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1137
+ * JSPB instance for transitional soy proto support:
1138
+ * http://goto/soy-param-migration
1139
+ * @return {!Object}
1140
+ */
1141
+ proto.liveedit.v2.GetLiveEditRequest.prototype.toObject = function(opt_includeInstance) {
1142
+ return proto.liveedit.v2.GetLiveEditRequest.toObject(opt_includeInstance, this);
1143
+ };
1144
+
1145
+
1146
+ /**
1147
+ * Static version of the {@see toObject} method.
1148
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1149
+ * the JSPB instance for transitional soy proto support:
1150
+ * http://goto/soy-param-migration
1151
+ * @param {!proto.liveedit.v2.GetLiveEditRequest} msg The msg instance to transform.
1152
+ * @return {!Object}
1153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1154
+ */
1155
+ proto.liveedit.v2.GetLiveEditRequest.toObject = function(includeInstance, msg) {
1156
+ var f, obj = {
1157
+ liveEditId: jspb.Message.getFieldWithDefault(msg, 1, "")
1158
+ };
1159
+
1160
+ if (includeInstance) {
1161
+ obj.$jspbMessageInstance = msg;
1162
+ }
1163
+ return obj;
1164
+ };
1165
+ }
1166
+
1167
+
1168
+ /**
1169
+ * Deserializes binary data (in protobuf wire format).
1170
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1171
+ * @return {!proto.liveedit.v2.GetLiveEditRequest}
1172
+ */
1173
+ proto.liveedit.v2.GetLiveEditRequest.deserializeBinary = function(bytes) {
1174
+ var reader = new jspb.BinaryReader(bytes);
1175
+ var msg = new proto.liveedit.v2.GetLiveEditRequest;
1176
+ return proto.liveedit.v2.GetLiveEditRequest.deserializeBinaryFromReader(msg, reader);
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * Deserializes binary data (in protobuf wire format) from the
1182
+ * given reader into the given message object.
1183
+ * @param {!proto.liveedit.v2.GetLiveEditRequest} msg The message object to deserialize into.
1184
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1185
+ * @return {!proto.liveedit.v2.GetLiveEditRequest}
1186
+ */
1187
+ proto.liveedit.v2.GetLiveEditRequest.deserializeBinaryFromReader = function(msg, reader) {
1188
+ while (reader.nextField()) {
1189
+ if (reader.isEndGroup()) {
1190
+ break;
1191
+ }
1192
+ var field = reader.getFieldNumber();
1193
+ switch (field) {
1194
+ case 1:
1195
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1196
+ msg.setLiveEditId(value);
1197
+ break;
1198
+ default:
1199
+ reader.skipField();
1200
+ break;
1201
+ }
1202
+ }
1203
+ return msg;
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * Serializes the message to binary data (in protobuf wire format).
1209
+ * @return {!Uint8Array}
1210
+ */
1211
+ proto.liveedit.v2.GetLiveEditRequest.prototype.serializeBinary = function() {
1212
+ var writer = new jspb.BinaryWriter();
1213
+ proto.liveedit.v2.GetLiveEditRequest.serializeBinaryToWriter(this, writer);
1214
+ return writer.getResultBuffer();
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * Serializes the given message to binary data (in protobuf wire
1220
+ * format), writing to the given BinaryWriter.
1221
+ * @param {!proto.liveedit.v2.GetLiveEditRequest} message
1222
+ * @param {!jspb.BinaryWriter} writer
1223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1224
+ */
1225
+ proto.liveedit.v2.GetLiveEditRequest.serializeBinaryToWriter = function(message, writer) {
1226
+ var f = undefined;
1227
+ f = message.getLiveEditId();
1228
+ if (f.length > 0) {
1229
+ writer.writeString(
1230
+ 1,
1231
+ f
1232
+ );
1233
+ }
1234
+ };
1235
+
1236
+
1237
+ /**
1238
+ * optional string live_edit_id = 1;
1239
+ * @return {string}
1240
+ */
1241
+ proto.liveedit.v2.GetLiveEditRequest.prototype.getLiveEditId = function() {
1242
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * @param {string} value
1248
+ * @return {!proto.liveedit.v2.GetLiveEditRequest} returns this
1249
+ */
1250
+ proto.liveedit.v2.GetLiveEditRequest.prototype.setLiveEditId = function(value) {
1251
+ return jspb.Message.setProto3StringField(this, 1, value);
1252
+ };
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1259
+ /**
1260
+ * Creates an object representation of this proto.
1261
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1262
+ * Optional fields that are not set will be set to undefined.
1263
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1264
+ * For the list of reserved names please see:
1265
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1266
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1267
+ * JSPB instance for transitional soy proto support:
1268
+ * http://goto/soy-param-migration
1269
+ * @return {!Object}
1270
+ */
1271
+ proto.liveedit.v2.GetLiveEditResponse.prototype.toObject = function(opt_includeInstance) {
1272
+ return proto.liveedit.v2.GetLiveEditResponse.toObject(opt_includeInstance, this);
1273
+ };
1274
+
1275
+
1276
+ /**
1277
+ * Static version of the {@see toObject} method.
1278
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1279
+ * the JSPB instance for transitional soy proto support:
1280
+ * http://goto/soy-param-migration
1281
+ * @param {!proto.liveedit.v2.GetLiveEditResponse} msg The msg instance to transform.
1282
+ * @return {!Object}
1283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1284
+ */
1285
+ proto.liveedit.v2.GetLiveEditResponse.toObject = function(includeInstance, msg) {
1286
+ var f, obj = {
1287
+ liveEdit: (f = msg.getLiveEdit()) && proto.liveedit.v2.LiveEdit.toObject(includeInstance, f)
1288
+ };
1289
+
1290
+ if (includeInstance) {
1291
+ obj.$jspbMessageInstance = msg;
1292
+ }
1293
+ return obj;
1294
+ };
1295
+ }
1296
+
1297
+
1298
+ /**
1299
+ * Deserializes binary data (in protobuf wire format).
1300
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1301
+ * @return {!proto.liveedit.v2.GetLiveEditResponse}
1302
+ */
1303
+ proto.liveedit.v2.GetLiveEditResponse.deserializeBinary = function(bytes) {
1304
+ var reader = new jspb.BinaryReader(bytes);
1305
+ var msg = new proto.liveedit.v2.GetLiveEditResponse;
1306
+ return proto.liveedit.v2.GetLiveEditResponse.deserializeBinaryFromReader(msg, reader);
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * Deserializes binary data (in protobuf wire format) from the
1312
+ * given reader into the given message object.
1313
+ * @param {!proto.liveedit.v2.GetLiveEditResponse} msg The message object to deserialize into.
1314
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1315
+ * @return {!proto.liveedit.v2.GetLiveEditResponse}
1316
+ */
1317
+ proto.liveedit.v2.GetLiveEditResponse.deserializeBinaryFromReader = function(msg, reader) {
1318
+ while (reader.nextField()) {
1319
+ if (reader.isEndGroup()) {
1320
+ break;
1321
+ }
1322
+ var field = reader.getFieldNumber();
1323
+ switch (field) {
1324
+ case 1:
1325
+ var value = new proto.liveedit.v2.LiveEdit;
1326
+ reader.readMessage(value,proto.liveedit.v2.LiveEdit.deserializeBinaryFromReader);
1327
+ msg.setLiveEdit(value);
1328
+ break;
1329
+ default:
1330
+ reader.skipField();
1331
+ break;
1332
+ }
1333
+ }
1334
+ return msg;
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * Serializes the message to binary data (in protobuf wire format).
1340
+ * @return {!Uint8Array}
1341
+ */
1342
+ proto.liveedit.v2.GetLiveEditResponse.prototype.serializeBinary = function() {
1343
+ var writer = new jspb.BinaryWriter();
1344
+ proto.liveedit.v2.GetLiveEditResponse.serializeBinaryToWriter(this, writer);
1345
+ return writer.getResultBuffer();
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * Serializes the given message to binary data (in protobuf wire
1351
+ * format), writing to the given BinaryWriter.
1352
+ * @param {!proto.liveedit.v2.GetLiveEditResponse} message
1353
+ * @param {!jspb.BinaryWriter} writer
1354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1355
+ */
1356
+ proto.liveedit.v2.GetLiveEditResponse.serializeBinaryToWriter = function(message, writer) {
1357
+ var f = undefined;
1358
+ f = message.getLiveEdit();
1359
+ if (f != null) {
1360
+ writer.writeMessage(
1361
+ 1,
1362
+ f,
1363
+ proto.liveedit.v2.LiveEdit.serializeBinaryToWriter
1364
+ );
1365
+ }
1366
+ };
1367
+
1368
+
1369
+ /**
1370
+ * optional LiveEdit live_edit = 1;
1371
+ * @return {?proto.liveedit.v2.LiveEdit}
1372
+ */
1373
+ proto.liveedit.v2.GetLiveEditResponse.prototype.getLiveEdit = function() {
1374
+ return /** @type{?proto.liveedit.v2.LiveEdit} */ (
1375
+ jspb.Message.getWrapperField(this, proto.liveedit.v2.LiveEdit, 1));
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * @param {?proto.liveedit.v2.LiveEdit|undefined} value
1381
+ * @return {!proto.liveedit.v2.GetLiveEditResponse} returns this
1382
+ */
1383
+ proto.liveedit.v2.GetLiveEditResponse.prototype.setLiveEdit = function(value) {
1384
+ return jspb.Message.setWrapperField(this, 1, value);
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * Clears the message field making it undefined.
1390
+ * @return {!proto.liveedit.v2.GetLiveEditResponse} returns this
1391
+ */
1392
+ proto.liveedit.v2.GetLiveEditResponse.prototype.clearLiveEdit = function() {
1393
+ return this.setLiveEdit(undefined);
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * Returns whether this field is set.
1399
+ * @return {boolean}
1400
+ */
1401
+ proto.liveedit.v2.GetLiveEditResponse.prototype.hasLiveEdit = function() {
1402
+ return jspb.Message.getField(this, 1) != null;
1403
+ };
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1410
+ /**
1411
+ * Creates an object representation of this proto.
1412
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1413
+ * Optional fields that are not set will be set to undefined.
1414
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1415
+ * For the list of reserved names please see:
1416
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1417
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1418
+ * JSPB instance for transitional soy proto support:
1419
+ * http://goto/soy-param-migration
1420
+ * @return {!Object}
1421
+ */
1422
+ proto.liveedit.v2.Application.prototype.toObject = function(opt_includeInstance) {
1423
+ return proto.liveedit.v2.Application.toObject(opt_includeInstance, this);
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * Static version of the {@see toObject} method.
1429
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1430
+ * the JSPB instance for transitional soy proto support:
1431
+ * http://goto/soy-param-migration
1432
+ * @param {!proto.liveedit.v2.Application} msg The msg instance to transform.
1433
+ * @return {!Object}
1434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1435
+ */
1436
+ proto.liveedit.v2.Application.toObject = function(includeInstance, msg) {
1437
+ var f, obj = {
1438
+ applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1439
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1440
+ branch: jspb.Message.getFieldWithDefault(msg, 3, ""),
1441
+ templateName: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
1442
+ };
1443
+
1444
+ if (includeInstance) {
1445
+ obj.$jspbMessageInstance = msg;
1446
+ }
1447
+ return obj;
1448
+ };
1449
+ }
1450
+
1451
+
1452
+ /**
1453
+ * Deserializes binary data (in protobuf wire format).
1454
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1455
+ * @return {!proto.liveedit.v2.Application}
1456
+ */
1457
+ proto.liveedit.v2.Application.deserializeBinary = function(bytes) {
1458
+ var reader = new jspb.BinaryReader(bytes);
1459
+ var msg = new proto.liveedit.v2.Application;
1460
+ return proto.liveedit.v2.Application.deserializeBinaryFromReader(msg, reader);
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * Deserializes binary data (in protobuf wire format) from the
1466
+ * given reader into the given message object.
1467
+ * @param {!proto.liveedit.v2.Application} msg The message object to deserialize into.
1468
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1469
+ * @return {!proto.liveedit.v2.Application}
1470
+ */
1471
+ proto.liveedit.v2.Application.deserializeBinaryFromReader = function(msg, reader) {
1472
+ while (reader.nextField()) {
1473
+ if (reader.isEndGroup()) {
1474
+ break;
1475
+ }
1476
+ var field = reader.getFieldNumber();
1477
+ switch (field) {
1478
+ case 1:
1479
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1480
+ msg.setApplicationId(value);
1481
+ break;
1482
+ case 2:
1483
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1484
+ msg.setOrganizationId(value);
1485
+ break;
1486
+ case 3:
1487
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1488
+ msg.setBranch(value);
1489
+ break;
1490
+ case 4:
1491
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1492
+ msg.setTemplateName(value);
1493
+ break;
1494
+ default:
1495
+ reader.skipField();
1496
+ break;
1497
+ }
1498
+ }
1499
+ return msg;
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * Serializes the message to binary data (in protobuf wire format).
1505
+ * @return {!Uint8Array}
1506
+ */
1507
+ proto.liveedit.v2.Application.prototype.serializeBinary = function() {
1508
+ var writer = new jspb.BinaryWriter();
1509
+ proto.liveedit.v2.Application.serializeBinaryToWriter(this, writer);
1510
+ return writer.getResultBuffer();
1511
+ };
1512
+
1513
+
1514
+ /**
1515
+ * Serializes the given message to binary data (in protobuf wire
1516
+ * format), writing to the given BinaryWriter.
1517
+ * @param {!proto.liveedit.v2.Application} message
1518
+ * @param {!jspb.BinaryWriter} writer
1519
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1520
+ */
1521
+ proto.liveedit.v2.Application.serializeBinaryToWriter = function(message, writer) {
1522
+ var f = undefined;
1523
+ f = message.getApplicationId();
1524
+ if (f.length > 0) {
1525
+ writer.writeString(
1526
+ 1,
1527
+ f
1528
+ );
1529
+ }
1530
+ f = message.getOrganizationId();
1531
+ if (f.length > 0) {
1532
+ writer.writeString(
1533
+ 2,
1534
+ f
1535
+ );
1536
+ }
1537
+ f = message.getBranch();
1538
+ if (f.length > 0) {
1539
+ writer.writeString(
1540
+ 3,
1541
+ f
1542
+ );
1543
+ }
1544
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
1545
+ if (f != null) {
1546
+ writer.writeString(
1547
+ 4,
1548
+ f
1549
+ );
1550
+ }
1551
+ };
1552
+
1553
+
1554
+ /**
1555
+ * optional string application_id = 1;
1556
+ * @return {string}
1557
+ */
1558
+ proto.liveedit.v2.Application.prototype.getApplicationId = function() {
1559
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1560
+ };
1561
+
1562
+
1563
+ /**
1564
+ * @param {string} value
1565
+ * @return {!proto.liveedit.v2.Application} returns this
1566
+ */
1567
+ proto.liveedit.v2.Application.prototype.setApplicationId = function(value) {
1568
+ return jspb.Message.setProto3StringField(this, 1, value);
1569
+ };
1570
+
1571
+
1572
+ /**
1573
+ * optional string organization_id = 2;
1574
+ * @return {string}
1575
+ */
1576
+ proto.liveedit.v2.Application.prototype.getOrganizationId = function() {
1577
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1578
+ };
1579
+
1580
+
1581
+ /**
1582
+ * @param {string} value
1583
+ * @return {!proto.liveedit.v2.Application} returns this
1584
+ */
1585
+ proto.liveedit.v2.Application.prototype.setOrganizationId = function(value) {
1586
+ return jspb.Message.setProto3StringField(this, 2, value);
1587
+ };
1588
+
1589
+
1590
+ /**
1591
+ * optional string branch = 3;
1592
+ * @return {string}
1593
+ */
1594
+ proto.liveedit.v2.Application.prototype.getBranch = function() {
1595
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1596
+ };
1597
+
1598
+
1599
+ /**
1600
+ * @param {string} value
1601
+ * @return {!proto.liveedit.v2.Application} returns this
1602
+ */
1603
+ proto.liveedit.v2.Application.prototype.setBranch = function(value) {
1604
+ return jspb.Message.setProto3StringField(this, 3, value);
1605
+ };
1606
+
1607
+
1608
+ /**
1609
+ * optional string template_name = 4;
1610
+ * @return {string}
1611
+ */
1612
+ proto.liveedit.v2.Application.prototype.getTemplateName = function() {
1613
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1614
+ };
1615
+
1616
+
1617
+ /**
1618
+ * @param {string} value
1619
+ * @return {!proto.liveedit.v2.Application} returns this
1620
+ */
1621
+ proto.liveedit.v2.Application.prototype.setTemplateName = function(value) {
1622
+ return jspb.Message.setField(this, 4, value);
1623
+ };
1624
+
1625
+
1626
+ /**
1627
+ * Clears the field making it undefined.
1628
+ * @return {!proto.liveedit.v2.Application} returns this
1629
+ */
1630
+ proto.liveedit.v2.Application.prototype.clearTemplateName = function() {
1631
+ return jspb.Message.setField(this, 4, undefined);
1632
+ };
1633
+
1634
+
1635
+ /**
1636
+ * Returns whether this field is set.
1637
+ * @return {boolean}
1638
+ */
1639
+ proto.liveedit.v2.Application.prototype.hasTemplateName = function() {
1640
+ return jspb.Message.getField(this, 4) != null;
1641
+ };
1642
+
1643
+
1644
+ /**
1645
+ * @enum {number}
1646
+ */
1647
+ proto.liveedit.v2.LiveEditStatus = {
1648
+ LIVE_EDIT_STATUS_UNSPECIFIED: 0,
1649
+ LIVE_EDIT_STATUS_STARTING: 1,
1650
+ LIVE_EDIT_STATUS_ACTIVE: 2,
1651
+ LIVE_EDIT_STATUS_TERMINATED: 3,
1652
+ LIVE_EDIT_STATUS_UNKNOWN: 4,
1653
+ LIVE_EDIT_STATUS_TERMINATING: 5
1654
+ };
1655
+
1656
+ goog.object.extend(exports, proto.liveedit.v2);