clarifai-web-grpc 11.3.3 → 11.4.1
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.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +156 -3
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +84 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +864 -4
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +14 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +156 -3
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +84 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +864 -4
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +14 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +26 -0
- package/proto/clarifai/api/resources_pb.js +204 -3
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +24 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +122 -0
- package/proto/clarifai/api/service_pb.d.ts +132 -0
- package/proto/clarifai/api/service_pb.js +1087 -4
- package/proto/clarifai/api/status/status_code_pb.d.ts +14 -0
- package/proto/clarifai/api/status/status_code_pb.js +14 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +3 -0
- package/proto/clarifai/auth/scope/scope_pb.js +4 -1
|
@@ -190,6 +190,8 @@ goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionEvaluationsRequest', nu
|
|
|
190
190
|
goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionsRequest', null, global);
|
|
191
191
|
goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest', null, global);
|
|
192
192
|
goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest.SortByCase', null, global);
|
|
193
|
+
goog.exportSymbol('proto.clarifai.api.MCPError', null, global);
|
|
194
|
+
goog.exportSymbol('proto.clarifai.api.MCPRequest', null, global);
|
|
193
195
|
goog.exportSymbol('proto.clarifai.api.ModelVersionPublishRequest', null, global);
|
|
194
196
|
goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, global);
|
|
195
197
|
goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
|
|
@@ -400,6 +402,7 @@ goog.exportSymbol('proto.clarifai.api.SingleInputsExtractionJobResponse', null,
|
|
|
400
402
|
goog.exportSymbol('proto.clarifai.api.SingleInstalledModuleVersionResponse', null, global);
|
|
401
403
|
goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global);
|
|
402
404
|
goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global);
|
|
405
|
+
goog.exportSymbol('proto.clarifai.api.SingleMCPResponse', null, global);
|
|
403
406
|
goog.exportSymbol('proto.clarifai.api.SingleModelResponse', null, global);
|
|
404
407
|
goog.exportSymbol('proto.clarifai.api.SingleModelTypeResponse', null, global);
|
|
405
408
|
goog.exportSymbol('proto.clarifai.api.SingleModelVersionExportResponse', null, global);
|
|
@@ -8258,6 +8261,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
8258
8261
|
*/
|
|
8259
8262
|
proto.clarifai.api.PostModelMigrationRequest.displayName = 'proto.clarifai.api.PostModelMigrationRequest';
|
|
8260
8263
|
}
|
|
8264
|
+
/**
|
|
8265
|
+
* Generated by JsPbCodeGenerator.
|
|
8266
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
8267
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
8268
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
8269
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
8270
|
+
* valid.
|
|
8271
|
+
* @extends {jspb.Message}
|
|
8272
|
+
* @constructor
|
|
8273
|
+
*/
|
|
8274
|
+
proto.clarifai.api.MCPRequest = function (opt_data) {
|
|
8275
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
8276
|
+
};
|
|
8277
|
+
goog.inherits(proto.clarifai.api.MCPRequest, jspb.Message);
|
|
8278
|
+
if (goog.DEBUG && !COMPILED) {
|
|
8279
|
+
/**
|
|
8280
|
+
* @public
|
|
8281
|
+
* @override
|
|
8282
|
+
*/
|
|
8283
|
+
proto.clarifai.api.MCPRequest.displayName = 'proto.clarifai.api.MCPRequest';
|
|
8284
|
+
}
|
|
8285
|
+
/**
|
|
8286
|
+
* Generated by JsPbCodeGenerator.
|
|
8287
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
8288
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
8289
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
8290
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
8291
|
+
* valid.
|
|
8292
|
+
* @extends {jspb.Message}
|
|
8293
|
+
* @constructor
|
|
8294
|
+
*/
|
|
8295
|
+
proto.clarifai.api.MCPError = function (opt_data) {
|
|
8296
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
8297
|
+
};
|
|
8298
|
+
goog.inherits(proto.clarifai.api.MCPError, jspb.Message);
|
|
8299
|
+
if (goog.DEBUG && !COMPILED) {
|
|
8300
|
+
/**
|
|
8301
|
+
* @public
|
|
8302
|
+
* @override
|
|
8303
|
+
*/
|
|
8304
|
+
proto.clarifai.api.MCPError.displayName = 'proto.clarifai.api.MCPError';
|
|
8305
|
+
}
|
|
8306
|
+
/**
|
|
8307
|
+
* Generated by JsPbCodeGenerator.
|
|
8308
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
8309
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
8310
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
8311
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
8312
|
+
* valid.
|
|
8313
|
+
* @extends {jspb.Message}
|
|
8314
|
+
* @constructor
|
|
8315
|
+
*/
|
|
8316
|
+
proto.clarifai.api.SingleMCPResponse = function (opt_data) {
|
|
8317
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
8318
|
+
};
|
|
8319
|
+
goog.inherits(proto.clarifai.api.SingleMCPResponse, jspb.Message);
|
|
8320
|
+
if (goog.DEBUG && !COMPILED) {
|
|
8321
|
+
/**
|
|
8322
|
+
* @public
|
|
8323
|
+
* @override
|
|
8324
|
+
*/
|
|
8325
|
+
proto.clarifai.api.SingleMCPResponse.displayName = 'proto.clarifai.api.SingleMCPResponse';
|
|
8326
|
+
}
|
|
8261
8327
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8262
8328
|
/**
|
|
8263
8329
|
* Creates an object representation of this proto.
|
|
@@ -27050,7 +27116,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
27050
27116
|
inputsList: jspb.Message.toObjectList(msg.getInputsList(), proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
|
|
27051
27117
|
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
27052
27118
|
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f),
|
|
27053
|
-
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
27119
|
+
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
27120
|
+
enableLogSummaryOnError: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
27054
27121
|
};
|
|
27055
27122
|
if (includeInstance) {
|
|
27056
27123
|
obj.$jspbMessageInstance = msg;
|
|
@@ -27114,6 +27181,10 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
|
|
|
27114
27181
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
27115
27182
|
msg.setUsePredictCache(value);
|
|
27116
27183
|
break;
|
|
27184
|
+
case 8:
|
|
27185
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
27186
|
+
msg.setEnableLogSummaryOnError(value);
|
|
27187
|
+
break;
|
|
27117
27188
|
default:
|
|
27118
27189
|
reader.skipField();
|
|
27119
27190
|
break;
|
|
@@ -27167,6 +27238,10 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function (m
|
|
|
27167
27238
|
if (f) {
|
|
27168
27239
|
writer.writeBool(7, f);
|
|
27169
27240
|
}
|
|
27241
|
+
f = message.getEnableLogSummaryOnError();
|
|
27242
|
+
if (f) {
|
|
27243
|
+
writer.writeBool(8, f);
|
|
27244
|
+
}
|
|
27170
27245
|
};
|
|
27171
27246
|
/**
|
|
27172
27247
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -27323,6 +27398,20 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.getUsePredictCache = functi
|
|
|
27323
27398
|
proto.clarifai.api.PostModelOutputsRequest.prototype.setUsePredictCache = function (value) {
|
|
27324
27399
|
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
27325
27400
|
};
|
|
27401
|
+
/**
|
|
27402
|
+
* optional bool enable_log_summary_on_error = 8;
|
|
27403
|
+
* @return {boolean}
|
|
27404
|
+
*/
|
|
27405
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.getEnableLogSummaryOnError = function () {
|
|
27406
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
27407
|
+
};
|
|
27408
|
+
/**
|
|
27409
|
+
* @param {boolean} value
|
|
27410
|
+
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
|
|
27411
|
+
*/
|
|
27412
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.setEnableLogSummaryOnError = function (value) {
|
|
27413
|
+
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
27414
|
+
};
|
|
27326
27415
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27327
27416
|
/**
|
|
27328
27417
|
* Creates an object representation of this proto.
|
|
@@ -28728,7 +28817,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
28728
28817
|
perPage: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
28729
28818
|
notExpired: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
28730
28819
|
scopesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
28731
|
-
endpointsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
|
|
28820
|
+
endpointsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
28821
|
+
type: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
28732
28822
|
};
|
|
28733
28823
|
if (includeInstance) {
|
|
28734
28824
|
obj.$jspbMessageInstance = msg;
|
|
@@ -28785,6 +28875,10 @@ proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader = function (msg,
|
|
|
28785
28875
|
var value = /** @type {string} */ (reader.readString());
|
|
28786
28876
|
msg.addEndpoints(value);
|
|
28787
28877
|
break;
|
|
28878
|
+
case 7:
|
|
28879
|
+
var value = /** @type {string} */ (reader.readString());
|
|
28880
|
+
msg.setType(value);
|
|
28881
|
+
break;
|
|
28788
28882
|
default:
|
|
28789
28883
|
reader.skipField();
|
|
28790
28884
|
break;
|
|
@@ -28834,6 +28928,10 @@ proto.clarifai.api.ListKeysRequest.serializeBinaryToWriter = function (message,
|
|
|
28834
28928
|
if (f.length > 0) {
|
|
28835
28929
|
writer.writeRepeatedString(6, f);
|
|
28836
28930
|
}
|
|
28931
|
+
f = message.getType();
|
|
28932
|
+
if (f.length > 0) {
|
|
28933
|
+
writer.writeString(7, f);
|
|
28934
|
+
}
|
|
28837
28935
|
};
|
|
28838
28936
|
/**
|
|
28839
28937
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -28963,6 +29061,20 @@ proto.clarifai.api.ListKeysRequest.prototype.addEndpoints = function (value, opt
|
|
|
28963
29061
|
proto.clarifai.api.ListKeysRequest.prototype.clearEndpointsList = function () {
|
|
28964
29062
|
return this.setEndpointsList([]);
|
|
28965
29063
|
};
|
|
29064
|
+
/**
|
|
29065
|
+
* optional string type = 7;
|
|
29066
|
+
* @return {string}
|
|
29067
|
+
*/
|
|
29068
|
+
proto.clarifai.api.ListKeysRequest.prototype.getType = function () {
|
|
29069
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
29070
|
+
};
|
|
29071
|
+
/**
|
|
29072
|
+
* @param {string} value
|
|
29073
|
+
* @return {!proto.clarifai.api.ListKeysRequest} returns this
|
|
29074
|
+
*/
|
|
29075
|
+
proto.clarifai.api.ListKeysRequest.prototype.setType = function (value) {
|
|
29076
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
29077
|
+
};
|
|
28966
29078
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
28967
29079
|
/**
|
|
28968
29080
|
* Creates an object representation of this proto.
|
|
@@ -43250,7 +43362,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
43250
43362
|
proto.clarifai.api.MultiOutputResponse.toObject = function (includeInstance, msg) {
|
|
43251
43363
|
var f, obj = {
|
|
43252
43364
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
43253
|
-
outputsList: jspb.Message.toObjectList(msg.getOutputsList(), proto_clarifai_api_resources_pb.Output.toObject, includeInstance)
|
|
43365
|
+
outputsList: jspb.Message.toObjectList(msg.getOutputsList(), proto_clarifai_api_resources_pb.Output.toObject, includeInstance),
|
|
43366
|
+
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
|
|
43254
43367
|
};
|
|
43255
43368
|
if (includeInstance) {
|
|
43256
43369
|
obj.$jspbMessageInstance = msg;
|
|
@@ -43292,6 +43405,11 @@ proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader = function (m
|
|
|
43292
43405
|
reader.readMessage(value, proto_clarifai_api_resources_pb.Output.deserializeBinaryFromReader);
|
|
43293
43406
|
msg.addOutputs(value);
|
|
43294
43407
|
break;
|
|
43408
|
+
case 3:
|
|
43409
|
+
var value = new proto_clarifai_api_resources_pb.RunnerSelector;
|
|
43410
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
|
|
43411
|
+
msg.setRunnerSelector(value);
|
|
43412
|
+
break;
|
|
43295
43413
|
default:
|
|
43296
43414
|
reader.skipField();
|
|
43297
43415
|
break;
|
|
@@ -43325,6 +43443,10 @@ proto.clarifai.api.MultiOutputResponse.serializeBinaryToWriter = function (messa
|
|
|
43325
43443
|
if (f.length > 0) {
|
|
43326
43444
|
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Output.serializeBinaryToWriter);
|
|
43327
43445
|
}
|
|
43446
|
+
f = message.getRunnerSelector();
|
|
43447
|
+
if (f != null) {
|
|
43448
|
+
writer.writeMessage(3, f, proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter);
|
|
43449
|
+
}
|
|
43328
43450
|
};
|
|
43329
43451
|
/**
|
|
43330
43452
|
* optional status.Status status = 1;
|
|
@@ -43383,6 +43505,34 @@ proto.clarifai.api.MultiOutputResponse.prototype.addOutputs = function (opt_valu
|
|
|
43383
43505
|
proto.clarifai.api.MultiOutputResponse.prototype.clearOutputsList = function () {
|
|
43384
43506
|
return this.setOutputsList([]);
|
|
43385
43507
|
};
|
|
43508
|
+
/**
|
|
43509
|
+
* optional RunnerSelector runner_selector = 3;
|
|
43510
|
+
* @return {?proto.clarifai.api.RunnerSelector}
|
|
43511
|
+
*/
|
|
43512
|
+
proto.clarifai.api.MultiOutputResponse.prototype.getRunnerSelector = function () {
|
|
43513
|
+
return /** @type{?proto.clarifai.api.RunnerSelector} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.RunnerSelector, 3));
|
|
43514
|
+
};
|
|
43515
|
+
/**
|
|
43516
|
+
* @param {?proto.clarifai.api.RunnerSelector|undefined} value
|
|
43517
|
+
* @return {!proto.clarifai.api.MultiOutputResponse} returns this
|
|
43518
|
+
*/
|
|
43519
|
+
proto.clarifai.api.MultiOutputResponse.prototype.setRunnerSelector = function (value) {
|
|
43520
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
43521
|
+
};
|
|
43522
|
+
/**
|
|
43523
|
+
* Clears the message field making it undefined.
|
|
43524
|
+
* @return {!proto.clarifai.api.MultiOutputResponse} returns this
|
|
43525
|
+
*/
|
|
43526
|
+
proto.clarifai.api.MultiOutputResponse.prototype.clearRunnerSelector = function () {
|
|
43527
|
+
return this.setRunnerSelector(undefined);
|
|
43528
|
+
};
|
|
43529
|
+
/**
|
|
43530
|
+
* Returns whether this field is set.
|
|
43531
|
+
* @return {boolean}
|
|
43532
|
+
*/
|
|
43533
|
+
proto.clarifai.api.MultiOutputResponse.prototype.hasRunnerSelector = function () {
|
|
43534
|
+
return jspb.Message.getField(this, 3) != null;
|
|
43535
|
+
};
|
|
43386
43536
|
/**
|
|
43387
43537
|
* List of repeated fields within this message type.
|
|
43388
43538
|
* @private {!Array<number>}
|
|
@@ -76187,7 +76337,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
76187
76337
|
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
76188
76338
|
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
76189
76339
|
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
76190
|
-
workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
|
|
76340
|
+
workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
76341
|
+
computeClusterId: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
76191
76342
|
};
|
|
76192
76343
|
if (includeInstance) {
|
|
76193
76344
|
obj.$jspbMessageInstance = msg;
|
|
@@ -76244,6 +76395,10 @@ proto.clarifai.api.ListDeploymentsRequest.deserializeBinaryFromReader = function
|
|
|
76244
76395
|
var value = /** @type {string} */ (reader.readString());
|
|
76245
76396
|
msg.addWorkflowVersionIds(value);
|
|
76246
76397
|
break;
|
|
76398
|
+
case 7:
|
|
76399
|
+
var value = /** @type {string} */ (reader.readString());
|
|
76400
|
+
msg.setComputeClusterId(value);
|
|
76401
|
+
break;
|
|
76247
76402
|
default:
|
|
76248
76403
|
reader.skipField();
|
|
76249
76404
|
break;
|
|
@@ -76293,6 +76448,10 @@ proto.clarifai.api.ListDeploymentsRequest.serializeBinaryToWriter = function (me
|
|
|
76293
76448
|
if (f.length > 0) {
|
|
76294
76449
|
writer.writeRepeatedString(6, f);
|
|
76295
76450
|
}
|
|
76451
|
+
f = message.getComputeClusterId();
|
|
76452
|
+
if (f.length > 0) {
|
|
76453
|
+
writer.writeString(7, f);
|
|
76454
|
+
}
|
|
76296
76455
|
};
|
|
76297
76456
|
/**
|
|
76298
76457
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -76422,6 +76581,20 @@ proto.clarifai.api.ListDeploymentsRequest.prototype.addWorkflowVersionIds = func
|
|
|
76422
76581
|
proto.clarifai.api.ListDeploymentsRequest.prototype.clearWorkflowVersionIdsList = function () {
|
|
76423
76582
|
return this.setWorkflowVersionIdsList([]);
|
|
76424
76583
|
};
|
|
76584
|
+
/**
|
|
76585
|
+
* optional string compute_cluster_id = 7;
|
|
76586
|
+
* @return {string}
|
|
76587
|
+
*/
|
|
76588
|
+
proto.clarifai.api.ListDeploymentsRequest.prototype.getComputeClusterId = function () {
|
|
76589
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
76590
|
+
};
|
|
76591
|
+
/**
|
|
76592
|
+
* @param {string} value
|
|
76593
|
+
* @return {!proto.clarifai.api.ListDeploymentsRequest} returns this
|
|
76594
|
+
*/
|
|
76595
|
+
proto.clarifai.api.ListDeploymentsRequest.prototype.setComputeClusterId = function (value) {
|
|
76596
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
76597
|
+
};
|
|
76425
76598
|
/**
|
|
76426
76599
|
* List of repeated fields within this message type.
|
|
76427
76600
|
* @private {!Array<number>}
|
|
@@ -79275,6 +79448,693 @@ proto.clarifai.api.PostModelMigrationRequest.prototype.getModelId = function ()
|
|
|
79275
79448
|
proto.clarifai.api.PostModelMigrationRequest.prototype.setModelId = function (value) {
|
|
79276
79449
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
79277
79450
|
};
|
|
79451
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
79452
|
+
/**
|
|
79453
|
+
* Creates an object representation of this proto.
|
|
79454
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
79455
|
+
* Optional fields that are not set will be set to undefined.
|
|
79456
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79457
|
+
* For the list of reserved names please see:
|
|
79458
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79459
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
79460
|
+
* JSPB instance for transitional soy proto support:
|
|
79461
|
+
* http://goto/soy-param-migration
|
|
79462
|
+
* @return {!Object}
|
|
79463
|
+
*/
|
|
79464
|
+
proto.clarifai.api.MCPRequest.prototype.toObject = function (opt_includeInstance) {
|
|
79465
|
+
return proto.clarifai.api.MCPRequest.toObject(opt_includeInstance, this);
|
|
79466
|
+
};
|
|
79467
|
+
/**
|
|
79468
|
+
* Static version of the {@see toObject} method.
|
|
79469
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
79470
|
+
* the JSPB instance for transitional soy proto support:
|
|
79471
|
+
* http://goto/soy-param-migration
|
|
79472
|
+
* @param {!proto.clarifai.api.MCPRequest} msg The msg instance to transform.
|
|
79473
|
+
* @return {!Object}
|
|
79474
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79475
|
+
*/
|
|
79476
|
+
proto.clarifai.api.MCPRequest.toObject = function (includeInstance, msg) {
|
|
79477
|
+
var f, obj = {
|
|
79478
|
+
jsonrpc: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
79479
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
79480
|
+
method: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
79481
|
+
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
79482
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
79483
|
+
modelId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
79484
|
+
versionId: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
79485
|
+
};
|
|
79486
|
+
if (includeInstance) {
|
|
79487
|
+
obj.$jspbMessageInstance = msg;
|
|
79488
|
+
}
|
|
79489
|
+
return obj;
|
|
79490
|
+
};
|
|
79491
|
+
}
|
|
79492
|
+
/**
|
|
79493
|
+
* Deserializes binary data (in protobuf wire format).
|
|
79494
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
79495
|
+
* @return {!proto.clarifai.api.MCPRequest}
|
|
79496
|
+
*/
|
|
79497
|
+
proto.clarifai.api.MCPRequest.deserializeBinary = function (bytes) {
|
|
79498
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
79499
|
+
var msg = new proto.clarifai.api.MCPRequest;
|
|
79500
|
+
return proto.clarifai.api.MCPRequest.deserializeBinaryFromReader(msg, reader);
|
|
79501
|
+
};
|
|
79502
|
+
/**
|
|
79503
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
79504
|
+
* given reader into the given message object.
|
|
79505
|
+
* @param {!proto.clarifai.api.MCPRequest} msg The message object to deserialize into.
|
|
79506
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
79507
|
+
* @return {!proto.clarifai.api.MCPRequest}
|
|
79508
|
+
*/
|
|
79509
|
+
proto.clarifai.api.MCPRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
79510
|
+
while (reader.nextField()) {
|
|
79511
|
+
if (reader.isEndGroup()) {
|
|
79512
|
+
break;
|
|
79513
|
+
}
|
|
79514
|
+
var field = reader.getFieldNumber();
|
|
79515
|
+
switch (field) {
|
|
79516
|
+
case 1:
|
|
79517
|
+
var value = /** @type {string} */ (reader.readString());
|
|
79518
|
+
msg.setJsonrpc(value);
|
|
79519
|
+
break;
|
|
79520
|
+
case 2:
|
|
79521
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
79522
|
+
msg.setId(value);
|
|
79523
|
+
break;
|
|
79524
|
+
case 3:
|
|
79525
|
+
var value = /** @type {string} */ (reader.readString());
|
|
79526
|
+
msg.setMethod(value);
|
|
79527
|
+
break;
|
|
79528
|
+
case 4:
|
|
79529
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
79530
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
79531
|
+
msg.setParams(value);
|
|
79532
|
+
break;
|
|
79533
|
+
case 5:
|
|
79534
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
79535
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
79536
|
+
msg.setUserAppId(value);
|
|
79537
|
+
break;
|
|
79538
|
+
case 6:
|
|
79539
|
+
var value = /** @type {string} */ (reader.readString());
|
|
79540
|
+
msg.setModelId(value);
|
|
79541
|
+
break;
|
|
79542
|
+
case 7:
|
|
79543
|
+
var value = /** @type {string} */ (reader.readString());
|
|
79544
|
+
msg.setVersionId(value);
|
|
79545
|
+
break;
|
|
79546
|
+
default:
|
|
79547
|
+
reader.skipField();
|
|
79548
|
+
break;
|
|
79549
|
+
}
|
|
79550
|
+
}
|
|
79551
|
+
return msg;
|
|
79552
|
+
};
|
|
79553
|
+
/**
|
|
79554
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
79555
|
+
* @return {!Uint8Array}
|
|
79556
|
+
*/
|
|
79557
|
+
proto.clarifai.api.MCPRequest.prototype.serializeBinary = function () {
|
|
79558
|
+
var writer = new jspb.BinaryWriter();
|
|
79559
|
+
proto.clarifai.api.MCPRequest.serializeBinaryToWriter(this, writer);
|
|
79560
|
+
return writer.getResultBuffer();
|
|
79561
|
+
};
|
|
79562
|
+
/**
|
|
79563
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
79564
|
+
* format), writing to the given BinaryWriter.
|
|
79565
|
+
* @param {!proto.clarifai.api.MCPRequest} message
|
|
79566
|
+
* @param {!jspb.BinaryWriter} writer
|
|
79567
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79568
|
+
*/
|
|
79569
|
+
proto.clarifai.api.MCPRequest.serializeBinaryToWriter = function (message, writer) {
|
|
79570
|
+
var f = undefined;
|
|
79571
|
+
f = message.getJsonrpc();
|
|
79572
|
+
if (f.length > 0) {
|
|
79573
|
+
writer.writeString(1, f);
|
|
79574
|
+
}
|
|
79575
|
+
f = message.getId();
|
|
79576
|
+
if (f !== 0) {
|
|
79577
|
+
writer.writeUint32(2, f);
|
|
79578
|
+
}
|
|
79579
|
+
f = message.getMethod();
|
|
79580
|
+
if (f.length > 0) {
|
|
79581
|
+
writer.writeString(3, f);
|
|
79582
|
+
}
|
|
79583
|
+
f = message.getParams();
|
|
79584
|
+
if (f != null) {
|
|
79585
|
+
writer.writeMessage(4, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
79586
|
+
}
|
|
79587
|
+
f = message.getUserAppId();
|
|
79588
|
+
if (f != null) {
|
|
79589
|
+
writer.writeMessage(5, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
79590
|
+
}
|
|
79591
|
+
f = message.getModelId();
|
|
79592
|
+
if (f.length > 0) {
|
|
79593
|
+
writer.writeString(6, f);
|
|
79594
|
+
}
|
|
79595
|
+
f = message.getVersionId();
|
|
79596
|
+
if (f.length > 0) {
|
|
79597
|
+
writer.writeString(7, f);
|
|
79598
|
+
}
|
|
79599
|
+
};
|
|
79600
|
+
/**
|
|
79601
|
+
* optional string jsonrpc = 1;
|
|
79602
|
+
* @return {string}
|
|
79603
|
+
*/
|
|
79604
|
+
proto.clarifai.api.MCPRequest.prototype.getJsonrpc = function () {
|
|
79605
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
79606
|
+
};
|
|
79607
|
+
/**
|
|
79608
|
+
* @param {string} value
|
|
79609
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79610
|
+
*/
|
|
79611
|
+
proto.clarifai.api.MCPRequest.prototype.setJsonrpc = function (value) {
|
|
79612
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
79613
|
+
};
|
|
79614
|
+
/**
|
|
79615
|
+
* optional uint32 id = 2;
|
|
79616
|
+
* @return {number}
|
|
79617
|
+
*/
|
|
79618
|
+
proto.clarifai.api.MCPRequest.prototype.getId = function () {
|
|
79619
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
79620
|
+
};
|
|
79621
|
+
/**
|
|
79622
|
+
* @param {number} value
|
|
79623
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79624
|
+
*/
|
|
79625
|
+
proto.clarifai.api.MCPRequest.prototype.setId = function (value) {
|
|
79626
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
79627
|
+
};
|
|
79628
|
+
/**
|
|
79629
|
+
* optional string method = 3;
|
|
79630
|
+
* @return {string}
|
|
79631
|
+
*/
|
|
79632
|
+
proto.clarifai.api.MCPRequest.prototype.getMethod = function () {
|
|
79633
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
79634
|
+
};
|
|
79635
|
+
/**
|
|
79636
|
+
* @param {string} value
|
|
79637
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79638
|
+
*/
|
|
79639
|
+
proto.clarifai.api.MCPRequest.prototype.setMethod = function (value) {
|
|
79640
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
79641
|
+
};
|
|
79642
|
+
/**
|
|
79643
|
+
* optional google.protobuf.Struct params = 4;
|
|
79644
|
+
* @return {?proto.google.protobuf.Struct}
|
|
79645
|
+
*/
|
|
79646
|
+
proto.clarifai.api.MCPRequest.prototype.getParams = function () {
|
|
79647
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
|
|
79648
|
+
};
|
|
79649
|
+
/**
|
|
79650
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
79651
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79652
|
+
*/
|
|
79653
|
+
proto.clarifai.api.MCPRequest.prototype.setParams = function (value) {
|
|
79654
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
79655
|
+
};
|
|
79656
|
+
/**
|
|
79657
|
+
* Clears the message field making it undefined.
|
|
79658
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79659
|
+
*/
|
|
79660
|
+
proto.clarifai.api.MCPRequest.prototype.clearParams = function () {
|
|
79661
|
+
return this.setParams(undefined);
|
|
79662
|
+
};
|
|
79663
|
+
/**
|
|
79664
|
+
* Returns whether this field is set.
|
|
79665
|
+
* @return {boolean}
|
|
79666
|
+
*/
|
|
79667
|
+
proto.clarifai.api.MCPRequest.prototype.hasParams = function () {
|
|
79668
|
+
return jspb.Message.getField(this, 4) != null;
|
|
79669
|
+
};
|
|
79670
|
+
/**
|
|
79671
|
+
* optional UserAppIDSet user_app_id = 5;
|
|
79672
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
79673
|
+
*/
|
|
79674
|
+
proto.clarifai.api.MCPRequest.prototype.getUserAppId = function () {
|
|
79675
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 5));
|
|
79676
|
+
};
|
|
79677
|
+
/**
|
|
79678
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
79679
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79680
|
+
*/
|
|
79681
|
+
proto.clarifai.api.MCPRequest.prototype.setUserAppId = function (value) {
|
|
79682
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
79683
|
+
};
|
|
79684
|
+
/**
|
|
79685
|
+
* Clears the message field making it undefined.
|
|
79686
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79687
|
+
*/
|
|
79688
|
+
proto.clarifai.api.MCPRequest.prototype.clearUserAppId = function () {
|
|
79689
|
+
return this.setUserAppId(undefined);
|
|
79690
|
+
};
|
|
79691
|
+
/**
|
|
79692
|
+
* Returns whether this field is set.
|
|
79693
|
+
* @return {boolean}
|
|
79694
|
+
*/
|
|
79695
|
+
proto.clarifai.api.MCPRequest.prototype.hasUserAppId = function () {
|
|
79696
|
+
return jspb.Message.getField(this, 5) != null;
|
|
79697
|
+
};
|
|
79698
|
+
/**
|
|
79699
|
+
* optional string model_id = 6;
|
|
79700
|
+
* @return {string}
|
|
79701
|
+
*/
|
|
79702
|
+
proto.clarifai.api.MCPRequest.prototype.getModelId = function () {
|
|
79703
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
79704
|
+
};
|
|
79705
|
+
/**
|
|
79706
|
+
* @param {string} value
|
|
79707
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79708
|
+
*/
|
|
79709
|
+
proto.clarifai.api.MCPRequest.prototype.setModelId = function (value) {
|
|
79710
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
79711
|
+
};
|
|
79712
|
+
/**
|
|
79713
|
+
* optional string version_id = 7;
|
|
79714
|
+
* @return {string}
|
|
79715
|
+
*/
|
|
79716
|
+
proto.clarifai.api.MCPRequest.prototype.getVersionId = function () {
|
|
79717
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
79718
|
+
};
|
|
79719
|
+
/**
|
|
79720
|
+
* @param {string} value
|
|
79721
|
+
* @return {!proto.clarifai.api.MCPRequest} returns this
|
|
79722
|
+
*/
|
|
79723
|
+
proto.clarifai.api.MCPRequest.prototype.setVersionId = function (value) {
|
|
79724
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
79725
|
+
};
|
|
79726
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
79727
|
+
/**
|
|
79728
|
+
* Creates an object representation of this proto.
|
|
79729
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
79730
|
+
* Optional fields that are not set will be set to undefined.
|
|
79731
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79732
|
+
* For the list of reserved names please see:
|
|
79733
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79734
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
79735
|
+
* JSPB instance for transitional soy proto support:
|
|
79736
|
+
* http://goto/soy-param-migration
|
|
79737
|
+
* @return {!Object}
|
|
79738
|
+
*/
|
|
79739
|
+
proto.clarifai.api.MCPError.prototype.toObject = function (opt_includeInstance) {
|
|
79740
|
+
return proto.clarifai.api.MCPError.toObject(opt_includeInstance, this);
|
|
79741
|
+
};
|
|
79742
|
+
/**
|
|
79743
|
+
* Static version of the {@see toObject} method.
|
|
79744
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
79745
|
+
* the JSPB instance for transitional soy proto support:
|
|
79746
|
+
* http://goto/soy-param-migration
|
|
79747
|
+
* @param {!proto.clarifai.api.MCPError} msg The msg instance to transform.
|
|
79748
|
+
* @return {!Object}
|
|
79749
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79750
|
+
*/
|
|
79751
|
+
proto.clarifai.api.MCPError.toObject = function (includeInstance, msg) {
|
|
79752
|
+
var f, obj = {
|
|
79753
|
+
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
79754
|
+
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
79755
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
79756
|
+
};
|
|
79757
|
+
if (includeInstance) {
|
|
79758
|
+
obj.$jspbMessageInstance = msg;
|
|
79759
|
+
}
|
|
79760
|
+
return obj;
|
|
79761
|
+
};
|
|
79762
|
+
}
|
|
79763
|
+
/**
|
|
79764
|
+
* Deserializes binary data (in protobuf wire format).
|
|
79765
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
79766
|
+
* @return {!proto.clarifai.api.MCPError}
|
|
79767
|
+
*/
|
|
79768
|
+
proto.clarifai.api.MCPError.deserializeBinary = function (bytes) {
|
|
79769
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
79770
|
+
var msg = new proto.clarifai.api.MCPError;
|
|
79771
|
+
return proto.clarifai.api.MCPError.deserializeBinaryFromReader(msg, reader);
|
|
79772
|
+
};
|
|
79773
|
+
/**
|
|
79774
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
79775
|
+
* given reader into the given message object.
|
|
79776
|
+
* @param {!proto.clarifai.api.MCPError} msg The message object to deserialize into.
|
|
79777
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
79778
|
+
* @return {!proto.clarifai.api.MCPError}
|
|
79779
|
+
*/
|
|
79780
|
+
proto.clarifai.api.MCPError.deserializeBinaryFromReader = function (msg, reader) {
|
|
79781
|
+
while (reader.nextField()) {
|
|
79782
|
+
if (reader.isEndGroup()) {
|
|
79783
|
+
break;
|
|
79784
|
+
}
|
|
79785
|
+
var field = reader.getFieldNumber();
|
|
79786
|
+
switch (field) {
|
|
79787
|
+
case 1:
|
|
79788
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
79789
|
+
msg.setCode(value);
|
|
79790
|
+
break;
|
|
79791
|
+
case 2:
|
|
79792
|
+
var value = /** @type {string} */ (reader.readString());
|
|
79793
|
+
msg.setMessage(value);
|
|
79794
|
+
break;
|
|
79795
|
+
case 3:
|
|
79796
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
79797
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
79798
|
+
msg.setData(value);
|
|
79799
|
+
break;
|
|
79800
|
+
default:
|
|
79801
|
+
reader.skipField();
|
|
79802
|
+
break;
|
|
79803
|
+
}
|
|
79804
|
+
}
|
|
79805
|
+
return msg;
|
|
79806
|
+
};
|
|
79807
|
+
/**
|
|
79808
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
79809
|
+
* @return {!Uint8Array}
|
|
79810
|
+
*/
|
|
79811
|
+
proto.clarifai.api.MCPError.prototype.serializeBinary = function () {
|
|
79812
|
+
var writer = new jspb.BinaryWriter();
|
|
79813
|
+
proto.clarifai.api.MCPError.serializeBinaryToWriter(this, writer);
|
|
79814
|
+
return writer.getResultBuffer();
|
|
79815
|
+
};
|
|
79816
|
+
/**
|
|
79817
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
79818
|
+
* format), writing to the given BinaryWriter.
|
|
79819
|
+
* @param {!proto.clarifai.api.MCPError} message
|
|
79820
|
+
* @param {!jspb.BinaryWriter} writer
|
|
79821
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79822
|
+
*/
|
|
79823
|
+
proto.clarifai.api.MCPError.serializeBinaryToWriter = function (message, writer) {
|
|
79824
|
+
var f = undefined;
|
|
79825
|
+
f = message.getCode();
|
|
79826
|
+
if (f !== 0) {
|
|
79827
|
+
writer.writeInt32(1, f);
|
|
79828
|
+
}
|
|
79829
|
+
f = message.getMessage();
|
|
79830
|
+
if (f.length > 0) {
|
|
79831
|
+
writer.writeString(2, f);
|
|
79832
|
+
}
|
|
79833
|
+
f = message.getData();
|
|
79834
|
+
if (f != null) {
|
|
79835
|
+
writer.writeMessage(3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
79836
|
+
}
|
|
79837
|
+
};
|
|
79838
|
+
/**
|
|
79839
|
+
* optional int32 code = 1;
|
|
79840
|
+
* @return {number}
|
|
79841
|
+
*/
|
|
79842
|
+
proto.clarifai.api.MCPError.prototype.getCode = function () {
|
|
79843
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
79844
|
+
};
|
|
79845
|
+
/**
|
|
79846
|
+
* @param {number} value
|
|
79847
|
+
* @return {!proto.clarifai.api.MCPError} returns this
|
|
79848
|
+
*/
|
|
79849
|
+
proto.clarifai.api.MCPError.prototype.setCode = function (value) {
|
|
79850
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
79851
|
+
};
|
|
79852
|
+
/**
|
|
79853
|
+
* optional string message = 2;
|
|
79854
|
+
* @return {string}
|
|
79855
|
+
*/
|
|
79856
|
+
proto.clarifai.api.MCPError.prototype.getMessage = function () {
|
|
79857
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
79858
|
+
};
|
|
79859
|
+
/**
|
|
79860
|
+
* @param {string} value
|
|
79861
|
+
* @return {!proto.clarifai.api.MCPError} returns this
|
|
79862
|
+
*/
|
|
79863
|
+
proto.clarifai.api.MCPError.prototype.setMessage = function (value) {
|
|
79864
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
79865
|
+
};
|
|
79866
|
+
/**
|
|
79867
|
+
* optional google.protobuf.Struct data = 3;
|
|
79868
|
+
* @return {?proto.google.protobuf.Struct}
|
|
79869
|
+
*/
|
|
79870
|
+
proto.clarifai.api.MCPError.prototype.getData = function () {
|
|
79871
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
|
|
79872
|
+
};
|
|
79873
|
+
/**
|
|
79874
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
79875
|
+
* @return {!proto.clarifai.api.MCPError} returns this
|
|
79876
|
+
*/
|
|
79877
|
+
proto.clarifai.api.MCPError.prototype.setData = function (value) {
|
|
79878
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
79879
|
+
};
|
|
79880
|
+
/**
|
|
79881
|
+
* Clears the message field making it undefined.
|
|
79882
|
+
* @return {!proto.clarifai.api.MCPError} returns this
|
|
79883
|
+
*/
|
|
79884
|
+
proto.clarifai.api.MCPError.prototype.clearData = function () {
|
|
79885
|
+
return this.setData(undefined);
|
|
79886
|
+
};
|
|
79887
|
+
/**
|
|
79888
|
+
* Returns whether this field is set.
|
|
79889
|
+
* @return {boolean}
|
|
79890
|
+
*/
|
|
79891
|
+
proto.clarifai.api.MCPError.prototype.hasData = function () {
|
|
79892
|
+
return jspb.Message.getField(this, 3) != null;
|
|
79893
|
+
};
|
|
79894
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
79895
|
+
/**
|
|
79896
|
+
* Creates an object representation of this proto.
|
|
79897
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
79898
|
+
* Optional fields that are not set will be set to undefined.
|
|
79899
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79900
|
+
* For the list of reserved names please see:
|
|
79901
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79902
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
79903
|
+
* JSPB instance for transitional soy proto support:
|
|
79904
|
+
* http://goto/soy-param-migration
|
|
79905
|
+
* @return {!Object}
|
|
79906
|
+
*/
|
|
79907
|
+
proto.clarifai.api.SingleMCPResponse.prototype.toObject = function (opt_includeInstance) {
|
|
79908
|
+
return proto.clarifai.api.SingleMCPResponse.toObject(opt_includeInstance, this);
|
|
79909
|
+
};
|
|
79910
|
+
/**
|
|
79911
|
+
* Static version of the {@see toObject} method.
|
|
79912
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
79913
|
+
* the JSPB instance for transitional soy proto support:
|
|
79914
|
+
* http://goto/soy-param-migration
|
|
79915
|
+
* @param {!proto.clarifai.api.SingleMCPResponse} msg The msg instance to transform.
|
|
79916
|
+
* @return {!Object}
|
|
79917
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79918
|
+
*/
|
|
79919
|
+
proto.clarifai.api.SingleMCPResponse.toObject = function (includeInstance, msg) {
|
|
79920
|
+
var f, obj = {
|
|
79921
|
+
jsonrpc: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
79922
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
79923
|
+
result: (f = msg.getResult()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
79924
|
+
error: (f = msg.getError()) && proto.clarifai.api.MCPError.toObject(includeInstance, f),
|
|
79925
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
79926
|
+
};
|
|
79927
|
+
if (includeInstance) {
|
|
79928
|
+
obj.$jspbMessageInstance = msg;
|
|
79929
|
+
}
|
|
79930
|
+
return obj;
|
|
79931
|
+
};
|
|
79932
|
+
}
|
|
79933
|
+
/**
|
|
79934
|
+
* Deserializes binary data (in protobuf wire format).
|
|
79935
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
79936
|
+
* @return {!proto.clarifai.api.SingleMCPResponse}
|
|
79937
|
+
*/
|
|
79938
|
+
proto.clarifai.api.SingleMCPResponse.deserializeBinary = function (bytes) {
|
|
79939
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
79940
|
+
var msg = new proto.clarifai.api.SingleMCPResponse;
|
|
79941
|
+
return proto.clarifai.api.SingleMCPResponse.deserializeBinaryFromReader(msg, reader);
|
|
79942
|
+
};
|
|
79943
|
+
/**
|
|
79944
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
79945
|
+
* given reader into the given message object.
|
|
79946
|
+
* @param {!proto.clarifai.api.SingleMCPResponse} msg The message object to deserialize into.
|
|
79947
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
79948
|
+
* @return {!proto.clarifai.api.SingleMCPResponse}
|
|
79949
|
+
*/
|
|
79950
|
+
proto.clarifai.api.SingleMCPResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
79951
|
+
while (reader.nextField()) {
|
|
79952
|
+
if (reader.isEndGroup()) {
|
|
79953
|
+
break;
|
|
79954
|
+
}
|
|
79955
|
+
var field = reader.getFieldNumber();
|
|
79956
|
+
switch (field) {
|
|
79957
|
+
case 1:
|
|
79958
|
+
var value = /** @type {string} */ (reader.readString());
|
|
79959
|
+
msg.setJsonrpc(value);
|
|
79960
|
+
break;
|
|
79961
|
+
case 2:
|
|
79962
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
79963
|
+
msg.setId(value);
|
|
79964
|
+
break;
|
|
79965
|
+
case 3:
|
|
79966
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
79967
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
79968
|
+
msg.setResult(value);
|
|
79969
|
+
break;
|
|
79970
|
+
case 4:
|
|
79971
|
+
var value = new proto.clarifai.api.MCPError;
|
|
79972
|
+
reader.readMessage(value, proto.clarifai.api.MCPError.deserializeBinaryFromReader);
|
|
79973
|
+
msg.setError(value);
|
|
79974
|
+
break;
|
|
79975
|
+
case 5:
|
|
79976
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
79977
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
79978
|
+
msg.setStatus(value);
|
|
79979
|
+
break;
|
|
79980
|
+
default:
|
|
79981
|
+
reader.skipField();
|
|
79982
|
+
break;
|
|
79983
|
+
}
|
|
79984
|
+
}
|
|
79985
|
+
return msg;
|
|
79986
|
+
};
|
|
79987
|
+
/**
|
|
79988
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
79989
|
+
* @return {!Uint8Array}
|
|
79990
|
+
*/
|
|
79991
|
+
proto.clarifai.api.SingleMCPResponse.prototype.serializeBinary = function () {
|
|
79992
|
+
var writer = new jspb.BinaryWriter();
|
|
79993
|
+
proto.clarifai.api.SingleMCPResponse.serializeBinaryToWriter(this, writer);
|
|
79994
|
+
return writer.getResultBuffer();
|
|
79995
|
+
};
|
|
79996
|
+
/**
|
|
79997
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
79998
|
+
* format), writing to the given BinaryWriter.
|
|
79999
|
+
* @param {!proto.clarifai.api.SingleMCPResponse} message
|
|
80000
|
+
* @param {!jspb.BinaryWriter} writer
|
|
80001
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
80002
|
+
*/
|
|
80003
|
+
proto.clarifai.api.SingleMCPResponse.serializeBinaryToWriter = function (message, writer) {
|
|
80004
|
+
var f = undefined;
|
|
80005
|
+
f = message.getJsonrpc();
|
|
80006
|
+
if (f.length > 0) {
|
|
80007
|
+
writer.writeString(1, f);
|
|
80008
|
+
}
|
|
80009
|
+
f = message.getId();
|
|
80010
|
+
if (f !== 0) {
|
|
80011
|
+
writer.writeUint32(2, f);
|
|
80012
|
+
}
|
|
80013
|
+
f = message.getResult();
|
|
80014
|
+
if (f != null) {
|
|
80015
|
+
writer.writeMessage(3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
80016
|
+
}
|
|
80017
|
+
f = message.getError();
|
|
80018
|
+
if (f != null) {
|
|
80019
|
+
writer.writeMessage(4, f, proto.clarifai.api.MCPError.serializeBinaryToWriter);
|
|
80020
|
+
}
|
|
80021
|
+
f = message.getStatus();
|
|
80022
|
+
if (f != null) {
|
|
80023
|
+
writer.writeMessage(5, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
80024
|
+
}
|
|
80025
|
+
};
|
|
80026
|
+
/**
|
|
80027
|
+
* optional string jsonrpc = 1;
|
|
80028
|
+
* @return {string}
|
|
80029
|
+
*/
|
|
80030
|
+
proto.clarifai.api.SingleMCPResponse.prototype.getJsonrpc = function () {
|
|
80031
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
80032
|
+
};
|
|
80033
|
+
/**
|
|
80034
|
+
* @param {string} value
|
|
80035
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80036
|
+
*/
|
|
80037
|
+
proto.clarifai.api.SingleMCPResponse.prototype.setJsonrpc = function (value) {
|
|
80038
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
80039
|
+
};
|
|
80040
|
+
/**
|
|
80041
|
+
* optional uint32 id = 2;
|
|
80042
|
+
* @return {number}
|
|
80043
|
+
*/
|
|
80044
|
+
proto.clarifai.api.SingleMCPResponse.prototype.getId = function () {
|
|
80045
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
80046
|
+
};
|
|
80047
|
+
/**
|
|
80048
|
+
* @param {number} value
|
|
80049
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80050
|
+
*/
|
|
80051
|
+
proto.clarifai.api.SingleMCPResponse.prototype.setId = function (value) {
|
|
80052
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
80053
|
+
};
|
|
80054
|
+
/**
|
|
80055
|
+
* optional google.protobuf.Struct result = 3;
|
|
80056
|
+
* @return {?proto.google.protobuf.Struct}
|
|
80057
|
+
*/
|
|
80058
|
+
proto.clarifai.api.SingleMCPResponse.prototype.getResult = function () {
|
|
80059
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
|
|
80060
|
+
};
|
|
80061
|
+
/**
|
|
80062
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
80063
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80064
|
+
*/
|
|
80065
|
+
proto.clarifai.api.SingleMCPResponse.prototype.setResult = function (value) {
|
|
80066
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
80067
|
+
};
|
|
80068
|
+
/**
|
|
80069
|
+
* Clears the message field making it undefined.
|
|
80070
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80071
|
+
*/
|
|
80072
|
+
proto.clarifai.api.SingleMCPResponse.prototype.clearResult = function () {
|
|
80073
|
+
return this.setResult(undefined);
|
|
80074
|
+
};
|
|
80075
|
+
/**
|
|
80076
|
+
* Returns whether this field is set.
|
|
80077
|
+
* @return {boolean}
|
|
80078
|
+
*/
|
|
80079
|
+
proto.clarifai.api.SingleMCPResponse.prototype.hasResult = function () {
|
|
80080
|
+
return jspb.Message.getField(this, 3) != null;
|
|
80081
|
+
};
|
|
80082
|
+
/**
|
|
80083
|
+
* optional MCPError error = 4;
|
|
80084
|
+
* @return {?proto.clarifai.api.MCPError}
|
|
80085
|
+
*/
|
|
80086
|
+
proto.clarifai.api.SingleMCPResponse.prototype.getError = function () {
|
|
80087
|
+
return /** @type{?proto.clarifai.api.MCPError} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.MCPError, 4));
|
|
80088
|
+
};
|
|
80089
|
+
/**
|
|
80090
|
+
* @param {?proto.clarifai.api.MCPError|undefined} value
|
|
80091
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80092
|
+
*/
|
|
80093
|
+
proto.clarifai.api.SingleMCPResponse.prototype.setError = function (value) {
|
|
80094
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
80095
|
+
};
|
|
80096
|
+
/**
|
|
80097
|
+
* Clears the message field making it undefined.
|
|
80098
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80099
|
+
*/
|
|
80100
|
+
proto.clarifai.api.SingleMCPResponse.prototype.clearError = function () {
|
|
80101
|
+
return this.setError(undefined);
|
|
80102
|
+
};
|
|
80103
|
+
/**
|
|
80104
|
+
* Returns whether this field is set.
|
|
80105
|
+
* @return {boolean}
|
|
80106
|
+
*/
|
|
80107
|
+
proto.clarifai.api.SingleMCPResponse.prototype.hasError = function () {
|
|
80108
|
+
return jspb.Message.getField(this, 4) != null;
|
|
80109
|
+
};
|
|
80110
|
+
/**
|
|
80111
|
+
* optional status.Status status = 5;
|
|
80112
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
80113
|
+
*/
|
|
80114
|
+
proto.clarifai.api.SingleMCPResponse.prototype.getStatus = function () {
|
|
80115
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5));
|
|
80116
|
+
};
|
|
80117
|
+
/**
|
|
80118
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
80119
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80120
|
+
*/
|
|
80121
|
+
proto.clarifai.api.SingleMCPResponse.prototype.setStatus = function (value) {
|
|
80122
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
80123
|
+
};
|
|
80124
|
+
/**
|
|
80125
|
+
* Clears the message field making it undefined.
|
|
80126
|
+
* @return {!proto.clarifai.api.SingleMCPResponse} returns this
|
|
80127
|
+
*/
|
|
80128
|
+
proto.clarifai.api.SingleMCPResponse.prototype.clearStatus = function () {
|
|
80129
|
+
return this.setStatus(undefined);
|
|
80130
|
+
};
|
|
80131
|
+
/**
|
|
80132
|
+
* Returns whether this field is set.
|
|
80133
|
+
* @return {boolean}
|
|
80134
|
+
*/
|
|
80135
|
+
proto.clarifai.api.SingleMCPResponse.prototype.hasStatus = function () {
|
|
80136
|
+
return jspb.Message.getField(this, 5) != null;
|
|
80137
|
+
};
|
|
79278
80138
|
/**
|
|
79279
80139
|
* @enum {number}
|
|
79280
80140
|
*/
|