@miradorlabs/web-grpc 2.49.0 → 2.51.0

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