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