@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,3062 @@
1
+ // source: build/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.build.v1.ApplicationMetadata', null, global);
25
+ goog.exportSymbol('proto.build.v1.BuildRequest', null, global);
26
+ goog.exportSymbol('proto.build.v1.BuildResponse', null, global);
27
+ goog.exportSymbol('proto.build.v1.BuildStatus', null, global);
28
+ goog.exportSymbol('proto.build.v1.BulkStatusRequest', null, global);
29
+ goog.exportSymbol('proto.build.v1.BulkStatusResponse', null, global);
30
+ goog.exportSymbol('proto.build.v1.DeployDatabricksRequest', null, global);
31
+ goog.exportSymbol('proto.build.v1.DeployDatabricksResponse', null, global);
32
+ goog.exportSymbol('proto.build.v1.ListRequest', null, global);
33
+ goog.exportSymbol('proto.build.v1.ListResponse', null, global);
34
+ goog.exportSymbol('proto.build.v1.StatusRequest', null, global);
35
+ goog.exportSymbol('proto.build.v1.StatusResponse', null, global);
36
+ goog.exportSymbol('proto.build.v1.TerminateRequest', null, global);
37
+ goog.exportSymbol('proto.build.v1.TerminateResponse', null, global);
38
+ /**
39
+ * Generated by JsPbCodeGenerator.
40
+ * @param {Array=} opt_data Optional initial data array, typically from a
41
+ * server response, or constructed directly in Javascript. The array is used
42
+ * in place and becomes part of the constructed object. It is not cloned.
43
+ * If no data is provided, the constructed object will be empty, but still
44
+ * valid.
45
+ * @extends {jspb.Message}
46
+ * @constructor
47
+ */
48
+ proto.build.v1.BuildRequest = function(opt_data) {
49
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
+ };
51
+ goog.inherits(proto.build.v1.BuildRequest, jspb.Message);
52
+ if (goog.DEBUG && !COMPILED) {
53
+ /**
54
+ * @public
55
+ * @override
56
+ */
57
+ proto.build.v1.BuildRequest.displayName = 'proto.build.v1.BuildRequest';
58
+ }
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.build.v1.ApplicationMetadata = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
+ };
72
+ goog.inherits(proto.build.v1.ApplicationMetadata, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.build.v1.ApplicationMetadata.displayName = 'proto.build.v1.ApplicationMetadata';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.build.v1.BuildResponse = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.build.v1.BuildResponse, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.build.v1.BuildResponse.displayName = 'proto.build.v1.BuildResponse';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.build.v1.DeployDatabricksRequest = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
+ };
114
+ goog.inherits(proto.build.v1.DeployDatabricksRequest, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.build.v1.DeployDatabricksRequest.displayName = 'proto.build.v1.DeployDatabricksRequest';
121
+ }
122
+ /**
123
+ * Generated by JsPbCodeGenerator.
124
+ * @param {Array=} opt_data Optional initial data array, typically from a
125
+ * server response, or constructed directly in Javascript. The array is used
126
+ * in place and becomes part of the constructed object. It is not cloned.
127
+ * If no data is provided, the constructed object will be empty, but still
128
+ * valid.
129
+ * @extends {jspb.Message}
130
+ * @constructor
131
+ */
132
+ proto.build.v1.DeployDatabricksResponse = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
+ };
135
+ goog.inherits(proto.build.v1.DeployDatabricksResponse, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.build.v1.DeployDatabricksResponse.displayName = 'proto.build.v1.DeployDatabricksResponse';
142
+ }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.build.v1.ListRequest = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
155
+ };
156
+ goog.inherits(proto.build.v1.ListRequest, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.build.v1.ListRequest.displayName = 'proto.build.v1.ListRequest';
163
+ }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.build.v1.ListResponse = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.build.v1.ListResponse.repeatedFields_, null);
176
+ };
177
+ goog.inherits(proto.build.v1.ListResponse, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.build.v1.ListResponse.displayName = 'proto.build.v1.ListResponse';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.build.v1.StatusRequest = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
197
+ };
198
+ goog.inherits(proto.build.v1.StatusRequest, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.build.v1.StatusRequest.displayName = 'proto.build.v1.StatusRequest';
205
+ }
206
+ /**
207
+ * Generated by JsPbCodeGenerator.
208
+ * @param {Array=} opt_data Optional initial data array, typically from a
209
+ * server response, or constructed directly in Javascript. The array is used
210
+ * in place and becomes part of the constructed object. It is not cloned.
211
+ * If no data is provided, the constructed object will be empty, but still
212
+ * valid.
213
+ * @extends {jspb.Message}
214
+ * @constructor
215
+ */
216
+ proto.build.v1.BulkStatusRequest = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.build.v1.BulkStatusRequest.repeatedFields_, null);
218
+ };
219
+ goog.inherits(proto.build.v1.BulkStatusRequest, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.build.v1.BulkStatusRequest.displayName = 'proto.build.v1.BulkStatusRequest';
226
+ }
227
+ /**
228
+ * Generated by JsPbCodeGenerator.
229
+ * @param {Array=} opt_data Optional initial data array, typically from a
230
+ * server response, or constructed directly in Javascript. The array is used
231
+ * in place and becomes part of the constructed object. It is not cloned.
232
+ * If no data is provided, the constructed object will be empty, but still
233
+ * valid.
234
+ * @extends {jspb.Message}
235
+ * @constructor
236
+ */
237
+ proto.build.v1.BulkStatusResponse = function(opt_data) {
238
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
239
+ };
240
+ goog.inherits(proto.build.v1.BulkStatusResponse, jspb.Message);
241
+ if (goog.DEBUG && !COMPILED) {
242
+ /**
243
+ * @public
244
+ * @override
245
+ */
246
+ proto.build.v1.BulkStatusResponse.displayName = 'proto.build.v1.BulkStatusResponse';
247
+ }
248
+ /**
249
+ * Generated by JsPbCodeGenerator.
250
+ * @param {Array=} opt_data Optional initial data array, typically from a
251
+ * server response, or constructed directly in Javascript. The array is used
252
+ * in place and becomes part of the constructed object. It is not cloned.
253
+ * If no data is provided, the constructed object will be empty, but still
254
+ * valid.
255
+ * @extends {jspb.Message}
256
+ * @constructor
257
+ */
258
+ proto.build.v1.StatusResponse = function(opt_data) {
259
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
260
+ };
261
+ goog.inherits(proto.build.v1.StatusResponse, jspb.Message);
262
+ if (goog.DEBUG && !COMPILED) {
263
+ /**
264
+ * @public
265
+ * @override
266
+ */
267
+ proto.build.v1.StatusResponse.displayName = 'proto.build.v1.StatusResponse';
268
+ }
269
+ /**
270
+ * Generated by JsPbCodeGenerator.
271
+ * @param {Array=} opt_data Optional initial data array, typically from a
272
+ * server response, or constructed directly in Javascript. The array is used
273
+ * in place and becomes part of the constructed object. It is not cloned.
274
+ * If no data is provided, the constructed object will be empty, but still
275
+ * valid.
276
+ * @extends {jspb.Message}
277
+ * @constructor
278
+ */
279
+ proto.build.v1.TerminateRequest = function(opt_data) {
280
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
281
+ };
282
+ goog.inherits(proto.build.v1.TerminateRequest, jspb.Message);
283
+ if (goog.DEBUG && !COMPILED) {
284
+ /**
285
+ * @public
286
+ * @override
287
+ */
288
+ proto.build.v1.TerminateRequest.displayName = 'proto.build.v1.TerminateRequest';
289
+ }
290
+ /**
291
+ * Generated by JsPbCodeGenerator.
292
+ * @param {Array=} opt_data Optional initial data array, typically from a
293
+ * server response, or constructed directly in Javascript. The array is used
294
+ * in place and becomes part of the constructed object. It is not cloned.
295
+ * If no data is provided, the constructed object will be empty, but still
296
+ * valid.
297
+ * @extends {jspb.Message}
298
+ * @constructor
299
+ */
300
+ proto.build.v1.TerminateResponse = function(opt_data) {
301
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
302
+ };
303
+ goog.inherits(proto.build.v1.TerminateResponse, jspb.Message);
304
+ if (goog.DEBUG && !COMPILED) {
305
+ /**
306
+ * @public
307
+ * @override
308
+ */
309
+ proto.build.v1.TerminateResponse.displayName = 'proto.build.v1.TerminateResponse';
310
+ }
311
+
312
+
313
+
314
+ if (jspb.Message.GENERATE_TO_OBJECT) {
315
+ /**
316
+ * Creates an object representation of this proto.
317
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
318
+ * Optional fields that are not set will be set to undefined.
319
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
320
+ * For the list of reserved names please see:
321
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
322
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
323
+ * JSPB instance for transitional soy proto support:
324
+ * http://goto/soy-param-migration
325
+ * @return {!Object}
326
+ */
327
+ proto.build.v1.BuildRequest.prototype.toObject = function(opt_includeInstance) {
328
+ return proto.build.v1.BuildRequest.toObject(opt_includeInstance, this);
329
+ };
330
+
331
+
332
+ /**
333
+ * Static version of the {@see toObject} method.
334
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
335
+ * the JSPB instance for transitional soy proto support:
336
+ * http://goto/soy-param-migration
337
+ * @param {!proto.build.v1.BuildRequest} msg The msg instance to transform.
338
+ * @return {!Object}
339
+ * @suppress {unusedLocalVariables} f is only used for nested messages
340
+ */
341
+ proto.build.v1.BuildRequest.toObject = function(includeInstance, msg) {
342
+ var f, obj = {
343
+ directoryHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
344
+ applicationMetadata: (f = msg.getApplicationMetadata()) && proto.build.v1.ApplicationMetadata.toObject(includeInstance, f),
345
+ buildKey: jspb.Message.getFieldWithDefault(msg, 3, "")
346
+ };
347
+
348
+ if (includeInstance) {
349
+ obj.$jspbMessageInstance = msg;
350
+ }
351
+ return obj;
352
+ };
353
+ }
354
+
355
+
356
+ /**
357
+ * Deserializes binary data (in protobuf wire format).
358
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
359
+ * @return {!proto.build.v1.BuildRequest}
360
+ */
361
+ proto.build.v1.BuildRequest.deserializeBinary = function(bytes) {
362
+ var reader = new jspb.BinaryReader(bytes);
363
+ var msg = new proto.build.v1.BuildRequest;
364
+ return proto.build.v1.BuildRequest.deserializeBinaryFromReader(msg, reader);
365
+ };
366
+
367
+
368
+ /**
369
+ * Deserializes binary data (in protobuf wire format) from the
370
+ * given reader into the given message object.
371
+ * @param {!proto.build.v1.BuildRequest} msg The message object to deserialize into.
372
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
373
+ * @return {!proto.build.v1.BuildRequest}
374
+ */
375
+ proto.build.v1.BuildRequest.deserializeBinaryFromReader = function(msg, reader) {
376
+ while (reader.nextField()) {
377
+ if (reader.isEndGroup()) {
378
+ break;
379
+ }
380
+ var field = reader.getFieldNumber();
381
+ switch (field) {
382
+ case 1:
383
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
384
+ msg.setDirectoryHash(value);
385
+ break;
386
+ case 2:
387
+ var value = new proto.build.v1.ApplicationMetadata;
388
+ reader.readMessage(value,proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader);
389
+ msg.setApplicationMetadata(value);
390
+ break;
391
+ case 3:
392
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
393
+ msg.setBuildKey(value);
394
+ break;
395
+ default:
396
+ reader.skipField();
397
+ break;
398
+ }
399
+ }
400
+ return msg;
401
+ };
402
+
403
+
404
+ /**
405
+ * Serializes the message to binary data (in protobuf wire format).
406
+ * @return {!Uint8Array}
407
+ */
408
+ proto.build.v1.BuildRequest.prototype.serializeBinary = function() {
409
+ var writer = new jspb.BinaryWriter();
410
+ proto.build.v1.BuildRequest.serializeBinaryToWriter(this, writer);
411
+ return writer.getResultBuffer();
412
+ };
413
+
414
+
415
+ /**
416
+ * Serializes the given message to binary data (in protobuf wire
417
+ * format), writing to the given BinaryWriter.
418
+ * @param {!proto.build.v1.BuildRequest} message
419
+ * @param {!jspb.BinaryWriter} writer
420
+ * @suppress {unusedLocalVariables} f is only used for nested messages
421
+ */
422
+ proto.build.v1.BuildRequest.serializeBinaryToWriter = function(message, writer) {
423
+ var f = undefined;
424
+ f = message.getDirectoryHash();
425
+ if (f.length > 0) {
426
+ writer.writeString(
427
+ 1,
428
+ f
429
+ );
430
+ }
431
+ f = message.getApplicationMetadata();
432
+ if (f != null) {
433
+ writer.writeMessage(
434
+ 2,
435
+ f,
436
+ proto.build.v1.ApplicationMetadata.serializeBinaryToWriter
437
+ );
438
+ }
439
+ f = message.getBuildKey();
440
+ if (f.length > 0) {
441
+ writer.writeString(
442
+ 3,
443
+ f
444
+ );
445
+ }
446
+ };
447
+
448
+
449
+ /**
450
+ * optional string directory_hash = 1;
451
+ * @return {string}
452
+ */
453
+ proto.build.v1.BuildRequest.prototype.getDirectoryHash = function() {
454
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
455
+ };
456
+
457
+
458
+ /**
459
+ * @param {string} value
460
+ * @return {!proto.build.v1.BuildRequest} returns this
461
+ */
462
+ proto.build.v1.BuildRequest.prototype.setDirectoryHash = function(value) {
463
+ return jspb.Message.setProto3StringField(this, 1, value);
464
+ };
465
+
466
+
467
+ /**
468
+ * optional ApplicationMetadata application_metadata = 2;
469
+ * @return {?proto.build.v1.ApplicationMetadata}
470
+ */
471
+ proto.build.v1.BuildRequest.prototype.getApplicationMetadata = function() {
472
+ return /** @type{?proto.build.v1.ApplicationMetadata} */ (
473
+ jspb.Message.getWrapperField(this, proto.build.v1.ApplicationMetadata, 2));
474
+ };
475
+
476
+
477
+ /**
478
+ * @param {?proto.build.v1.ApplicationMetadata|undefined} value
479
+ * @return {!proto.build.v1.BuildRequest} returns this
480
+ */
481
+ proto.build.v1.BuildRequest.prototype.setApplicationMetadata = function(value) {
482
+ return jspb.Message.setWrapperField(this, 2, value);
483
+ };
484
+
485
+
486
+ /**
487
+ * Clears the message field making it undefined.
488
+ * @return {!proto.build.v1.BuildRequest} returns this
489
+ */
490
+ proto.build.v1.BuildRequest.prototype.clearApplicationMetadata = function() {
491
+ return this.setApplicationMetadata(undefined);
492
+ };
493
+
494
+
495
+ /**
496
+ * Returns whether this field is set.
497
+ * @return {boolean}
498
+ */
499
+ proto.build.v1.BuildRequest.prototype.hasApplicationMetadata = function() {
500
+ return jspb.Message.getField(this, 2) != null;
501
+ };
502
+
503
+
504
+ /**
505
+ * optional string build_key = 3;
506
+ * @return {string}
507
+ */
508
+ proto.build.v1.BuildRequest.prototype.getBuildKey = function() {
509
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
510
+ };
511
+
512
+
513
+ /**
514
+ * @param {string} value
515
+ * @return {!proto.build.v1.BuildRequest} returns this
516
+ */
517
+ proto.build.v1.BuildRequest.prototype.setBuildKey = function(value) {
518
+ return jspb.Message.setProto3StringField(this, 3, value);
519
+ };
520
+
521
+
522
+
523
+
524
+
525
+ if (jspb.Message.GENERATE_TO_OBJECT) {
526
+ /**
527
+ * Creates an object representation of this proto.
528
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
529
+ * Optional fields that are not set will be set to undefined.
530
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
531
+ * For the list of reserved names please see:
532
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
533
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
534
+ * JSPB instance for transitional soy proto support:
535
+ * http://goto/soy-param-migration
536
+ * @return {!Object}
537
+ */
538
+ proto.build.v1.ApplicationMetadata.prototype.toObject = function(opt_includeInstance) {
539
+ return proto.build.v1.ApplicationMetadata.toObject(opt_includeInstance, this);
540
+ };
541
+
542
+
543
+ /**
544
+ * Static version of the {@see toObject} method.
545
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
546
+ * the JSPB instance for transitional soy proto support:
547
+ * http://goto/soy-param-migration
548
+ * @param {!proto.build.v1.ApplicationMetadata} msg The msg instance to transform.
549
+ * @return {!Object}
550
+ * @suppress {unusedLocalVariables} f is only used for nested messages
551
+ */
552
+ proto.build.v1.ApplicationMetadata.toObject = function(includeInstance, msg) {
553
+ var f, obj = {
554
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
555
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, "")
556
+ };
557
+
558
+ if (includeInstance) {
559
+ obj.$jspbMessageInstance = msg;
560
+ }
561
+ return obj;
562
+ };
563
+ }
564
+
565
+
566
+ /**
567
+ * Deserializes binary data (in protobuf wire format).
568
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
569
+ * @return {!proto.build.v1.ApplicationMetadata}
570
+ */
571
+ proto.build.v1.ApplicationMetadata.deserializeBinary = function(bytes) {
572
+ var reader = new jspb.BinaryReader(bytes);
573
+ var msg = new proto.build.v1.ApplicationMetadata;
574
+ return proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader(msg, reader);
575
+ };
576
+
577
+
578
+ /**
579
+ * Deserializes binary data (in protobuf wire format) from the
580
+ * given reader into the given message object.
581
+ * @param {!proto.build.v1.ApplicationMetadata} msg The message object to deserialize into.
582
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
583
+ * @return {!proto.build.v1.ApplicationMetadata}
584
+ */
585
+ proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader = function(msg, reader) {
586
+ while (reader.nextField()) {
587
+ if (reader.isEndGroup()) {
588
+ break;
589
+ }
590
+ var field = reader.getFieldNumber();
591
+ switch (field) {
592
+ case 1:
593
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
594
+ msg.setId(value);
595
+ break;
596
+ case 2:
597
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
598
+ msg.setOrganizationId(value);
599
+ break;
600
+ default:
601
+ reader.skipField();
602
+ break;
603
+ }
604
+ }
605
+ return msg;
606
+ };
607
+
608
+
609
+ /**
610
+ * Serializes the message to binary data (in protobuf wire format).
611
+ * @return {!Uint8Array}
612
+ */
613
+ proto.build.v1.ApplicationMetadata.prototype.serializeBinary = function() {
614
+ var writer = new jspb.BinaryWriter();
615
+ proto.build.v1.ApplicationMetadata.serializeBinaryToWriter(this, writer);
616
+ return writer.getResultBuffer();
617
+ };
618
+
619
+
620
+ /**
621
+ * Serializes the given message to binary data (in protobuf wire
622
+ * format), writing to the given BinaryWriter.
623
+ * @param {!proto.build.v1.ApplicationMetadata} message
624
+ * @param {!jspb.BinaryWriter} writer
625
+ * @suppress {unusedLocalVariables} f is only used for nested messages
626
+ */
627
+ proto.build.v1.ApplicationMetadata.serializeBinaryToWriter = function(message, writer) {
628
+ var f = undefined;
629
+ f = message.getId();
630
+ if (f.length > 0) {
631
+ writer.writeString(
632
+ 1,
633
+ f
634
+ );
635
+ }
636
+ f = message.getOrganizationId();
637
+ if (f.length > 0) {
638
+ writer.writeString(
639
+ 2,
640
+ f
641
+ );
642
+ }
643
+ };
644
+
645
+
646
+ /**
647
+ * optional string id = 1;
648
+ * @return {string}
649
+ */
650
+ proto.build.v1.ApplicationMetadata.prototype.getId = function() {
651
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
652
+ };
653
+
654
+
655
+ /**
656
+ * @param {string} value
657
+ * @return {!proto.build.v1.ApplicationMetadata} returns this
658
+ */
659
+ proto.build.v1.ApplicationMetadata.prototype.setId = function(value) {
660
+ return jspb.Message.setProto3StringField(this, 1, value);
661
+ };
662
+
663
+
664
+ /**
665
+ * optional string organization_id = 2;
666
+ * @return {string}
667
+ */
668
+ proto.build.v1.ApplicationMetadata.prototype.getOrganizationId = function() {
669
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
670
+ };
671
+
672
+
673
+ /**
674
+ * @param {string} value
675
+ * @return {!proto.build.v1.ApplicationMetadata} returns this
676
+ */
677
+ proto.build.v1.ApplicationMetadata.prototype.setOrganizationId = function(value) {
678
+ return jspb.Message.setProto3StringField(this, 2, value);
679
+ };
680
+
681
+
682
+
683
+
684
+
685
+ if (jspb.Message.GENERATE_TO_OBJECT) {
686
+ /**
687
+ * Creates an object representation of this proto.
688
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
689
+ * Optional fields that are not set will be set to undefined.
690
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
691
+ * For the list of reserved names please see:
692
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
693
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
694
+ * JSPB instance for transitional soy proto support:
695
+ * http://goto/soy-param-migration
696
+ * @return {!Object}
697
+ */
698
+ proto.build.v1.BuildResponse.prototype.toObject = function(opt_includeInstance) {
699
+ return proto.build.v1.BuildResponse.toObject(opt_includeInstance, this);
700
+ };
701
+
702
+
703
+ /**
704
+ * Static version of the {@see toObject} method.
705
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
706
+ * the JSPB instance for transitional soy proto support:
707
+ * http://goto/soy-param-migration
708
+ * @param {!proto.build.v1.BuildResponse} msg The msg instance to transform.
709
+ * @return {!Object}
710
+ * @suppress {unusedLocalVariables} f is only used for nested messages
711
+ */
712
+ proto.build.v1.BuildResponse.toObject = function(includeInstance, msg) {
713
+ var f, obj = {
714
+ buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
715
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
716
+ updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
717
+ };
718
+
719
+ if (includeInstance) {
720
+ obj.$jspbMessageInstance = msg;
721
+ }
722
+ return obj;
723
+ };
724
+ }
725
+
726
+
727
+ /**
728
+ * Deserializes binary data (in protobuf wire format).
729
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
730
+ * @return {!proto.build.v1.BuildResponse}
731
+ */
732
+ proto.build.v1.BuildResponse.deserializeBinary = function(bytes) {
733
+ var reader = new jspb.BinaryReader(bytes);
734
+ var msg = new proto.build.v1.BuildResponse;
735
+ return proto.build.v1.BuildResponse.deserializeBinaryFromReader(msg, reader);
736
+ };
737
+
738
+
739
+ /**
740
+ * Deserializes binary data (in protobuf wire format) from the
741
+ * given reader into the given message object.
742
+ * @param {!proto.build.v1.BuildResponse} msg The message object to deserialize into.
743
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
744
+ * @return {!proto.build.v1.BuildResponse}
745
+ */
746
+ proto.build.v1.BuildResponse.deserializeBinaryFromReader = function(msg, reader) {
747
+ while (reader.nextField()) {
748
+ if (reader.isEndGroup()) {
749
+ break;
750
+ }
751
+ var field = reader.getFieldNumber();
752
+ switch (field) {
753
+ case 1:
754
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
755
+ msg.setBuildId(value);
756
+ break;
757
+ case 2:
758
+ var value = new google_protobuf_timestamp_pb.Timestamp;
759
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
760
+ msg.setCreated(value);
761
+ break;
762
+ case 3:
763
+ var value = new google_protobuf_timestamp_pb.Timestamp;
764
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
765
+ msg.setUpdated(value);
766
+ break;
767
+ default:
768
+ reader.skipField();
769
+ break;
770
+ }
771
+ }
772
+ return msg;
773
+ };
774
+
775
+
776
+ /**
777
+ * Serializes the message to binary data (in protobuf wire format).
778
+ * @return {!Uint8Array}
779
+ */
780
+ proto.build.v1.BuildResponse.prototype.serializeBinary = function() {
781
+ var writer = new jspb.BinaryWriter();
782
+ proto.build.v1.BuildResponse.serializeBinaryToWriter(this, writer);
783
+ return writer.getResultBuffer();
784
+ };
785
+
786
+
787
+ /**
788
+ * Serializes the given message to binary data (in protobuf wire
789
+ * format), writing to the given BinaryWriter.
790
+ * @param {!proto.build.v1.BuildResponse} message
791
+ * @param {!jspb.BinaryWriter} writer
792
+ * @suppress {unusedLocalVariables} f is only used for nested messages
793
+ */
794
+ proto.build.v1.BuildResponse.serializeBinaryToWriter = function(message, writer) {
795
+ var f = undefined;
796
+ f = message.getBuildId();
797
+ if (f.length > 0) {
798
+ writer.writeString(
799
+ 1,
800
+ f
801
+ );
802
+ }
803
+ f = message.getCreated();
804
+ if (f != null) {
805
+ writer.writeMessage(
806
+ 2,
807
+ f,
808
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
809
+ );
810
+ }
811
+ f = message.getUpdated();
812
+ if (f != null) {
813
+ writer.writeMessage(
814
+ 3,
815
+ f,
816
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
817
+ );
818
+ }
819
+ };
820
+
821
+
822
+ /**
823
+ * optional string build_id = 1;
824
+ * @return {string}
825
+ */
826
+ proto.build.v1.BuildResponse.prototype.getBuildId = function() {
827
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
828
+ };
829
+
830
+
831
+ /**
832
+ * @param {string} value
833
+ * @return {!proto.build.v1.BuildResponse} returns this
834
+ */
835
+ proto.build.v1.BuildResponse.prototype.setBuildId = function(value) {
836
+ return jspb.Message.setProto3StringField(this, 1, value);
837
+ };
838
+
839
+
840
+ /**
841
+ * optional google.protobuf.Timestamp created = 2;
842
+ * @return {?proto.google.protobuf.Timestamp}
843
+ */
844
+ proto.build.v1.BuildResponse.prototype.getCreated = function() {
845
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
846
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
847
+ };
848
+
849
+
850
+ /**
851
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
852
+ * @return {!proto.build.v1.BuildResponse} returns this
853
+ */
854
+ proto.build.v1.BuildResponse.prototype.setCreated = function(value) {
855
+ return jspb.Message.setWrapperField(this, 2, value);
856
+ };
857
+
858
+
859
+ /**
860
+ * Clears the message field making it undefined.
861
+ * @return {!proto.build.v1.BuildResponse} returns this
862
+ */
863
+ proto.build.v1.BuildResponse.prototype.clearCreated = function() {
864
+ return this.setCreated(undefined);
865
+ };
866
+
867
+
868
+ /**
869
+ * Returns whether this field is set.
870
+ * @return {boolean}
871
+ */
872
+ proto.build.v1.BuildResponse.prototype.hasCreated = function() {
873
+ return jspb.Message.getField(this, 2) != null;
874
+ };
875
+
876
+
877
+ /**
878
+ * optional google.protobuf.Timestamp updated = 3;
879
+ * @return {?proto.google.protobuf.Timestamp}
880
+ */
881
+ proto.build.v1.BuildResponse.prototype.getUpdated = function() {
882
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
883
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
884
+ };
885
+
886
+
887
+ /**
888
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
889
+ * @return {!proto.build.v1.BuildResponse} returns this
890
+ */
891
+ proto.build.v1.BuildResponse.prototype.setUpdated = function(value) {
892
+ return jspb.Message.setWrapperField(this, 3, value);
893
+ };
894
+
895
+
896
+ /**
897
+ * Clears the message field making it undefined.
898
+ * @return {!proto.build.v1.BuildResponse} returns this
899
+ */
900
+ proto.build.v1.BuildResponse.prototype.clearUpdated = function() {
901
+ return this.setUpdated(undefined);
902
+ };
903
+
904
+
905
+ /**
906
+ * Returns whether this field is set.
907
+ * @return {boolean}
908
+ */
909
+ proto.build.v1.BuildResponse.prototype.hasUpdated = function() {
910
+ return jspb.Message.getField(this, 3) != null;
911
+ };
912
+
913
+
914
+
915
+
916
+
917
+ if (jspb.Message.GENERATE_TO_OBJECT) {
918
+ /**
919
+ * Creates an object representation of this proto.
920
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
921
+ * Optional fields that are not set will be set to undefined.
922
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
923
+ * For the list of reserved names please see:
924
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
925
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
926
+ * JSPB instance for transitional soy proto support:
927
+ * http://goto/soy-param-migration
928
+ * @return {!Object}
929
+ */
930
+ proto.build.v1.DeployDatabricksRequest.prototype.toObject = function(opt_includeInstance) {
931
+ return proto.build.v1.DeployDatabricksRequest.toObject(opt_includeInstance, this);
932
+ };
933
+
934
+
935
+ /**
936
+ * Static version of the {@see toObject} method.
937
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
938
+ * the JSPB instance for transitional soy proto support:
939
+ * http://goto/soy-param-migration
940
+ * @param {!proto.build.v1.DeployDatabricksRequest} msg The msg instance to transform.
941
+ * @return {!Object}
942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
943
+ */
944
+ proto.build.v1.DeployDatabricksRequest.toObject = function(includeInstance, msg) {
945
+ var f, obj = {
946
+ directoryHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
947
+ applicationMetadata: (f = msg.getApplicationMetadata()) && proto.build.v1.ApplicationMetadata.toObject(includeInstance, f),
948
+ buildKey: jspb.Message.getFieldWithDefault(msg, 3, "")
949
+ };
950
+
951
+ if (includeInstance) {
952
+ obj.$jspbMessageInstance = msg;
953
+ }
954
+ return obj;
955
+ };
956
+ }
957
+
958
+
959
+ /**
960
+ * Deserializes binary data (in protobuf wire format).
961
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
962
+ * @return {!proto.build.v1.DeployDatabricksRequest}
963
+ */
964
+ proto.build.v1.DeployDatabricksRequest.deserializeBinary = function(bytes) {
965
+ var reader = new jspb.BinaryReader(bytes);
966
+ var msg = new proto.build.v1.DeployDatabricksRequest;
967
+ return proto.build.v1.DeployDatabricksRequest.deserializeBinaryFromReader(msg, reader);
968
+ };
969
+
970
+
971
+ /**
972
+ * Deserializes binary data (in protobuf wire format) from the
973
+ * given reader into the given message object.
974
+ * @param {!proto.build.v1.DeployDatabricksRequest} msg The message object to deserialize into.
975
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
976
+ * @return {!proto.build.v1.DeployDatabricksRequest}
977
+ */
978
+ proto.build.v1.DeployDatabricksRequest.deserializeBinaryFromReader = function(msg, reader) {
979
+ while (reader.nextField()) {
980
+ if (reader.isEndGroup()) {
981
+ break;
982
+ }
983
+ var field = reader.getFieldNumber();
984
+ switch (field) {
985
+ case 1:
986
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
987
+ msg.setDirectoryHash(value);
988
+ break;
989
+ case 2:
990
+ var value = new proto.build.v1.ApplicationMetadata;
991
+ reader.readMessage(value,proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader);
992
+ msg.setApplicationMetadata(value);
993
+ break;
994
+ case 3:
995
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
996
+ msg.setBuildKey(value);
997
+ break;
998
+ default:
999
+ reader.skipField();
1000
+ break;
1001
+ }
1002
+ }
1003
+ return msg;
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * Serializes the message to binary data (in protobuf wire format).
1009
+ * @return {!Uint8Array}
1010
+ */
1011
+ proto.build.v1.DeployDatabricksRequest.prototype.serializeBinary = function() {
1012
+ var writer = new jspb.BinaryWriter();
1013
+ proto.build.v1.DeployDatabricksRequest.serializeBinaryToWriter(this, writer);
1014
+ return writer.getResultBuffer();
1015
+ };
1016
+
1017
+
1018
+ /**
1019
+ * Serializes the given message to binary data (in protobuf wire
1020
+ * format), writing to the given BinaryWriter.
1021
+ * @param {!proto.build.v1.DeployDatabricksRequest} message
1022
+ * @param {!jspb.BinaryWriter} writer
1023
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1024
+ */
1025
+ proto.build.v1.DeployDatabricksRequest.serializeBinaryToWriter = function(message, writer) {
1026
+ var f = undefined;
1027
+ f = message.getDirectoryHash();
1028
+ if (f.length > 0) {
1029
+ writer.writeString(
1030
+ 1,
1031
+ f
1032
+ );
1033
+ }
1034
+ f = message.getApplicationMetadata();
1035
+ if (f != null) {
1036
+ writer.writeMessage(
1037
+ 2,
1038
+ f,
1039
+ proto.build.v1.ApplicationMetadata.serializeBinaryToWriter
1040
+ );
1041
+ }
1042
+ f = message.getBuildKey();
1043
+ if (f.length > 0) {
1044
+ writer.writeString(
1045
+ 3,
1046
+ f
1047
+ );
1048
+ }
1049
+ };
1050
+
1051
+
1052
+ /**
1053
+ * optional string directory_hash = 1;
1054
+ * @return {string}
1055
+ */
1056
+ proto.build.v1.DeployDatabricksRequest.prototype.getDirectoryHash = function() {
1057
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * @param {string} value
1063
+ * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1064
+ */
1065
+ proto.build.v1.DeployDatabricksRequest.prototype.setDirectoryHash = function(value) {
1066
+ return jspb.Message.setProto3StringField(this, 1, value);
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * optional ApplicationMetadata application_metadata = 2;
1072
+ * @return {?proto.build.v1.ApplicationMetadata}
1073
+ */
1074
+ proto.build.v1.DeployDatabricksRequest.prototype.getApplicationMetadata = function() {
1075
+ return /** @type{?proto.build.v1.ApplicationMetadata} */ (
1076
+ jspb.Message.getWrapperField(this, proto.build.v1.ApplicationMetadata, 2));
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * @param {?proto.build.v1.ApplicationMetadata|undefined} value
1082
+ * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1083
+ */
1084
+ proto.build.v1.DeployDatabricksRequest.prototype.setApplicationMetadata = function(value) {
1085
+ return jspb.Message.setWrapperField(this, 2, value);
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * Clears the message field making it undefined.
1091
+ * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1092
+ */
1093
+ proto.build.v1.DeployDatabricksRequest.prototype.clearApplicationMetadata = function() {
1094
+ return this.setApplicationMetadata(undefined);
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * Returns whether this field is set.
1100
+ * @return {boolean}
1101
+ */
1102
+ proto.build.v1.DeployDatabricksRequest.prototype.hasApplicationMetadata = function() {
1103
+ return jspb.Message.getField(this, 2) != null;
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * optional string build_key = 3;
1109
+ * @return {string}
1110
+ */
1111
+ proto.build.v1.DeployDatabricksRequest.prototype.getBuildKey = function() {
1112
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * @param {string} value
1118
+ * @return {!proto.build.v1.DeployDatabricksRequest} returns this
1119
+ */
1120
+ proto.build.v1.DeployDatabricksRequest.prototype.setBuildKey = function(value) {
1121
+ return jspb.Message.setProto3StringField(this, 3, 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.build.v1.DeployDatabricksResponse.prototype.toObject = function(opt_includeInstance) {
1142
+ return proto.build.v1.DeployDatabricksResponse.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.build.v1.DeployDatabricksResponse} msg The msg instance to transform.
1152
+ * @return {!Object}
1153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1154
+ */
1155
+ proto.build.v1.DeployDatabricksResponse.toObject = function(includeInstance, msg) {
1156
+ var f, obj = {
1157
+ buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1158
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1159
+ updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1160
+ };
1161
+
1162
+ if (includeInstance) {
1163
+ obj.$jspbMessageInstance = msg;
1164
+ }
1165
+ return obj;
1166
+ };
1167
+ }
1168
+
1169
+
1170
+ /**
1171
+ * Deserializes binary data (in protobuf wire format).
1172
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1173
+ * @return {!proto.build.v1.DeployDatabricksResponse}
1174
+ */
1175
+ proto.build.v1.DeployDatabricksResponse.deserializeBinary = function(bytes) {
1176
+ var reader = new jspb.BinaryReader(bytes);
1177
+ var msg = new proto.build.v1.DeployDatabricksResponse;
1178
+ return proto.build.v1.DeployDatabricksResponse.deserializeBinaryFromReader(msg, reader);
1179
+ };
1180
+
1181
+
1182
+ /**
1183
+ * Deserializes binary data (in protobuf wire format) from the
1184
+ * given reader into the given message object.
1185
+ * @param {!proto.build.v1.DeployDatabricksResponse} msg The message object to deserialize into.
1186
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1187
+ * @return {!proto.build.v1.DeployDatabricksResponse}
1188
+ */
1189
+ proto.build.v1.DeployDatabricksResponse.deserializeBinaryFromReader = function(msg, reader) {
1190
+ while (reader.nextField()) {
1191
+ if (reader.isEndGroup()) {
1192
+ break;
1193
+ }
1194
+ var field = reader.getFieldNumber();
1195
+ switch (field) {
1196
+ case 1:
1197
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1198
+ msg.setBuildId(value);
1199
+ break;
1200
+ case 2:
1201
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1202
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1203
+ msg.setCreated(value);
1204
+ break;
1205
+ case 3:
1206
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1207
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1208
+ msg.setUpdated(value);
1209
+ break;
1210
+ default:
1211
+ reader.skipField();
1212
+ break;
1213
+ }
1214
+ }
1215
+ return msg;
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * Serializes the message to binary data (in protobuf wire format).
1221
+ * @return {!Uint8Array}
1222
+ */
1223
+ proto.build.v1.DeployDatabricksResponse.prototype.serializeBinary = function() {
1224
+ var writer = new jspb.BinaryWriter();
1225
+ proto.build.v1.DeployDatabricksResponse.serializeBinaryToWriter(this, writer);
1226
+ return writer.getResultBuffer();
1227
+ };
1228
+
1229
+
1230
+ /**
1231
+ * Serializes the given message to binary data (in protobuf wire
1232
+ * format), writing to the given BinaryWriter.
1233
+ * @param {!proto.build.v1.DeployDatabricksResponse} message
1234
+ * @param {!jspb.BinaryWriter} writer
1235
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1236
+ */
1237
+ proto.build.v1.DeployDatabricksResponse.serializeBinaryToWriter = function(message, writer) {
1238
+ var f = undefined;
1239
+ f = message.getBuildId();
1240
+ if (f.length > 0) {
1241
+ writer.writeString(
1242
+ 1,
1243
+ f
1244
+ );
1245
+ }
1246
+ f = message.getCreated();
1247
+ if (f != null) {
1248
+ writer.writeMessage(
1249
+ 2,
1250
+ f,
1251
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1252
+ );
1253
+ }
1254
+ f = message.getUpdated();
1255
+ if (f != null) {
1256
+ writer.writeMessage(
1257
+ 3,
1258
+ f,
1259
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1260
+ );
1261
+ }
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * optional string build_id = 1;
1267
+ * @return {string}
1268
+ */
1269
+ proto.build.v1.DeployDatabricksResponse.prototype.getBuildId = function() {
1270
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * @param {string} value
1276
+ * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1277
+ */
1278
+ proto.build.v1.DeployDatabricksResponse.prototype.setBuildId = function(value) {
1279
+ return jspb.Message.setProto3StringField(this, 1, value);
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * optional google.protobuf.Timestamp created = 2;
1285
+ * @return {?proto.google.protobuf.Timestamp}
1286
+ */
1287
+ proto.build.v1.DeployDatabricksResponse.prototype.getCreated = function() {
1288
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1289
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1295
+ * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1296
+ */
1297
+ proto.build.v1.DeployDatabricksResponse.prototype.setCreated = function(value) {
1298
+ return jspb.Message.setWrapperField(this, 2, value);
1299
+ };
1300
+
1301
+
1302
+ /**
1303
+ * Clears the message field making it undefined.
1304
+ * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1305
+ */
1306
+ proto.build.v1.DeployDatabricksResponse.prototype.clearCreated = function() {
1307
+ return this.setCreated(undefined);
1308
+ };
1309
+
1310
+
1311
+ /**
1312
+ * Returns whether this field is set.
1313
+ * @return {boolean}
1314
+ */
1315
+ proto.build.v1.DeployDatabricksResponse.prototype.hasCreated = function() {
1316
+ return jspb.Message.getField(this, 2) != null;
1317
+ };
1318
+
1319
+
1320
+ /**
1321
+ * optional google.protobuf.Timestamp updated = 3;
1322
+ * @return {?proto.google.protobuf.Timestamp}
1323
+ */
1324
+ proto.build.v1.DeployDatabricksResponse.prototype.getUpdated = function() {
1325
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1326
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1332
+ * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1333
+ */
1334
+ proto.build.v1.DeployDatabricksResponse.prototype.setUpdated = function(value) {
1335
+ return jspb.Message.setWrapperField(this, 3, value);
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * Clears the message field making it undefined.
1341
+ * @return {!proto.build.v1.DeployDatabricksResponse} returns this
1342
+ */
1343
+ proto.build.v1.DeployDatabricksResponse.prototype.clearUpdated = function() {
1344
+ return this.setUpdated(undefined);
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * Returns whether this field is set.
1350
+ * @return {boolean}
1351
+ */
1352
+ proto.build.v1.DeployDatabricksResponse.prototype.hasUpdated = function() {
1353
+ return jspb.Message.getField(this, 3) != null;
1354
+ };
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1361
+ /**
1362
+ * Creates an object representation of this proto.
1363
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1364
+ * Optional fields that are not set will be set to undefined.
1365
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1366
+ * For the list of reserved names please see:
1367
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1368
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1369
+ * JSPB instance for transitional soy proto support:
1370
+ * http://goto/soy-param-migration
1371
+ * @return {!Object}
1372
+ */
1373
+ proto.build.v1.ListRequest.prototype.toObject = function(opt_includeInstance) {
1374
+ return proto.build.v1.ListRequest.toObject(opt_includeInstance, this);
1375
+ };
1376
+
1377
+
1378
+ /**
1379
+ * Static version of the {@see toObject} method.
1380
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1381
+ * the JSPB instance for transitional soy proto support:
1382
+ * http://goto/soy-param-migration
1383
+ * @param {!proto.build.v1.ListRequest} msg The msg instance to transform.
1384
+ * @return {!Object}
1385
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1386
+ */
1387
+ proto.build.v1.ListRequest.toObject = function(includeInstance, msg) {
1388
+ var f, obj = {
1389
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1390
+ applicationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1391
+ directoryHash: jspb.Message.getFieldWithDefault(msg, 3, "")
1392
+ };
1393
+
1394
+ if (includeInstance) {
1395
+ obj.$jspbMessageInstance = msg;
1396
+ }
1397
+ return obj;
1398
+ };
1399
+ }
1400
+
1401
+
1402
+ /**
1403
+ * Deserializes binary data (in protobuf wire format).
1404
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1405
+ * @return {!proto.build.v1.ListRequest}
1406
+ */
1407
+ proto.build.v1.ListRequest.deserializeBinary = function(bytes) {
1408
+ var reader = new jspb.BinaryReader(bytes);
1409
+ var msg = new proto.build.v1.ListRequest;
1410
+ return proto.build.v1.ListRequest.deserializeBinaryFromReader(msg, reader);
1411
+ };
1412
+
1413
+
1414
+ /**
1415
+ * Deserializes binary data (in protobuf wire format) from the
1416
+ * given reader into the given message object.
1417
+ * @param {!proto.build.v1.ListRequest} msg The message object to deserialize into.
1418
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1419
+ * @return {!proto.build.v1.ListRequest}
1420
+ */
1421
+ proto.build.v1.ListRequest.deserializeBinaryFromReader = function(msg, reader) {
1422
+ while (reader.nextField()) {
1423
+ if (reader.isEndGroup()) {
1424
+ break;
1425
+ }
1426
+ var field = reader.getFieldNumber();
1427
+ switch (field) {
1428
+ case 1:
1429
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1430
+ msg.setOrganizationId(value);
1431
+ break;
1432
+ case 2:
1433
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1434
+ msg.setApplicationId(value);
1435
+ break;
1436
+ case 3:
1437
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1438
+ msg.setDirectoryHash(value);
1439
+ break;
1440
+ default:
1441
+ reader.skipField();
1442
+ break;
1443
+ }
1444
+ }
1445
+ return msg;
1446
+ };
1447
+
1448
+
1449
+ /**
1450
+ * Serializes the message to binary data (in protobuf wire format).
1451
+ * @return {!Uint8Array}
1452
+ */
1453
+ proto.build.v1.ListRequest.prototype.serializeBinary = function() {
1454
+ var writer = new jspb.BinaryWriter();
1455
+ proto.build.v1.ListRequest.serializeBinaryToWriter(this, writer);
1456
+ return writer.getResultBuffer();
1457
+ };
1458
+
1459
+
1460
+ /**
1461
+ * Serializes the given message to binary data (in protobuf wire
1462
+ * format), writing to the given BinaryWriter.
1463
+ * @param {!proto.build.v1.ListRequest} message
1464
+ * @param {!jspb.BinaryWriter} writer
1465
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1466
+ */
1467
+ proto.build.v1.ListRequest.serializeBinaryToWriter = function(message, writer) {
1468
+ var f = undefined;
1469
+ f = message.getOrganizationId();
1470
+ if (f.length > 0) {
1471
+ writer.writeString(
1472
+ 1,
1473
+ f
1474
+ );
1475
+ }
1476
+ f = message.getApplicationId();
1477
+ if (f.length > 0) {
1478
+ writer.writeString(
1479
+ 2,
1480
+ f
1481
+ );
1482
+ }
1483
+ f = message.getDirectoryHash();
1484
+ if (f.length > 0) {
1485
+ writer.writeString(
1486
+ 3,
1487
+ f
1488
+ );
1489
+ }
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * optional string organization_id = 1;
1495
+ * @return {string}
1496
+ */
1497
+ proto.build.v1.ListRequest.prototype.getOrganizationId = function() {
1498
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1499
+ };
1500
+
1501
+
1502
+ /**
1503
+ * @param {string} value
1504
+ * @return {!proto.build.v1.ListRequest} returns this
1505
+ */
1506
+ proto.build.v1.ListRequest.prototype.setOrganizationId = function(value) {
1507
+ return jspb.Message.setProto3StringField(this, 1, value);
1508
+ };
1509
+
1510
+
1511
+ /**
1512
+ * optional string application_id = 2;
1513
+ * @return {string}
1514
+ */
1515
+ proto.build.v1.ListRequest.prototype.getApplicationId = function() {
1516
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1517
+ };
1518
+
1519
+
1520
+ /**
1521
+ * @param {string} value
1522
+ * @return {!proto.build.v1.ListRequest} returns this
1523
+ */
1524
+ proto.build.v1.ListRequest.prototype.setApplicationId = function(value) {
1525
+ return jspb.Message.setProto3StringField(this, 2, value);
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * optional string directory_hash = 3;
1531
+ * @return {string}
1532
+ */
1533
+ proto.build.v1.ListRequest.prototype.getDirectoryHash = function() {
1534
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * @param {string} value
1540
+ * @return {!proto.build.v1.ListRequest} returns this
1541
+ */
1542
+ proto.build.v1.ListRequest.prototype.setDirectoryHash = function(value) {
1543
+ return jspb.Message.setProto3StringField(this, 3, value);
1544
+ };
1545
+
1546
+
1547
+
1548
+ /**
1549
+ * List of repeated fields within this message type.
1550
+ * @private {!Array<number>}
1551
+ * @const
1552
+ */
1553
+ proto.build.v1.ListResponse.repeatedFields_ = [1];
1554
+
1555
+
1556
+
1557
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1558
+ /**
1559
+ * Creates an object representation of this proto.
1560
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1561
+ * Optional fields that are not set will be set to undefined.
1562
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1563
+ * For the list of reserved names please see:
1564
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1565
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1566
+ * JSPB instance for transitional soy proto support:
1567
+ * http://goto/soy-param-migration
1568
+ * @return {!Object}
1569
+ */
1570
+ proto.build.v1.ListResponse.prototype.toObject = function(opt_includeInstance) {
1571
+ return proto.build.v1.ListResponse.toObject(opt_includeInstance, this);
1572
+ };
1573
+
1574
+
1575
+ /**
1576
+ * Static version of the {@see toObject} method.
1577
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1578
+ * the JSPB instance for transitional soy proto support:
1579
+ * http://goto/soy-param-migration
1580
+ * @param {!proto.build.v1.ListResponse} msg The msg instance to transform.
1581
+ * @return {!Object}
1582
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1583
+ */
1584
+ proto.build.v1.ListResponse.toObject = function(includeInstance, msg) {
1585
+ var f, obj = {
1586
+ buildsList: jspb.Message.toObjectList(msg.getBuildsList(),
1587
+ proto.build.v1.StatusResponse.toObject, includeInstance)
1588
+ };
1589
+
1590
+ if (includeInstance) {
1591
+ obj.$jspbMessageInstance = msg;
1592
+ }
1593
+ return obj;
1594
+ };
1595
+ }
1596
+
1597
+
1598
+ /**
1599
+ * Deserializes binary data (in protobuf wire format).
1600
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1601
+ * @return {!proto.build.v1.ListResponse}
1602
+ */
1603
+ proto.build.v1.ListResponse.deserializeBinary = function(bytes) {
1604
+ var reader = new jspb.BinaryReader(bytes);
1605
+ var msg = new proto.build.v1.ListResponse;
1606
+ return proto.build.v1.ListResponse.deserializeBinaryFromReader(msg, reader);
1607
+ };
1608
+
1609
+
1610
+ /**
1611
+ * Deserializes binary data (in protobuf wire format) from the
1612
+ * given reader into the given message object.
1613
+ * @param {!proto.build.v1.ListResponse} msg The message object to deserialize into.
1614
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1615
+ * @return {!proto.build.v1.ListResponse}
1616
+ */
1617
+ proto.build.v1.ListResponse.deserializeBinaryFromReader = function(msg, reader) {
1618
+ while (reader.nextField()) {
1619
+ if (reader.isEndGroup()) {
1620
+ break;
1621
+ }
1622
+ var field = reader.getFieldNumber();
1623
+ switch (field) {
1624
+ case 1:
1625
+ var value = new proto.build.v1.StatusResponse;
1626
+ reader.readMessage(value,proto.build.v1.StatusResponse.deserializeBinaryFromReader);
1627
+ msg.addBuilds(value);
1628
+ break;
1629
+ default:
1630
+ reader.skipField();
1631
+ break;
1632
+ }
1633
+ }
1634
+ return msg;
1635
+ };
1636
+
1637
+
1638
+ /**
1639
+ * Serializes the message to binary data (in protobuf wire format).
1640
+ * @return {!Uint8Array}
1641
+ */
1642
+ proto.build.v1.ListResponse.prototype.serializeBinary = function() {
1643
+ var writer = new jspb.BinaryWriter();
1644
+ proto.build.v1.ListResponse.serializeBinaryToWriter(this, writer);
1645
+ return writer.getResultBuffer();
1646
+ };
1647
+
1648
+
1649
+ /**
1650
+ * Serializes the given message to binary data (in protobuf wire
1651
+ * format), writing to the given BinaryWriter.
1652
+ * @param {!proto.build.v1.ListResponse} message
1653
+ * @param {!jspb.BinaryWriter} writer
1654
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1655
+ */
1656
+ proto.build.v1.ListResponse.serializeBinaryToWriter = function(message, writer) {
1657
+ var f = undefined;
1658
+ f = message.getBuildsList();
1659
+ if (f.length > 0) {
1660
+ writer.writeRepeatedMessage(
1661
+ 1,
1662
+ f,
1663
+ proto.build.v1.StatusResponse.serializeBinaryToWriter
1664
+ );
1665
+ }
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * repeated StatusResponse builds = 1;
1671
+ * @return {!Array<!proto.build.v1.StatusResponse>}
1672
+ */
1673
+ proto.build.v1.ListResponse.prototype.getBuildsList = function() {
1674
+ return /** @type{!Array<!proto.build.v1.StatusResponse>} */ (
1675
+ jspb.Message.getRepeatedWrapperField(this, proto.build.v1.StatusResponse, 1));
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * @param {!Array<!proto.build.v1.StatusResponse>} value
1681
+ * @return {!proto.build.v1.ListResponse} returns this
1682
+ */
1683
+ proto.build.v1.ListResponse.prototype.setBuildsList = function(value) {
1684
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * @param {!proto.build.v1.StatusResponse=} opt_value
1690
+ * @param {number=} opt_index
1691
+ * @return {!proto.build.v1.StatusResponse}
1692
+ */
1693
+ proto.build.v1.ListResponse.prototype.addBuilds = function(opt_value, opt_index) {
1694
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.build.v1.StatusResponse, opt_index);
1695
+ };
1696
+
1697
+
1698
+ /**
1699
+ * Clears the list making it empty but non-null.
1700
+ * @return {!proto.build.v1.ListResponse} returns this
1701
+ */
1702
+ proto.build.v1.ListResponse.prototype.clearBuildsList = function() {
1703
+ return this.setBuildsList([]);
1704
+ };
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1711
+ /**
1712
+ * Creates an object representation of this proto.
1713
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1714
+ * Optional fields that are not set will be set to undefined.
1715
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1716
+ * For the list of reserved names please see:
1717
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1718
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1719
+ * JSPB instance for transitional soy proto support:
1720
+ * http://goto/soy-param-migration
1721
+ * @return {!Object}
1722
+ */
1723
+ proto.build.v1.StatusRequest.prototype.toObject = function(opt_includeInstance) {
1724
+ return proto.build.v1.StatusRequest.toObject(opt_includeInstance, this);
1725
+ };
1726
+
1727
+
1728
+ /**
1729
+ * Static version of the {@see toObject} method.
1730
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1731
+ * the JSPB instance for transitional soy proto support:
1732
+ * http://goto/soy-param-migration
1733
+ * @param {!proto.build.v1.StatusRequest} msg The msg instance to transform.
1734
+ * @return {!Object}
1735
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1736
+ */
1737
+ proto.build.v1.StatusRequest.toObject = function(includeInstance, msg) {
1738
+ var f, obj = {
1739
+ buildId: jspb.Message.getFieldWithDefault(msg, 1, "")
1740
+ };
1741
+
1742
+ if (includeInstance) {
1743
+ obj.$jspbMessageInstance = msg;
1744
+ }
1745
+ return obj;
1746
+ };
1747
+ }
1748
+
1749
+
1750
+ /**
1751
+ * Deserializes binary data (in protobuf wire format).
1752
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1753
+ * @return {!proto.build.v1.StatusRequest}
1754
+ */
1755
+ proto.build.v1.StatusRequest.deserializeBinary = function(bytes) {
1756
+ var reader = new jspb.BinaryReader(bytes);
1757
+ var msg = new proto.build.v1.StatusRequest;
1758
+ return proto.build.v1.StatusRequest.deserializeBinaryFromReader(msg, reader);
1759
+ };
1760
+
1761
+
1762
+ /**
1763
+ * Deserializes binary data (in protobuf wire format) from the
1764
+ * given reader into the given message object.
1765
+ * @param {!proto.build.v1.StatusRequest} msg The message object to deserialize into.
1766
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1767
+ * @return {!proto.build.v1.StatusRequest}
1768
+ */
1769
+ proto.build.v1.StatusRequest.deserializeBinaryFromReader = function(msg, reader) {
1770
+ while (reader.nextField()) {
1771
+ if (reader.isEndGroup()) {
1772
+ break;
1773
+ }
1774
+ var field = reader.getFieldNumber();
1775
+ switch (field) {
1776
+ case 1:
1777
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1778
+ msg.setBuildId(value);
1779
+ break;
1780
+ default:
1781
+ reader.skipField();
1782
+ break;
1783
+ }
1784
+ }
1785
+ return msg;
1786
+ };
1787
+
1788
+
1789
+ /**
1790
+ * Serializes the message to binary data (in protobuf wire format).
1791
+ * @return {!Uint8Array}
1792
+ */
1793
+ proto.build.v1.StatusRequest.prototype.serializeBinary = function() {
1794
+ var writer = new jspb.BinaryWriter();
1795
+ proto.build.v1.StatusRequest.serializeBinaryToWriter(this, writer);
1796
+ return writer.getResultBuffer();
1797
+ };
1798
+
1799
+
1800
+ /**
1801
+ * Serializes the given message to binary data (in protobuf wire
1802
+ * format), writing to the given BinaryWriter.
1803
+ * @param {!proto.build.v1.StatusRequest} message
1804
+ * @param {!jspb.BinaryWriter} writer
1805
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1806
+ */
1807
+ proto.build.v1.StatusRequest.serializeBinaryToWriter = function(message, writer) {
1808
+ var f = undefined;
1809
+ f = message.getBuildId();
1810
+ if (f.length > 0) {
1811
+ writer.writeString(
1812
+ 1,
1813
+ f
1814
+ );
1815
+ }
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * optional string build_id = 1;
1821
+ * @return {string}
1822
+ */
1823
+ proto.build.v1.StatusRequest.prototype.getBuildId = function() {
1824
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1825
+ };
1826
+
1827
+
1828
+ /**
1829
+ * @param {string} value
1830
+ * @return {!proto.build.v1.StatusRequest} returns this
1831
+ */
1832
+ proto.build.v1.StatusRequest.prototype.setBuildId = function(value) {
1833
+ return jspb.Message.setProto3StringField(this, 1, value);
1834
+ };
1835
+
1836
+
1837
+
1838
+ /**
1839
+ * List of repeated fields within this message type.
1840
+ * @private {!Array<number>}
1841
+ * @const
1842
+ */
1843
+ proto.build.v1.BulkStatusRequest.repeatedFields_ = [3];
1844
+
1845
+
1846
+
1847
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1848
+ /**
1849
+ * Creates an object representation of this proto.
1850
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1851
+ * Optional fields that are not set will be set to undefined.
1852
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1853
+ * For the list of reserved names please see:
1854
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1855
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1856
+ * JSPB instance for transitional soy proto support:
1857
+ * http://goto/soy-param-migration
1858
+ * @return {!Object}
1859
+ */
1860
+ proto.build.v1.BulkStatusRequest.prototype.toObject = function(opt_includeInstance) {
1861
+ return proto.build.v1.BulkStatusRequest.toObject(opt_includeInstance, this);
1862
+ };
1863
+
1864
+
1865
+ /**
1866
+ * Static version of the {@see toObject} method.
1867
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1868
+ * the JSPB instance for transitional soy proto support:
1869
+ * http://goto/soy-param-migration
1870
+ * @param {!proto.build.v1.BulkStatusRequest} msg The msg instance to transform.
1871
+ * @return {!Object}
1872
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1873
+ */
1874
+ proto.build.v1.BulkStatusRequest.toObject = function(includeInstance, msg) {
1875
+ var f, obj = {
1876
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1877
+ applicationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1878
+ directoryHashesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1879
+ };
1880
+
1881
+ if (includeInstance) {
1882
+ obj.$jspbMessageInstance = msg;
1883
+ }
1884
+ return obj;
1885
+ };
1886
+ }
1887
+
1888
+
1889
+ /**
1890
+ * Deserializes binary data (in protobuf wire format).
1891
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1892
+ * @return {!proto.build.v1.BulkStatusRequest}
1893
+ */
1894
+ proto.build.v1.BulkStatusRequest.deserializeBinary = function(bytes) {
1895
+ var reader = new jspb.BinaryReader(bytes);
1896
+ var msg = new proto.build.v1.BulkStatusRequest;
1897
+ return proto.build.v1.BulkStatusRequest.deserializeBinaryFromReader(msg, reader);
1898
+ };
1899
+
1900
+
1901
+ /**
1902
+ * Deserializes binary data (in protobuf wire format) from the
1903
+ * given reader into the given message object.
1904
+ * @param {!proto.build.v1.BulkStatusRequest} msg The message object to deserialize into.
1905
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1906
+ * @return {!proto.build.v1.BulkStatusRequest}
1907
+ */
1908
+ proto.build.v1.BulkStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
1909
+ while (reader.nextField()) {
1910
+ if (reader.isEndGroup()) {
1911
+ break;
1912
+ }
1913
+ var field = reader.getFieldNumber();
1914
+ switch (field) {
1915
+ case 1:
1916
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1917
+ msg.setOrganizationId(value);
1918
+ break;
1919
+ case 2:
1920
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1921
+ msg.setApplicationId(value);
1922
+ break;
1923
+ case 3:
1924
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1925
+ msg.addDirectoryHashes(value);
1926
+ break;
1927
+ default:
1928
+ reader.skipField();
1929
+ break;
1930
+ }
1931
+ }
1932
+ return msg;
1933
+ };
1934
+
1935
+
1936
+ /**
1937
+ * Serializes the message to binary data (in protobuf wire format).
1938
+ * @return {!Uint8Array}
1939
+ */
1940
+ proto.build.v1.BulkStatusRequest.prototype.serializeBinary = function() {
1941
+ var writer = new jspb.BinaryWriter();
1942
+ proto.build.v1.BulkStatusRequest.serializeBinaryToWriter(this, writer);
1943
+ return writer.getResultBuffer();
1944
+ };
1945
+
1946
+
1947
+ /**
1948
+ * Serializes the given message to binary data (in protobuf wire
1949
+ * format), writing to the given BinaryWriter.
1950
+ * @param {!proto.build.v1.BulkStatusRequest} message
1951
+ * @param {!jspb.BinaryWriter} writer
1952
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1953
+ */
1954
+ proto.build.v1.BulkStatusRequest.serializeBinaryToWriter = function(message, writer) {
1955
+ var f = undefined;
1956
+ f = message.getOrganizationId();
1957
+ if (f.length > 0) {
1958
+ writer.writeString(
1959
+ 1,
1960
+ f
1961
+ );
1962
+ }
1963
+ f = message.getApplicationId();
1964
+ if (f.length > 0) {
1965
+ writer.writeString(
1966
+ 2,
1967
+ f
1968
+ );
1969
+ }
1970
+ f = message.getDirectoryHashesList();
1971
+ if (f.length > 0) {
1972
+ writer.writeRepeatedString(
1973
+ 3,
1974
+ f
1975
+ );
1976
+ }
1977
+ };
1978
+
1979
+
1980
+ /**
1981
+ * optional string organization_id = 1;
1982
+ * @return {string}
1983
+ */
1984
+ proto.build.v1.BulkStatusRequest.prototype.getOrganizationId = function() {
1985
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1986
+ };
1987
+
1988
+
1989
+ /**
1990
+ * @param {string} value
1991
+ * @return {!proto.build.v1.BulkStatusRequest} returns this
1992
+ */
1993
+ proto.build.v1.BulkStatusRequest.prototype.setOrganizationId = function(value) {
1994
+ return jspb.Message.setProto3StringField(this, 1, value);
1995
+ };
1996
+
1997
+
1998
+ /**
1999
+ * optional string application_id = 2;
2000
+ * @return {string}
2001
+ */
2002
+ proto.build.v1.BulkStatusRequest.prototype.getApplicationId = function() {
2003
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * @param {string} value
2009
+ * @return {!proto.build.v1.BulkStatusRequest} returns this
2010
+ */
2011
+ proto.build.v1.BulkStatusRequest.prototype.setApplicationId = function(value) {
2012
+ return jspb.Message.setProto3StringField(this, 2, value);
2013
+ };
2014
+
2015
+
2016
+ /**
2017
+ * repeated string directory_hashes = 3;
2018
+ * @return {!Array<string>}
2019
+ */
2020
+ proto.build.v1.BulkStatusRequest.prototype.getDirectoryHashesList = function() {
2021
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2022
+ };
2023
+
2024
+
2025
+ /**
2026
+ * @param {!Array<string>} value
2027
+ * @return {!proto.build.v1.BulkStatusRequest} returns this
2028
+ */
2029
+ proto.build.v1.BulkStatusRequest.prototype.setDirectoryHashesList = function(value) {
2030
+ return jspb.Message.setField(this, 3, value || []);
2031
+ };
2032
+
2033
+
2034
+ /**
2035
+ * @param {string} value
2036
+ * @param {number=} opt_index
2037
+ * @return {!proto.build.v1.BulkStatusRequest} returns this
2038
+ */
2039
+ proto.build.v1.BulkStatusRequest.prototype.addDirectoryHashes = function(value, opt_index) {
2040
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2041
+ };
2042
+
2043
+
2044
+ /**
2045
+ * Clears the list making it empty but non-null.
2046
+ * @return {!proto.build.v1.BulkStatusRequest} returns this
2047
+ */
2048
+ proto.build.v1.BulkStatusRequest.prototype.clearDirectoryHashesList = function() {
2049
+ return this.setDirectoryHashesList([]);
2050
+ };
2051
+
2052
+
2053
+
2054
+
2055
+
2056
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2057
+ /**
2058
+ * Creates an object representation of this proto.
2059
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2060
+ * Optional fields that are not set will be set to undefined.
2061
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2062
+ * For the list of reserved names please see:
2063
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2064
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2065
+ * JSPB instance for transitional soy proto support:
2066
+ * http://goto/soy-param-migration
2067
+ * @return {!Object}
2068
+ */
2069
+ proto.build.v1.BulkStatusResponse.prototype.toObject = function(opt_includeInstance) {
2070
+ return proto.build.v1.BulkStatusResponse.toObject(opt_includeInstance, this);
2071
+ };
2072
+
2073
+
2074
+ /**
2075
+ * Static version of the {@see toObject} method.
2076
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2077
+ * the JSPB instance for transitional soy proto support:
2078
+ * http://goto/soy-param-migration
2079
+ * @param {!proto.build.v1.BulkStatusResponse} msg The msg instance to transform.
2080
+ * @return {!Object}
2081
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2082
+ */
2083
+ proto.build.v1.BulkStatusResponse.toObject = function(includeInstance, msg) {
2084
+ var f, obj = {
2085
+ directoryHashToStatusMap: (f = msg.getDirectoryHashToStatusMap()) ? f.toObject(includeInstance, proto.build.v1.StatusResponse.toObject) : []
2086
+ };
2087
+
2088
+ if (includeInstance) {
2089
+ obj.$jspbMessageInstance = msg;
2090
+ }
2091
+ return obj;
2092
+ };
2093
+ }
2094
+
2095
+
2096
+ /**
2097
+ * Deserializes binary data (in protobuf wire format).
2098
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2099
+ * @return {!proto.build.v1.BulkStatusResponse}
2100
+ */
2101
+ proto.build.v1.BulkStatusResponse.deserializeBinary = function(bytes) {
2102
+ var reader = new jspb.BinaryReader(bytes);
2103
+ var msg = new proto.build.v1.BulkStatusResponse;
2104
+ return proto.build.v1.BulkStatusResponse.deserializeBinaryFromReader(msg, reader);
2105
+ };
2106
+
2107
+
2108
+ /**
2109
+ * Deserializes binary data (in protobuf wire format) from the
2110
+ * given reader into the given message object.
2111
+ * @param {!proto.build.v1.BulkStatusResponse} msg The message object to deserialize into.
2112
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2113
+ * @return {!proto.build.v1.BulkStatusResponse}
2114
+ */
2115
+ proto.build.v1.BulkStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
2116
+ while (reader.nextField()) {
2117
+ if (reader.isEndGroup()) {
2118
+ break;
2119
+ }
2120
+ var field = reader.getFieldNumber();
2121
+ switch (field) {
2122
+ case 1:
2123
+ var value = msg.getDirectoryHashToStatusMap();
2124
+ reader.readMessage(value, function(message, reader) {
2125
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readStringRequireUtf8, jspb.BinaryReader.prototype.readMessage, proto.build.v1.StatusResponse.deserializeBinaryFromReader, "", new proto.build.v1.StatusResponse());
2126
+ });
2127
+ break;
2128
+ default:
2129
+ reader.skipField();
2130
+ break;
2131
+ }
2132
+ }
2133
+ return msg;
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * Serializes the message to binary data (in protobuf wire format).
2139
+ * @return {!Uint8Array}
2140
+ */
2141
+ proto.build.v1.BulkStatusResponse.prototype.serializeBinary = function() {
2142
+ var writer = new jspb.BinaryWriter();
2143
+ proto.build.v1.BulkStatusResponse.serializeBinaryToWriter(this, writer);
2144
+ return writer.getResultBuffer();
2145
+ };
2146
+
2147
+
2148
+ /**
2149
+ * Serializes the given message to binary data (in protobuf wire
2150
+ * format), writing to the given BinaryWriter.
2151
+ * @param {!proto.build.v1.BulkStatusResponse} message
2152
+ * @param {!jspb.BinaryWriter} writer
2153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2154
+ */
2155
+ proto.build.v1.BulkStatusResponse.serializeBinaryToWriter = function(message, writer) {
2156
+ var f = undefined;
2157
+ f = message.getDirectoryHashToStatusMap(true);
2158
+ if (f && f.getLength() > 0) {
2159
+ jspb.internal.public_for_gencode.serializeMapToBinary(
2160
+ message.getDirectoryHashToStatusMap(true),
2161
+ 1,
2162
+ writer,
2163
+ jspb.BinaryWriter.prototype.writeString,
2164
+ jspb.BinaryWriter.prototype.writeMessage,
2165
+ proto.build.v1.StatusResponse.serializeBinaryToWriter);
2166
+ }
2167
+ };
2168
+
2169
+
2170
+ /**
2171
+ * map<string, StatusResponse> directory_hash_to_status = 1;
2172
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2173
+ * empty, instead returning `undefined`
2174
+ * @return {!jspb.Map<string,!proto.build.v1.StatusResponse>}
2175
+ */
2176
+ proto.build.v1.BulkStatusResponse.prototype.getDirectoryHashToStatusMap = function(opt_noLazyCreate) {
2177
+ return /** @type {!jspb.Map<string,!proto.build.v1.StatusResponse>} */ (
2178
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
2179
+ proto.build.v1.StatusResponse));
2180
+ };
2181
+
2182
+
2183
+ /**
2184
+ * Clears values from the map. The map will be non-null.
2185
+ * @return {!proto.build.v1.BulkStatusResponse} returns this
2186
+ */
2187
+ proto.build.v1.BulkStatusResponse.prototype.clearDirectoryHashToStatusMap = function() {
2188
+ this.getDirectoryHashToStatusMap().clear();
2189
+ return this;
2190
+ };
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2197
+ /**
2198
+ * Creates an object representation of this proto.
2199
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2200
+ * Optional fields that are not set will be set to undefined.
2201
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2202
+ * For the list of reserved names please see:
2203
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2204
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2205
+ * JSPB instance for transitional soy proto support:
2206
+ * http://goto/soy-param-migration
2207
+ * @return {!Object}
2208
+ */
2209
+ proto.build.v1.StatusResponse.prototype.toObject = function(opt_includeInstance) {
2210
+ return proto.build.v1.StatusResponse.toObject(opt_includeInstance, this);
2211
+ };
2212
+
2213
+
2214
+ /**
2215
+ * Static version of the {@see toObject} method.
2216
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2217
+ * the JSPB instance for transitional soy proto support:
2218
+ * http://goto/soy-param-migration
2219
+ * @param {!proto.build.v1.StatusResponse} msg The msg instance to transform.
2220
+ * @return {!Object}
2221
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2222
+ */
2223
+ proto.build.v1.StatusResponse.toObject = function(includeInstance, msg) {
2224
+ var f, obj = {
2225
+ buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2226
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0),
2227
+ error: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
2228
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2229
+ updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2230
+ };
2231
+
2232
+ if (includeInstance) {
2233
+ obj.$jspbMessageInstance = msg;
2234
+ }
2235
+ return obj;
2236
+ };
2237
+ }
2238
+
2239
+
2240
+ /**
2241
+ * Deserializes binary data (in protobuf wire format).
2242
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2243
+ * @return {!proto.build.v1.StatusResponse}
2244
+ */
2245
+ proto.build.v1.StatusResponse.deserializeBinary = function(bytes) {
2246
+ var reader = new jspb.BinaryReader(bytes);
2247
+ var msg = new proto.build.v1.StatusResponse;
2248
+ return proto.build.v1.StatusResponse.deserializeBinaryFromReader(msg, reader);
2249
+ };
2250
+
2251
+
2252
+ /**
2253
+ * Deserializes binary data (in protobuf wire format) from the
2254
+ * given reader into the given message object.
2255
+ * @param {!proto.build.v1.StatusResponse} msg The message object to deserialize into.
2256
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2257
+ * @return {!proto.build.v1.StatusResponse}
2258
+ */
2259
+ proto.build.v1.StatusResponse.deserializeBinaryFromReader = function(msg, reader) {
2260
+ while (reader.nextField()) {
2261
+ if (reader.isEndGroup()) {
2262
+ break;
2263
+ }
2264
+ var field = reader.getFieldNumber();
2265
+ switch (field) {
2266
+ case 1:
2267
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2268
+ msg.setBuildId(value);
2269
+ break;
2270
+ case 2:
2271
+ var value = /** @type {!proto.build.v1.BuildStatus} */ (reader.readEnum());
2272
+ msg.setStatus(value);
2273
+ break;
2274
+ case 3:
2275
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2276
+ msg.setError(value);
2277
+ break;
2278
+ case 4:
2279
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2280
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2281
+ msg.setCreated(value);
2282
+ break;
2283
+ case 5:
2284
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2285
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2286
+ msg.setUpdated(value);
2287
+ break;
2288
+ default:
2289
+ reader.skipField();
2290
+ break;
2291
+ }
2292
+ }
2293
+ return msg;
2294
+ };
2295
+
2296
+
2297
+ /**
2298
+ * Serializes the message to binary data (in protobuf wire format).
2299
+ * @return {!Uint8Array}
2300
+ */
2301
+ proto.build.v1.StatusResponse.prototype.serializeBinary = function() {
2302
+ var writer = new jspb.BinaryWriter();
2303
+ proto.build.v1.StatusResponse.serializeBinaryToWriter(this, writer);
2304
+ return writer.getResultBuffer();
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * Serializes the given message to binary data (in protobuf wire
2310
+ * format), writing to the given BinaryWriter.
2311
+ * @param {!proto.build.v1.StatusResponse} message
2312
+ * @param {!jspb.BinaryWriter} writer
2313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2314
+ */
2315
+ proto.build.v1.StatusResponse.serializeBinaryToWriter = function(message, writer) {
2316
+ var f = undefined;
2317
+ f = message.getBuildId();
2318
+ if (f.length > 0) {
2319
+ writer.writeString(
2320
+ 1,
2321
+ f
2322
+ );
2323
+ }
2324
+ f = message.getStatus();
2325
+ if (f !== 0.0) {
2326
+ writer.writeEnum(
2327
+ 2,
2328
+ f
2329
+ );
2330
+ }
2331
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2332
+ if (f != null) {
2333
+ writer.writeString(
2334
+ 3,
2335
+ f
2336
+ );
2337
+ }
2338
+ f = message.getCreated();
2339
+ if (f != null) {
2340
+ writer.writeMessage(
2341
+ 4,
2342
+ f,
2343
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2344
+ );
2345
+ }
2346
+ f = message.getUpdated();
2347
+ if (f != null) {
2348
+ writer.writeMessage(
2349
+ 5,
2350
+ f,
2351
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2352
+ );
2353
+ }
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * optional string build_id = 1;
2359
+ * @return {string}
2360
+ */
2361
+ proto.build.v1.StatusResponse.prototype.getBuildId = function() {
2362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * @param {string} value
2368
+ * @return {!proto.build.v1.StatusResponse} returns this
2369
+ */
2370
+ proto.build.v1.StatusResponse.prototype.setBuildId = function(value) {
2371
+ return jspb.Message.setProto3StringField(this, 1, value);
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * optional BuildStatus status = 2;
2377
+ * @return {!proto.build.v1.BuildStatus}
2378
+ */
2379
+ proto.build.v1.StatusResponse.prototype.getStatus = function() {
2380
+ return /** @type {!proto.build.v1.BuildStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * @param {!proto.build.v1.BuildStatus} value
2386
+ * @return {!proto.build.v1.StatusResponse} returns this
2387
+ */
2388
+ proto.build.v1.StatusResponse.prototype.setStatus = function(value) {
2389
+ return jspb.Message.setProto3EnumField(this, 2, value);
2390
+ };
2391
+
2392
+
2393
+ /**
2394
+ * optional string error = 3;
2395
+ * @return {string}
2396
+ */
2397
+ proto.build.v1.StatusResponse.prototype.getError = function() {
2398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2399
+ };
2400
+
2401
+
2402
+ /**
2403
+ * @param {string} value
2404
+ * @return {!proto.build.v1.StatusResponse} returns this
2405
+ */
2406
+ proto.build.v1.StatusResponse.prototype.setError = function(value) {
2407
+ return jspb.Message.setField(this, 3, value);
2408
+ };
2409
+
2410
+
2411
+ /**
2412
+ * Clears the field making it undefined.
2413
+ * @return {!proto.build.v1.StatusResponse} returns this
2414
+ */
2415
+ proto.build.v1.StatusResponse.prototype.clearError = function() {
2416
+ return jspb.Message.setField(this, 3, undefined);
2417
+ };
2418
+
2419
+
2420
+ /**
2421
+ * Returns whether this field is set.
2422
+ * @return {boolean}
2423
+ */
2424
+ proto.build.v1.StatusResponse.prototype.hasError = function() {
2425
+ return jspb.Message.getField(this, 3) != null;
2426
+ };
2427
+
2428
+
2429
+ /**
2430
+ * optional google.protobuf.Timestamp created = 4;
2431
+ * @return {?proto.google.protobuf.Timestamp}
2432
+ */
2433
+ proto.build.v1.StatusResponse.prototype.getCreated = function() {
2434
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2435
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2436
+ };
2437
+
2438
+
2439
+ /**
2440
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2441
+ * @return {!proto.build.v1.StatusResponse} returns this
2442
+ */
2443
+ proto.build.v1.StatusResponse.prototype.setCreated = function(value) {
2444
+ return jspb.Message.setWrapperField(this, 4, value);
2445
+ };
2446
+
2447
+
2448
+ /**
2449
+ * Clears the message field making it undefined.
2450
+ * @return {!proto.build.v1.StatusResponse} returns this
2451
+ */
2452
+ proto.build.v1.StatusResponse.prototype.clearCreated = function() {
2453
+ return this.setCreated(undefined);
2454
+ };
2455
+
2456
+
2457
+ /**
2458
+ * Returns whether this field is set.
2459
+ * @return {boolean}
2460
+ */
2461
+ proto.build.v1.StatusResponse.prototype.hasCreated = function() {
2462
+ return jspb.Message.getField(this, 4) != null;
2463
+ };
2464
+
2465
+
2466
+ /**
2467
+ * optional google.protobuf.Timestamp updated = 5;
2468
+ * @return {?proto.google.protobuf.Timestamp}
2469
+ */
2470
+ proto.build.v1.StatusResponse.prototype.getUpdated = function() {
2471
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2472
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2473
+ };
2474
+
2475
+
2476
+ /**
2477
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2478
+ * @return {!proto.build.v1.StatusResponse} returns this
2479
+ */
2480
+ proto.build.v1.StatusResponse.prototype.setUpdated = function(value) {
2481
+ return jspb.Message.setWrapperField(this, 5, value);
2482
+ };
2483
+
2484
+
2485
+ /**
2486
+ * Clears the message field making it undefined.
2487
+ * @return {!proto.build.v1.StatusResponse} returns this
2488
+ */
2489
+ proto.build.v1.StatusResponse.prototype.clearUpdated = function() {
2490
+ return this.setUpdated(undefined);
2491
+ };
2492
+
2493
+
2494
+ /**
2495
+ * Returns whether this field is set.
2496
+ * @return {boolean}
2497
+ */
2498
+ proto.build.v1.StatusResponse.prototype.hasUpdated = function() {
2499
+ return jspb.Message.getField(this, 5) != null;
2500
+ };
2501
+
2502
+
2503
+
2504
+
2505
+
2506
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2507
+ /**
2508
+ * Creates an object representation of this proto.
2509
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2510
+ * Optional fields that are not set will be set to undefined.
2511
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2512
+ * For the list of reserved names please see:
2513
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2514
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2515
+ * JSPB instance for transitional soy proto support:
2516
+ * http://goto/soy-param-migration
2517
+ * @return {!Object}
2518
+ */
2519
+ proto.build.v1.TerminateRequest.prototype.toObject = function(opt_includeInstance) {
2520
+ return proto.build.v1.TerminateRequest.toObject(opt_includeInstance, this);
2521
+ };
2522
+
2523
+
2524
+ /**
2525
+ * Static version of the {@see toObject} method.
2526
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2527
+ * the JSPB instance for transitional soy proto support:
2528
+ * http://goto/soy-param-migration
2529
+ * @param {!proto.build.v1.TerminateRequest} msg The msg instance to transform.
2530
+ * @return {!Object}
2531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2532
+ */
2533
+ proto.build.v1.TerminateRequest.toObject = function(includeInstance, msg) {
2534
+ var f, obj = {
2535
+ buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2536
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0),
2537
+ error: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
2538
+ buildKey: jspb.Message.getFieldWithDefault(msg, 4, "")
2539
+ };
2540
+
2541
+ if (includeInstance) {
2542
+ obj.$jspbMessageInstance = msg;
2543
+ }
2544
+ return obj;
2545
+ };
2546
+ }
2547
+
2548
+
2549
+ /**
2550
+ * Deserializes binary data (in protobuf wire format).
2551
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2552
+ * @return {!proto.build.v1.TerminateRequest}
2553
+ */
2554
+ proto.build.v1.TerminateRequest.deserializeBinary = function(bytes) {
2555
+ var reader = new jspb.BinaryReader(bytes);
2556
+ var msg = new proto.build.v1.TerminateRequest;
2557
+ return proto.build.v1.TerminateRequest.deserializeBinaryFromReader(msg, reader);
2558
+ };
2559
+
2560
+
2561
+ /**
2562
+ * Deserializes binary data (in protobuf wire format) from the
2563
+ * given reader into the given message object.
2564
+ * @param {!proto.build.v1.TerminateRequest} msg The message object to deserialize into.
2565
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2566
+ * @return {!proto.build.v1.TerminateRequest}
2567
+ */
2568
+ proto.build.v1.TerminateRequest.deserializeBinaryFromReader = function(msg, reader) {
2569
+ while (reader.nextField()) {
2570
+ if (reader.isEndGroup()) {
2571
+ break;
2572
+ }
2573
+ var field = reader.getFieldNumber();
2574
+ switch (field) {
2575
+ case 1:
2576
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2577
+ msg.setBuildId(value);
2578
+ break;
2579
+ case 2:
2580
+ var value = /** @type {!proto.build.v1.BuildStatus} */ (reader.readEnum());
2581
+ msg.setStatus(value);
2582
+ break;
2583
+ case 3:
2584
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2585
+ msg.setError(value);
2586
+ break;
2587
+ case 4:
2588
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2589
+ msg.setBuildKey(value);
2590
+ break;
2591
+ default:
2592
+ reader.skipField();
2593
+ break;
2594
+ }
2595
+ }
2596
+ return msg;
2597
+ };
2598
+
2599
+
2600
+ /**
2601
+ * Serializes the message to binary data (in protobuf wire format).
2602
+ * @return {!Uint8Array}
2603
+ */
2604
+ proto.build.v1.TerminateRequest.prototype.serializeBinary = function() {
2605
+ var writer = new jspb.BinaryWriter();
2606
+ proto.build.v1.TerminateRequest.serializeBinaryToWriter(this, writer);
2607
+ return writer.getResultBuffer();
2608
+ };
2609
+
2610
+
2611
+ /**
2612
+ * Serializes the given message to binary data (in protobuf wire
2613
+ * format), writing to the given BinaryWriter.
2614
+ * @param {!proto.build.v1.TerminateRequest} message
2615
+ * @param {!jspb.BinaryWriter} writer
2616
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2617
+ */
2618
+ proto.build.v1.TerminateRequest.serializeBinaryToWriter = function(message, writer) {
2619
+ var f = undefined;
2620
+ f = message.getBuildId();
2621
+ if (f.length > 0) {
2622
+ writer.writeString(
2623
+ 1,
2624
+ f
2625
+ );
2626
+ }
2627
+ f = message.getStatus();
2628
+ if (f !== 0.0) {
2629
+ writer.writeEnum(
2630
+ 2,
2631
+ f
2632
+ );
2633
+ }
2634
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2635
+ if (f != null) {
2636
+ writer.writeString(
2637
+ 3,
2638
+ f
2639
+ );
2640
+ }
2641
+ f = message.getBuildKey();
2642
+ if (f.length > 0) {
2643
+ writer.writeString(
2644
+ 4,
2645
+ f
2646
+ );
2647
+ }
2648
+ };
2649
+
2650
+
2651
+ /**
2652
+ * optional string build_id = 1;
2653
+ * @return {string}
2654
+ */
2655
+ proto.build.v1.TerminateRequest.prototype.getBuildId = function() {
2656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2657
+ };
2658
+
2659
+
2660
+ /**
2661
+ * @param {string} value
2662
+ * @return {!proto.build.v1.TerminateRequest} returns this
2663
+ */
2664
+ proto.build.v1.TerminateRequest.prototype.setBuildId = function(value) {
2665
+ return jspb.Message.setProto3StringField(this, 1, value);
2666
+ };
2667
+
2668
+
2669
+ /**
2670
+ * optional BuildStatus status = 2;
2671
+ * @return {!proto.build.v1.BuildStatus}
2672
+ */
2673
+ proto.build.v1.TerminateRequest.prototype.getStatus = function() {
2674
+ return /** @type {!proto.build.v1.BuildStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2675
+ };
2676
+
2677
+
2678
+ /**
2679
+ * @param {!proto.build.v1.BuildStatus} value
2680
+ * @return {!proto.build.v1.TerminateRequest} returns this
2681
+ */
2682
+ proto.build.v1.TerminateRequest.prototype.setStatus = function(value) {
2683
+ return jspb.Message.setProto3EnumField(this, 2, value);
2684
+ };
2685
+
2686
+
2687
+ /**
2688
+ * optional string error = 3;
2689
+ * @return {string}
2690
+ */
2691
+ proto.build.v1.TerminateRequest.prototype.getError = function() {
2692
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2693
+ };
2694
+
2695
+
2696
+ /**
2697
+ * @param {string} value
2698
+ * @return {!proto.build.v1.TerminateRequest} returns this
2699
+ */
2700
+ proto.build.v1.TerminateRequest.prototype.setError = function(value) {
2701
+ return jspb.Message.setField(this, 3, value);
2702
+ };
2703
+
2704
+
2705
+ /**
2706
+ * Clears the field making it undefined.
2707
+ * @return {!proto.build.v1.TerminateRequest} returns this
2708
+ */
2709
+ proto.build.v1.TerminateRequest.prototype.clearError = function() {
2710
+ return jspb.Message.setField(this, 3, undefined);
2711
+ };
2712
+
2713
+
2714
+ /**
2715
+ * Returns whether this field is set.
2716
+ * @return {boolean}
2717
+ */
2718
+ proto.build.v1.TerminateRequest.prototype.hasError = function() {
2719
+ return jspb.Message.getField(this, 3) != null;
2720
+ };
2721
+
2722
+
2723
+ /**
2724
+ * optional string build_key = 4;
2725
+ * @return {string}
2726
+ */
2727
+ proto.build.v1.TerminateRequest.prototype.getBuildKey = function() {
2728
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2729
+ };
2730
+
2731
+
2732
+ /**
2733
+ * @param {string} value
2734
+ * @return {!proto.build.v1.TerminateRequest} returns this
2735
+ */
2736
+ proto.build.v1.TerminateRequest.prototype.setBuildKey = function(value) {
2737
+ return jspb.Message.setProto3StringField(this, 4, value);
2738
+ };
2739
+
2740
+
2741
+
2742
+
2743
+
2744
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2745
+ /**
2746
+ * Creates an object representation of this proto.
2747
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2748
+ * Optional fields that are not set will be set to undefined.
2749
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2750
+ * For the list of reserved names please see:
2751
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2752
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2753
+ * JSPB instance for transitional soy proto support:
2754
+ * http://goto/soy-param-migration
2755
+ * @return {!Object}
2756
+ */
2757
+ proto.build.v1.TerminateResponse.prototype.toObject = function(opt_includeInstance) {
2758
+ return proto.build.v1.TerminateResponse.toObject(opt_includeInstance, this);
2759
+ };
2760
+
2761
+
2762
+ /**
2763
+ * Static version of the {@see toObject} method.
2764
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2765
+ * the JSPB instance for transitional soy proto support:
2766
+ * http://goto/soy-param-migration
2767
+ * @param {!proto.build.v1.TerminateResponse} msg The msg instance to transform.
2768
+ * @return {!Object}
2769
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2770
+ */
2771
+ proto.build.v1.TerminateResponse.toObject = function(includeInstance, msg) {
2772
+ var f, obj = {
2773
+ buildId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2774
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0),
2775
+ error: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
2776
+ created: (f = msg.getCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2777
+ updated: (f = msg.getUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2778
+ };
2779
+
2780
+ if (includeInstance) {
2781
+ obj.$jspbMessageInstance = msg;
2782
+ }
2783
+ return obj;
2784
+ };
2785
+ }
2786
+
2787
+
2788
+ /**
2789
+ * Deserializes binary data (in protobuf wire format).
2790
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2791
+ * @return {!proto.build.v1.TerminateResponse}
2792
+ */
2793
+ proto.build.v1.TerminateResponse.deserializeBinary = function(bytes) {
2794
+ var reader = new jspb.BinaryReader(bytes);
2795
+ var msg = new proto.build.v1.TerminateResponse;
2796
+ return proto.build.v1.TerminateResponse.deserializeBinaryFromReader(msg, reader);
2797
+ };
2798
+
2799
+
2800
+ /**
2801
+ * Deserializes binary data (in protobuf wire format) from the
2802
+ * given reader into the given message object.
2803
+ * @param {!proto.build.v1.TerminateResponse} msg The message object to deserialize into.
2804
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2805
+ * @return {!proto.build.v1.TerminateResponse}
2806
+ */
2807
+ proto.build.v1.TerminateResponse.deserializeBinaryFromReader = function(msg, reader) {
2808
+ while (reader.nextField()) {
2809
+ if (reader.isEndGroup()) {
2810
+ break;
2811
+ }
2812
+ var field = reader.getFieldNumber();
2813
+ switch (field) {
2814
+ case 1:
2815
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2816
+ msg.setBuildId(value);
2817
+ break;
2818
+ case 2:
2819
+ var value = /** @type {!proto.build.v1.BuildStatus} */ (reader.readEnum());
2820
+ msg.setStatus(value);
2821
+ break;
2822
+ case 3:
2823
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2824
+ msg.setError(value);
2825
+ break;
2826
+ case 4:
2827
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2828
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2829
+ msg.setCreated(value);
2830
+ break;
2831
+ case 5:
2832
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2833
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2834
+ msg.setUpdated(value);
2835
+ break;
2836
+ default:
2837
+ reader.skipField();
2838
+ break;
2839
+ }
2840
+ }
2841
+ return msg;
2842
+ };
2843
+
2844
+
2845
+ /**
2846
+ * Serializes the message to binary data (in protobuf wire format).
2847
+ * @return {!Uint8Array}
2848
+ */
2849
+ proto.build.v1.TerminateResponse.prototype.serializeBinary = function() {
2850
+ var writer = new jspb.BinaryWriter();
2851
+ proto.build.v1.TerminateResponse.serializeBinaryToWriter(this, writer);
2852
+ return writer.getResultBuffer();
2853
+ };
2854
+
2855
+
2856
+ /**
2857
+ * Serializes the given message to binary data (in protobuf wire
2858
+ * format), writing to the given BinaryWriter.
2859
+ * @param {!proto.build.v1.TerminateResponse} message
2860
+ * @param {!jspb.BinaryWriter} writer
2861
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2862
+ */
2863
+ proto.build.v1.TerminateResponse.serializeBinaryToWriter = function(message, writer) {
2864
+ var f = undefined;
2865
+ f = message.getBuildId();
2866
+ if (f.length > 0) {
2867
+ writer.writeString(
2868
+ 1,
2869
+ f
2870
+ );
2871
+ }
2872
+ f = message.getStatus();
2873
+ if (f !== 0.0) {
2874
+ writer.writeEnum(
2875
+ 2,
2876
+ f
2877
+ );
2878
+ }
2879
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2880
+ if (f != null) {
2881
+ writer.writeString(
2882
+ 3,
2883
+ f
2884
+ );
2885
+ }
2886
+ f = message.getCreated();
2887
+ if (f != null) {
2888
+ writer.writeMessage(
2889
+ 4,
2890
+ f,
2891
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2892
+ );
2893
+ }
2894
+ f = message.getUpdated();
2895
+ if (f != null) {
2896
+ writer.writeMessage(
2897
+ 5,
2898
+ f,
2899
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2900
+ );
2901
+ }
2902
+ };
2903
+
2904
+
2905
+ /**
2906
+ * optional string build_id = 1;
2907
+ * @return {string}
2908
+ */
2909
+ proto.build.v1.TerminateResponse.prototype.getBuildId = function() {
2910
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2911
+ };
2912
+
2913
+
2914
+ /**
2915
+ * @param {string} value
2916
+ * @return {!proto.build.v1.TerminateResponse} returns this
2917
+ */
2918
+ proto.build.v1.TerminateResponse.prototype.setBuildId = function(value) {
2919
+ return jspb.Message.setProto3StringField(this, 1, value);
2920
+ };
2921
+
2922
+
2923
+ /**
2924
+ * optional BuildStatus status = 2;
2925
+ * @return {!proto.build.v1.BuildStatus}
2926
+ */
2927
+ proto.build.v1.TerminateResponse.prototype.getStatus = function() {
2928
+ return /** @type {!proto.build.v1.BuildStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2929
+ };
2930
+
2931
+
2932
+ /**
2933
+ * @param {!proto.build.v1.BuildStatus} value
2934
+ * @return {!proto.build.v1.TerminateResponse} returns this
2935
+ */
2936
+ proto.build.v1.TerminateResponse.prototype.setStatus = function(value) {
2937
+ return jspb.Message.setProto3EnumField(this, 2, value);
2938
+ };
2939
+
2940
+
2941
+ /**
2942
+ * optional string error = 3;
2943
+ * @return {string}
2944
+ */
2945
+ proto.build.v1.TerminateResponse.prototype.getError = function() {
2946
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2947
+ };
2948
+
2949
+
2950
+ /**
2951
+ * @param {string} value
2952
+ * @return {!proto.build.v1.TerminateResponse} returns this
2953
+ */
2954
+ proto.build.v1.TerminateResponse.prototype.setError = function(value) {
2955
+ return jspb.Message.setField(this, 3, value);
2956
+ };
2957
+
2958
+
2959
+ /**
2960
+ * Clears the field making it undefined.
2961
+ * @return {!proto.build.v1.TerminateResponse} returns this
2962
+ */
2963
+ proto.build.v1.TerminateResponse.prototype.clearError = function() {
2964
+ return jspb.Message.setField(this, 3, undefined);
2965
+ };
2966
+
2967
+
2968
+ /**
2969
+ * Returns whether this field is set.
2970
+ * @return {boolean}
2971
+ */
2972
+ proto.build.v1.TerminateResponse.prototype.hasError = function() {
2973
+ return jspb.Message.getField(this, 3) != null;
2974
+ };
2975
+
2976
+
2977
+ /**
2978
+ * optional google.protobuf.Timestamp created = 4;
2979
+ * @return {?proto.google.protobuf.Timestamp}
2980
+ */
2981
+ proto.build.v1.TerminateResponse.prototype.getCreated = function() {
2982
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2983
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2989
+ * @return {!proto.build.v1.TerminateResponse} returns this
2990
+ */
2991
+ proto.build.v1.TerminateResponse.prototype.setCreated = function(value) {
2992
+ return jspb.Message.setWrapperField(this, 4, value);
2993
+ };
2994
+
2995
+
2996
+ /**
2997
+ * Clears the message field making it undefined.
2998
+ * @return {!proto.build.v1.TerminateResponse} returns this
2999
+ */
3000
+ proto.build.v1.TerminateResponse.prototype.clearCreated = function() {
3001
+ return this.setCreated(undefined);
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * Returns whether this field is set.
3007
+ * @return {boolean}
3008
+ */
3009
+ proto.build.v1.TerminateResponse.prototype.hasCreated = function() {
3010
+ return jspb.Message.getField(this, 4) != null;
3011
+ };
3012
+
3013
+
3014
+ /**
3015
+ * optional google.protobuf.Timestamp updated = 5;
3016
+ * @return {?proto.google.protobuf.Timestamp}
3017
+ */
3018
+ proto.build.v1.TerminateResponse.prototype.getUpdated = function() {
3019
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3020
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
3021
+ };
3022
+
3023
+
3024
+ /**
3025
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3026
+ * @return {!proto.build.v1.TerminateResponse} returns this
3027
+ */
3028
+ proto.build.v1.TerminateResponse.prototype.setUpdated = function(value) {
3029
+ return jspb.Message.setWrapperField(this, 5, value);
3030
+ };
3031
+
3032
+
3033
+ /**
3034
+ * Clears the message field making it undefined.
3035
+ * @return {!proto.build.v1.TerminateResponse} returns this
3036
+ */
3037
+ proto.build.v1.TerminateResponse.prototype.clearUpdated = function() {
3038
+ return this.setUpdated(undefined);
3039
+ };
3040
+
3041
+
3042
+ /**
3043
+ * Returns whether this field is set.
3044
+ * @return {boolean}
3045
+ */
3046
+ proto.build.v1.TerminateResponse.prototype.hasUpdated = function() {
3047
+ return jspb.Message.getField(this, 5) != null;
3048
+ };
3049
+
3050
+
3051
+ /**
3052
+ * @enum {number}
3053
+ */
3054
+ proto.build.v1.BuildStatus = {
3055
+ BUILD_STATUS_UNSPECIFIED: 0,
3056
+ BUILD_STATUS_RUNNING: 1,
3057
+ BUILD_STATUS_SUCCESS: 2,
3058
+ BUILD_STATUS_FAILED: 3,
3059
+ BUILD_STATUS_TIMED_OUT: 4
3060
+ };
3061
+
3062
+ goog.object.extend(exports, proto.build.v1);