@superblocksteam/sabs-types-js 0.0.1-demo-databricks-deploy

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,1232 @@
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 = globalThis;
17
+
18
+ var google_api_annotations_pb = require('../../google/api/annotations_pb');
19
+ goog.object.extend(proto, google_api_annotations_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
22
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
23
+ goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
24
+ goog.exportSymbol('proto.liveedit.v1.Application', null, global);
25
+ goog.exportSymbol('proto.liveedit.v1.CreateLiveEditRequest', null, global);
26
+ goog.exportSymbol('proto.liveedit.v1.CreateLiveEditResponse', null, global);
27
+ goog.exportSymbol('proto.liveedit.v1.LiveEditStatus', null, global);
28
+ goog.exportSymbol('proto.liveedit.v1.TerminateLiveEditRequest', null, global);
29
+ goog.exportSymbol('proto.liveedit.v1.TerminateLiveEditResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.liveedit.v1.CreateLiveEditRequest = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.liveedit.v1.CreateLiveEditRequest, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.liveedit.v1.CreateLiveEditRequest.displayName = 'proto.liveedit.v1.CreateLiveEditRequest';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.liveedit.v1.Application = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.liveedit.v1.Application, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.liveedit.v1.Application.displayName = 'proto.liveedit.v1.Application';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.liveedit.v1.CreateLiveEditResponse = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.liveedit.v1.CreateLiveEditResponse, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.liveedit.v1.CreateLiveEditResponse.displayName = 'proto.liveedit.v1.CreateLiveEditResponse';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.liveedit.v1.TerminateLiveEditRequest = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.liveedit.v1.TerminateLiveEditRequest, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.liveedit.v1.TerminateLiveEditRequest.displayName = 'proto.liveedit.v1.TerminateLiveEditRequest';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.liveedit.v1.TerminateLiveEditResponse = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.liveedit.v1.TerminateLiveEditResponse, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.liveedit.v1.TerminateLiveEditResponse.displayName = 'proto.liveedit.v1.TerminateLiveEditResponse';
134
+ }
135
+
136
+
137
+
138
+ if (jspb.Message.GENERATE_TO_OBJECT) {
139
+ /**
140
+ * Creates an object representation of this proto.
141
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
142
+ * Optional fields that are not set will be set to undefined.
143
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
144
+ * For the list of reserved names please see:
145
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
146
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
147
+ * JSPB instance for transitional soy proto support:
148
+ * http://goto/soy-param-migration
149
+ * @return {!Object}
150
+ */
151
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.toObject = function(opt_includeInstance) {
152
+ return proto.liveedit.v1.CreateLiveEditRequest.toObject(opt_includeInstance, this);
153
+ };
154
+
155
+
156
+ /**
157
+ * Static version of the {@see toObject} method.
158
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
159
+ * the JSPB instance for transitional soy proto support:
160
+ * http://goto/soy-param-migration
161
+ * @param {!proto.liveedit.v1.CreateLiveEditRequest} msg The msg instance to transform.
162
+ * @return {!Object}
163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
164
+ */
165
+ proto.liveedit.v1.CreateLiveEditRequest.toObject = function(includeInstance, msg) {
166
+ var f, obj = {
167
+ application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f),
168
+ sessionJwt: jspb.Message.getFieldWithDefault(msg, 2, ""),
169
+ expiresIn: jspb.Message.getFieldWithDefault(msg, 3, 0)
170
+ };
171
+
172
+ if (includeInstance) {
173
+ obj.$jspbMessageInstance = msg;
174
+ }
175
+ return obj;
176
+ };
177
+ }
178
+
179
+
180
+ /**
181
+ * Deserializes binary data (in protobuf wire format).
182
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
183
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest}
184
+ */
185
+ proto.liveedit.v1.CreateLiveEditRequest.deserializeBinary = function(bytes) {
186
+ var reader = new jspb.BinaryReader(bytes);
187
+ var msg = new proto.liveedit.v1.CreateLiveEditRequest;
188
+ return proto.liveedit.v1.CreateLiveEditRequest.deserializeBinaryFromReader(msg, reader);
189
+ };
190
+
191
+
192
+ /**
193
+ * Deserializes binary data (in protobuf wire format) from the
194
+ * given reader into the given message object.
195
+ * @param {!proto.liveedit.v1.CreateLiveEditRequest} msg The message object to deserialize into.
196
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
197
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest}
198
+ */
199
+ proto.liveedit.v1.CreateLiveEditRequest.deserializeBinaryFromReader = function(msg, reader) {
200
+ while (reader.nextField()) {
201
+ if (reader.isEndGroup()) {
202
+ break;
203
+ }
204
+ var field = reader.getFieldNumber();
205
+ switch (field) {
206
+ case 1:
207
+ var value = new proto.liveedit.v1.Application;
208
+ reader.readMessage(value,proto.liveedit.v1.Application.deserializeBinaryFromReader);
209
+ msg.setApplication(value);
210
+ break;
211
+ case 2:
212
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
213
+ msg.setSessionJwt(value);
214
+ break;
215
+ case 3:
216
+ var value = /** @type {number} */ (reader.readInt64());
217
+ msg.setExpiresIn(value);
218
+ break;
219
+ default:
220
+ reader.skipField();
221
+ break;
222
+ }
223
+ }
224
+ return msg;
225
+ };
226
+
227
+
228
+ /**
229
+ * Serializes the message to binary data (in protobuf wire format).
230
+ * @return {!Uint8Array}
231
+ */
232
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.serializeBinary = function() {
233
+ var writer = new jspb.BinaryWriter();
234
+ proto.liveedit.v1.CreateLiveEditRequest.serializeBinaryToWriter(this, writer);
235
+ return writer.getResultBuffer();
236
+ };
237
+
238
+
239
+ /**
240
+ * Serializes the given message to binary data (in protobuf wire
241
+ * format), writing to the given BinaryWriter.
242
+ * @param {!proto.liveedit.v1.CreateLiveEditRequest} message
243
+ * @param {!jspb.BinaryWriter} writer
244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
245
+ */
246
+ proto.liveedit.v1.CreateLiveEditRequest.serializeBinaryToWriter = function(message, writer) {
247
+ var f = undefined;
248
+ f = message.getApplication();
249
+ if (f != null) {
250
+ writer.writeMessage(
251
+ 1,
252
+ f,
253
+ proto.liveedit.v1.Application.serializeBinaryToWriter
254
+ );
255
+ }
256
+ f = message.getSessionJwt();
257
+ if (f.length > 0) {
258
+ writer.writeString(
259
+ 2,
260
+ f
261
+ );
262
+ }
263
+ f = message.getExpiresIn();
264
+ if (f !== 0) {
265
+ writer.writeInt64(
266
+ 3,
267
+ f
268
+ );
269
+ }
270
+ };
271
+
272
+
273
+ /**
274
+ * optional Application application = 1;
275
+ * @return {?proto.liveedit.v1.Application}
276
+ */
277
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.getApplication = function() {
278
+ return /** @type{?proto.liveedit.v1.Application} */ (
279
+ jspb.Message.getWrapperField(this, proto.liveedit.v1.Application, 1));
280
+ };
281
+
282
+
283
+ /**
284
+ * @param {?proto.liveedit.v1.Application|undefined} value
285
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
286
+ */
287
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.setApplication = function(value) {
288
+ return jspb.Message.setWrapperField(this, 1, value);
289
+ };
290
+
291
+
292
+ /**
293
+ * Clears the message field making it undefined.
294
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
295
+ */
296
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.clearApplication = function() {
297
+ return this.setApplication(undefined);
298
+ };
299
+
300
+
301
+ /**
302
+ * Returns whether this field is set.
303
+ * @return {boolean}
304
+ */
305
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.hasApplication = function() {
306
+ return jspb.Message.getField(this, 1) != null;
307
+ };
308
+
309
+
310
+ /**
311
+ * optional string session_jwt = 2;
312
+ * @return {string}
313
+ */
314
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.getSessionJwt = function() {
315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
316
+ };
317
+
318
+
319
+ /**
320
+ * @param {string} value
321
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
322
+ */
323
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.setSessionJwt = function(value) {
324
+ return jspb.Message.setProto3StringField(this, 2, value);
325
+ };
326
+
327
+
328
+ /**
329
+ * optional int64 expires_in = 3;
330
+ * @return {number}
331
+ */
332
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.getExpiresIn = function() {
333
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
334
+ };
335
+
336
+
337
+ /**
338
+ * @param {number} value
339
+ * @return {!proto.liveedit.v1.CreateLiveEditRequest} returns this
340
+ */
341
+ proto.liveedit.v1.CreateLiveEditRequest.prototype.setExpiresIn = function(value) {
342
+ return jspb.Message.setProto3IntField(this, 3, value);
343
+ };
344
+
345
+
346
+
347
+
348
+
349
+ if (jspb.Message.GENERATE_TO_OBJECT) {
350
+ /**
351
+ * Creates an object representation of this proto.
352
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
353
+ * Optional fields that are not set will be set to undefined.
354
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
355
+ * For the list of reserved names please see:
356
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
357
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
358
+ * JSPB instance for transitional soy proto support:
359
+ * http://goto/soy-param-migration
360
+ * @return {!Object}
361
+ */
362
+ proto.liveedit.v1.Application.prototype.toObject = function(opt_includeInstance) {
363
+ return proto.liveedit.v1.Application.toObject(opt_includeInstance, this);
364
+ };
365
+
366
+
367
+ /**
368
+ * Static version of the {@see toObject} method.
369
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
370
+ * the JSPB instance for transitional soy proto support:
371
+ * http://goto/soy-param-migration
372
+ * @param {!proto.liveedit.v1.Application} msg The msg instance to transform.
373
+ * @return {!Object}
374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
375
+ */
376
+ proto.liveedit.v1.Application.toObject = function(includeInstance, msg) {
377
+ var f, obj = {
378
+ applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
379
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
380
+ branch: jspb.Message.getFieldWithDefault(msg, 3, "")
381
+ };
382
+
383
+ if (includeInstance) {
384
+ obj.$jspbMessageInstance = msg;
385
+ }
386
+ return obj;
387
+ };
388
+ }
389
+
390
+
391
+ /**
392
+ * Deserializes binary data (in protobuf wire format).
393
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
394
+ * @return {!proto.liveedit.v1.Application}
395
+ */
396
+ proto.liveedit.v1.Application.deserializeBinary = function(bytes) {
397
+ var reader = new jspb.BinaryReader(bytes);
398
+ var msg = new proto.liveedit.v1.Application;
399
+ return proto.liveedit.v1.Application.deserializeBinaryFromReader(msg, reader);
400
+ };
401
+
402
+
403
+ /**
404
+ * Deserializes binary data (in protobuf wire format) from the
405
+ * given reader into the given message object.
406
+ * @param {!proto.liveedit.v1.Application} msg The message object to deserialize into.
407
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
408
+ * @return {!proto.liveedit.v1.Application}
409
+ */
410
+ proto.liveedit.v1.Application.deserializeBinaryFromReader = function(msg, reader) {
411
+ while (reader.nextField()) {
412
+ if (reader.isEndGroup()) {
413
+ break;
414
+ }
415
+ var field = reader.getFieldNumber();
416
+ switch (field) {
417
+ case 1:
418
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
419
+ msg.setApplicationId(value);
420
+ break;
421
+ case 2:
422
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
423
+ msg.setOrganizationId(value);
424
+ break;
425
+ case 3:
426
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
427
+ msg.setBranch(value);
428
+ break;
429
+ default:
430
+ reader.skipField();
431
+ break;
432
+ }
433
+ }
434
+ return msg;
435
+ };
436
+
437
+
438
+ /**
439
+ * Serializes the message to binary data (in protobuf wire format).
440
+ * @return {!Uint8Array}
441
+ */
442
+ proto.liveedit.v1.Application.prototype.serializeBinary = function() {
443
+ var writer = new jspb.BinaryWriter();
444
+ proto.liveedit.v1.Application.serializeBinaryToWriter(this, writer);
445
+ return writer.getResultBuffer();
446
+ };
447
+
448
+
449
+ /**
450
+ * Serializes the given message to binary data (in protobuf wire
451
+ * format), writing to the given BinaryWriter.
452
+ * @param {!proto.liveedit.v1.Application} message
453
+ * @param {!jspb.BinaryWriter} writer
454
+ * @suppress {unusedLocalVariables} f is only used for nested messages
455
+ */
456
+ proto.liveedit.v1.Application.serializeBinaryToWriter = function(message, writer) {
457
+ var f = undefined;
458
+ f = message.getApplicationId();
459
+ if (f.length > 0) {
460
+ writer.writeString(
461
+ 1,
462
+ f
463
+ );
464
+ }
465
+ f = message.getOrganizationId();
466
+ if (f.length > 0) {
467
+ writer.writeString(
468
+ 2,
469
+ f
470
+ );
471
+ }
472
+ f = message.getBranch();
473
+ if (f.length > 0) {
474
+ writer.writeString(
475
+ 3,
476
+ f
477
+ );
478
+ }
479
+ };
480
+
481
+
482
+ /**
483
+ * optional string application_id = 1;
484
+ * @return {string}
485
+ */
486
+ proto.liveedit.v1.Application.prototype.getApplicationId = function() {
487
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
488
+ };
489
+
490
+
491
+ /**
492
+ * @param {string} value
493
+ * @return {!proto.liveedit.v1.Application} returns this
494
+ */
495
+ proto.liveedit.v1.Application.prototype.setApplicationId = function(value) {
496
+ return jspb.Message.setProto3StringField(this, 1, value);
497
+ };
498
+
499
+
500
+ /**
501
+ * optional string organization_id = 2;
502
+ * @return {string}
503
+ */
504
+ proto.liveedit.v1.Application.prototype.getOrganizationId = function() {
505
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
506
+ };
507
+
508
+
509
+ /**
510
+ * @param {string} value
511
+ * @return {!proto.liveedit.v1.Application} returns this
512
+ */
513
+ proto.liveedit.v1.Application.prototype.setOrganizationId = function(value) {
514
+ return jspb.Message.setProto3StringField(this, 2, value);
515
+ };
516
+
517
+
518
+ /**
519
+ * optional string branch = 3;
520
+ * @return {string}
521
+ */
522
+ proto.liveedit.v1.Application.prototype.getBranch = function() {
523
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
524
+ };
525
+
526
+
527
+ /**
528
+ * @param {string} value
529
+ * @return {!proto.liveedit.v1.Application} returns this
530
+ */
531
+ proto.liveedit.v1.Application.prototype.setBranch = function(value) {
532
+ return jspb.Message.setProto3StringField(this, 3, value);
533
+ };
534
+
535
+
536
+
537
+
538
+
539
+ if (jspb.Message.GENERATE_TO_OBJECT) {
540
+ /**
541
+ * Creates an object representation of this proto.
542
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
543
+ * Optional fields that are not set will be set to undefined.
544
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
545
+ * For the list of reserved names please see:
546
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
547
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
548
+ * JSPB instance for transitional soy proto support:
549
+ * http://goto/soy-param-migration
550
+ * @return {!Object}
551
+ */
552
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.toObject = function(opt_includeInstance) {
553
+ return proto.liveedit.v1.CreateLiveEditResponse.toObject(opt_includeInstance, this);
554
+ };
555
+
556
+
557
+ /**
558
+ * Static version of the {@see toObject} method.
559
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
560
+ * the JSPB instance for transitional soy proto support:
561
+ * http://goto/soy-param-migration
562
+ * @param {!proto.liveedit.v1.CreateLiveEditResponse} msg The msg instance to transform.
563
+ * @return {!Object}
564
+ * @suppress {unusedLocalVariables} f is only used for nested messages
565
+ */
566
+ proto.liveedit.v1.CreateLiveEditResponse.toObject = function(includeInstance, msg) {
567
+ var f, obj = {
568
+ liveEditUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
569
+ application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f),
570
+ expiresAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
571
+ liveEditId: jspb.Message.getFieldWithDefault(msg, 4, "")
572
+ };
573
+
574
+ if (includeInstance) {
575
+ obj.$jspbMessageInstance = msg;
576
+ }
577
+ return obj;
578
+ };
579
+ }
580
+
581
+
582
+ /**
583
+ * Deserializes binary data (in protobuf wire format).
584
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
585
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse}
586
+ */
587
+ proto.liveedit.v1.CreateLiveEditResponse.deserializeBinary = function(bytes) {
588
+ var reader = new jspb.BinaryReader(bytes);
589
+ var msg = new proto.liveedit.v1.CreateLiveEditResponse;
590
+ return proto.liveedit.v1.CreateLiveEditResponse.deserializeBinaryFromReader(msg, reader);
591
+ };
592
+
593
+
594
+ /**
595
+ * Deserializes binary data (in protobuf wire format) from the
596
+ * given reader into the given message object.
597
+ * @param {!proto.liveedit.v1.CreateLiveEditResponse} msg The message object to deserialize into.
598
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
599
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse}
600
+ */
601
+ proto.liveedit.v1.CreateLiveEditResponse.deserializeBinaryFromReader = function(msg, reader) {
602
+ while (reader.nextField()) {
603
+ if (reader.isEndGroup()) {
604
+ break;
605
+ }
606
+ var field = reader.getFieldNumber();
607
+ switch (field) {
608
+ case 1:
609
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
610
+ msg.setLiveEditUrl(value);
611
+ break;
612
+ case 2:
613
+ var value = new proto.liveedit.v1.Application;
614
+ reader.readMessage(value,proto.liveedit.v1.Application.deserializeBinaryFromReader);
615
+ msg.setApplication(value);
616
+ break;
617
+ case 3:
618
+ var value = /** @type {number} */ (reader.readInt64());
619
+ msg.setExpiresAt(value);
620
+ break;
621
+ case 4:
622
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
623
+ msg.setLiveEditId(value);
624
+ break;
625
+ default:
626
+ reader.skipField();
627
+ break;
628
+ }
629
+ }
630
+ return msg;
631
+ };
632
+
633
+
634
+ /**
635
+ * Serializes the message to binary data (in protobuf wire format).
636
+ * @return {!Uint8Array}
637
+ */
638
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.serializeBinary = function() {
639
+ var writer = new jspb.BinaryWriter();
640
+ proto.liveedit.v1.CreateLiveEditResponse.serializeBinaryToWriter(this, writer);
641
+ return writer.getResultBuffer();
642
+ };
643
+
644
+
645
+ /**
646
+ * Serializes the given message to binary data (in protobuf wire
647
+ * format), writing to the given BinaryWriter.
648
+ * @param {!proto.liveedit.v1.CreateLiveEditResponse} message
649
+ * @param {!jspb.BinaryWriter} writer
650
+ * @suppress {unusedLocalVariables} f is only used for nested messages
651
+ */
652
+ proto.liveedit.v1.CreateLiveEditResponse.serializeBinaryToWriter = function(message, writer) {
653
+ var f = undefined;
654
+ f = message.getLiveEditUrl();
655
+ if (f.length > 0) {
656
+ writer.writeString(
657
+ 1,
658
+ f
659
+ );
660
+ }
661
+ f = message.getApplication();
662
+ if (f != null) {
663
+ writer.writeMessage(
664
+ 2,
665
+ f,
666
+ proto.liveedit.v1.Application.serializeBinaryToWriter
667
+ );
668
+ }
669
+ f = message.getExpiresAt();
670
+ if (f !== 0) {
671
+ writer.writeInt64(
672
+ 3,
673
+ f
674
+ );
675
+ }
676
+ f = message.getLiveEditId();
677
+ if (f.length > 0) {
678
+ writer.writeString(
679
+ 4,
680
+ f
681
+ );
682
+ }
683
+ };
684
+
685
+
686
+ /**
687
+ * optional string live_edit_url = 1;
688
+ * @return {string}
689
+ */
690
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getLiveEditUrl = function() {
691
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
692
+ };
693
+
694
+
695
+ /**
696
+ * @param {string} value
697
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
698
+ */
699
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setLiveEditUrl = function(value) {
700
+ return jspb.Message.setProto3StringField(this, 1, value);
701
+ };
702
+
703
+
704
+ /**
705
+ * optional Application application = 2;
706
+ * @return {?proto.liveedit.v1.Application}
707
+ */
708
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getApplication = function() {
709
+ return /** @type{?proto.liveedit.v1.Application} */ (
710
+ jspb.Message.getWrapperField(this, proto.liveedit.v1.Application, 2));
711
+ };
712
+
713
+
714
+ /**
715
+ * @param {?proto.liveedit.v1.Application|undefined} value
716
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
717
+ */
718
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setApplication = function(value) {
719
+ return jspb.Message.setWrapperField(this, 2, value);
720
+ };
721
+
722
+
723
+ /**
724
+ * Clears the message field making it undefined.
725
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
726
+ */
727
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.clearApplication = function() {
728
+ return this.setApplication(undefined);
729
+ };
730
+
731
+
732
+ /**
733
+ * Returns whether this field is set.
734
+ * @return {boolean}
735
+ */
736
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.hasApplication = function() {
737
+ return jspb.Message.getField(this, 2) != null;
738
+ };
739
+
740
+
741
+ /**
742
+ * optional int64 expires_at = 3;
743
+ * @return {number}
744
+ */
745
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getExpiresAt = function() {
746
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
747
+ };
748
+
749
+
750
+ /**
751
+ * @param {number} value
752
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
753
+ */
754
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setExpiresAt = function(value) {
755
+ return jspb.Message.setProto3IntField(this, 3, value);
756
+ };
757
+
758
+
759
+ /**
760
+ * optional string live_edit_id = 4;
761
+ * @return {string}
762
+ */
763
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getLiveEditId = function() {
764
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
765
+ };
766
+
767
+
768
+ /**
769
+ * @param {string} value
770
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
771
+ */
772
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setLiveEditId = function(value) {
773
+ return jspb.Message.setProto3StringField(this, 4, value);
774
+ };
775
+
776
+
777
+
778
+
779
+
780
+ if (jspb.Message.GENERATE_TO_OBJECT) {
781
+ /**
782
+ * Creates an object representation of this proto.
783
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
784
+ * Optional fields that are not set will be set to undefined.
785
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
786
+ * For the list of reserved names please see:
787
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
788
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
789
+ * JSPB instance for transitional soy proto support:
790
+ * http://goto/soy-param-migration
791
+ * @return {!Object}
792
+ */
793
+ proto.liveedit.v1.TerminateLiveEditRequest.prototype.toObject = function(opt_includeInstance) {
794
+ return proto.liveedit.v1.TerminateLiveEditRequest.toObject(opt_includeInstance, this);
795
+ };
796
+
797
+
798
+ /**
799
+ * Static version of the {@see toObject} method.
800
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
801
+ * the JSPB instance for transitional soy proto support:
802
+ * http://goto/soy-param-migration
803
+ * @param {!proto.liveedit.v1.TerminateLiveEditRequest} msg The msg instance to transform.
804
+ * @return {!Object}
805
+ * @suppress {unusedLocalVariables} f is only used for nested messages
806
+ */
807
+ proto.liveedit.v1.TerminateLiveEditRequest.toObject = function(includeInstance, msg) {
808
+ var f, obj = {
809
+ liveEditId: jspb.Message.getFieldWithDefault(msg, 1, "")
810
+ };
811
+
812
+ if (includeInstance) {
813
+ obj.$jspbMessageInstance = msg;
814
+ }
815
+ return obj;
816
+ };
817
+ }
818
+
819
+
820
+ /**
821
+ * Deserializes binary data (in protobuf wire format).
822
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
823
+ * @return {!proto.liveedit.v1.TerminateLiveEditRequest}
824
+ */
825
+ proto.liveedit.v1.TerminateLiveEditRequest.deserializeBinary = function(bytes) {
826
+ var reader = new jspb.BinaryReader(bytes);
827
+ var msg = new proto.liveedit.v1.TerminateLiveEditRequest;
828
+ return proto.liveedit.v1.TerminateLiveEditRequest.deserializeBinaryFromReader(msg, reader);
829
+ };
830
+
831
+
832
+ /**
833
+ * Deserializes binary data (in protobuf wire format) from the
834
+ * given reader into the given message object.
835
+ * @param {!proto.liveedit.v1.TerminateLiveEditRequest} msg The message object to deserialize into.
836
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
837
+ * @return {!proto.liveedit.v1.TerminateLiveEditRequest}
838
+ */
839
+ proto.liveedit.v1.TerminateLiveEditRequest.deserializeBinaryFromReader = function(msg, reader) {
840
+ while (reader.nextField()) {
841
+ if (reader.isEndGroup()) {
842
+ break;
843
+ }
844
+ var field = reader.getFieldNumber();
845
+ switch (field) {
846
+ case 1:
847
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
848
+ msg.setLiveEditId(value);
849
+ break;
850
+ default:
851
+ reader.skipField();
852
+ break;
853
+ }
854
+ }
855
+ return msg;
856
+ };
857
+
858
+
859
+ /**
860
+ * Serializes the message to binary data (in protobuf wire format).
861
+ * @return {!Uint8Array}
862
+ */
863
+ proto.liveedit.v1.TerminateLiveEditRequest.prototype.serializeBinary = function() {
864
+ var writer = new jspb.BinaryWriter();
865
+ proto.liveedit.v1.TerminateLiveEditRequest.serializeBinaryToWriter(this, writer);
866
+ return writer.getResultBuffer();
867
+ };
868
+
869
+
870
+ /**
871
+ * Serializes the given message to binary data (in protobuf wire
872
+ * format), writing to the given BinaryWriter.
873
+ * @param {!proto.liveedit.v1.TerminateLiveEditRequest} message
874
+ * @param {!jspb.BinaryWriter} writer
875
+ * @suppress {unusedLocalVariables} f is only used for nested messages
876
+ */
877
+ proto.liveedit.v1.TerminateLiveEditRequest.serializeBinaryToWriter = function(message, writer) {
878
+ var f = undefined;
879
+ f = message.getLiveEditId();
880
+ if (f.length > 0) {
881
+ writer.writeString(
882
+ 1,
883
+ f
884
+ );
885
+ }
886
+ };
887
+
888
+
889
+ /**
890
+ * optional string live_edit_id = 1;
891
+ * @return {string}
892
+ */
893
+ proto.liveedit.v1.TerminateLiveEditRequest.prototype.getLiveEditId = function() {
894
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
895
+ };
896
+
897
+
898
+ /**
899
+ * @param {string} value
900
+ * @return {!proto.liveedit.v1.TerminateLiveEditRequest} returns this
901
+ */
902
+ proto.liveedit.v1.TerminateLiveEditRequest.prototype.setLiveEditId = function(value) {
903
+ return jspb.Message.setProto3StringField(this, 1, value);
904
+ };
905
+
906
+
907
+
908
+
909
+
910
+ if (jspb.Message.GENERATE_TO_OBJECT) {
911
+ /**
912
+ * Creates an object representation of this proto.
913
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
914
+ * Optional fields that are not set will be set to undefined.
915
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
916
+ * For the list of reserved names please see:
917
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
918
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
919
+ * JSPB instance for transitional soy proto support:
920
+ * http://goto/soy-param-migration
921
+ * @return {!Object}
922
+ */
923
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.toObject = function(opt_includeInstance) {
924
+ return proto.liveedit.v1.TerminateLiveEditResponse.toObject(opt_includeInstance, this);
925
+ };
926
+
927
+
928
+ /**
929
+ * Static version of the {@see toObject} method.
930
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
931
+ * the JSPB instance for transitional soy proto support:
932
+ * http://goto/soy-param-migration
933
+ * @param {!proto.liveedit.v1.TerminateLiveEditResponse} msg The msg instance to transform.
934
+ * @return {!Object}
935
+ * @suppress {unusedLocalVariables} f is only used for nested messages
936
+ */
937
+ proto.liveedit.v1.TerminateLiveEditResponse.toObject = function(includeInstance, msg) {
938
+ var f, obj = {
939
+ liveEditId: jspb.Message.getFieldWithDefault(msg, 1, ""),
940
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0),
941
+ application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f),
942
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
943
+ updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
944
+ };
945
+
946
+ if (includeInstance) {
947
+ obj.$jspbMessageInstance = msg;
948
+ }
949
+ return obj;
950
+ };
951
+ }
952
+
953
+
954
+ /**
955
+ * Deserializes binary data (in protobuf wire format).
956
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
957
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse}
958
+ */
959
+ proto.liveedit.v1.TerminateLiveEditResponse.deserializeBinary = function(bytes) {
960
+ var reader = new jspb.BinaryReader(bytes);
961
+ var msg = new proto.liveedit.v1.TerminateLiveEditResponse;
962
+ return proto.liveedit.v1.TerminateLiveEditResponse.deserializeBinaryFromReader(msg, reader);
963
+ };
964
+
965
+
966
+ /**
967
+ * Deserializes binary data (in protobuf wire format) from the
968
+ * given reader into the given message object.
969
+ * @param {!proto.liveedit.v1.TerminateLiveEditResponse} msg The message object to deserialize into.
970
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
971
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse}
972
+ */
973
+ proto.liveedit.v1.TerminateLiveEditResponse.deserializeBinaryFromReader = function(msg, reader) {
974
+ while (reader.nextField()) {
975
+ if (reader.isEndGroup()) {
976
+ break;
977
+ }
978
+ var field = reader.getFieldNumber();
979
+ switch (field) {
980
+ case 1:
981
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
982
+ msg.setLiveEditId(value);
983
+ break;
984
+ case 2:
985
+ var value = /** @type {!proto.liveedit.v1.LiveEditStatus} */ (reader.readEnum());
986
+ msg.setStatus(value);
987
+ break;
988
+ case 3:
989
+ var value = new proto.liveedit.v1.Application;
990
+ reader.readMessage(value,proto.liveedit.v1.Application.deserializeBinaryFromReader);
991
+ msg.setApplication(value);
992
+ break;
993
+ case 4:
994
+ var value = new google_protobuf_timestamp_pb.Timestamp;
995
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
996
+ msg.setCreated(value);
997
+ break;
998
+ case 5:
999
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1000
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1001
+ msg.setUpdated(value);
1002
+ break;
1003
+ default:
1004
+ reader.skipField();
1005
+ break;
1006
+ }
1007
+ }
1008
+ return msg;
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * Serializes the message to binary data (in protobuf wire format).
1014
+ * @return {!Uint8Array}
1015
+ */
1016
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.serializeBinary = function() {
1017
+ var writer = new jspb.BinaryWriter();
1018
+ proto.liveedit.v1.TerminateLiveEditResponse.serializeBinaryToWriter(this, writer);
1019
+ return writer.getResultBuffer();
1020
+ };
1021
+
1022
+
1023
+ /**
1024
+ * Serializes the given message to binary data (in protobuf wire
1025
+ * format), writing to the given BinaryWriter.
1026
+ * @param {!proto.liveedit.v1.TerminateLiveEditResponse} message
1027
+ * @param {!jspb.BinaryWriter} writer
1028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1029
+ */
1030
+ proto.liveedit.v1.TerminateLiveEditResponse.serializeBinaryToWriter = function(message, writer) {
1031
+ var f = undefined;
1032
+ f = message.getLiveEditId();
1033
+ if (f.length > 0) {
1034
+ writer.writeString(
1035
+ 1,
1036
+ f
1037
+ );
1038
+ }
1039
+ f = message.getStatus();
1040
+ if (f !== 0.0) {
1041
+ writer.writeEnum(
1042
+ 2,
1043
+ f
1044
+ );
1045
+ }
1046
+ f = message.getApplication();
1047
+ if (f != null) {
1048
+ writer.writeMessage(
1049
+ 3,
1050
+ f,
1051
+ proto.liveedit.v1.Application.serializeBinaryToWriter
1052
+ );
1053
+ }
1054
+ f = message.getCreated();
1055
+ if (f != null) {
1056
+ writer.writeMessage(
1057
+ 4,
1058
+ f,
1059
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1060
+ );
1061
+ }
1062
+ f = message.getUpdated();
1063
+ if (f != null) {
1064
+ writer.writeMessage(
1065
+ 5,
1066
+ f,
1067
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1068
+ );
1069
+ }
1070
+ };
1071
+
1072
+
1073
+ /**
1074
+ * optional string live_edit_id = 1;
1075
+ * @return {string}
1076
+ */
1077
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.getLiveEditId = function() {
1078
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1079
+ };
1080
+
1081
+
1082
+ /**
1083
+ * @param {string} value
1084
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1085
+ */
1086
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.setLiveEditId = function(value) {
1087
+ return jspb.Message.setProto3StringField(this, 1, value);
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * optional LiveEditStatus status = 2;
1093
+ * @return {!proto.liveedit.v1.LiveEditStatus}
1094
+ */
1095
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.getStatus = function() {
1096
+ return /** @type {!proto.liveedit.v1.LiveEditStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * @param {!proto.liveedit.v1.LiveEditStatus} value
1102
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1103
+ */
1104
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.setStatus = function(value) {
1105
+ return jspb.Message.setProto3EnumField(this, 2, value);
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * optional Application application = 3;
1111
+ * @return {?proto.liveedit.v1.Application}
1112
+ */
1113
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.getApplication = function() {
1114
+ return /** @type{?proto.liveedit.v1.Application} */ (
1115
+ jspb.Message.getWrapperField(this, proto.liveedit.v1.Application, 3));
1116
+ };
1117
+
1118
+
1119
+ /**
1120
+ * @param {?proto.liveedit.v1.Application|undefined} value
1121
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1122
+ */
1123
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.setApplication = function(value) {
1124
+ return jspb.Message.setWrapperField(this, 3, value);
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Clears the message field making it undefined.
1130
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1131
+ */
1132
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.clearApplication = function() {
1133
+ return this.setApplication(undefined);
1134
+ };
1135
+
1136
+
1137
+ /**
1138
+ * Returns whether this field is set.
1139
+ * @return {boolean}
1140
+ */
1141
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.hasApplication = function() {
1142
+ return jspb.Message.getField(this, 3) != null;
1143
+ };
1144
+
1145
+
1146
+ /**
1147
+ * optional google.protobuf.Timestamp created = 4;
1148
+ * @return {?proto.google.protobuf.Timestamp}
1149
+ */
1150
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.getCreated = function() {
1151
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1152
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1153
+ };
1154
+
1155
+
1156
+ /**
1157
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1158
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1159
+ */
1160
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.setCreated = function(value) {
1161
+ return jspb.Message.setWrapperField(this, 4, value);
1162
+ };
1163
+
1164
+
1165
+ /**
1166
+ * Clears the message field making it undefined.
1167
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1168
+ */
1169
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.clearCreated = function() {
1170
+ return this.setCreated(undefined);
1171
+ };
1172
+
1173
+
1174
+ /**
1175
+ * Returns whether this field is set.
1176
+ * @return {boolean}
1177
+ */
1178
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.hasCreated = function() {
1179
+ return jspb.Message.getField(this, 4) != null;
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * optional google.protobuf.Timestamp updated = 5;
1185
+ * @return {?proto.google.protobuf.Timestamp}
1186
+ */
1187
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.getUpdated = function() {
1188
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1189
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1190
+ };
1191
+
1192
+
1193
+ /**
1194
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1195
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1196
+ */
1197
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.setUpdated = function(value) {
1198
+ return jspb.Message.setWrapperField(this, 5, value);
1199
+ };
1200
+
1201
+
1202
+ /**
1203
+ * Clears the message field making it undefined.
1204
+ * @return {!proto.liveedit.v1.TerminateLiveEditResponse} returns this
1205
+ */
1206
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.clearUpdated = function() {
1207
+ return this.setUpdated(undefined);
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * Returns whether this field is set.
1213
+ * @return {boolean}
1214
+ */
1215
+ proto.liveedit.v1.TerminateLiveEditResponse.prototype.hasUpdated = function() {
1216
+ return jspb.Message.getField(this, 5) != null;
1217
+ };
1218
+
1219
+
1220
+ /**
1221
+ * @enum {number}
1222
+ */
1223
+ proto.liveedit.v1.LiveEditStatus = {
1224
+ LIVE_EDIT_STATUS_UNSPECIFIED: 0,
1225
+ LIVE_EDIT_STATUS_STARTING: 1,
1226
+ LIVE_EDIT_STATUS_ACTIVE: 2,
1227
+ LIVE_EDIT_STATUS_TERMINATED: 3,
1228
+ LIVE_EDIT_STATUS_UNKNOWN: 4,
1229
+ LIVE_EDIT_STATUS_TERMINATING: 5
1230
+ };
1231
+
1232
+ goog.object.extend(exports, proto.liveedit.v1);