@superblocksteam/sabs-types-js 0.127.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,718 @@
1
+ // source: liveedit/v1/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 =
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_api_annotations_pb = require('../../google/api/annotations_pb');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
27
+ goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
28
+ goog.exportSymbol('proto.liveedit.v1.Application', null, global);
29
+ goog.exportSymbol('proto.liveedit.v1.CreateLiveEditRequest', null, global);
30
+ goog.exportSymbol('proto.liveedit.v1.CreateLiveEditResponse', null, global);
31
+ goog.exportSymbol('proto.liveedit.v1.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.v1.CreateLiveEditRequest = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.liveedit.v1.CreateLiveEditRequest, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.liveedit.v1.CreateLiveEditRequest.displayName = 'proto.liveedit.v1.CreateLiveEditRequest';
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.v1.Application = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.liveedit.v1.Application, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.liveedit.v1.Application.displayName = 'proto.liveedit.v1.Application';
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.v1.CreateLiveEditResponse = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.liveedit.v1.CreateLiveEditResponse, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.liveedit.v1.CreateLiveEditResponse.displayName = 'proto.liveedit.v1.CreateLiveEditResponse';
94
+ }
95
+
96
+
97
+
98
+ if (jspb.Message.GENERATE_TO_OBJECT) {
99
+ /**
100
+ * Creates an object representation of this proto.
101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
102
+ * Optional fields that are not set will be set to undefined.
103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
104
+ * For the list of reserved names please see:
105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
107
+ * JSPB instance for transitional soy proto support:
108
+ * http://goto/soy-param-migration
109
+ * @return {!Object}
110
+ */
111
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.toObject = function(opt_includeInstance) {
112
+ return proto.liveedit.v1.CreateLiveEditRequest.toObject(opt_includeInstance, this);
113
+ };
114
+
115
+
116
+ /**
117
+ * Static version of the {@see toObject} method.
118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
119
+ * the JSPB instance for transitional soy proto support:
120
+ * http://goto/soy-param-migration
121
+ * @param {!proto.liveedit.v1.CreateLiveEditRequest} msg The msg instance to transform.
122
+ * @return {!Object}
123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
124
+ */
125
+ proto.liveedit.v1.CreateLiveEditRequest.toObject = function(includeInstance, msg) {
126
+ var f, obj = {
127
+ application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f),
128
+ sessionJwt: jspb.Message.getFieldWithDefault(msg, 2, ""),
129
+ expiresIn: jspb.Message.getFieldWithDefault(msg, 3, 0)
130
+ };
131
+
132
+ if (includeInstance) {
133
+ obj.$jspbMessageInstance = msg;
134
+ }
135
+ return obj;
136
+ };
137
+ }
138
+
139
+
140
+ /**
141
+ * Deserializes binary data (in protobuf wire format).
142
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
143
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest}
144
+ */
145
+ proto.liveedit.v1.CreateLiveEditRequest.deserializeBinary = function(bytes) {
146
+ var reader = new jspb.BinaryReader(bytes);
147
+ var msg = new proto.liveedit.v1.CreateLiveEditRequest;
148
+ return proto.liveedit.v1.CreateLiveEditRequest.deserializeBinaryFromReader(msg, reader);
149
+ };
150
+
151
+
152
+ /**
153
+ * Deserializes binary data (in protobuf wire format) from the
154
+ * given reader into the given message object.
155
+ * @param {!proto.liveedit.v1.CreateLiveEditRequest} msg The message object to deserialize into.
156
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
157
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest}
158
+ */
159
+ proto.liveedit.v1.CreateLiveEditRequest.deserializeBinaryFromReader = function(msg, reader) {
160
+ while (reader.nextField()) {
161
+ if (reader.isEndGroup()) {
162
+ break;
163
+ }
164
+ var field = reader.getFieldNumber();
165
+ switch (field) {
166
+ case 1:
167
+ var value = new proto.liveedit.v1.Application;
168
+ reader.readMessage(value,proto.liveedit.v1.Application.deserializeBinaryFromReader);
169
+ msg.setApplication(value);
170
+ break;
171
+ case 2:
172
+ var value = /** @type {string} */ (reader.readString());
173
+ msg.setSessionJwt(value);
174
+ break;
175
+ case 3:
176
+ var value = /** @type {number} */ (reader.readInt64());
177
+ msg.setExpiresIn(value);
178
+ break;
179
+ default:
180
+ reader.skipField();
181
+ break;
182
+ }
183
+ }
184
+ return msg;
185
+ };
186
+
187
+
188
+ /**
189
+ * Serializes the message to binary data (in protobuf wire format).
190
+ * @return {!Uint8Array}
191
+ */
192
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.serializeBinary = function() {
193
+ var writer = new jspb.BinaryWriter();
194
+ proto.liveedit.v1.CreateLiveEditRequest.serializeBinaryToWriter(this, writer);
195
+ return writer.getResultBuffer();
196
+ };
197
+
198
+
199
+ /**
200
+ * Serializes the given message to binary data (in protobuf wire
201
+ * format), writing to the given BinaryWriter.
202
+ * @param {!proto.liveedit.v1.CreateLiveEditRequest} message
203
+ * @param {!jspb.BinaryWriter} writer
204
+ * @suppress {unusedLocalVariables} f is only used for nested messages
205
+ */
206
+ proto.liveedit.v1.CreateLiveEditRequest.serializeBinaryToWriter = function(message, writer) {
207
+ var f = undefined;
208
+ f = message.getApplication();
209
+ if (f != null) {
210
+ writer.writeMessage(
211
+ 1,
212
+ f,
213
+ proto.liveedit.v1.Application.serializeBinaryToWriter
214
+ );
215
+ }
216
+ f = message.getSessionJwt();
217
+ if (f.length > 0) {
218
+ writer.writeString(
219
+ 2,
220
+ f
221
+ );
222
+ }
223
+ f = message.getExpiresIn();
224
+ if (f !== 0) {
225
+ writer.writeInt64(
226
+ 3,
227
+ f
228
+ );
229
+ }
230
+ };
231
+
232
+
233
+ /**
234
+ * optional Application application = 1;
235
+ * @return {?proto.liveedit.v1.Application}
236
+ */
237
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.getApplication = function() {
238
+ return /** @type{?proto.liveedit.v1.Application} */ (
239
+ jspb.Message.getWrapperField(this, proto.liveedit.v1.Application, 1));
240
+ };
241
+
242
+
243
+ /**
244
+ * @param {?proto.liveedit.v1.Application|undefined} value
245
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
246
+ */
247
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.setApplication = function(value) {
248
+ return jspb.Message.setWrapperField(this, 1, value);
249
+ };
250
+
251
+
252
+ /**
253
+ * Clears the message field making it undefined.
254
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
255
+ */
256
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.clearApplication = function() {
257
+ return this.setApplication(undefined);
258
+ };
259
+
260
+
261
+ /**
262
+ * Returns whether this field is set.
263
+ * @return {boolean}
264
+ */
265
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.hasApplication = function() {
266
+ return jspb.Message.getField(this, 1) != null;
267
+ };
268
+
269
+
270
+ /**
271
+ * optional string session_jwt = 2;
272
+ * @return {string}
273
+ */
274
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.getSessionJwt = function() {
275
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
276
+ };
277
+
278
+
279
+ /**
280
+ * @param {string} value
281
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
282
+ */
283
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.setSessionJwt = function(value) {
284
+ return jspb.Message.setProto3StringField(this, 2, value);
285
+ };
286
+
287
+
288
+ /**
289
+ * optional int64 expires_in = 3;
290
+ * @return {number}
291
+ */
292
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.getExpiresIn = function() {
293
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
294
+ };
295
+
296
+
297
+ /**
298
+ * @param {number} value
299
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
300
+ */
301
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.setExpiresIn = function(value) {
302
+ return jspb.Message.setProto3IntField(this, 3, value);
303
+ };
304
+
305
+
306
+
307
+
308
+
309
+ if (jspb.Message.GENERATE_TO_OBJECT) {
310
+ /**
311
+ * Creates an object representation of this proto.
312
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
313
+ * Optional fields that are not set will be set to undefined.
314
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
315
+ * For the list of reserved names please see:
316
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
317
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
318
+ * JSPB instance for transitional soy proto support:
319
+ * http://goto/soy-param-migration
320
+ * @return {!Object}
321
+ */
322
+ proto.liveedit.v1.Application.prototype.toObject = function(opt_includeInstance) {
323
+ return proto.liveedit.v1.Application.toObject(opt_includeInstance, this);
324
+ };
325
+
326
+
327
+ /**
328
+ * Static version of the {@see toObject} method.
329
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
330
+ * the JSPB instance for transitional soy proto support:
331
+ * http://goto/soy-param-migration
332
+ * @param {!proto.liveedit.v1.Application} msg The msg instance to transform.
333
+ * @return {!Object}
334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
335
+ */
336
+ proto.liveedit.v1.Application.toObject = function(includeInstance, msg) {
337
+ var f, obj = {
338
+ applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
339
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
340
+ branch: jspb.Message.getFieldWithDefault(msg, 3, "")
341
+ };
342
+
343
+ if (includeInstance) {
344
+ obj.$jspbMessageInstance = msg;
345
+ }
346
+ return obj;
347
+ };
348
+ }
349
+
350
+
351
+ /**
352
+ * Deserializes binary data (in protobuf wire format).
353
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
354
+ * @return {!proto.liveedit.v1.Application}
355
+ */
356
+ proto.liveedit.v1.Application.deserializeBinary = function(bytes) {
357
+ var reader = new jspb.BinaryReader(bytes);
358
+ var msg = new proto.liveedit.v1.Application;
359
+ return proto.liveedit.v1.Application.deserializeBinaryFromReader(msg, reader);
360
+ };
361
+
362
+
363
+ /**
364
+ * Deserializes binary data (in protobuf wire format) from the
365
+ * given reader into the given message object.
366
+ * @param {!proto.liveedit.v1.Application} msg The message object to deserialize into.
367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
368
+ * @return {!proto.liveedit.v1.Application}
369
+ */
370
+ proto.liveedit.v1.Application.deserializeBinaryFromReader = function(msg, reader) {
371
+ while (reader.nextField()) {
372
+ if (reader.isEndGroup()) {
373
+ break;
374
+ }
375
+ var field = reader.getFieldNumber();
376
+ switch (field) {
377
+ case 1:
378
+ var value = /** @type {string} */ (reader.readString());
379
+ msg.setApplicationId(value);
380
+ break;
381
+ case 2:
382
+ var value = /** @type {string} */ (reader.readString());
383
+ msg.setOrganizationId(value);
384
+ break;
385
+ case 3:
386
+ var value = /** @type {string} */ (reader.readString());
387
+ msg.setBranch(value);
388
+ break;
389
+ default:
390
+ reader.skipField();
391
+ break;
392
+ }
393
+ }
394
+ return msg;
395
+ };
396
+
397
+
398
+ /**
399
+ * Serializes the message to binary data (in protobuf wire format).
400
+ * @return {!Uint8Array}
401
+ */
402
+ proto.liveedit.v1.Application.prototype.serializeBinary = function() {
403
+ var writer = new jspb.BinaryWriter();
404
+ proto.liveedit.v1.Application.serializeBinaryToWriter(this, writer);
405
+ return writer.getResultBuffer();
406
+ };
407
+
408
+
409
+ /**
410
+ * Serializes the given message to binary data (in protobuf wire
411
+ * format), writing to the given BinaryWriter.
412
+ * @param {!proto.liveedit.v1.Application} message
413
+ * @param {!jspb.BinaryWriter} writer
414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
415
+ */
416
+ proto.liveedit.v1.Application.serializeBinaryToWriter = function(message, writer) {
417
+ var f = undefined;
418
+ f = message.getApplicationId();
419
+ if (f.length > 0) {
420
+ writer.writeString(
421
+ 1,
422
+ f
423
+ );
424
+ }
425
+ f = message.getOrganizationId();
426
+ if (f.length > 0) {
427
+ writer.writeString(
428
+ 2,
429
+ f
430
+ );
431
+ }
432
+ f = message.getBranch();
433
+ if (f.length > 0) {
434
+ writer.writeString(
435
+ 3,
436
+ f
437
+ );
438
+ }
439
+ };
440
+
441
+
442
+ /**
443
+ * optional string application_id = 1;
444
+ * @return {string}
445
+ */
446
+ proto.liveedit.v1.Application.prototype.getApplicationId = function() {
447
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
448
+ };
449
+
450
+
451
+ /**
452
+ * @param {string} value
453
+ * @return {!proto.liveedit.v1.Application} returns this
454
+ */
455
+ proto.liveedit.v1.Application.prototype.setApplicationId = function(value) {
456
+ return jspb.Message.setProto3StringField(this, 1, value);
457
+ };
458
+
459
+
460
+ /**
461
+ * optional string organization_id = 2;
462
+ * @return {string}
463
+ */
464
+ proto.liveedit.v1.Application.prototype.getOrganizationId = function() {
465
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
466
+ };
467
+
468
+
469
+ /**
470
+ * @param {string} value
471
+ * @return {!proto.liveedit.v1.Application} returns this
472
+ */
473
+ proto.liveedit.v1.Application.prototype.setOrganizationId = function(value) {
474
+ return jspb.Message.setProto3StringField(this, 2, value);
475
+ };
476
+
477
+
478
+ /**
479
+ * optional string branch = 3;
480
+ * @return {string}
481
+ */
482
+ proto.liveedit.v1.Application.prototype.getBranch = function() {
483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
484
+ };
485
+
486
+
487
+ /**
488
+ * @param {string} value
489
+ * @return {!proto.liveedit.v1.Application} returns this
490
+ */
491
+ proto.liveedit.v1.Application.prototype.setBranch = function(value) {
492
+ return jspb.Message.setProto3StringField(this, 3, value);
493
+ };
494
+
495
+
496
+
497
+
498
+
499
+ if (jspb.Message.GENERATE_TO_OBJECT) {
500
+ /**
501
+ * Creates an object representation of this proto.
502
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
503
+ * Optional fields that are not set will be set to undefined.
504
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
505
+ * For the list of reserved names please see:
506
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
507
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
508
+ * JSPB instance for transitional soy proto support:
509
+ * http://goto/soy-param-migration
510
+ * @return {!Object}
511
+ */
512
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.toObject = function(opt_includeInstance) {
513
+ return proto.liveedit.v1.CreateLiveEditResponse.toObject(opt_includeInstance, this);
514
+ };
515
+
516
+
517
+ /**
518
+ * Static version of the {@see toObject} method.
519
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
520
+ * the JSPB instance for transitional soy proto support:
521
+ * http://goto/soy-param-migration
522
+ * @param {!proto.liveedit.v1.CreateLiveEditResponse} msg The msg instance to transform.
523
+ * @return {!Object}
524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
525
+ */
526
+ proto.liveedit.v1.CreateLiveEditResponse.toObject = function(includeInstance, msg) {
527
+ var f, obj = {
528
+ liveEditUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
529
+ application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f),
530
+ expiresAt: jspb.Message.getFieldWithDefault(msg, 3, 0)
531
+ };
532
+
533
+ if (includeInstance) {
534
+ obj.$jspbMessageInstance = msg;
535
+ }
536
+ return obj;
537
+ };
538
+ }
539
+
540
+
541
+ /**
542
+ * Deserializes binary data (in protobuf wire format).
543
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
544
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse}
545
+ */
546
+ proto.liveedit.v1.CreateLiveEditResponse.deserializeBinary = function(bytes) {
547
+ var reader = new jspb.BinaryReader(bytes);
548
+ var msg = new proto.liveedit.v1.CreateLiveEditResponse;
549
+ return proto.liveedit.v1.CreateLiveEditResponse.deserializeBinaryFromReader(msg, reader);
550
+ };
551
+
552
+
553
+ /**
554
+ * Deserializes binary data (in protobuf wire format) from the
555
+ * given reader into the given message object.
556
+ * @param {!proto.liveedit.v1.CreateLiveEditResponse} msg The message object to deserialize into.
557
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
558
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse}
559
+ */
560
+ proto.liveedit.v1.CreateLiveEditResponse.deserializeBinaryFromReader = function(msg, reader) {
561
+ while (reader.nextField()) {
562
+ if (reader.isEndGroup()) {
563
+ break;
564
+ }
565
+ var field = reader.getFieldNumber();
566
+ switch (field) {
567
+ case 1:
568
+ var value = /** @type {string} */ (reader.readString());
569
+ msg.setLiveEditUrl(value);
570
+ break;
571
+ case 2:
572
+ var value = new proto.liveedit.v1.Application;
573
+ reader.readMessage(value,proto.liveedit.v1.Application.deserializeBinaryFromReader);
574
+ msg.setApplication(value);
575
+ break;
576
+ case 3:
577
+ var value = /** @type {number} */ (reader.readInt64());
578
+ msg.setExpiresAt(value);
579
+ break;
580
+ default:
581
+ reader.skipField();
582
+ break;
583
+ }
584
+ }
585
+ return msg;
586
+ };
587
+
588
+
589
+ /**
590
+ * Serializes the message to binary data (in protobuf wire format).
591
+ * @return {!Uint8Array}
592
+ */
593
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.serializeBinary = function() {
594
+ var writer = new jspb.BinaryWriter();
595
+ proto.liveedit.v1.CreateLiveEditResponse.serializeBinaryToWriter(this, writer);
596
+ return writer.getResultBuffer();
597
+ };
598
+
599
+
600
+ /**
601
+ * Serializes the given message to binary data (in protobuf wire
602
+ * format), writing to the given BinaryWriter.
603
+ * @param {!proto.liveedit.v1.CreateLiveEditResponse} message
604
+ * @param {!jspb.BinaryWriter} writer
605
+ * @suppress {unusedLocalVariables} f is only used for nested messages
606
+ */
607
+ proto.liveedit.v1.CreateLiveEditResponse.serializeBinaryToWriter = function(message, writer) {
608
+ var f = undefined;
609
+ f = message.getLiveEditUrl();
610
+ if (f.length > 0) {
611
+ writer.writeString(
612
+ 1,
613
+ f
614
+ );
615
+ }
616
+ f = message.getApplication();
617
+ if (f != null) {
618
+ writer.writeMessage(
619
+ 2,
620
+ f,
621
+ proto.liveedit.v1.Application.serializeBinaryToWriter
622
+ );
623
+ }
624
+ f = message.getExpiresAt();
625
+ if (f !== 0) {
626
+ writer.writeInt64(
627
+ 3,
628
+ f
629
+ );
630
+ }
631
+ };
632
+
633
+
634
+ /**
635
+ * optional string live_edit_url = 1;
636
+ * @return {string}
637
+ */
638
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getLiveEditUrl = function() {
639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
640
+ };
641
+
642
+
643
+ /**
644
+ * @param {string} value
645
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
646
+ */
647
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setLiveEditUrl = function(value) {
648
+ return jspb.Message.setProto3StringField(this, 1, value);
649
+ };
650
+
651
+
652
+ /**
653
+ * optional Application application = 2;
654
+ * @return {?proto.liveedit.v1.Application}
655
+ */
656
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getApplication = function() {
657
+ return /** @type{?proto.liveedit.v1.Application} */ (
658
+ jspb.Message.getWrapperField(this, proto.liveedit.v1.Application, 2));
659
+ };
660
+
661
+
662
+ /**
663
+ * @param {?proto.liveedit.v1.Application|undefined} value
664
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
665
+ */
666
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setApplication = function(value) {
667
+ return jspb.Message.setWrapperField(this, 2, value);
668
+ };
669
+
670
+
671
+ /**
672
+ * Clears the message field making it undefined.
673
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
674
+ */
675
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.clearApplication = function() {
676
+ return this.setApplication(undefined);
677
+ };
678
+
679
+
680
+ /**
681
+ * Returns whether this field is set.
682
+ * @return {boolean}
683
+ */
684
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.hasApplication = function() {
685
+ return jspb.Message.getField(this, 2) != null;
686
+ };
687
+
688
+
689
+ /**
690
+ * optional int64 expires_at = 3;
691
+ * @return {number}
692
+ */
693
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getExpiresAt = function() {
694
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
695
+ };
696
+
697
+
698
+ /**
699
+ * @param {number} value
700
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
701
+ */
702
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setExpiresAt = function(value) {
703
+ return jspb.Message.setProto3IntField(this, 3, value);
704
+ };
705
+
706
+
707
+ /**
708
+ * @enum {number}
709
+ */
710
+ proto.liveedit.v1.LiveEditStatus = {
711
+ LIVE_EDIT_STATUS_UNSPECIFIED: 0,
712
+ LIVE_EDIT_STATUS_STARTING: 1,
713
+ LIVE_EDIT_STATUS_ACTIVE: 2,
714
+ LIVE_EDIT_STATUS_TERMINATED: 3,
715
+ LIVE_EDIT_STATUS_UNKNOWN: 4
716
+ };
717
+
718
+ goog.object.extend(exports, proto.liveedit.v1);