@miradorlabs/web-grpc 3.7.0 → 3.9.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,2209 @@
1
+ // source: proto/gateway/web/v1/policy_gateway.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = globalThis;
17
+
18
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
20
+ var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
21
+ goog.object.extend(proto, proto_gateway_common_v1_status_pb);
22
+ goog.exportSymbol('proto.gateway.web.v1.GetProjectPolicyRequest', null, global);
23
+ goog.exportSymbol('proto.gateway.web.v1.GetProjectPolicyResponse', null, global);
24
+ goog.exportSymbol('proto.gateway.web.v1.ProjectPolicy', null, global);
25
+ goog.exportSymbol('proto.gateway.web.v1.ProjectPolicy.ProductCase', null, global);
26
+ goog.exportSymbol('proto.gateway.web.v1.SetProjectPolicyRequest', null, global);
27
+ goog.exportSymbol('proto.gateway.web.v1.SetProjectPolicyResponse', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.TermaCapture', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.TermaGlobalCoverage', null, global);
30
+ goog.exportSymbol('proto.gateway.web.v1.TermaPerRepositoryCoverage', null, global);
31
+ goog.exportSymbol('proto.gateway.web.v1.TermaPolicy', null, global);
32
+ goog.exportSymbol('proto.gateway.web.v1.TermaPolicy.CoverageCase', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.TermaSignal', null, global);
34
+ /**
35
+ * Generated by JsPbCodeGenerator.
36
+ * @param {Array=} opt_data Optional initial data array, typically from a
37
+ * server response, or constructed directly in Javascript. The array is used
38
+ * in place and becomes part of the constructed object. It is not cloned.
39
+ * If no data is provided, the constructed object will be empty, but still
40
+ * valid.
41
+ * @extends {jspb.Message}
42
+ * @constructor
43
+ */
44
+ proto.gateway.web.v1.ProjectPolicy = function(opt_data) {
45
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.ProjectPolicy.oneofGroups_);
46
+ };
47
+ goog.inherits(proto.gateway.web.v1.ProjectPolicy, jspb.Message);
48
+ if (goog.DEBUG && !COMPILED) {
49
+ /**
50
+ * @public
51
+ * @override
52
+ */
53
+ proto.gateway.web.v1.ProjectPolicy.displayName = 'proto.gateway.web.v1.ProjectPolicy';
54
+ }
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.gateway.web.v1.TermaPolicy = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.gateway.web.v1.TermaPolicy.oneofGroups_);
67
+ };
68
+ goog.inherits(proto.gateway.web.v1.TermaPolicy, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.gateway.web.v1.TermaPolicy.displayName = 'proto.gateway.web.v1.TermaPolicy';
75
+ }
76
+ /**
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
85
+ */
86
+ proto.gateway.web.v1.TermaGlobalCoverage = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
88
+ };
89
+ goog.inherits(proto.gateway.web.v1.TermaGlobalCoverage, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.gateway.web.v1.TermaGlobalCoverage.displayName = 'proto.gateway.web.v1.TermaGlobalCoverage';
96
+ }
97
+ /**
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
106
+ */
107
+ proto.gateway.web.v1.TermaPerRepositoryCoverage = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
109
+ };
110
+ goog.inherits(proto.gateway.web.v1.TermaPerRepositoryCoverage, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.displayName = 'proto.gateway.web.v1.TermaPerRepositoryCoverage';
117
+ }
118
+ /**
119
+ * Generated by JsPbCodeGenerator.
120
+ * @param {Array=} opt_data Optional initial data array, typically from a
121
+ * server response, or constructed directly in Javascript. The array is used
122
+ * in place and becomes part of the constructed object. It is not cloned.
123
+ * If no data is provided, the constructed object will be empty, but still
124
+ * valid.
125
+ * @extends {jspb.Message}
126
+ * @constructor
127
+ */
128
+ proto.gateway.web.v1.TermaCapture = function(opt_data) {
129
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.TermaCapture.repeatedFields_, null);
130
+ };
131
+ goog.inherits(proto.gateway.web.v1.TermaCapture, jspb.Message);
132
+ if (goog.DEBUG && !COMPILED) {
133
+ /**
134
+ * @public
135
+ * @override
136
+ */
137
+ proto.gateway.web.v1.TermaCapture.displayName = 'proto.gateway.web.v1.TermaCapture';
138
+ }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.gateway.web.v1.GetProjectPolicyRequest = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ };
152
+ goog.inherits(proto.gateway.web.v1.GetProjectPolicyRequest, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.gateway.web.v1.GetProjectPolicyRequest.displayName = 'proto.gateway.web.v1.GetProjectPolicyRequest';
159
+ }
160
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.gateway.web.v1.GetProjectPolicyResponse = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
172
+ };
173
+ goog.inherits(proto.gateway.web.v1.GetProjectPolicyResponse, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.gateway.web.v1.GetProjectPolicyResponse.displayName = 'proto.gateway.web.v1.GetProjectPolicyResponse';
180
+ }
181
+ /**
182
+ * Generated by JsPbCodeGenerator.
183
+ * @param {Array=} opt_data Optional initial data array, typically from a
184
+ * server response, or constructed directly in Javascript. The array is used
185
+ * in place and becomes part of the constructed object. It is not cloned.
186
+ * If no data is provided, the constructed object will be empty, but still
187
+ * valid.
188
+ * @extends {jspb.Message}
189
+ * @constructor
190
+ */
191
+ proto.gateway.web.v1.SetProjectPolicyRequest = function(opt_data) {
192
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
193
+ };
194
+ goog.inherits(proto.gateway.web.v1.SetProjectPolicyRequest, jspb.Message);
195
+ if (goog.DEBUG && !COMPILED) {
196
+ /**
197
+ * @public
198
+ * @override
199
+ */
200
+ proto.gateway.web.v1.SetProjectPolicyRequest.displayName = 'proto.gateway.web.v1.SetProjectPolicyRequest';
201
+ }
202
+ /**
203
+ * Generated by JsPbCodeGenerator.
204
+ * @param {Array=} opt_data Optional initial data array, typically from a
205
+ * server response, or constructed directly in Javascript. The array is used
206
+ * in place and becomes part of the constructed object. It is not cloned.
207
+ * If no data is provided, the constructed object will be empty, but still
208
+ * valid.
209
+ * @extends {jspb.Message}
210
+ * @constructor
211
+ */
212
+ proto.gateway.web.v1.SetProjectPolicyResponse = function(opt_data) {
213
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
214
+ };
215
+ goog.inherits(proto.gateway.web.v1.SetProjectPolicyResponse, jspb.Message);
216
+ if (goog.DEBUG && !COMPILED) {
217
+ /**
218
+ * @public
219
+ * @override
220
+ */
221
+ proto.gateway.web.v1.SetProjectPolicyResponse.displayName = 'proto.gateway.web.v1.SetProjectPolicyResponse';
222
+ }
223
+
224
+ /**
225
+ * Oneof group definitions for this message. Each group defines the field
226
+ * numbers belonging to that group. When of these fields' value is set, all
227
+ * other fields in the group are cleared. During deserialization, if multiple
228
+ * fields are encountered for a group, only the last value seen will be kept.
229
+ * @private {!Array<!Array<number>>}
230
+ * @const
231
+ */
232
+ proto.gateway.web.v1.ProjectPolicy.oneofGroups_ = [[1]];
233
+
234
+ /**
235
+ * @enum {number}
236
+ */
237
+ proto.gateway.web.v1.ProjectPolicy.ProductCase = {
238
+ PRODUCT_NOT_SET: 0,
239
+ TERMA: 1
240
+ };
241
+
242
+ /**
243
+ * @return {proto.gateway.web.v1.ProjectPolicy.ProductCase}
244
+ */
245
+ proto.gateway.web.v1.ProjectPolicy.prototype.getProductCase = function() {
246
+ return /** @type {proto.gateway.web.v1.ProjectPolicy.ProductCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.ProjectPolicy.oneofGroups_[0]));
247
+ };
248
+
249
+
250
+
251
+ if (jspb.Message.GENERATE_TO_OBJECT) {
252
+ /**
253
+ * Creates an object representation of this proto.
254
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
255
+ * Optional fields that are not set will be set to undefined.
256
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
257
+ * For the list of reserved names please see:
258
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
259
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
260
+ * JSPB instance for transitional soy proto support:
261
+ * http://goto/soy-param-migration
262
+ * @return {!Object}
263
+ */
264
+ proto.gateway.web.v1.ProjectPolicy.prototype.toObject = function(opt_includeInstance) {
265
+ return proto.gateway.web.v1.ProjectPolicy.toObject(opt_includeInstance, this);
266
+ };
267
+
268
+
269
+ /**
270
+ * Static version of the {@see toObject} method.
271
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
272
+ * the JSPB instance for transitional soy proto support:
273
+ * http://goto/soy-param-migration
274
+ * @param {!proto.gateway.web.v1.ProjectPolicy} msg The msg instance to transform.
275
+ * @return {!Object}
276
+ * @suppress {unusedLocalVariables} f is only used for nested messages
277
+ */
278
+ proto.gateway.web.v1.ProjectPolicy.toObject = function(includeInstance, msg) {
279
+ var f, obj = {
280
+ terma: (f = msg.getTerma()) && proto.gateway.web.v1.TermaPolicy.toObject(includeInstance, f)
281
+ };
282
+
283
+ if (includeInstance) {
284
+ obj.$jspbMessageInstance = msg;
285
+ }
286
+ return obj;
287
+ };
288
+ }
289
+
290
+
291
+ /**
292
+ * Deserializes binary data (in protobuf wire format).
293
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
294
+ * @return {!proto.gateway.web.v1.ProjectPolicy}
295
+ */
296
+ proto.gateway.web.v1.ProjectPolicy.deserializeBinary = function(bytes) {
297
+ var reader = new jspb.BinaryReader(bytes);
298
+ var msg = new proto.gateway.web.v1.ProjectPolicy;
299
+ return proto.gateway.web.v1.ProjectPolicy.deserializeBinaryFromReader(msg, reader);
300
+ };
301
+
302
+
303
+ /**
304
+ * Deserializes binary data (in protobuf wire format) from the
305
+ * given reader into the given message object.
306
+ * @param {!proto.gateway.web.v1.ProjectPolicy} msg The message object to deserialize into.
307
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
308
+ * @return {!proto.gateway.web.v1.ProjectPolicy}
309
+ */
310
+ proto.gateway.web.v1.ProjectPolicy.deserializeBinaryFromReader = function(msg, reader) {
311
+ while (reader.nextField()) {
312
+ if (reader.isEndGroup()) {
313
+ break;
314
+ }
315
+ var field = reader.getFieldNumber();
316
+ switch (field) {
317
+ case 1:
318
+ var value = new proto.gateway.web.v1.TermaPolicy;
319
+ reader.readMessage(value,proto.gateway.web.v1.TermaPolicy.deserializeBinaryFromReader);
320
+ msg.setTerma(value);
321
+ break;
322
+ default:
323
+ reader.skipField();
324
+ break;
325
+ }
326
+ }
327
+ return msg;
328
+ };
329
+
330
+
331
+ /**
332
+ * Serializes the message to binary data (in protobuf wire format).
333
+ * @return {!Uint8Array}
334
+ */
335
+ proto.gateway.web.v1.ProjectPolicy.prototype.serializeBinary = function() {
336
+ var writer = new jspb.BinaryWriter();
337
+ proto.gateway.web.v1.ProjectPolicy.serializeBinaryToWriter(this, writer);
338
+ return writer.getResultBuffer();
339
+ };
340
+
341
+
342
+ /**
343
+ * Serializes the given message to binary data (in protobuf wire
344
+ * format), writing to the given BinaryWriter.
345
+ * @param {!proto.gateway.web.v1.ProjectPolicy} message
346
+ * @param {!jspb.BinaryWriter} writer
347
+ * @suppress {unusedLocalVariables} f is only used for nested messages
348
+ */
349
+ proto.gateway.web.v1.ProjectPolicy.serializeBinaryToWriter = function(message, writer) {
350
+ var f = undefined;
351
+ f = message.getTerma();
352
+ if (f != null) {
353
+ writer.writeMessage(
354
+ 1,
355
+ f,
356
+ proto.gateway.web.v1.TermaPolicy.serializeBinaryToWriter
357
+ );
358
+ }
359
+ };
360
+
361
+
362
+ /**
363
+ * optional TermaPolicy terma = 1;
364
+ * @return {?proto.gateway.web.v1.TermaPolicy}
365
+ */
366
+ proto.gateway.web.v1.ProjectPolicy.prototype.getTerma = function() {
367
+ return /** @type{?proto.gateway.web.v1.TermaPolicy} */ (
368
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TermaPolicy, 1));
369
+ };
370
+
371
+
372
+ /**
373
+ * @param {?proto.gateway.web.v1.TermaPolicy|undefined} value
374
+ * @return {!proto.gateway.web.v1.ProjectPolicy} returns this
375
+ */
376
+ proto.gateway.web.v1.ProjectPolicy.prototype.setTerma = function(value) {
377
+ return jspb.Message.setOneofWrapperField(this, 1, proto.gateway.web.v1.ProjectPolicy.oneofGroups_[0], value);
378
+ };
379
+
380
+
381
+ /**
382
+ * Clears the message field making it undefined.
383
+ * @return {!proto.gateway.web.v1.ProjectPolicy} returns this
384
+ */
385
+ proto.gateway.web.v1.ProjectPolicy.prototype.clearTerma = function() {
386
+ return this.setTerma(undefined);
387
+ };
388
+
389
+
390
+ /**
391
+ * Returns whether this field is set.
392
+ * @return {boolean}
393
+ */
394
+ proto.gateway.web.v1.ProjectPolicy.prototype.hasTerma = function() {
395
+ return jspb.Message.getField(this, 1) != null;
396
+ };
397
+
398
+
399
+
400
+ /**
401
+ * Oneof group definitions for this message. Each group defines the field
402
+ * numbers belonging to that group. When of these fields' value is set, all
403
+ * other fields in the group are cleared. During deserialization, if multiple
404
+ * fields are encountered for a group, only the last value seen will be kept.
405
+ * @private {!Array<!Array<number>>}
406
+ * @const
407
+ */
408
+ proto.gateway.web.v1.TermaPolicy.oneofGroups_ = [[1,2]];
409
+
410
+ /**
411
+ * @enum {number}
412
+ */
413
+ proto.gateway.web.v1.TermaPolicy.CoverageCase = {
414
+ COVERAGE_NOT_SET: 0,
415
+ GLOBAL: 1,
416
+ PER_REPOSITORY: 2
417
+ };
418
+
419
+ /**
420
+ * @return {proto.gateway.web.v1.TermaPolicy.CoverageCase}
421
+ */
422
+ proto.gateway.web.v1.TermaPolicy.prototype.getCoverageCase = function() {
423
+ return /** @type {proto.gateway.web.v1.TermaPolicy.CoverageCase} */(jspb.Message.computeOneofCase(this, proto.gateway.web.v1.TermaPolicy.oneofGroups_[0]));
424
+ };
425
+
426
+
427
+
428
+ if (jspb.Message.GENERATE_TO_OBJECT) {
429
+ /**
430
+ * Creates an object representation of this proto.
431
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
432
+ * Optional fields that are not set will be set to undefined.
433
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
434
+ * For the list of reserved names please see:
435
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
436
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
437
+ * JSPB instance for transitional soy proto support:
438
+ * http://goto/soy-param-migration
439
+ * @return {!Object}
440
+ */
441
+ proto.gateway.web.v1.TermaPolicy.prototype.toObject = function(opt_includeInstance) {
442
+ return proto.gateway.web.v1.TermaPolicy.toObject(opt_includeInstance, this);
443
+ };
444
+
445
+
446
+ /**
447
+ * Static version of the {@see toObject} method.
448
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
449
+ * the JSPB instance for transitional soy proto support:
450
+ * http://goto/soy-param-migration
451
+ * @param {!proto.gateway.web.v1.TermaPolicy} msg The msg instance to transform.
452
+ * @return {!Object}
453
+ * @suppress {unusedLocalVariables} f is only used for nested messages
454
+ */
455
+ proto.gateway.web.v1.TermaPolicy.toObject = function(includeInstance, msg) {
456
+ var f, obj = {
457
+ global: (f = msg.getGlobal()) && proto.gateway.web.v1.TermaGlobalCoverage.toObject(includeInstance, f),
458
+ perRepository: (f = msg.getPerRepository()) && proto.gateway.web.v1.TermaPerRepositoryCoverage.toObject(includeInstance, f),
459
+ capture: (f = msg.getCapture()) && proto.gateway.web.v1.TermaCapture.toObject(includeInstance, f)
460
+ };
461
+
462
+ if (includeInstance) {
463
+ obj.$jspbMessageInstance = msg;
464
+ }
465
+ return obj;
466
+ };
467
+ }
468
+
469
+
470
+ /**
471
+ * Deserializes binary data (in protobuf wire format).
472
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
473
+ * @return {!proto.gateway.web.v1.TermaPolicy}
474
+ */
475
+ proto.gateway.web.v1.TermaPolicy.deserializeBinary = function(bytes) {
476
+ var reader = new jspb.BinaryReader(bytes);
477
+ var msg = new proto.gateway.web.v1.TermaPolicy;
478
+ return proto.gateway.web.v1.TermaPolicy.deserializeBinaryFromReader(msg, reader);
479
+ };
480
+
481
+
482
+ /**
483
+ * Deserializes binary data (in protobuf wire format) from the
484
+ * given reader into the given message object.
485
+ * @param {!proto.gateway.web.v1.TermaPolicy} msg The message object to deserialize into.
486
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
487
+ * @return {!proto.gateway.web.v1.TermaPolicy}
488
+ */
489
+ proto.gateway.web.v1.TermaPolicy.deserializeBinaryFromReader = function(msg, reader) {
490
+ while (reader.nextField()) {
491
+ if (reader.isEndGroup()) {
492
+ break;
493
+ }
494
+ var field = reader.getFieldNumber();
495
+ switch (field) {
496
+ case 1:
497
+ var value = new proto.gateway.web.v1.TermaGlobalCoverage;
498
+ reader.readMessage(value,proto.gateway.web.v1.TermaGlobalCoverage.deserializeBinaryFromReader);
499
+ msg.setGlobal(value);
500
+ break;
501
+ case 2:
502
+ var value = new proto.gateway.web.v1.TermaPerRepositoryCoverage;
503
+ reader.readMessage(value,proto.gateway.web.v1.TermaPerRepositoryCoverage.deserializeBinaryFromReader);
504
+ msg.setPerRepository(value);
505
+ break;
506
+ case 3:
507
+ var value = new proto.gateway.web.v1.TermaCapture;
508
+ reader.readMessage(value,proto.gateway.web.v1.TermaCapture.deserializeBinaryFromReader);
509
+ msg.setCapture(value);
510
+ break;
511
+ default:
512
+ reader.skipField();
513
+ break;
514
+ }
515
+ }
516
+ return msg;
517
+ };
518
+
519
+
520
+ /**
521
+ * Serializes the message to binary data (in protobuf wire format).
522
+ * @return {!Uint8Array}
523
+ */
524
+ proto.gateway.web.v1.TermaPolicy.prototype.serializeBinary = function() {
525
+ var writer = new jspb.BinaryWriter();
526
+ proto.gateway.web.v1.TermaPolicy.serializeBinaryToWriter(this, writer);
527
+ return writer.getResultBuffer();
528
+ };
529
+
530
+
531
+ /**
532
+ * Serializes the given message to binary data (in protobuf wire
533
+ * format), writing to the given BinaryWriter.
534
+ * @param {!proto.gateway.web.v1.TermaPolicy} message
535
+ * @param {!jspb.BinaryWriter} writer
536
+ * @suppress {unusedLocalVariables} f is only used for nested messages
537
+ */
538
+ proto.gateway.web.v1.TermaPolicy.serializeBinaryToWriter = function(message, writer) {
539
+ var f = undefined;
540
+ f = message.getGlobal();
541
+ if (f != null) {
542
+ writer.writeMessage(
543
+ 1,
544
+ f,
545
+ proto.gateway.web.v1.TermaGlobalCoverage.serializeBinaryToWriter
546
+ );
547
+ }
548
+ f = message.getPerRepository();
549
+ if (f != null) {
550
+ writer.writeMessage(
551
+ 2,
552
+ f,
553
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.serializeBinaryToWriter
554
+ );
555
+ }
556
+ f = message.getCapture();
557
+ if (f != null) {
558
+ writer.writeMessage(
559
+ 3,
560
+ f,
561
+ proto.gateway.web.v1.TermaCapture.serializeBinaryToWriter
562
+ );
563
+ }
564
+ };
565
+
566
+
567
+ /**
568
+ * optional TermaGlobalCoverage global = 1;
569
+ * @return {?proto.gateway.web.v1.TermaGlobalCoverage}
570
+ */
571
+ proto.gateway.web.v1.TermaPolicy.prototype.getGlobal = function() {
572
+ return /** @type{?proto.gateway.web.v1.TermaGlobalCoverage} */ (
573
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TermaGlobalCoverage, 1));
574
+ };
575
+
576
+
577
+ /**
578
+ * @param {?proto.gateway.web.v1.TermaGlobalCoverage|undefined} value
579
+ * @return {!proto.gateway.web.v1.TermaPolicy} returns this
580
+ */
581
+ proto.gateway.web.v1.TermaPolicy.prototype.setGlobal = function(value) {
582
+ return jspb.Message.setOneofWrapperField(this, 1, proto.gateway.web.v1.TermaPolicy.oneofGroups_[0], value);
583
+ };
584
+
585
+
586
+ /**
587
+ * Clears the message field making it undefined.
588
+ * @return {!proto.gateway.web.v1.TermaPolicy} returns this
589
+ */
590
+ proto.gateway.web.v1.TermaPolicy.prototype.clearGlobal = function() {
591
+ return this.setGlobal(undefined);
592
+ };
593
+
594
+
595
+ /**
596
+ * Returns whether this field is set.
597
+ * @return {boolean}
598
+ */
599
+ proto.gateway.web.v1.TermaPolicy.prototype.hasGlobal = function() {
600
+ return jspb.Message.getField(this, 1) != null;
601
+ };
602
+
603
+
604
+ /**
605
+ * optional TermaPerRepositoryCoverage per_repository = 2;
606
+ * @return {?proto.gateway.web.v1.TermaPerRepositoryCoverage}
607
+ */
608
+ proto.gateway.web.v1.TermaPolicy.prototype.getPerRepository = function() {
609
+ return /** @type{?proto.gateway.web.v1.TermaPerRepositoryCoverage} */ (
610
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TermaPerRepositoryCoverage, 2));
611
+ };
612
+
613
+
614
+ /**
615
+ * @param {?proto.gateway.web.v1.TermaPerRepositoryCoverage|undefined} value
616
+ * @return {!proto.gateway.web.v1.TermaPolicy} returns this
617
+ */
618
+ proto.gateway.web.v1.TermaPolicy.prototype.setPerRepository = function(value) {
619
+ return jspb.Message.setOneofWrapperField(this, 2, proto.gateway.web.v1.TermaPolicy.oneofGroups_[0], value);
620
+ };
621
+
622
+
623
+ /**
624
+ * Clears the message field making it undefined.
625
+ * @return {!proto.gateway.web.v1.TermaPolicy} returns this
626
+ */
627
+ proto.gateway.web.v1.TermaPolicy.prototype.clearPerRepository = function() {
628
+ return this.setPerRepository(undefined);
629
+ };
630
+
631
+
632
+ /**
633
+ * Returns whether this field is set.
634
+ * @return {boolean}
635
+ */
636
+ proto.gateway.web.v1.TermaPolicy.prototype.hasPerRepository = function() {
637
+ return jspb.Message.getField(this, 2) != null;
638
+ };
639
+
640
+
641
+ /**
642
+ * optional TermaCapture capture = 3;
643
+ * @return {?proto.gateway.web.v1.TermaCapture}
644
+ */
645
+ proto.gateway.web.v1.TermaPolicy.prototype.getCapture = function() {
646
+ return /** @type{?proto.gateway.web.v1.TermaCapture} */ (
647
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.TermaCapture, 3));
648
+ };
649
+
650
+
651
+ /**
652
+ * @param {?proto.gateway.web.v1.TermaCapture|undefined} value
653
+ * @return {!proto.gateway.web.v1.TermaPolicy} returns this
654
+ */
655
+ proto.gateway.web.v1.TermaPolicy.prototype.setCapture = function(value) {
656
+ return jspb.Message.setWrapperField(this, 3, value);
657
+ };
658
+
659
+
660
+ /**
661
+ * Clears the message field making it undefined.
662
+ * @return {!proto.gateway.web.v1.TermaPolicy} returns this
663
+ */
664
+ proto.gateway.web.v1.TermaPolicy.prototype.clearCapture = function() {
665
+ return this.setCapture(undefined);
666
+ };
667
+
668
+
669
+ /**
670
+ * Returns whether this field is set.
671
+ * @return {boolean}
672
+ */
673
+ proto.gateway.web.v1.TermaPolicy.prototype.hasCapture = function() {
674
+ return jspb.Message.getField(this, 3) != null;
675
+ };
676
+
677
+
678
+
679
+
680
+
681
+ if (jspb.Message.GENERATE_TO_OBJECT) {
682
+ /**
683
+ * Creates an object representation of this proto.
684
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
685
+ * Optional fields that are not set will be set to undefined.
686
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
687
+ * For the list of reserved names please see:
688
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
689
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
690
+ * JSPB instance for transitional soy proto support:
691
+ * http://goto/soy-param-migration
692
+ * @return {!Object}
693
+ */
694
+ proto.gateway.web.v1.TermaGlobalCoverage.prototype.toObject = function(opt_includeInstance) {
695
+ return proto.gateway.web.v1.TermaGlobalCoverage.toObject(opt_includeInstance, this);
696
+ };
697
+
698
+
699
+ /**
700
+ * Static version of the {@see toObject} method.
701
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
702
+ * the JSPB instance for transitional soy proto support:
703
+ * http://goto/soy-param-migration
704
+ * @param {!proto.gateway.web.v1.TermaGlobalCoverage} msg The msg instance to transform.
705
+ * @return {!Object}
706
+ * @suppress {unusedLocalVariables} f is only used for nested messages
707
+ */
708
+ proto.gateway.web.v1.TermaGlobalCoverage.toObject = function(includeInstance, msg) {
709
+ var f, obj = {
710
+ membersCanPause: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
711
+ };
712
+
713
+ if (includeInstance) {
714
+ obj.$jspbMessageInstance = msg;
715
+ }
716
+ return obj;
717
+ };
718
+ }
719
+
720
+
721
+ /**
722
+ * Deserializes binary data (in protobuf wire format).
723
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
724
+ * @return {!proto.gateway.web.v1.TermaGlobalCoverage}
725
+ */
726
+ proto.gateway.web.v1.TermaGlobalCoverage.deserializeBinary = function(bytes) {
727
+ var reader = new jspb.BinaryReader(bytes);
728
+ var msg = new proto.gateway.web.v1.TermaGlobalCoverage;
729
+ return proto.gateway.web.v1.TermaGlobalCoverage.deserializeBinaryFromReader(msg, reader);
730
+ };
731
+
732
+
733
+ /**
734
+ * Deserializes binary data (in protobuf wire format) from the
735
+ * given reader into the given message object.
736
+ * @param {!proto.gateway.web.v1.TermaGlobalCoverage} msg The message object to deserialize into.
737
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
738
+ * @return {!proto.gateway.web.v1.TermaGlobalCoverage}
739
+ */
740
+ proto.gateway.web.v1.TermaGlobalCoverage.deserializeBinaryFromReader = function(msg, reader) {
741
+ while (reader.nextField()) {
742
+ if (reader.isEndGroup()) {
743
+ break;
744
+ }
745
+ var field = reader.getFieldNumber();
746
+ switch (field) {
747
+ case 1:
748
+ var value = /** @type {boolean} */ (reader.readBool());
749
+ msg.setMembersCanPause(value);
750
+ break;
751
+ default:
752
+ reader.skipField();
753
+ break;
754
+ }
755
+ }
756
+ return msg;
757
+ };
758
+
759
+
760
+ /**
761
+ * Serializes the message to binary data (in protobuf wire format).
762
+ * @return {!Uint8Array}
763
+ */
764
+ proto.gateway.web.v1.TermaGlobalCoverage.prototype.serializeBinary = function() {
765
+ var writer = new jspb.BinaryWriter();
766
+ proto.gateway.web.v1.TermaGlobalCoverage.serializeBinaryToWriter(this, writer);
767
+ return writer.getResultBuffer();
768
+ };
769
+
770
+
771
+ /**
772
+ * Serializes the given message to binary data (in protobuf wire
773
+ * format), writing to the given BinaryWriter.
774
+ * @param {!proto.gateway.web.v1.TermaGlobalCoverage} message
775
+ * @param {!jspb.BinaryWriter} writer
776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
777
+ */
778
+ proto.gateway.web.v1.TermaGlobalCoverage.serializeBinaryToWriter = function(message, writer) {
779
+ var f = undefined;
780
+ f = message.getMembersCanPause();
781
+ if (f) {
782
+ writer.writeBool(
783
+ 1,
784
+ f
785
+ );
786
+ }
787
+ };
788
+
789
+
790
+ /**
791
+ * optional bool members_can_pause = 1;
792
+ * @return {boolean}
793
+ */
794
+ proto.gateway.web.v1.TermaGlobalCoverage.prototype.getMembersCanPause = function() {
795
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
796
+ };
797
+
798
+
799
+ /**
800
+ * @param {boolean} value
801
+ * @return {!proto.gateway.web.v1.TermaGlobalCoverage} returns this
802
+ */
803
+ proto.gateway.web.v1.TermaGlobalCoverage.prototype.setMembersCanPause = function(value) {
804
+ return jspb.Message.setProto3BooleanField(this, 1, value);
805
+ };
806
+
807
+
808
+
809
+
810
+
811
+ if (jspb.Message.GENERATE_TO_OBJECT) {
812
+ /**
813
+ * Creates an object representation of this proto.
814
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
815
+ * Optional fields that are not set will be set to undefined.
816
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
817
+ * For the list of reserved names please see:
818
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
819
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
820
+ * JSPB instance for transitional soy proto support:
821
+ * http://goto/soy-param-migration
822
+ * @return {!Object}
823
+ */
824
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.toObject = function(opt_includeInstance) {
825
+ return proto.gateway.web.v1.TermaPerRepositoryCoverage.toObject(opt_includeInstance, this);
826
+ };
827
+
828
+
829
+ /**
830
+ * Static version of the {@see toObject} method.
831
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
832
+ * the JSPB instance for transitional soy proto support:
833
+ * http://goto/soy-param-migration
834
+ * @param {!proto.gateway.web.v1.TermaPerRepositoryCoverage} msg The msg instance to transform.
835
+ * @return {!Object}
836
+ * @suppress {unusedLocalVariables} f is only used for nested messages
837
+ */
838
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.toObject = function(includeInstance, msg) {
839
+ var f, obj = {
840
+ membersCanAddRepositories: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
841
+ };
842
+
843
+ if (includeInstance) {
844
+ obj.$jspbMessageInstance = msg;
845
+ }
846
+ return obj;
847
+ };
848
+ }
849
+
850
+
851
+ /**
852
+ * Deserializes binary data (in protobuf wire format).
853
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
854
+ * @return {!proto.gateway.web.v1.TermaPerRepositoryCoverage}
855
+ */
856
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.deserializeBinary = function(bytes) {
857
+ var reader = new jspb.BinaryReader(bytes);
858
+ var msg = new proto.gateway.web.v1.TermaPerRepositoryCoverage;
859
+ return proto.gateway.web.v1.TermaPerRepositoryCoverage.deserializeBinaryFromReader(msg, reader);
860
+ };
861
+
862
+
863
+ /**
864
+ * Deserializes binary data (in protobuf wire format) from the
865
+ * given reader into the given message object.
866
+ * @param {!proto.gateway.web.v1.TermaPerRepositoryCoverage} msg The message object to deserialize into.
867
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
868
+ * @return {!proto.gateway.web.v1.TermaPerRepositoryCoverage}
869
+ */
870
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.deserializeBinaryFromReader = function(msg, reader) {
871
+ while (reader.nextField()) {
872
+ if (reader.isEndGroup()) {
873
+ break;
874
+ }
875
+ var field = reader.getFieldNumber();
876
+ switch (field) {
877
+ case 1:
878
+ var value = /** @type {boolean} */ (reader.readBool());
879
+ msg.setMembersCanAddRepositories(value);
880
+ break;
881
+ default:
882
+ reader.skipField();
883
+ break;
884
+ }
885
+ }
886
+ return msg;
887
+ };
888
+
889
+
890
+ /**
891
+ * Serializes the message to binary data (in protobuf wire format).
892
+ * @return {!Uint8Array}
893
+ */
894
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.serializeBinary = function() {
895
+ var writer = new jspb.BinaryWriter();
896
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.serializeBinaryToWriter(this, writer);
897
+ return writer.getResultBuffer();
898
+ };
899
+
900
+
901
+ /**
902
+ * Serializes the given message to binary data (in protobuf wire
903
+ * format), writing to the given BinaryWriter.
904
+ * @param {!proto.gateway.web.v1.TermaPerRepositoryCoverage} message
905
+ * @param {!jspb.BinaryWriter} writer
906
+ * @suppress {unusedLocalVariables} f is only used for nested messages
907
+ */
908
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.serializeBinaryToWriter = function(message, writer) {
909
+ var f = undefined;
910
+ f = message.getMembersCanAddRepositories();
911
+ if (f) {
912
+ writer.writeBool(
913
+ 1,
914
+ f
915
+ );
916
+ }
917
+ };
918
+
919
+
920
+ /**
921
+ * optional bool members_can_add_repositories = 1;
922
+ * @return {boolean}
923
+ */
924
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.getMembersCanAddRepositories = function() {
925
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
926
+ };
927
+
928
+
929
+ /**
930
+ * @param {boolean} value
931
+ * @return {!proto.gateway.web.v1.TermaPerRepositoryCoverage} returns this
932
+ */
933
+ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.setMembersCanAddRepositories = function(value) {
934
+ return jspb.Message.setProto3BooleanField(this, 1, value);
935
+ };
936
+
937
+
938
+
939
+ /**
940
+ * List of repeated fields within this message type.
941
+ * @private {!Array<number>}
942
+ * @const
943
+ */
944
+ proto.gateway.web.v1.TermaCapture.repeatedFields_ = [1,4];
945
+
946
+
947
+
948
+ if (jspb.Message.GENERATE_TO_OBJECT) {
949
+ /**
950
+ * Creates an object representation of this proto.
951
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
952
+ * Optional fields that are not set will be set to undefined.
953
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
954
+ * For the list of reserved names please see:
955
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
956
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
957
+ * JSPB instance for transitional soy proto support:
958
+ * http://goto/soy-param-migration
959
+ * @return {!Object}
960
+ */
961
+ proto.gateway.web.v1.TermaCapture.prototype.toObject = function(opt_includeInstance) {
962
+ return proto.gateway.web.v1.TermaCapture.toObject(opt_includeInstance, this);
963
+ };
964
+
965
+
966
+ /**
967
+ * Static version of the {@see toObject} method.
968
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
969
+ * the JSPB instance for transitional soy proto support:
970
+ * http://goto/soy-param-migration
971
+ * @param {!proto.gateway.web.v1.TermaCapture} msg The msg instance to transform.
972
+ * @return {!Object}
973
+ * @suppress {unusedLocalVariables} f is only used for nested messages
974
+ */
975
+ proto.gateway.web.v1.TermaCapture.toObject = function(includeInstance, msg) {
976
+ var f, obj = {
977
+ signalsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
978
+ excludePrompts: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
979
+ excludeToolContent: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
980
+ excludePathsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
981
+ };
982
+
983
+ if (includeInstance) {
984
+ obj.$jspbMessageInstance = msg;
985
+ }
986
+ return obj;
987
+ };
988
+ }
989
+
990
+
991
+ /**
992
+ * Deserializes binary data (in protobuf wire format).
993
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
994
+ * @return {!proto.gateway.web.v1.TermaCapture}
995
+ */
996
+ proto.gateway.web.v1.TermaCapture.deserializeBinary = function(bytes) {
997
+ var reader = new jspb.BinaryReader(bytes);
998
+ var msg = new proto.gateway.web.v1.TermaCapture;
999
+ return proto.gateway.web.v1.TermaCapture.deserializeBinaryFromReader(msg, reader);
1000
+ };
1001
+
1002
+
1003
+ /**
1004
+ * Deserializes binary data (in protobuf wire format) from the
1005
+ * given reader into the given message object.
1006
+ * @param {!proto.gateway.web.v1.TermaCapture} msg The message object to deserialize into.
1007
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1008
+ * @return {!proto.gateway.web.v1.TermaCapture}
1009
+ */
1010
+ proto.gateway.web.v1.TermaCapture.deserializeBinaryFromReader = function(msg, reader) {
1011
+ while (reader.nextField()) {
1012
+ if (reader.isEndGroup()) {
1013
+ break;
1014
+ }
1015
+ var field = reader.getFieldNumber();
1016
+ switch (field) {
1017
+ case 1:
1018
+ reader.readPackableEnumInto(msg.getSignalsList());
1019
+ break;
1020
+ case 2:
1021
+ var value = /** @type {boolean} */ (reader.readBool());
1022
+ msg.setExcludePrompts(value);
1023
+ break;
1024
+ case 3:
1025
+ var value = /** @type {boolean} */ (reader.readBool());
1026
+ msg.setExcludeToolContent(value);
1027
+ break;
1028
+ case 4:
1029
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1030
+ msg.addExcludePaths(value);
1031
+ break;
1032
+ default:
1033
+ reader.skipField();
1034
+ break;
1035
+ }
1036
+ }
1037
+ return msg;
1038
+ };
1039
+
1040
+
1041
+ /**
1042
+ * Serializes the message to binary data (in protobuf wire format).
1043
+ * @return {!Uint8Array}
1044
+ */
1045
+ proto.gateway.web.v1.TermaCapture.prototype.serializeBinary = function() {
1046
+ var writer = new jspb.BinaryWriter();
1047
+ proto.gateway.web.v1.TermaCapture.serializeBinaryToWriter(this, writer);
1048
+ return writer.getResultBuffer();
1049
+ };
1050
+
1051
+
1052
+ /**
1053
+ * Serializes the given message to binary data (in protobuf wire
1054
+ * format), writing to the given BinaryWriter.
1055
+ * @param {!proto.gateway.web.v1.TermaCapture} message
1056
+ * @param {!jspb.BinaryWriter} writer
1057
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1058
+ */
1059
+ proto.gateway.web.v1.TermaCapture.serializeBinaryToWriter = function(message, writer) {
1060
+ var f = undefined;
1061
+ f = message.getSignalsList();
1062
+ if (f.length > 0) {
1063
+ writer.writePackedEnum(
1064
+ 1,
1065
+ f
1066
+ );
1067
+ }
1068
+ f = message.getExcludePrompts();
1069
+ if (f) {
1070
+ writer.writeBool(
1071
+ 2,
1072
+ f
1073
+ );
1074
+ }
1075
+ f = message.getExcludeToolContent();
1076
+ if (f) {
1077
+ writer.writeBool(
1078
+ 3,
1079
+ f
1080
+ );
1081
+ }
1082
+ f = message.getExcludePathsList();
1083
+ if (f.length > 0) {
1084
+ writer.writeRepeatedString(
1085
+ 4,
1086
+ f
1087
+ );
1088
+ }
1089
+ };
1090
+
1091
+
1092
+ /**
1093
+ * repeated TermaSignal signals = 1;
1094
+ * @return {!Array<!proto.gateway.web.v1.TermaSignal>}
1095
+ */
1096
+ proto.gateway.web.v1.TermaCapture.prototype.getSignalsList = function() {
1097
+ return /** @type {!Array<!proto.gateway.web.v1.TermaSignal>} */ (jspb.Message.getRepeatedField(this, 1));
1098
+ };
1099
+
1100
+
1101
+ /**
1102
+ * @param {!Array<!proto.gateway.web.v1.TermaSignal>} value
1103
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1104
+ */
1105
+ proto.gateway.web.v1.TermaCapture.prototype.setSignalsList = function(value) {
1106
+ return jspb.Message.setField(this, 1, value || []);
1107
+ };
1108
+
1109
+
1110
+ /**
1111
+ * @param {!proto.gateway.web.v1.TermaSignal} value
1112
+ * @param {number=} opt_index
1113
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1114
+ */
1115
+ proto.gateway.web.v1.TermaCapture.prototype.addSignals = function(value, opt_index) {
1116
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1117
+ };
1118
+
1119
+
1120
+ /**
1121
+ * Clears the list making it empty but non-null.
1122
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1123
+ */
1124
+ proto.gateway.web.v1.TermaCapture.prototype.clearSignalsList = function() {
1125
+ return this.setSignalsList([]);
1126
+ };
1127
+
1128
+
1129
+ /**
1130
+ * optional bool exclude_prompts = 2;
1131
+ * @return {boolean}
1132
+ */
1133
+ proto.gateway.web.v1.TermaCapture.prototype.getExcludePrompts = function() {
1134
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1135
+ };
1136
+
1137
+
1138
+ /**
1139
+ * @param {boolean} value
1140
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1141
+ */
1142
+ proto.gateway.web.v1.TermaCapture.prototype.setExcludePrompts = function(value) {
1143
+ return jspb.Message.setProto3BooleanField(this, 2, value);
1144
+ };
1145
+
1146
+
1147
+ /**
1148
+ * optional bool exclude_tool_content = 3;
1149
+ * @return {boolean}
1150
+ */
1151
+ proto.gateway.web.v1.TermaCapture.prototype.getExcludeToolContent = function() {
1152
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1153
+ };
1154
+
1155
+
1156
+ /**
1157
+ * @param {boolean} value
1158
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1159
+ */
1160
+ proto.gateway.web.v1.TermaCapture.prototype.setExcludeToolContent = function(value) {
1161
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1162
+ };
1163
+
1164
+
1165
+ /**
1166
+ * repeated string exclude_paths = 4;
1167
+ * @return {!Array<string>}
1168
+ */
1169
+ proto.gateway.web.v1.TermaCapture.prototype.getExcludePathsList = function() {
1170
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1171
+ };
1172
+
1173
+
1174
+ /**
1175
+ * @param {!Array<string>} value
1176
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1177
+ */
1178
+ proto.gateway.web.v1.TermaCapture.prototype.setExcludePathsList = function(value) {
1179
+ return jspb.Message.setField(this, 4, value || []);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * @param {string} value
1185
+ * @param {number=} opt_index
1186
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1187
+ */
1188
+ proto.gateway.web.v1.TermaCapture.prototype.addExcludePaths = function(value, opt_index) {
1189
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1190
+ };
1191
+
1192
+
1193
+ /**
1194
+ * Clears the list making it empty but non-null.
1195
+ * @return {!proto.gateway.web.v1.TermaCapture} returns this
1196
+ */
1197
+ proto.gateway.web.v1.TermaCapture.prototype.clearExcludePathsList = function() {
1198
+ return this.setExcludePathsList([]);
1199
+ };
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1206
+ /**
1207
+ * Creates an object representation of this proto.
1208
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1209
+ * Optional fields that are not set will be set to undefined.
1210
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1211
+ * For the list of reserved names please see:
1212
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1213
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1214
+ * JSPB instance for transitional soy proto support:
1215
+ * http://goto/soy-param-migration
1216
+ * @return {!Object}
1217
+ */
1218
+ proto.gateway.web.v1.GetProjectPolicyRequest.prototype.toObject = function(opt_includeInstance) {
1219
+ return proto.gateway.web.v1.GetProjectPolicyRequest.toObject(opt_includeInstance, this);
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * Static version of the {@see toObject} method.
1225
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1226
+ * the JSPB instance for transitional soy proto support:
1227
+ * http://goto/soy-param-migration
1228
+ * @param {!proto.gateway.web.v1.GetProjectPolicyRequest} msg The msg instance to transform.
1229
+ * @return {!Object}
1230
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1231
+ */
1232
+ proto.gateway.web.v1.GetProjectPolicyRequest.toObject = function(includeInstance, msg) {
1233
+ var f, obj = {
1234
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1235
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
1236
+ };
1237
+
1238
+ if (includeInstance) {
1239
+ obj.$jspbMessageInstance = msg;
1240
+ }
1241
+ return obj;
1242
+ };
1243
+ }
1244
+
1245
+
1246
+ /**
1247
+ * Deserializes binary data (in protobuf wire format).
1248
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1249
+ * @return {!proto.gateway.web.v1.GetProjectPolicyRequest}
1250
+ */
1251
+ proto.gateway.web.v1.GetProjectPolicyRequest.deserializeBinary = function(bytes) {
1252
+ var reader = new jspb.BinaryReader(bytes);
1253
+ var msg = new proto.gateway.web.v1.GetProjectPolicyRequest;
1254
+ return proto.gateway.web.v1.GetProjectPolicyRequest.deserializeBinaryFromReader(msg, reader);
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * Deserializes binary data (in protobuf wire format) from the
1260
+ * given reader into the given message object.
1261
+ * @param {!proto.gateway.web.v1.GetProjectPolicyRequest} msg The message object to deserialize into.
1262
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1263
+ * @return {!proto.gateway.web.v1.GetProjectPolicyRequest}
1264
+ */
1265
+ proto.gateway.web.v1.GetProjectPolicyRequest.deserializeBinaryFromReader = function(msg, reader) {
1266
+ while (reader.nextField()) {
1267
+ if (reader.isEndGroup()) {
1268
+ break;
1269
+ }
1270
+ var field = reader.getFieldNumber();
1271
+ switch (field) {
1272
+ case 1:
1273
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1274
+ msg.setOrganizationId(value);
1275
+ break;
1276
+ case 2:
1277
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1278
+ msg.setProjectId(value);
1279
+ break;
1280
+ default:
1281
+ reader.skipField();
1282
+ break;
1283
+ }
1284
+ }
1285
+ return msg;
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Serializes the message to binary data (in protobuf wire format).
1291
+ * @return {!Uint8Array}
1292
+ */
1293
+ proto.gateway.web.v1.GetProjectPolicyRequest.prototype.serializeBinary = function() {
1294
+ var writer = new jspb.BinaryWriter();
1295
+ proto.gateway.web.v1.GetProjectPolicyRequest.serializeBinaryToWriter(this, writer);
1296
+ return writer.getResultBuffer();
1297
+ };
1298
+
1299
+
1300
+ /**
1301
+ * Serializes the given message to binary data (in protobuf wire
1302
+ * format), writing to the given BinaryWriter.
1303
+ * @param {!proto.gateway.web.v1.GetProjectPolicyRequest} message
1304
+ * @param {!jspb.BinaryWriter} writer
1305
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1306
+ */
1307
+ proto.gateway.web.v1.GetProjectPolicyRequest.serializeBinaryToWriter = function(message, writer) {
1308
+ var f = undefined;
1309
+ f = message.getOrganizationId();
1310
+ if (f.length > 0) {
1311
+ writer.writeString(
1312
+ 1,
1313
+ f
1314
+ );
1315
+ }
1316
+ f = message.getProjectId();
1317
+ if (f.length > 0) {
1318
+ writer.writeString(
1319
+ 2,
1320
+ f
1321
+ );
1322
+ }
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * optional string organization_id = 1;
1328
+ * @return {string}
1329
+ */
1330
+ proto.gateway.web.v1.GetProjectPolicyRequest.prototype.getOrganizationId = function() {
1331
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1332
+ };
1333
+
1334
+
1335
+ /**
1336
+ * @param {string} value
1337
+ * @return {!proto.gateway.web.v1.GetProjectPolicyRequest} returns this
1338
+ */
1339
+ proto.gateway.web.v1.GetProjectPolicyRequest.prototype.setOrganizationId = function(value) {
1340
+ return jspb.Message.setProto3StringField(this, 1, value);
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * optional string project_id = 2;
1346
+ * @return {string}
1347
+ */
1348
+ proto.gateway.web.v1.GetProjectPolicyRequest.prototype.getProjectId = function() {
1349
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1350
+ };
1351
+
1352
+
1353
+ /**
1354
+ * @param {string} value
1355
+ * @return {!proto.gateway.web.v1.GetProjectPolicyRequest} returns this
1356
+ */
1357
+ proto.gateway.web.v1.GetProjectPolicyRequest.prototype.setProjectId = function(value) {
1358
+ return jspb.Message.setProto3StringField(this, 2, value);
1359
+ };
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1366
+ /**
1367
+ * Creates an object representation of this proto.
1368
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1369
+ * Optional fields that are not set will be set to undefined.
1370
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1371
+ * For the list of reserved names please see:
1372
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1373
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1374
+ * JSPB instance for transitional soy proto support:
1375
+ * http://goto/soy-param-migration
1376
+ * @return {!Object}
1377
+ */
1378
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.toObject = function(opt_includeInstance) {
1379
+ return proto.gateway.web.v1.GetProjectPolicyResponse.toObject(opt_includeInstance, this);
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * Static version of the {@see toObject} method.
1385
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1386
+ * the JSPB instance for transitional soy proto support:
1387
+ * http://goto/soy-param-migration
1388
+ * @param {!proto.gateway.web.v1.GetProjectPolicyResponse} msg The msg instance to transform.
1389
+ * @return {!Object}
1390
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1391
+ */
1392
+ proto.gateway.web.v1.GetProjectPolicyResponse.toObject = function(includeInstance, msg) {
1393
+ var f, obj = {
1394
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1395
+ policy: (f = msg.getPolicy()) && proto.gateway.web.v1.ProjectPolicy.toObject(includeInstance, f),
1396
+ version: jspb.Message.getFieldWithDefault(msg, 3, ""),
1397
+ revision: jspb.Message.getFieldWithDefault(msg, 4, 0),
1398
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1399
+ };
1400
+
1401
+ if (includeInstance) {
1402
+ obj.$jspbMessageInstance = msg;
1403
+ }
1404
+ return obj;
1405
+ };
1406
+ }
1407
+
1408
+
1409
+ /**
1410
+ * Deserializes binary data (in protobuf wire format).
1411
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1412
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse}
1413
+ */
1414
+ proto.gateway.web.v1.GetProjectPolicyResponse.deserializeBinary = function(bytes) {
1415
+ var reader = new jspb.BinaryReader(bytes);
1416
+ var msg = new proto.gateway.web.v1.GetProjectPolicyResponse;
1417
+ return proto.gateway.web.v1.GetProjectPolicyResponse.deserializeBinaryFromReader(msg, reader);
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * Deserializes binary data (in protobuf wire format) from the
1423
+ * given reader into the given message object.
1424
+ * @param {!proto.gateway.web.v1.GetProjectPolicyResponse} msg The message object to deserialize into.
1425
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1426
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse}
1427
+ */
1428
+ proto.gateway.web.v1.GetProjectPolicyResponse.deserializeBinaryFromReader = function(msg, reader) {
1429
+ while (reader.nextField()) {
1430
+ if (reader.isEndGroup()) {
1431
+ break;
1432
+ }
1433
+ var field = reader.getFieldNumber();
1434
+ switch (field) {
1435
+ case 1:
1436
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1437
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1438
+ msg.setStatus(value);
1439
+ break;
1440
+ case 2:
1441
+ var value = new proto.gateway.web.v1.ProjectPolicy;
1442
+ reader.readMessage(value,proto.gateway.web.v1.ProjectPolicy.deserializeBinaryFromReader);
1443
+ msg.setPolicy(value);
1444
+ break;
1445
+ case 3:
1446
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1447
+ msg.setVersion(value);
1448
+ break;
1449
+ case 4:
1450
+ var value = /** @type {number} */ (reader.readInt64());
1451
+ msg.setRevision(value);
1452
+ break;
1453
+ case 5:
1454
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1455
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1456
+ msg.setUpdatedAt(value);
1457
+ break;
1458
+ default:
1459
+ reader.skipField();
1460
+ break;
1461
+ }
1462
+ }
1463
+ return msg;
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * Serializes the message to binary data (in protobuf wire format).
1469
+ * @return {!Uint8Array}
1470
+ */
1471
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.serializeBinary = function() {
1472
+ var writer = new jspb.BinaryWriter();
1473
+ proto.gateway.web.v1.GetProjectPolicyResponse.serializeBinaryToWriter(this, writer);
1474
+ return writer.getResultBuffer();
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * Serializes the given message to binary data (in protobuf wire
1480
+ * format), writing to the given BinaryWriter.
1481
+ * @param {!proto.gateway.web.v1.GetProjectPolicyResponse} message
1482
+ * @param {!jspb.BinaryWriter} writer
1483
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1484
+ */
1485
+ proto.gateway.web.v1.GetProjectPolicyResponse.serializeBinaryToWriter = function(message, writer) {
1486
+ var f = undefined;
1487
+ f = message.getStatus();
1488
+ if (f != null) {
1489
+ writer.writeMessage(
1490
+ 1,
1491
+ f,
1492
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
1493
+ );
1494
+ }
1495
+ f = message.getPolicy();
1496
+ if (f != null) {
1497
+ writer.writeMessage(
1498
+ 2,
1499
+ f,
1500
+ proto.gateway.web.v1.ProjectPolicy.serializeBinaryToWriter
1501
+ );
1502
+ }
1503
+ f = message.getVersion();
1504
+ if (f.length > 0) {
1505
+ writer.writeString(
1506
+ 3,
1507
+ f
1508
+ );
1509
+ }
1510
+ f = message.getRevision();
1511
+ if (f !== 0) {
1512
+ writer.writeInt64(
1513
+ 4,
1514
+ f
1515
+ );
1516
+ }
1517
+ f = message.getUpdatedAt();
1518
+ if (f != null) {
1519
+ writer.writeMessage(
1520
+ 5,
1521
+ f,
1522
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1523
+ );
1524
+ }
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * optional gateway.common.v1.ResponseStatus status = 1;
1530
+ * @return {?proto.gateway.common.v1.ResponseStatus}
1531
+ */
1532
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.getStatus = function() {
1533
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
1534
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
1540
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1541
+ */
1542
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.setStatus = function(value) {
1543
+ return jspb.Message.setWrapperField(this, 1, value);
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * Clears the message field making it undefined.
1549
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1550
+ */
1551
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.clearStatus = function() {
1552
+ return this.setStatus(undefined);
1553
+ };
1554
+
1555
+
1556
+ /**
1557
+ * Returns whether this field is set.
1558
+ * @return {boolean}
1559
+ */
1560
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.hasStatus = function() {
1561
+ return jspb.Message.getField(this, 1) != null;
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * optional ProjectPolicy policy = 2;
1567
+ * @return {?proto.gateway.web.v1.ProjectPolicy}
1568
+ */
1569
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.getPolicy = function() {
1570
+ return /** @type{?proto.gateway.web.v1.ProjectPolicy} */ (
1571
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ProjectPolicy, 2));
1572
+ };
1573
+
1574
+
1575
+ /**
1576
+ * @param {?proto.gateway.web.v1.ProjectPolicy|undefined} value
1577
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1578
+ */
1579
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.setPolicy = function(value) {
1580
+ return jspb.Message.setWrapperField(this, 2, value);
1581
+ };
1582
+
1583
+
1584
+ /**
1585
+ * Clears the message field making it undefined.
1586
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1587
+ */
1588
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.clearPolicy = function() {
1589
+ return this.setPolicy(undefined);
1590
+ };
1591
+
1592
+
1593
+ /**
1594
+ * Returns whether this field is set.
1595
+ * @return {boolean}
1596
+ */
1597
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.hasPolicy = function() {
1598
+ return jspb.Message.getField(this, 2) != null;
1599
+ };
1600
+
1601
+
1602
+ /**
1603
+ * optional string version = 3;
1604
+ * @return {string}
1605
+ */
1606
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.getVersion = function() {
1607
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1608
+ };
1609
+
1610
+
1611
+ /**
1612
+ * @param {string} value
1613
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1614
+ */
1615
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.setVersion = function(value) {
1616
+ return jspb.Message.setProto3StringField(this, 3, value);
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * optional int64 revision = 4;
1622
+ * @return {number}
1623
+ */
1624
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.getRevision = function() {
1625
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1626
+ };
1627
+
1628
+
1629
+ /**
1630
+ * @param {number} value
1631
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1632
+ */
1633
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.setRevision = function(value) {
1634
+ return jspb.Message.setProto3IntField(this, 4, value);
1635
+ };
1636
+
1637
+
1638
+ /**
1639
+ * optional google.protobuf.Timestamp updated_at = 5;
1640
+ * @return {?proto.google.protobuf.Timestamp}
1641
+ */
1642
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.getUpdatedAt = function() {
1643
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1644
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1650
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1651
+ */
1652
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.setUpdatedAt = function(value) {
1653
+ return jspb.Message.setWrapperField(this, 5, value);
1654
+ };
1655
+
1656
+
1657
+ /**
1658
+ * Clears the message field making it undefined.
1659
+ * @return {!proto.gateway.web.v1.GetProjectPolicyResponse} returns this
1660
+ */
1661
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.clearUpdatedAt = function() {
1662
+ return this.setUpdatedAt(undefined);
1663
+ };
1664
+
1665
+
1666
+ /**
1667
+ * Returns whether this field is set.
1668
+ * @return {boolean}
1669
+ */
1670
+ proto.gateway.web.v1.GetProjectPolicyResponse.prototype.hasUpdatedAt = function() {
1671
+ return jspb.Message.getField(this, 5) != null;
1672
+ };
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1679
+ /**
1680
+ * Creates an object representation of this proto.
1681
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1682
+ * Optional fields that are not set will be set to undefined.
1683
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1684
+ * For the list of reserved names please see:
1685
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1686
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1687
+ * JSPB instance for transitional soy proto support:
1688
+ * http://goto/soy-param-migration
1689
+ * @return {!Object}
1690
+ */
1691
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.toObject = function(opt_includeInstance) {
1692
+ return proto.gateway.web.v1.SetProjectPolicyRequest.toObject(opt_includeInstance, this);
1693
+ };
1694
+
1695
+
1696
+ /**
1697
+ * Static version of the {@see toObject} method.
1698
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1699
+ * the JSPB instance for transitional soy proto support:
1700
+ * http://goto/soy-param-migration
1701
+ * @param {!proto.gateway.web.v1.SetProjectPolicyRequest} msg The msg instance to transform.
1702
+ * @return {!Object}
1703
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1704
+ */
1705
+ proto.gateway.web.v1.SetProjectPolicyRequest.toObject = function(includeInstance, msg) {
1706
+ var f, obj = {
1707
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1708
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1709
+ policy: (f = msg.getPolicy()) && proto.gateway.web.v1.ProjectPolicy.toObject(includeInstance, f)
1710
+ };
1711
+
1712
+ if (includeInstance) {
1713
+ obj.$jspbMessageInstance = msg;
1714
+ }
1715
+ return obj;
1716
+ };
1717
+ }
1718
+
1719
+
1720
+ /**
1721
+ * Deserializes binary data (in protobuf wire format).
1722
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1723
+ * @return {!proto.gateway.web.v1.SetProjectPolicyRequest}
1724
+ */
1725
+ proto.gateway.web.v1.SetProjectPolicyRequest.deserializeBinary = function(bytes) {
1726
+ var reader = new jspb.BinaryReader(bytes);
1727
+ var msg = new proto.gateway.web.v1.SetProjectPolicyRequest;
1728
+ return proto.gateway.web.v1.SetProjectPolicyRequest.deserializeBinaryFromReader(msg, reader);
1729
+ };
1730
+
1731
+
1732
+ /**
1733
+ * Deserializes binary data (in protobuf wire format) from the
1734
+ * given reader into the given message object.
1735
+ * @param {!proto.gateway.web.v1.SetProjectPolicyRequest} msg The message object to deserialize into.
1736
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1737
+ * @return {!proto.gateway.web.v1.SetProjectPolicyRequest}
1738
+ */
1739
+ proto.gateway.web.v1.SetProjectPolicyRequest.deserializeBinaryFromReader = function(msg, reader) {
1740
+ while (reader.nextField()) {
1741
+ if (reader.isEndGroup()) {
1742
+ break;
1743
+ }
1744
+ var field = reader.getFieldNumber();
1745
+ switch (field) {
1746
+ case 1:
1747
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1748
+ msg.setOrganizationId(value);
1749
+ break;
1750
+ case 2:
1751
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1752
+ msg.setProjectId(value);
1753
+ break;
1754
+ case 3:
1755
+ var value = new proto.gateway.web.v1.ProjectPolicy;
1756
+ reader.readMessage(value,proto.gateway.web.v1.ProjectPolicy.deserializeBinaryFromReader);
1757
+ msg.setPolicy(value);
1758
+ break;
1759
+ default:
1760
+ reader.skipField();
1761
+ break;
1762
+ }
1763
+ }
1764
+ return msg;
1765
+ };
1766
+
1767
+
1768
+ /**
1769
+ * Serializes the message to binary data (in protobuf wire format).
1770
+ * @return {!Uint8Array}
1771
+ */
1772
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.serializeBinary = function() {
1773
+ var writer = new jspb.BinaryWriter();
1774
+ proto.gateway.web.v1.SetProjectPolicyRequest.serializeBinaryToWriter(this, writer);
1775
+ return writer.getResultBuffer();
1776
+ };
1777
+
1778
+
1779
+ /**
1780
+ * Serializes the given message to binary data (in protobuf wire
1781
+ * format), writing to the given BinaryWriter.
1782
+ * @param {!proto.gateway.web.v1.SetProjectPolicyRequest} message
1783
+ * @param {!jspb.BinaryWriter} writer
1784
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1785
+ */
1786
+ proto.gateway.web.v1.SetProjectPolicyRequest.serializeBinaryToWriter = function(message, writer) {
1787
+ var f = undefined;
1788
+ f = message.getOrganizationId();
1789
+ if (f.length > 0) {
1790
+ writer.writeString(
1791
+ 1,
1792
+ f
1793
+ );
1794
+ }
1795
+ f = message.getProjectId();
1796
+ if (f.length > 0) {
1797
+ writer.writeString(
1798
+ 2,
1799
+ f
1800
+ );
1801
+ }
1802
+ f = message.getPolicy();
1803
+ if (f != null) {
1804
+ writer.writeMessage(
1805
+ 3,
1806
+ f,
1807
+ proto.gateway.web.v1.ProjectPolicy.serializeBinaryToWriter
1808
+ );
1809
+ }
1810
+ };
1811
+
1812
+
1813
+ /**
1814
+ * optional string organization_id = 1;
1815
+ * @return {string}
1816
+ */
1817
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.getOrganizationId = function() {
1818
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1819
+ };
1820
+
1821
+
1822
+ /**
1823
+ * @param {string} value
1824
+ * @return {!proto.gateway.web.v1.SetProjectPolicyRequest} returns this
1825
+ */
1826
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.setOrganizationId = function(value) {
1827
+ return jspb.Message.setProto3StringField(this, 1, value);
1828
+ };
1829
+
1830
+
1831
+ /**
1832
+ * optional string project_id = 2;
1833
+ * @return {string}
1834
+ */
1835
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.getProjectId = function() {
1836
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1837
+ };
1838
+
1839
+
1840
+ /**
1841
+ * @param {string} value
1842
+ * @return {!proto.gateway.web.v1.SetProjectPolicyRequest} returns this
1843
+ */
1844
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.setProjectId = function(value) {
1845
+ return jspb.Message.setProto3StringField(this, 2, value);
1846
+ };
1847
+
1848
+
1849
+ /**
1850
+ * optional ProjectPolicy policy = 3;
1851
+ * @return {?proto.gateway.web.v1.ProjectPolicy}
1852
+ */
1853
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.getPolicy = function() {
1854
+ return /** @type{?proto.gateway.web.v1.ProjectPolicy} */ (
1855
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ProjectPolicy, 3));
1856
+ };
1857
+
1858
+
1859
+ /**
1860
+ * @param {?proto.gateway.web.v1.ProjectPolicy|undefined} value
1861
+ * @return {!proto.gateway.web.v1.SetProjectPolicyRequest} returns this
1862
+ */
1863
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.setPolicy = function(value) {
1864
+ return jspb.Message.setWrapperField(this, 3, value);
1865
+ };
1866
+
1867
+
1868
+ /**
1869
+ * Clears the message field making it undefined.
1870
+ * @return {!proto.gateway.web.v1.SetProjectPolicyRequest} returns this
1871
+ */
1872
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.clearPolicy = function() {
1873
+ return this.setPolicy(undefined);
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * Returns whether this field is set.
1879
+ * @return {boolean}
1880
+ */
1881
+ proto.gateway.web.v1.SetProjectPolicyRequest.prototype.hasPolicy = function() {
1882
+ return jspb.Message.getField(this, 3) != null;
1883
+ };
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1890
+ /**
1891
+ * Creates an object representation of this proto.
1892
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1893
+ * Optional fields that are not set will be set to undefined.
1894
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1895
+ * For the list of reserved names please see:
1896
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1897
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1898
+ * JSPB instance for transitional soy proto support:
1899
+ * http://goto/soy-param-migration
1900
+ * @return {!Object}
1901
+ */
1902
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.toObject = function(opt_includeInstance) {
1903
+ return proto.gateway.web.v1.SetProjectPolicyResponse.toObject(opt_includeInstance, this);
1904
+ };
1905
+
1906
+
1907
+ /**
1908
+ * Static version of the {@see toObject} method.
1909
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1910
+ * the JSPB instance for transitional soy proto support:
1911
+ * http://goto/soy-param-migration
1912
+ * @param {!proto.gateway.web.v1.SetProjectPolicyResponse} msg The msg instance to transform.
1913
+ * @return {!Object}
1914
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1915
+ */
1916
+ proto.gateway.web.v1.SetProjectPolicyResponse.toObject = function(includeInstance, msg) {
1917
+ var f, obj = {
1918
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
1919
+ policy: (f = msg.getPolicy()) && proto.gateway.web.v1.ProjectPolicy.toObject(includeInstance, f),
1920
+ version: jspb.Message.getFieldWithDefault(msg, 3, ""),
1921
+ revision: jspb.Message.getFieldWithDefault(msg, 4, 0),
1922
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1923
+ };
1924
+
1925
+ if (includeInstance) {
1926
+ obj.$jspbMessageInstance = msg;
1927
+ }
1928
+ return obj;
1929
+ };
1930
+ }
1931
+
1932
+
1933
+ /**
1934
+ * Deserializes binary data (in protobuf wire format).
1935
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1936
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse}
1937
+ */
1938
+ proto.gateway.web.v1.SetProjectPolicyResponse.deserializeBinary = function(bytes) {
1939
+ var reader = new jspb.BinaryReader(bytes);
1940
+ var msg = new proto.gateway.web.v1.SetProjectPolicyResponse;
1941
+ return proto.gateway.web.v1.SetProjectPolicyResponse.deserializeBinaryFromReader(msg, reader);
1942
+ };
1943
+
1944
+
1945
+ /**
1946
+ * Deserializes binary data (in protobuf wire format) from the
1947
+ * given reader into the given message object.
1948
+ * @param {!proto.gateway.web.v1.SetProjectPolicyResponse} msg The message object to deserialize into.
1949
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1950
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse}
1951
+ */
1952
+ proto.gateway.web.v1.SetProjectPolicyResponse.deserializeBinaryFromReader = function(msg, reader) {
1953
+ while (reader.nextField()) {
1954
+ if (reader.isEndGroup()) {
1955
+ break;
1956
+ }
1957
+ var field = reader.getFieldNumber();
1958
+ switch (field) {
1959
+ case 1:
1960
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
1961
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
1962
+ msg.setStatus(value);
1963
+ break;
1964
+ case 2:
1965
+ var value = new proto.gateway.web.v1.ProjectPolicy;
1966
+ reader.readMessage(value,proto.gateway.web.v1.ProjectPolicy.deserializeBinaryFromReader);
1967
+ msg.setPolicy(value);
1968
+ break;
1969
+ case 3:
1970
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1971
+ msg.setVersion(value);
1972
+ break;
1973
+ case 4:
1974
+ var value = /** @type {number} */ (reader.readInt64());
1975
+ msg.setRevision(value);
1976
+ break;
1977
+ case 5:
1978
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1979
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1980
+ msg.setUpdatedAt(value);
1981
+ break;
1982
+ default:
1983
+ reader.skipField();
1984
+ break;
1985
+ }
1986
+ }
1987
+ return msg;
1988
+ };
1989
+
1990
+
1991
+ /**
1992
+ * Serializes the message to binary data (in protobuf wire format).
1993
+ * @return {!Uint8Array}
1994
+ */
1995
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.serializeBinary = function() {
1996
+ var writer = new jspb.BinaryWriter();
1997
+ proto.gateway.web.v1.SetProjectPolicyResponse.serializeBinaryToWriter(this, writer);
1998
+ return writer.getResultBuffer();
1999
+ };
2000
+
2001
+
2002
+ /**
2003
+ * Serializes the given message to binary data (in protobuf wire
2004
+ * format), writing to the given BinaryWriter.
2005
+ * @param {!proto.gateway.web.v1.SetProjectPolicyResponse} message
2006
+ * @param {!jspb.BinaryWriter} writer
2007
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2008
+ */
2009
+ proto.gateway.web.v1.SetProjectPolicyResponse.serializeBinaryToWriter = function(message, writer) {
2010
+ var f = undefined;
2011
+ f = message.getStatus();
2012
+ if (f != null) {
2013
+ writer.writeMessage(
2014
+ 1,
2015
+ f,
2016
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
2017
+ );
2018
+ }
2019
+ f = message.getPolicy();
2020
+ if (f != null) {
2021
+ writer.writeMessage(
2022
+ 2,
2023
+ f,
2024
+ proto.gateway.web.v1.ProjectPolicy.serializeBinaryToWriter
2025
+ );
2026
+ }
2027
+ f = message.getVersion();
2028
+ if (f.length > 0) {
2029
+ writer.writeString(
2030
+ 3,
2031
+ f
2032
+ );
2033
+ }
2034
+ f = message.getRevision();
2035
+ if (f !== 0) {
2036
+ writer.writeInt64(
2037
+ 4,
2038
+ f
2039
+ );
2040
+ }
2041
+ f = message.getUpdatedAt();
2042
+ if (f != null) {
2043
+ writer.writeMessage(
2044
+ 5,
2045
+ f,
2046
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2047
+ );
2048
+ }
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * optional gateway.common.v1.ResponseStatus status = 1;
2054
+ * @return {?proto.gateway.common.v1.ResponseStatus}
2055
+ */
2056
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.getStatus = function() {
2057
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
2058
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
2064
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2065
+ */
2066
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.setStatus = function(value) {
2067
+ return jspb.Message.setWrapperField(this, 1, value);
2068
+ };
2069
+
2070
+
2071
+ /**
2072
+ * Clears the message field making it undefined.
2073
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2074
+ */
2075
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.clearStatus = function() {
2076
+ return this.setStatus(undefined);
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * Returns whether this field is set.
2082
+ * @return {boolean}
2083
+ */
2084
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.hasStatus = function() {
2085
+ return jspb.Message.getField(this, 1) != null;
2086
+ };
2087
+
2088
+
2089
+ /**
2090
+ * optional ProjectPolicy policy = 2;
2091
+ * @return {?proto.gateway.web.v1.ProjectPolicy}
2092
+ */
2093
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.getPolicy = function() {
2094
+ return /** @type{?proto.gateway.web.v1.ProjectPolicy} */ (
2095
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ProjectPolicy, 2));
2096
+ };
2097
+
2098
+
2099
+ /**
2100
+ * @param {?proto.gateway.web.v1.ProjectPolicy|undefined} value
2101
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2102
+ */
2103
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.setPolicy = function(value) {
2104
+ return jspb.Message.setWrapperField(this, 2, value);
2105
+ };
2106
+
2107
+
2108
+ /**
2109
+ * Clears the message field making it undefined.
2110
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2111
+ */
2112
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.clearPolicy = function() {
2113
+ return this.setPolicy(undefined);
2114
+ };
2115
+
2116
+
2117
+ /**
2118
+ * Returns whether this field is set.
2119
+ * @return {boolean}
2120
+ */
2121
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.hasPolicy = function() {
2122
+ return jspb.Message.getField(this, 2) != null;
2123
+ };
2124
+
2125
+
2126
+ /**
2127
+ * optional string version = 3;
2128
+ * @return {string}
2129
+ */
2130
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.getVersion = function() {
2131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2132
+ };
2133
+
2134
+
2135
+ /**
2136
+ * @param {string} value
2137
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2138
+ */
2139
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.setVersion = function(value) {
2140
+ return jspb.Message.setProto3StringField(this, 3, value);
2141
+ };
2142
+
2143
+
2144
+ /**
2145
+ * optional int64 revision = 4;
2146
+ * @return {number}
2147
+ */
2148
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.getRevision = function() {
2149
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * @param {number} value
2155
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2156
+ */
2157
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.setRevision = function(value) {
2158
+ return jspb.Message.setProto3IntField(this, 4, value);
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * optional google.protobuf.Timestamp updated_at = 5;
2164
+ * @return {?proto.google.protobuf.Timestamp}
2165
+ */
2166
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.getUpdatedAt = function() {
2167
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2168
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
2169
+ };
2170
+
2171
+
2172
+ /**
2173
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2174
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2175
+ */
2176
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.setUpdatedAt = function(value) {
2177
+ return jspb.Message.setWrapperField(this, 5, value);
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * Clears the message field making it undefined.
2183
+ * @return {!proto.gateway.web.v1.SetProjectPolicyResponse} returns this
2184
+ */
2185
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.clearUpdatedAt = function() {
2186
+ return this.setUpdatedAt(undefined);
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * Returns whether this field is set.
2192
+ * @return {boolean}
2193
+ */
2194
+ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.hasUpdatedAt = function() {
2195
+ return jspb.Message.getField(this, 5) != null;
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * @enum {number}
2201
+ */
2202
+ proto.gateway.web.v1.TermaSignal = {
2203
+ TERMA_SIGNAL_UNSPECIFIED: 0,
2204
+ TERMA_SIGNAL_TRACES: 1,
2205
+ TERMA_SIGNAL_LOGS: 2,
2206
+ TERMA_SIGNAL_METRICS: 3
2207
+ };
2208
+
2209
+ goog.object.extend(exports, proto.gateway.web.v1);