clarifai-web-grpc 11.4.1 → 11.4.2

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.
@@ -192,8 +192,6 @@ goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionEvaluationsRequest', nu
192
192
  goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionsRequest', null, global);
193
193
  goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest', null, global);
194
194
  goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest.SortByCase', null, global);
195
- goog.exportSymbol('proto.clarifai.api.MCPError', null, global);
196
- goog.exportSymbol('proto.clarifai.api.MCPRequest', null, global);
197
195
  goog.exportSymbol('proto.clarifai.api.ModelVersionPublishRequest', null, global);
198
196
  goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, global);
199
197
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
@@ -404,7 +402,6 @@ goog.exportSymbol('proto.clarifai.api.SingleInputsExtractionJobResponse', null,
404
402
  goog.exportSymbol('proto.clarifai.api.SingleInstalledModuleVersionResponse', null, global);
405
403
  goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global);
406
404
  goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global);
407
- goog.exportSymbol('proto.clarifai.api.SingleMCPResponse', null, global);
408
405
  goog.exportSymbol('proto.clarifai.api.SingleModelResponse', null, global);
409
406
  goog.exportSymbol('proto.clarifai.api.SingleModelTypeResponse', null, global);
410
407
  goog.exportSymbol('proto.clarifai.api.SingleModelVersionExportResponse', null, global);
@@ -8263,69 +8260,6 @@ if (goog.DEBUG && !COMPILED) {
8263
8260
  */
8264
8261
  proto.clarifai.api.PostModelMigrationRequest.displayName = 'proto.clarifai.api.PostModelMigrationRequest';
8265
8262
  }
8266
- /**
8267
- * Generated by JsPbCodeGenerator.
8268
- * @param {Array=} opt_data Optional initial data array, typically from a
8269
- * server response, or constructed directly in Javascript. The array is used
8270
- * in place and becomes part of the constructed object. It is not cloned.
8271
- * If no data is provided, the constructed object will be empty, but still
8272
- * valid.
8273
- * @extends {jspb.Message}
8274
- * @constructor
8275
- */
8276
- proto.clarifai.api.MCPRequest = function(opt_data) {
8277
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8278
- };
8279
- goog.inherits(proto.clarifai.api.MCPRequest, jspb.Message);
8280
- if (goog.DEBUG && !COMPILED) {
8281
- /**
8282
- * @public
8283
- * @override
8284
- */
8285
- proto.clarifai.api.MCPRequest.displayName = 'proto.clarifai.api.MCPRequest';
8286
- }
8287
- /**
8288
- * Generated by JsPbCodeGenerator.
8289
- * @param {Array=} opt_data Optional initial data array, typically from a
8290
- * server response, or constructed directly in Javascript. The array is used
8291
- * in place and becomes part of the constructed object. It is not cloned.
8292
- * If no data is provided, the constructed object will be empty, but still
8293
- * valid.
8294
- * @extends {jspb.Message}
8295
- * @constructor
8296
- */
8297
- proto.clarifai.api.MCPError = function(opt_data) {
8298
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8299
- };
8300
- goog.inherits(proto.clarifai.api.MCPError, jspb.Message);
8301
- if (goog.DEBUG && !COMPILED) {
8302
- /**
8303
- * @public
8304
- * @override
8305
- */
8306
- proto.clarifai.api.MCPError.displayName = 'proto.clarifai.api.MCPError';
8307
- }
8308
- /**
8309
- * Generated by JsPbCodeGenerator.
8310
- * @param {Array=} opt_data Optional initial data array, typically from a
8311
- * server response, or constructed directly in Javascript. The array is used
8312
- * in place and becomes part of the constructed object. It is not cloned.
8313
- * If no data is provided, the constructed object will be empty, but still
8314
- * valid.
8315
- * @extends {jspb.Message}
8316
- * @constructor
8317
- */
8318
- proto.clarifai.api.SingleMCPResponse = function(opt_data) {
8319
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8320
- };
8321
- goog.inherits(proto.clarifai.api.SingleMCPResponse, jspb.Message);
8322
- if (goog.DEBUG && !COMPILED) {
8323
- /**
8324
- * @public
8325
- * @override
8326
- */
8327
- proto.clarifai.api.SingleMCPResponse.displayName = 'proto.clarifai.api.SingleMCPResponse';
8328
- }
8329
8263
 
8330
8264
 
