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