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
|
@@ -192,6 +192,8 @@ 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);
|
|
195
197
|
goog.exportSymbol('proto.clarifai.api.ModelVersionPublishRequest', null, global);
|
|
196
198
|
goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, global);
|
|
197
199
|
goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
|
|
@@ -402,6 +404,7 @@ goog.exportSymbol('proto.clarifai.api.SingleInputsExtractionJobResponse', null,
|
|
|
402
404
|
goog.exportSymbol('proto.clarifai.api.SingleInstalledModuleVersionResponse', null, global);
|
|
403
405
|
goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global);
|
|
404
406
|
goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global);
|
|
407
|
+
goog.exportSymbol('proto.clarifai.api.SingleMCPResponse', null, global);
|
|
405
408
|
goog.exportSymbol('proto.clarifai.api.SingleModelResponse', null, global);
|
|
406
409
|
goog.exportSymbol('proto.clarifai.api.SingleModelTypeResponse', null, global);
|
|
407
410
|
goog.exportSymbol('proto.clarifai.api.SingleModelVersionExportResponse', null, global);
|
|
@@ -8260,6 +8263,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
8260
8263
|
*/
|
|
8261
8264
|
proto.clarifai.api.PostModelMigrationRequest.displayName = 'proto.clarifai.api.PostModelMigrationRequest';
|
|
8262
8265
|
}
|
|
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
|
+
}
|
|
8263
8329
|
|
|
8264
8330
|
|
|
8265
8331
|
|
|
@@ -32011,7 +32077,8 @@ proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance,
|
|
|
32011
32077
|
proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
|
|
32012
32078
|
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
32013
32079
|
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f),
|
|
32014
|
-
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
32080
|
+
usePredictCache: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
32081
|
+
enableLogSummaryOnError: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
32015
32082
|
};
|
|
32016
32083
|
|
|
32017
32084
|
if (includeInstance) {
|
|
@@ -32080,6 +32147,10 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
|
|
|
32080
32147
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
32081
32148
|
msg.setUsePredictCache(value);
|
|
32082
32149
|
break;
|
|
32150
|
+
case 8:
|
|
32151
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
32152
|
+
msg.setEnableLogSummaryOnError(value);
|
|
32153
|
+
break;
|
|
32083
32154
|
default:
|
|
32084
32155
|
reader.skipField();
|
|
32085
32156
|
break;
|
|
@@ -32162,6 +32233,13 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(me
|
|
|
32162
32233
|
f
|
|
32163
32234
|
);
|
|
32164
32235
|
}
|
|
32236
|
+
f = message.getEnableLogSummaryOnError();
|
|
32237
|
+
if (f) {
|
|
32238
|
+
writer.writeBool(
|
|
32239
|
+
8,
|
|
32240
|
+
f
|
|
32241
|
+
);
|
|
32242
|
+
}
|
|
32165
32243
|
};
|
|
32166
32244
|
|
|
32167
32245
|
|
|
@@ -32368,6 +32446,24 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.setUsePredictCache = functi
|
|
|
32368
32446
|
};
|
|
32369
32447
|
|
|
32370
32448
|
|
|
32449
|
+
/**
|
|
32450
|
+
* optional bool enable_log_summary_on_error = 8;
|
|
32451
|
+
* @return {boolean}
|
|
32452
|
+
*/
|
|
32453
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.getEnableLogSummaryOnError = function() {
|
|
32454
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
32455
|
+
};
|
|
32456
|
+
|
|
32457
|
+
|
|
32458
|
+
/**
|
|
32459
|
+
* @param {boolean} value
|
|
32460
|
+
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
|
|
32461
|
+
*/
|
|
32462
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.setEnableLogSummaryOnError = function(value) {
|
|
32463
|
+
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
32464
|
+
};
|
|
32465
|
+
|
|
32466
|
+
|
|
32371
32467
|
|
|
32372
32468
|
|
|
32373
32469
|
|
|
@@ -34146,7 +34242,8 @@ proto.clarifai.api.ListKeysRequest.toObject = function(includeInstance, msg) {
|
|
|
34146
34242
|
perPage: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
34147
34243
|
notExpired: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
34148
34244
|
scopesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
34149
|
-
endpointsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
|
|
34245
|
+
endpointsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
34246
|
+
type: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
34150
34247
|
};
|
|
34151
34248
|
|
|
34152
34249
|
if (includeInstance) {
|
|
@@ -34208,6 +34305,10 @@ proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
34208
34305
|
var value = /** @type {string} */ (reader.readString());
|
|
34209
34306
|
msg.addEndpoints(value);
|
|
34210
34307
|
break;
|
|
34308
|
+
case 7:
|
|
34309
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34310
|
+
msg.setType(value);
|
|
34311
|
+
break;
|
|
34211
34312
|
default:
|
|
34212
34313
|
reader.skipField();
|
|
34213
34314
|
break;
|
|
@@ -34280,6 +34381,13 @@ proto.clarifai.api.ListKeysRequest.serializeBinaryToWriter = function(message, w
|
|
|
34280
34381
|
f
|
|
34281
34382
|
);
|
|
34282
34383
|
}
|
|
34384
|
+
f = message.getType();
|
|
34385
|
+
if (f.length > 0) {
|
|
34386
|
+
writer.writeString(
|
|
34387
|
+
7,
|
|
34388
|
+
f
|
|
34389
|
+
);
|
|
34390
|
+
}
|
|
34283
34391
|
};
|
|
34284
34392
|
|
|
34285
34393
|
|
|
@@ -34448,6 +34556,24 @@ proto.clarifai.api.ListKeysRequest.prototype.clearEndpointsList = function() {
|
|
|
34448
34556
|
};
|
|
34449
34557
|
|
|
34450
34558
|
|
|
34559
|
+
/**
|
|
34560
|
+
* optional string type = 7;
|
|
34561
|
+
* @return {string}
|
|
34562
|
+
*/
|
|
34563
|
+
proto.clarifai.api.ListKeysRequest.prototype.getType = function() {
|
|
34564
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
34565
|
+
};
|
|
34566
|
+
|
|
34567
|
+
|
|
34568
|
+
/**
|
|
34569
|
+
* @param {string} value
|
|
34570
|
+
* @return {!proto.clarifai.api.ListKeysRequest} returns this
|
|
34571
|
+
*/
|
|
34572
|
+
proto.clarifai.api.ListKeysRequest.prototype.setType = function(value) {
|
|
34573
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
34574
|
+
};
|
|
34575
|
+
|
|
34576
|
+
|
|
34451
34577
|
|
|
34452
34578
|
|
|
34453
34579
|
|
|
@@ -52511,7 +52637,8 @@ proto.clarifai.api.MultiOutputResponse.toObject = function(includeInstance, msg)
|
|
|
52511
52637
|
var f, obj = {
|
|
52512
52638
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
52513
52639
|
outputsList: jspb.Message.toObjectList(msg.getOutputsList(),
|
|
52514
|
-
proto_clarifai_api_resources_pb.Output.toObject, includeInstance)
|
|
52640
|
+
proto_clarifai_api_resources_pb.Output.toObject, includeInstance),
|
|
52641
|
+
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
|
|
52515
52642
|
};
|
|
52516
52643
|
|
|
52517
52644
|
if (includeInstance) {
|
|
@@ -52558,6 +52685,11 @@ proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader = function(ms
|
|
|
52558
52685
|
reader.readMessage(value,proto_clarifai_api_resources_pb.Output.deserializeBinaryFromReader);
|
|
52559
52686
|
msg.addOutputs(value);
|
|
52560
52687
|
break;
|
|
52688
|
+
case 3:
|
|
52689
|
+
var value = new proto_clarifai_api_resources_pb.RunnerSelector;
|
|
52690
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
|
|
52691
|
+
msg.setRunnerSelector(value);
|
|
52692
|
+
break;
|
|
52561
52693
|
default:
|
|
52562
52694
|
reader.skipField();
|
|
52563
52695
|
break;
|
|
@@ -52603,6 +52735,14 @@ proto.clarifai.api.MultiOutputResponse.serializeBinaryToWriter = function(messag
|
|
|
52603
52735
|
proto_clarifai_api_resources_pb.Output.serializeBinaryToWriter
|
|
52604
52736
|
);
|
|
52605
52737
|
}
|
|
52738
|
+
f = message.getRunnerSelector();
|
|
52739
|
+
if (f != null) {
|
|
52740
|
+
writer.writeMessage(
|
|
52741
|
+
3,
|
|
52742
|
+
f,
|
|
52743
|
+
proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter
|
|
52744
|
+
);
|
|
52745
|
+
}
|
|
52606
52746
|
};
|
|
52607
52747
|
|
|
52608
52748
|
|
|
@@ -52681,6 +52821,43 @@ proto.clarifai.api.MultiOutputResponse.prototype.clearOutputsList = function() {
|
|
|
52681
52821
|
};
|
|
52682
52822
|
|
|
52683
52823
|
|
|
52824
|
+
/**
|
|
52825
|
+
* optional RunnerSelector runner_selector = 3;
|
|
52826
|
+
* @return {?proto.clarifai.api.RunnerSelector}
|
|
52827
|
+
*/
|
|
52828
|
+
proto.clarifai.api.MultiOutputResponse.prototype.getRunnerSelector = function() {
|
|
52829
|
+
return /** @type{?proto.clarifai.api.RunnerSelector} */ (
|
|
52830
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.RunnerSelector, 3));
|
|
52831
|
+
};
|
|
52832
|
+
|
|
52833
|
+
|
|
52834
|
+
/**
|
|
52835
|
+
* @param {?proto.clarifai.api.RunnerSelector|undefined} value
|
|
52836
|
+
* @return {!proto.clarifai.api.MultiOutputResponse} returns this
|
|
52837
|
+
*/
|
|
52838
|
+
proto.clarifai.api.MultiOutputResponse.prototype.setRunnerSelector = function(value) {
|
|
52839
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
52840
|
+
};
|
|
52841
|
+
|
|
52842
|
+
|
|
52843
|
+
/**
|
|
52844
|
+
* Clears the message field making it undefined.
|
|
52845
|
+
* @return {!proto.clarifai.api.MultiOutputResponse} returns this
|
|
52846
|
+
*/
|
|
52847
|
+
proto.clarifai.api.MultiOutputResponse.prototype.clearRunnerSelector = function() {
|
|
52848
|
+
return this.setRunnerSelector(undefined);
|
|
52849
|
+
};
|
|
52850
|
+
|
|
52851
|
+
|
|
52852
|
+
/**
|
|
52853
|
+
* Returns whether this field is set.
|
|
52854
|
+
* @return {boolean}
|
|
52855
|
+
*/
|
|
52856
|
+
proto.clarifai.api.MultiOutputResponse.prototype.hasRunnerSelector = function() {
|
|
52857
|
+
return jspb.Message.getField(this, 3) != null;
|
|
52858
|
+
};
|
|
52859
|
+
|
|
52860
|
+
|
|
52684
52861
|
|
|
52685
52862
|
/**
|
|
52686
52863
|
* List of repeated fields within this message type.
|
|
@@ -94110,7 +94287,8 @@ proto.clarifai.api.ListDeploymentsRequest.toObject = function(includeInstance, m
|
|
|
94110
94287
|
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
94111
94288
|
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
94112
94289
|
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
94113
|
-
workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
|
|
94290
|
+
workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
94291
|
+
computeClusterId: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
94114
94292
|
};
|
|
94115
94293
|
|
|
94116
94294
|
if (includeInstance) {
|
|
@@ -94172,6 +94350,10 @@ proto.clarifai.api.ListDeploymentsRequest.deserializeBinaryFromReader = function
|
|
|
94172
94350
|
var value = /** @type {string} */ (reader.readString());
|
|
94173
94351
|
msg.addWorkflowVersionIds(value);
|
|
94174
94352
|
break;
|
|
94353
|
+
case 7:
|
|
94354
|
+
var value = /** @type {string} */ (reader.readString());
|
|
94355
|
+
msg.setComputeClusterId(value);
|
|
94356
|
+
break;
|
|
94175
94357
|
default:
|
|
94176
94358
|
reader.skipField();
|
|
94177
94359
|
break;
|
|
@@ -94244,6 +94426,13 @@ proto.clarifai.api.ListDeploymentsRequest.serializeBinaryToWriter = function(mes
|
|
|
94244
94426
|
f
|
|
94245
94427
|
);
|
|
94246
94428
|
}
|
|
94429
|
+
f = message.getComputeClusterId();
|
|
94430
|
+
if (f.length > 0) {
|
|
94431
|
+
writer.writeString(
|
|
94432
|
+
7,
|
|
94433
|
+
f
|
|
94434
|
+
);
|
|
94435
|
+
}
|
|
94247
94436
|
};
|
|
94248
94437
|
|
|
94249
94438
|
|
|
@@ -94412,6 +94601,24 @@ proto.clarifai.api.ListDeploymentsRequest.prototype.clearWorkflowVersionIdsList
|
|
|
94412
94601
|
};
|
|
94413
94602
|
|
|
94414
94603
|
|
|
94604
|
+
/**
|
|
94605
|
+
* optional string compute_cluster_id = 7;
|
|
94606
|
+
* @return {string}
|
|
94607
|
+
*/
|
|
94608
|
+
proto.clarifai.api.ListDeploymentsRequest.prototype.getComputeClusterId = function() {
|
|
94609
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
94610
|
+
};
|
|
94611
|
+
|
|
94612
|
+
|
|
94613
|
+
/**
|
|
94614
|
+
* @param {string} value
|
|
94615
|
+
* @return {!proto.clarifai.api.ListDeploymentsRequest} returns this
|
|
94616
|
+
*/
|
|
94617
|
+
proto.clarifai.api.ListDeploymentsRequest.prototype.setComputeClusterId = function(value) {
|
|
94618
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
94619
|
+
};
|
|
94620
|
+
|
|
94621
|
+
|
|
94415
94622
|
|
|
94416
94623
|
/**
|
|
94417
94624
|
* List of repeated fields within this message type.
|
|
@@ -98021,6 +98228,882 @@ proto.clarifai.api.PostModelMigrationRequest.prototype.setModelId = function(val
|
|
|
98021
98228
|
};
|
|
98022
98229
|
|
|
98023
98230
|
|
|
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
|
+
|
|
98024
99107
|
/**
|
|
98025
99108
|
* @enum {number}
|
|
98026
99109
|
*/
|