8331
8265
 
@@ -98228,882 +98162,6 @@ proto.clarifai.api.PostModelMigrationRequest.prototype.setModelId = function(val
98228
98162
  };
98229
98163
 
98230
98164
 
98231
-
98232
-
98233
-
98234
- if (jspb.Message.GENERATE_TO_OBJECT) {
98235
- /**
98236
- * Creates an object representation of this proto.
98237
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
98238
- * Optional fields that are not set will be set to undefined.
98239
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
98240
- * For the list of reserved names please see:
98241
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
98242
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
98243
- * JSPB instance for transitional soy proto support:
98244
- * http://goto/soy-param-migration
98245
- * @return {!Object}
98246
- */
98247
- proto.clarifai.api.MCPRequest.prototype.toObject = function(opt_includeInstance) {
98248
- return proto.clarifai.api.MCPRequest.toObject(opt_includeInstance, this);
98249
- };
98250
-
98251
-
98252
- /**
98253
- * Static version of the {@see toObject} method.
98254
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
98255
- * the JSPB instance for transitional soy proto support:
98256
- * http://goto/soy-param-migration
98257
- * @param {!proto.clarifai.api.MCPRequest} msg The msg instance to transform.
98258
- * @return {!Object}
98259
- * @suppress {unusedLocalVariables} f is only used for nested messages
98260
- */
98261
- proto.clarifai.api.MCPRequest.toObject = function(includeInstance, msg) {
98262
- var f, obj = {
98263
- jsonrpc: jspb.Message.getFieldWithDefault(msg, 1, ""),
98264
- id: jspb.Message.getFieldWithDefault(msg, 2, 0),
98265
- method: jspb.Message.getFieldWithDefault(msg, 3, ""),
98266
- params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
98267
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
98268
- modelId: jspb.Message.getFieldWithDefault(msg, 6, ""),
98269
- versionId: jspb.Message.getFieldWithDefault(msg, 7, "")
98270
- };
98271
-
98272
- if (includeInstance) {
98273
- obj.$jspbMessageInstance = msg;
98274
- }
98275
- return obj;
98276
- };
98277
- }
98278
-
98279
-
98280
- /**
98281
- * Deserializes binary data (in protobuf wire format).
98282
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
98283
- * @return {!proto.clarifai.api.MCPRequest}
98284
- */
98285
- proto.clarifai.api.MCPRequest.deserializeBinary = function(bytes) {
98286
- var reader = new jspb.BinaryReader(bytes);
98287
- var msg = new proto.clarifai.api.MCPRequest;
98288
- return proto.clarifai.api.MCPRequest.deserializeBinaryFromReader(msg, reader);
98289
- };
98290
-
98291
-
98292
- /**
98293
- * Deserializes binary data (in protobuf wire format) from the
98294
- * given reader into the given message object.
98295
- * @param {!proto.clarifai.api.MCPRequest} msg The message object to deserialize into.
98296
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
98297
- * @return {!proto.clarifai.api.MCPRequest}
98298
- */
98299
- proto.clarifai.api.MCPRequest.deserializeBinaryFromReader = function(msg, reader) {
98300
- while (reader.nextField()) {
98301
- if (reader.isEndGroup()) {
98302
- break;
98303
- }
98304
- var field = reader.getFieldNumber();
98305
- switch (field) {
98306
- case 1:
98307
- var value = /** @type {string} */ (reader.readString());
98308
- msg.setJsonrpc(value);
98309
- break;
98310
- case 2:
98311
- var value = /** @type {number} */ (reader.readUint32());
98312
- msg.setId(value);
98313
- break;
98314
- case 3:
98315
- var value = /** @type {string} */ (reader.readString());
98316
- msg.setMethod(value);
98317
- break;
98318
- case 4:
98319
- var value = new google_protobuf_struct_pb.Struct;
98320
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
98321
- msg.setParams(value);
98322
- break;
98323
- case 5:
98324
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
98325
- reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
98326
- msg.setUserAppId(value);
98327
- break;
98328
- case 6:
98329
- var value = /** @type {string} */ (reader.readString());
98330
- msg.setModelId(value);
98331
- break;
98332
- case 7:
98333
- var value = /** @type {string} */ (reader.readString());
98334
- msg.setVersionId(value);
98335
- break;
98336
- default:
98337
- reader.skipField();
98338
- break;
98339
- }
98340
- }
98341
- return msg;
98342
- };
98343
-
98344
-
98345
- /**
98346
- * Serializes the message to binary data (in protobuf wire format).
98347
- * @return {!Uint8Array}
98348
- */
98349
- proto.clarifai.api.MCPRequest.prototype.serializeBinary = function() {
98350
- var writer = new jspb.BinaryWriter();
98351
- proto.clarifai.api.MCPRequest.serializeBinaryToWriter(this, writer);
98352
- return writer.getResultBuffer();
98353
- };
98354
-
98355
-
98356
- /**
98357
- * Serializes the given message to binary data (in protobuf wire
98358
- * format), writing to the given BinaryWriter.
98359
- * @param {!proto.clarifai.api.MCPRequest} message
98360
- * @param {!jspb.BinaryWriter} writer
98361
- * @suppress {unusedLocalVariables} f is only used for nested messages
98362
- */
98363
- proto.clarifai.api.MCPRequest.serializeBinaryToWriter = function(message, writer) {
98364
- var f = undefined;
98365
- f = message.getJsonrpc();
98366
- if (f.length > 0) {
98367
- writer.writeString(
98368
- 1,
98369
- f
98370
- );
98371
- }
98372
- f = message.getId();
98373
- if (f !== 0) {
98374
- writer.writeUint32(
98375
- 2,
98376
- f
98377
- );
98378
- }
98379
- f = message.getMethod();
98380
- if (f.length > 0) {
98381
- writer.writeString(
98382
- 3,
98383
- f
98384
- );
98385
- }
98386
- f = message.getParams();
98387
- if (f != null) {
98388
- writer.writeMessage(
98389
- 4,
98390
- f,
98391
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
98392
- );
98393
- }
98394
- f = message.getUserAppId();
98395
- if (f != null) {
98396
- writer.writeMessage(
98397
- 5,
98398
- f,
98399
- proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
98400
- );
98401
- }
98402
- f = message.getModelId();
98403
- if (f.length > 0) {
98404
- writer.writeString(
98405
- 6,
98406
- f
98407
- );
98408
- }
98409
- f = message.getVersionId();
98410
- if (f.length > 0) {
98411
- writer.writeString(
98412
- 7,
98413
- f
98414
- );
98415
- }
98416
- };
98417
-
98418
-
98419
- /**
98420
- * optional string jsonrpc = 1;
98421
- * @return {string}
98422
- */
98423
- proto.clarifai.api.MCPRequest.prototype.getJsonrpc = function() {
98424
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
98425
- };
98426
-
98427
-
98428
- /**
98429
- * @param {string} value
98430
- * @return {!proto.clarifai.api.MCPRequest} returns this
98431
- */
98432
- proto.clarifai.api.MCPRequest.prototype.setJsonrpc = function(value) {
98433
- return jspb.Message.setProto3StringField(this, 1, value);
98434
- };
98435
-
98436
-
98437
- /**
98438
- * optional uint32 id = 2;
98439
- * @return {number}
98440
- */
98441
- proto.clarifai.api.MCPRequest.prototype.getId = function() {
98442
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
98443
- };
98444
-
98445
-
98446
- /**
98447
- * @param {number} value
98448
- * @return {!proto.clarifai.api.MCPRequest} returns this
98449
- */
98450
- proto.clarifai.api.MCPRequest.prototype.setId = function(value) {
98451
- return jspb.Message.setProto3IntField(this, 2, value);
98452
- };
98453
-
98454
-
98455
- /**
98456
- * optional string method = 3;
98457
- * @return {string}
98458
- */
98459
- proto.clarifai.api.MCPRequest.prototype.getMethod = function() {
98460
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
98461
- };
98462
-
98463
-
98464
- /**
98465
- * @param {string} value
98466
- * @return {!proto.clarifai.api.MCPRequest} returns this
98467
- */
98468
- proto.clarifai.api.MCPRequest.prototype.setMethod = function(value) {
98469
- return jspb.Message.setProto3StringField(this, 3, value);
98470
- };
98471
-
98472
-
98473
- /**
98474
- * optional google.protobuf.Struct params = 4;
98475
- * @return {?proto.google.protobuf.Struct}
98476
- */
98477
- proto.clarifai.api.MCPRequest.prototype.getParams = function() {
98478
- return /** @type{?proto.google.protobuf.Struct} */ (
98479
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
98480
- };
98481
-
98482
-
98483
- /**
98484
- * @param {?proto.google.protobuf.Struct|undefined} value
98485
- * @return {!proto.clarifai.api.MCPRequest} returns this
98486
- */
98487
- proto.clarifai.api.MCPRequest.prototype.setParams = function(value) {
98488
- return jspb.Message.setWrapperField(this, 4, value);
98489
- };
98490
-
98491
-
98492
- /**
98493
- * Clears the message field making it undefined.
98494
- * @return {!proto.clarifai.api.MCPRequest} returns this
98495
- */
98496
- proto.clarifai.api.MCPRequest.prototype.clearParams = function() {
98497
- return this.setParams(undefined);
98498
- };
98499
-
98500
-
98501
- /**
98502
- * Returns whether this field is set.
98503
- * @return {boolean}
98504
- */
98505
- proto.clarifai.api.MCPRequest.prototype.hasParams = function() {
98506
- return jspb.Message.getField(this, 4) != null;
98507
- };
98508
-
98509
-
98510
- /**
98511
- * optional UserAppIDSet user_app_id = 5;
98512
- * @return {?proto.clarifai.api.UserAppIDSet}
98513
- */
98514
- proto.clarifai.api.MCPRequest.prototype.getUserAppId = function() {
98515
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
98516
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 5));
98517
- };
98518
-
98519
-
98520
- /**
98521
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
98522
- * @return {!proto.clarifai.api.MCPRequest} returns this
98523
- */
98524
- proto.clarifai.api.MCPRequest.prototype.setUserAppId = function(value) {
98525
- return jspb.Message.setWrapperField(this, 5, value);
98526
- };
98527
-
98528
-
98529
- /**
98530
- * Clears the message field making it undefined.
98531
- * @return {!proto.clarifai.api.MCPRequest} returns this
98532
- */
98533
- proto.clarifai.api.MCPRequest.prototype.clearUserAppId = function() {
98534
- return this.setUserAppId(undefined);
98535
- };
98536
-
98537
-
98538
- /**
98539
- * Returns whether this field is set.
98540
- * @return {boolean}
98541
- */
98542
- proto.clarifai.api.MCPRequest.prototype.hasUserAppId = function() {
98543
- return jspb.Message.getField(this, 5) != null;
98544
- };
98545
-
98546
-
98547
- /**
98548
- * optional string model_id = 6;
98549
- * @return {string}
98550
- */
98551
- proto.clarifai.api.MCPRequest.prototype.getModelId = function() {
98552
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
98553
- };
98554
-
98555
-
98556
- /**
98557
- * @param {string} value
98558
- * @return {!proto.clarifai.api.MCPRequest} returns this
98559
- */
98560
- proto.clarifai.api.MCPRequest.prototype.setModelId = function(value) {
98561
- return jspb.Message.setProto3StringField(this, 6, value);
98562
- };
98563
-
98564
-
98565
- /**
98566
- * optional string version_id = 7;
98567
- * @return {string}
98568
- */
98569
- proto.clarifai.api.MCPRequest.prototype.getVersionId = function() {
98570
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
98571
- };
98572
-
98573
-
98574
- /**
98575
- * @param {string} value
98576
- * @return {!proto.clarifai.api.MCPRequest} returns this
98577
- */
98578
- proto.clarifai.api.MCPRequest.prototype.setVersionId = function(value) {
98579
- return jspb.Message.setProto3StringField(this, 7, value);
98580
- };
98581
-
98582
-
98583
-
98584
-
98585
-
98586
- if (jspb.Message.GENERATE_TO_OBJECT) {
98587
- /**
98588
- * Creates an object representation of this proto.
98589
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
98590
- * Optional fields that are not set will be set to undefined.
98591
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
98592
- * For the list of reserved names please see:
98593
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
98594
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
98595
- * JSPB instance for transitional soy proto support:
98596
- * http://goto/soy-param-migration
98597
- * @return {!Object}
98598
- */
98599
- proto.clarifai.api.MCPError.prototype.toObject = function(opt_includeInstance) {
98600
- return proto.clarifai.api.MCPError.toObject(opt_includeInstance, this);
98601
- };
98602
-
98603
-
98604
- /**
98605
- * Static version of the {@see toObject} method.
98606
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
98607
- * the JSPB instance for transitional soy proto support:
98608
- * http://goto/soy-param-migration
98609
- * @param {!proto.clarifai.api.MCPError} msg The msg instance to transform.
98610
- * @return {!Object}
98611
- * @suppress {unusedLocalVariables} f is only used for nested messages
98612
- */
98613
- proto.clarifai.api.MCPError.toObject = function(includeInstance, msg) {
98614
- var f, obj = {
98615
- code: jspb.Message.getFieldWithDefault(msg, 1, 0),
98616
- message: jspb.Message.getFieldWithDefault(msg, 2, ""),
98617
- data: (f = msg.getData()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
98618
- };
98619
-
98620
- if (includeInstance) {
98621
- obj.$jspbMessageInstance = msg;
98622
- }
98623
- return obj;
98624
- };
98625
- }
98626
-
98627
-
98628
- /**
98629
- * Deserializes binary data (in protobuf wire format).
98630
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
98631
- * @return {!proto.clarifai.api.MCPError}
98632
- */
98633
- proto.clarifai.api.MCPError.deserializeBinary = function(bytes) {
98634
- var reader = new jspb.BinaryReader(bytes);
98635
- var msg = new proto.clarifai.api.MCPError;
98636
- return proto.clarifai.api.MCPError.deserializeBinaryFromReader(msg, reader);
98637
- };
98638
-
98639
-
98640
- /**
98641
- * Deserializes binary data (in protobuf wire format) from the
98642
- * given reader into the given message object.
98643
- * @param {!proto.clarifai.api.MCPError} msg The message object to deserialize into.
98644
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
98645
- * @return {!proto.clarifai.api.MCPError}
98646
- */
98647
- proto.clarifai.api.MCPError.deserializeBinaryFromReader = function(msg, reader) {
98648
- while (reader.nextField()) {
98649
- if (reader.isEndGroup()) {
98650
- break;
98651
- }
98652
- var field = reader.getFieldNumber();
98653
- switch (field) {
98654
- case 1:
98655
- var value = /** @type {number} */ (reader.readInt32());
98656
- msg.setCode(value);
98657
- break;
98658
- case 2:
98659
- var value = /** @type {string} */ (reader.readString());
98660
- msg.setMessage(value);
98661
- break;
98662
- case 3:
98663
- var value = new google_protobuf_struct_pb.Struct;
98664
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
98665
- msg.setData(value);
98666
- break;
98667
- default:
98668
- reader.skipField();
98669
- break;
98670
- }
98671
- }
98672
- return msg;
98673
- };
98674
-
98675
-
98676
- /**
98677
- * Serializes the message to binary data (in protobuf wire format).
98678
- * @return {!Uint8Array}
98679
- */
98680
- proto.clarifai.api.MCPError.prototype.serializeBinary = function() {
98681
- var writer = new jspb.BinaryWriter();
98682
- proto.clarifai.api.MCPError.serializeBinaryToWriter(this, writer);
98683
- return writer.getResultBuffer();
98684
- };
98685
-
98686
-
98687
- /**
98688
- * Serializes the given message to binary data (in protobuf wire
98689
- * format), writing to the given BinaryWriter.
98690
- * @param {!proto.clarifai.api.MCPError} message
98691
- * @param {!jspb.BinaryWriter} writer
98692
- * @suppress {unusedLocalVariables} f is only used for nested messages
98693
- */
98694
- proto.clarifai.api.MCPError.serializeBinaryToWriter = function(message, writer) {
98695
- var f = undefined;
98696
- f = message.getCode();
98697
- if (f !== 0) {
98698
- writer.writeInt32(
98699
- 1,
98700
- f
98701
- );
98702
- }
98703
- f = message.getMessage();
98704
- if (f.length > 0) {
98705
- writer.writeString(
98706
- 2,
98707
- f
98708
- );
98709
- }
98710
- f = message.getData();
98711
- if (f != null) {
98712
- writer.writeMessage(
98713
- 3,
98714
- f,
98715
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
98716
- );
98717
- }
98718
- };
98719
-
98720
-
98721
- /**
98722
- * optional int32 code = 1;
98723
- * @return {number}
98724
- */
98725
- proto.clarifai.api.MCPError.prototype.getCode = function() {
98726
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
98727
- };
98728
-
98729
-
98730
- /**
98731
- * @param {number} value
98732
- * @return {!proto.clarifai.api.MCPError} returns this
98733
- */
98734
- proto.clarifai.api.MCPError.prototype.setCode = function(value) {
98735
- return jspb.Message.setProto3IntField(this, 1, value);
98736
- };
98737
-
98738
-
98739
- /**
98740
- * optional string message = 2;
98741
- * @return {string}
98742
- */
98743
- proto.clarifai.api.MCPError.prototype.getMessage = function() {
98744
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
98745
- };
98746
-
98747
-
98748
- /**
98749
- * @param {string} value
98750
- * @return {!proto.clarifai.api.MCPError} returns this
98751
- */
98752
- proto.clarifai.api.MCPError.prototype.setMessage = function(value) {
98753
- return jspb.Message.setProto3StringField(this, 2, value);
98754
- };
98755
-
98756
-
98757
- /**
98758
- * optional google.protobuf.Struct data = 3;
98759
- * @return {?proto.google.protobuf.Struct}
98760
- */
98761
- proto.clarifai.api.MCPError.prototype.getData = function() {
98762
- return /** @type{?proto.google.protobuf.Struct} */ (
98763
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
98764
- };
98765
-
98766
-
98767
- /**
98768
- * @param {?proto.google.protobuf.Struct|undefined} value
98769
- * @return {!proto.clarifai.api.MCPError} returns this
98770
- */
98771
- proto.clarifai.api.MCPError.prototype.setData = function(value) {
98772
- return jspb.Message.setWrapperField(this, 3, value);
98773
- };
98774
-
98775
-
98776
- /**
98777
- * Clears the message field making it undefined.
98778
- * @return {!proto.clarifai.api.MCPError} returns this
98779
- */
98780
- proto.clarifai.api.MCPError.prototype.clearData = function() {
98781
- return this.setData(undefined);
98782
- };
98783
-
98784
-
98785
- /**
98786
- * Returns whether this field is set.
98787
- * @return {boolean}
98788
- */
98789
- proto.clarifai.api.MCPError.prototype.hasData = function() {
98790
- return jspb.Message.getField(this, 3) != null;
98791
- };
98792
-
98793
-
98794
-
98795
-
98796
-
98797
- if (jspb.Message.GENERATE_TO_OBJECT) {
98798
- /**
98799
- * Creates an object representation of this proto.
98800
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
98801
- * Optional fields that are not set will be set to undefined.
98802
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
98803
- * For the list of reserved names please see:
98804
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
98805
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
98806
- * JSPB instance for transitional soy proto support:
98807
- * http://goto/soy-param-migration
98808
- * @return {!Object}
98809
- */
98810
- proto.clarifai.api.SingleMCPResponse.prototype.toObject = function(opt_includeInstance) {
98811
- return proto.clarifai.api.SingleMCPResponse.toObject(opt_includeInstance, this);
98812
- };
98813
-
98814
-
98815
- /**
98816
- * Static version of the {@see toObject} method.
98817
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
98818
- * the JSPB instance for transitional soy proto support:
98819
- * http://goto/soy-param-migration
98820
- * @param {!proto.clarifai.api.SingleMCPResponse} msg The msg instance to transform.
98821
- * @return {!Object}
98822
- * @suppress {unusedLocalVariables} f is only used for nested messages
98823
- */
98824
- proto.clarifai.api.SingleMCPResponse.toObject = function(includeInstance, msg) {
98825
- var f, obj = {
98826
- jsonrpc: jspb.Message.getFieldWithDefault(msg, 1, ""),
98827
- id: jspb.Message.getFieldWithDefault(msg, 2, 0),
98828
- result: (f = msg.getResult()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
98829
- error: (f = msg.getError()) && proto.clarifai.api.MCPError.toObject(includeInstance, f),
98830
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
98831
- };
98832
-
98833
- if (includeInstance) {
98834
- obj.$jspbMessageInstance = msg;
98835
- }
98836
- return obj;
98837
- };
98838
- }
98839
-
98840
-
98841
- /**
98842
- * Deserializes binary data (in protobuf wire format).
98843
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
98844
- * @return {!proto.clarifai.api.SingleMCPResponse}
98845
- */
98846
- proto.clarifai.api.SingleMCPResponse.deserializeBinary = function(bytes) {
98847
- var reader = new jspb.BinaryReader(bytes);
98848
- var msg = new proto.clarifai.api.SingleMCPResponse;
98849
- return proto.clarifai.api.SingleMCPResponse.deserializeBinaryFromReader(msg, reader);
98850
- };
98851
-
98852
-
98853
- /**
98854
- * Deserializes binary data (in protobuf wire format) from the
98855
- * given reader into the given message object.
98856
- * @param {!proto.clarifai.api.SingleMCPResponse} msg The message object to deserialize into.
98857
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
98858
- * @return {!proto.clarifai.api.SingleMCPResponse}
98859
- */
98860
- proto.clarifai.api.SingleMCPResponse.deserializeBinaryFromReader = function(msg, reader) {
98861
- while (reader.nextField()) {
98862
- if (reader.isEndGroup()) {
98863
- break;
98864
- }
98865
- var field = reader.getFieldNumber();
98866
- switch (field) {
98867
- case 1:
98868
- var value = /** @type {string} */ (reader.readString());
98869
- msg.setJsonrpc(value);
98870
- break;
98871
- case 2:
98872
- var value = /** @type {number} */ (reader.readUint32());
98873
- msg.setId(value);
98874
- break;
98875
- case 3:
98876
- var value = new google_protobuf_struct_pb.Struct;
98877
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
98878
- msg.setResult(value);
98879
- break;
98880
- case 4:
98881
- var value = new proto.clarifai.api.MCPError;
98882
- reader.readMessage(value,proto.clarifai.api.MCPError.deserializeBinaryFromReader);
98883
- msg.setError(value);
98884
- break;
98885
- case 5:
98886
- var value = new proto_clarifai_api_status_status_pb.Status;
98887
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
98888
- msg.setStatus(value);
98889
- break;
98890
- default:
98891
- reader.skipField();
98892
- break;
98893
- }
98894
- }
98895
- return msg;
98896
- };
98897
-
98898
-
98899
- /**
98900
- * Serializes the message to binary data (in protobuf wire format).
98901
- * @return {!Uint8Array}
98902
- */
98903
- proto.clarifai.api.SingleMCPResponse.prototype.serializeBinary = function() {
98904
- var writer = new jspb.BinaryWriter();
98905
- proto.clarifai.api.SingleMCPResponse.serializeBinaryToWriter(this, writer);
98906
- return writer.getResultBuffer();
98907
- };
98908
-
98909
-
98910
- /**
98911
- * Serializes the given message to binary data (in protobuf wire
98912
- * format), writing to the given BinaryWriter.
98913
- * @param {!proto.clarifai.api.SingleMCPResponse} message
98914
- * @param {!jspb.BinaryWriter} writer
98915
- * @suppress {unusedLocalVariables} f is only used for nested messages
98916
- */
98917
- proto.clarifai.api.SingleMCPResponse.serializeBinaryToWriter = function(message, writer) {
98918
- var f = undefined;
98919
- f = message.getJsonrpc();
98920
- if (f.length > 0) {
98921
- writer.writeString(
98922
- 1,
98923
- f
98924
- );
98925
- }
98926
- f = message.getId();
98927
- if (f !== 0) {
98928
- writer.writeUint32(
98929
- 2,
98930
- f
98931
- );
98932
- }
98933
- f = message.getResult();
98934
- if (f != null) {
98935
- writer.writeMessage(
98936
- 3,
98937
- f,
98938
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
98939
- );
98940
- }
98941
- f = message.getError();
98942
- if (f != null) {
98943
- writer.writeMessage(
98944
- 4,
98945
- f,
98946
- proto.clarifai.api.MCPError.serializeBinaryToWriter
98947
- );
98948
- }
98949
- f = message.getStatus();
98950
- if (f != null) {
98951
- writer.writeMessage(
98952
- 5,
98953
- f,
98954
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
98955
- );
98956
- }
98957
- };
98958
-
98959
-
98960
- /**
98961
- * optional string jsonrpc = 1;
98962
- * @return {string}
98963
- */
98964
- proto.clarifai.api.SingleMCPResponse.prototype.getJsonrpc = function() {
98965
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
98966
- };
98967
-
98968
-
98969
- /**
98970
- * @param {string} value
98971
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
98972
- */
98973
- proto.clarifai.api.SingleMCPResponse.prototype.setJsonrpc = function(value) {
98974
- return jspb.Message.setProto3StringField(this, 1, value);
98975
- };
98976
-
98977
-
98978
- /**
98979
- * optional uint32 id = 2;
98980
- * @return {number}
98981
- */
98982
- proto.clarifai.api.SingleMCPResponse.prototype.getId = function() {
98983
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
98984
- };
98985
-
98986
-
98987
- /**
98988
- * @param {number} value
98989
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
98990
- */
98991
- proto.clarifai.api.SingleMCPResponse.prototype.setId = function(value) {
98992
- return jspb.Message.setProto3IntField(this, 2, value);
98993
- };
98994
-
98995
-
98996
- /**
98997
- * optional google.protobuf.Struct result = 3;
98998
- * @return {?proto.google.protobuf.Struct}
98999
- */
99000
- proto.clarifai.api.SingleMCPResponse.prototype.getResult = function() {
99001
- return /** @type{?proto.google.protobuf.Struct} */ (
99002
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
99003
- };
99004
-
99005
-
99006
- /**
99007
- * @param {?proto.google.protobuf.Struct|undefined} value
99008
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
99009
- */
99010
- proto.clarifai.api.SingleMCPResponse.prototype.setResult = function(value) {
99011
- return jspb.Message.setWrapperField(this, 3, value);
99012
- };
99013
-
99014
-
99015
- /**
99016
- * Clears the message field making it undefined.
99017
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
99018
- */
99019
- proto.clarifai.api.SingleMCPResponse.prototype.clearResult = function() {
99020
- return this.setResult(undefined);
99021
- };
99022
-
99023
-
99024
- /**
99025
- * Returns whether this field is set.
99026
- * @return {boolean}
99027
- */
99028
- proto.clarifai.api.SingleMCPResponse.prototype.hasResult = function() {
99029
- return jspb.Message.getField(this, 3) != null;
99030
- };
99031
-
99032
-
99033
- /**
99034
- * optional MCPError error = 4;
99035
- * @return {?proto.clarifai.api.MCPError}
99036
- */
99037
- proto.clarifai.api.SingleMCPResponse.prototype.getError = function() {
99038
- return /** @type{?proto.clarifai.api.MCPError} */ (
99039
- jspb.Message.getWrapperField(this, proto.clarifai.api.MCPError, 4));
99040
- };
99041
-
99042
-
99043
- /**
99044
- * @param {?proto.clarifai.api.MCPError|undefined} value
99045
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
99046
- */
99047
- proto.clarifai.api.SingleMCPResponse.prototype.setError = function(value) {
99048
- return jspb.Message.setWrapperField(this, 4, value);
99049
- };
99050
-
99051
-
99052
- /**
99053
- * Clears the message field making it undefined.
99054
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
99055
- */
99056
- proto.clarifai.api.SingleMCPResponse.prototype.clearError = function() {
99057
- return this.setError(undefined);
99058
- };
99059
-
99060
-
99061
- /**
99062
- * Returns whether this field is set.
99063
- * @return {boolean}
99064
- */
99065
- proto.clarifai.api.SingleMCPResponse.prototype.hasError = function() {
99066
- return jspb.Message.getField(this, 4) != null;
99067
- };
99068
-
99069
-
99070
- /**
99071
- * optional status.Status status = 5;
99072
- * @return {?proto.clarifai.api.status.Status}
99073
- */
99074
- proto.clarifai.api.SingleMCPResponse.prototype.getStatus = function() {
99075
- return /** @type{?proto.clarifai.api.status.Status} */ (
99076
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5));
99077
- };
99078
-
99079
-
99080
- /**
99081
- * @param {?proto.clarifai.api.status.Status|undefined} value
99082
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
99083
- */
99084
- proto.clarifai.api.SingleMCPResponse.prototype.setStatus = function(value) {
99085
- return jspb.Message.setWrapperField(this, 5, value);
99086
- };
99087
-
99088
-
99089
- /**
99090
- * Clears the message field making it undefined.
99091
- * @return {!proto.clarifai.api.SingleMCPResponse} returns this
99092
- */
99093
- proto.clarifai.api.SingleMCPResponse.prototype.clearStatus = function() {
99094
- return this.setStatus(undefined);
99095
- };
99096
-
99097
-
99098
- /**
99099
- * Returns whether this field is set.
99100
- * @return {boolean}
99101
- */
99102
- proto.clarifai.api.SingleMCPResponse.prototype.hasStatus = function() {
99103
- return jspb.Message.getField(this, 5) != null;
99104
- };
99105
-
99106
-
99107
98165
  /**
99108
98166
  * @enum {number}
99109
98167
  */