clarifai-web-grpc 10.3.0 → 10.3.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 +512 -3
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +38 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +311 -29
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +4 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +512 -3
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +38 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +311 -29
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +4 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +88 -0
- package/proto/clarifai/api/resources_pb.js +634 -3
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +10 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +56 -0
- package/proto/clarifai/api/service_pb.d.ts +58 -8
- package/proto/clarifai/api/service_pb.js +388 -29
- package/proto/clarifai/api/status/status_code_pb.d.ts +4 -0
- package/proto/clarifai/api/status/status_code_pb.js +4 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.3.
|
|
1
|
+
10.3.1
|
|
@@ -54,6 +54,7 @@ goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
|
|
|
54
54
|
goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
|
|
55
55
|
goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
|
|
56
56
|
goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
57
|
+
goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
|
|
57
58
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
58
59
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
59
60
|
goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
|
|
@@ -106,6 +107,7 @@ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetrics', null, global);
|
|
|
106
107
|
goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global);
|
|
107
108
|
goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
|
|
108
109
|
goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global);
|
|
110
|
+
goog.exportSymbol('proto.clarifai.api.DatasetVersionRequestOrigin', null, global);
|
|
109
111
|
goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
|
|
110
112
|
goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
|
|
111
113
|
goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
|
|
@@ -203,6 +205,7 @@ goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
|
|
|
203
205
|
goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
|
|
204
206
|
goog.exportSymbol('proto.clarifai.api.PrecisionRecallCurve', null, global);
|
|
205
207
|
goog.exportSymbol('proto.clarifai.api.PretrainedModelConfig', null, global);
|
|
208
|
+
goog.exportSymbol('proto.clarifai.api.ProcessingInfo', null, global);
|
|
206
209
|
goog.exportSymbol('proto.clarifai.api.Progress', null, global);
|
|
207
210
|
goog.exportSymbol('proto.clarifai.api.Query', null, global);
|
|
208
211
|
goog.exportSymbol('proto.clarifai.api.ROC', null, global);
|
|
@@ -212,6 +215,7 @@ goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
|
212
215
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
213
216
|
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
214
217
|
goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
|
|
218
|
+
goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
|
|
215
219
|
goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
|
|
216
220
|
goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
|
|
217
221
|
goog.exportSymbol('proto.clarifai.api.Search', null, global);
|
|
@@ -386,6 +390,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
386
390
|
*/
|
|
387
391
|
proto.clarifai.api.AppQuery.displayName = 'proto.clarifai.api.AppQuery';
|
|
388
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* Generated by JsPbCodeGenerator.
|
|
395
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
396
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
397
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
398
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
399
|
+
* valid.
|
|
400
|
+
* @extends {jspb.Message}
|
|
401
|
+
* @constructor
|
|
402
|
+
*/
|
|
403
|
+
proto.clarifai.api.AppResourceCounts = function (opt_data) {
|
|
404
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
405
|
+
};
|
|
406
|
+
goog.inherits(proto.clarifai.api.AppResourceCounts, jspb.Message);
|
|
407
|
+
if (goog.DEBUG && !COMPILED) {
|
|
408
|
+
/**
|
|
409
|
+
* @public
|
|
410
|
+
* @override
|
|
411
|
+
*/
|
|
412
|
+
proto.clarifai.api.AppResourceCounts.displayName = 'proto.clarifai.api.AppResourceCounts';
|
|
413
|
+
}
|
|
389
414
|
/**
|
|
390
415
|
* Generated by JsPbCodeGenerator.
|
|
391
416
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4607,6 +4632,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4607
4632
|
*/
|
|
4608
4633
|
proto.clarifai.api.RunnerSelector.displayName = 'proto.clarifai.api.RunnerSelector';
|
|
4609
4634
|
}
|
|
4635
|
+
/**
|
|
4636
|
+
* Generated by JsPbCodeGenerator.
|
|
4637
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4638
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4639
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4640
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4641
|
+
* valid.
|
|
4642
|
+
* @extends {jspb.Message}
|
|
4643
|
+
* @constructor
|
|
4644
|
+
*/
|
|
4645
|
+
proto.clarifai.api.ProcessingInfo = function (opt_data) {
|
|
4646
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4647
|
+
};
|
|
4648
|
+
goog.inherits(proto.clarifai.api.ProcessingInfo, jspb.Message);
|
|
4649
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4650
|
+
/**
|
|
4651
|
+
* @public
|
|
4652
|
+
* @override
|
|
4653
|
+
*/
|
|
4654
|
+
proto.clarifai.api.ProcessingInfo.displayName = 'proto.clarifai.api.ProcessingInfo';
|
|
4655
|
+
}
|
|
4610
4656
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4611
4657
|
/**
|
|
4612
4658
|
* Creates an object representation of this proto.
|
|
@@ -6039,7 +6085,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
6039
6085
|
*/
|
|
6040
6086
|
proto.clarifai.api.AppExtraInfo.toObject = function (includeInstance, msg) {
|
|
6041
6087
|
var f, obj = {
|
|
6042
|
-
searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6088
|
+
searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6089
|
+
counts: (f = msg.getCounts()) && proto.clarifai.api.AppResourceCounts.toObject(includeInstance, f)
|
|
6043
6090
|
};
|
|
6044
6091
|
if (includeInstance) {
|
|
6045
6092
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6075,6 +6122,11 @@ proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader = function (msg, rea
|
|
|
6075
6122
|
var value = /** @type {string} */ (reader.readString());
|
|
6076
6123
|
msg.setSearchRevisionMarker(value);
|
|
6077
6124
|
break;
|
|
6125
|
+
case 2:
|
|
6126
|
+
var value = new proto.clarifai.api.AppResourceCounts;
|
|
6127
|
+
reader.readMessage(value, proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader);
|
|
6128
|
+
msg.setCounts(value);
|
|
6129
|
+
break;
|
|
6078
6130
|
default:
|
|
6079
6131
|
reader.skipField();
|
|
6080
6132
|
break;
|
|
@@ -6104,6 +6156,10 @@ proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter = function (message, wri
|
|
|
6104
6156
|
if (f.length > 0) {
|
|
6105
6157
|
writer.writeString(1, f);
|
|
6106
6158
|
}
|
|
6159
|
+
f = message.getCounts();
|
|
6160
|
+
if (f != null) {
|
|
6161
|
+
writer.writeMessage(2, f, proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter);
|
|
6162
|
+
}
|
|
6107
6163
|
};
|
|
6108
6164
|
/**
|
|
6109
6165
|
* optional string search_revision_marker = 1;
|
|
@@ -6119,6 +6175,34 @@ proto.clarifai.api.AppExtraInfo.prototype.getSearchRevisionMarker = function ()
|
|
|
6119
6175
|
proto.clarifai.api.AppExtraInfo.prototype.setSearchRevisionMarker = function (value) {
|
|
6120
6176
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6121
6177
|
};
|
|
6178
|
+
/**
|
|
6179
|
+
* optional AppResourceCounts counts = 2;
|
|
6180
|
+
* @return {?proto.clarifai.api.AppResourceCounts}
|
|
6181
|
+
*/
|
|
6182
|
+
proto.clarifai.api.AppExtraInfo.prototype.getCounts = function () {
|
|
6183
|
+
return /** @type{?proto.clarifai.api.AppResourceCounts} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AppResourceCounts, 2));
|
|
6184
|
+
};
|
|
6185
|
+
/**
|
|
6186
|
+
* @param {?proto.clarifai.api.AppResourceCounts|undefined} value
|
|
6187
|
+
* @return {!proto.clarifai.api.AppExtraInfo} returns this
|
|
6188
|
+
*/
|
|
6189
|
+
proto.clarifai.api.AppExtraInfo.prototype.setCounts = function (value) {
|
|
6190
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6191
|
+
};
|
|
6192
|
+
/**
|
|
6193
|
+
* Clears the message field making it undefined.
|
|
6194
|
+
* @return {!proto.clarifai.api.AppExtraInfo} returns this
|
|
6195
|
+
*/
|
|
6196
|
+
proto.clarifai.api.AppExtraInfo.prototype.clearCounts = function () {
|
|
6197
|
+
return this.setCounts(undefined);
|
|
6198
|
+
};
|
|
6199
|
+
/**
|
|
6200
|
+
* Returns whether this field is set.
|
|
6201
|
+
* @return {boolean}
|
|
6202
|
+
*/
|
|
6203
|
+
proto.clarifai.api.AppExtraInfo.prototype.hasCounts = function () {
|
|
6204
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6205
|
+
};
|
|
6122
6206
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6123
6207
|
/**
|
|
6124
6208
|
* Creates an object representation of this proto.
|
|
@@ -6226,6 +6310,205 @@ proto.clarifai.api.AppQuery.prototype.getName = function () {
|
|
|
6226
6310
|
proto.clarifai.api.AppQuery.prototype.setName = function (value) {
|
|
6227
6311
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6228
6312
|
};
|
|
6313
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6314
|
+
/**
|
|
6315
|
+
* Creates an object representation of this proto.
|
|
6316
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6317
|
+
* Optional fields that are not set will be set to undefined.
|
|
6318
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6319
|
+
* For the list of reserved names please see:
|
|
6320
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6321
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6322
|
+
* JSPB instance for transitional soy proto support:
|
|
6323
|
+
* http://goto/soy-param-migration
|
|
6324
|
+
* @return {!Object}
|
|
6325
|
+
*/
|
|
6326
|
+
proto.clarifai.api.AppResourceCounts.prototype.toObject = function (opt_includeInstance) {
|
|
6327
|
+
return proto.clarifai.api.AppResourceCounts.toObject(opt_includeInstance, this);
|
|
6328
|
+
};
|
|
6329
|
+
/**
|
|
6330
|
+
* Static version of the {@see toObject} method.
|
|
6331
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6332
|
+
* the JSPB instance for transitional soy proto support:
|
|
6333
|
+
* http://goto/soy-param-migration
|
|
6334
|
+
* @param {!proto.clarifai.api.AppResourceCounts} msg The msg instance to transform.
|
|
6335
|
+
* @return {!Object}
|
|
6336
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6337
|
+
*/
|
|
6338
|
+
proto.clarifai.api.AppResourceCounts.toObject = function (includeInstance, msg) {
|
|
6339
|
+
var f, obj = {
|
|
6340
|
+
datasets: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
6341
|
+
models: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6342
|
+
workflows: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
6343
|
+
modules: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
6344
|
+
inputs: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
6345
|
+
};
|
|
6346
|
+
if (includeInstance) {
|
|
6347
|
+
obj.$jspbMessageInstance = msg;
|
|
6348
|
+
}
|
|
6349
|
+
return obj;
|
|
6350
|
+
};
|
|
6351
|
+
}
|
|
6352
|
+
/**
|
|
6353
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6354
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6355
|
+
* @return {!proto.clarifai.api.AppResourceCounts}
|
|
6356
|
+
*/
|
|
6357
|
+
proto.clarifai.api.AppResourceCounts.deserializeBinary = function (bytes) {
|
|
6358
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6359
|
+
var msg = new proto.clarifai.api.AppResourceCounts;
|
|
6360
|
+
return proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader(msg, reader);
|
|
6361
|
+
};
|
|
6362
|
+
/**
|
|
6363
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6364
|
+
* given reader into the given message object.
|
|
6365
|
+
* @param {!proto.clarifai.api.AppResourceCounts} msg The message object to deserialize into.
|
|
6366
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6367
|
+
* @return {!proto.clarifai.api.AppResourceCounts}
|
|
6368
|
+
*/
|
|
6369
|
+
proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader = function (msg, reader) {
|
|
6370
|
+
while (reader.nextField()) {
|
|
6371
|
+
if (reader.isEndGroup()) {
|
|
6372
|
+
break;
|
|
6373
|
+
}
|
|
6374
|
+
var field = reader.getFieldNumber();
|
|
6375
|
+
switch (field) {
|
|
6376
|
+
case 1:
|
|
6377
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6378
|
+
msg.setDatasets(value);
|
|
6379
|
+
break;
|
|
6380
|
+
case 2:
|
|
6381
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6382
|
+
msg.setModels(value);
|
|
6383
|
+
break;
|
|
6384
|
+
case 3:
|
|
6385
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6386
|
+
msg.setWorkflows(value);
|
|
6387
|
+
break;
|
|
6388
|
+
case 4:
|
|
6389
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6390
|
+
msg.setModules(value);
|
|
6391
|
+
break;
|
|
6392
|
+
case 5:
|
|
6393
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6394
|
+
msg.setInputs(value);
|
|
6395
|
+
break;
|
|
6396
|
+
default:
|
|
6397
|
+
reader.skipField();
|
|
6398
|
+
break;
|
|
6399
|
+
}
|
|
6400
|
+
}
|
|
6401
|
+
return msg;
|
|
6402
|
+
};
|
|
6403
|
+
/**
|
|
6404
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6405
|
+
* @return {!Uint8Array}
|
|
6406
|
+
*/
|
|
6407
|
+
proto.clarifai.api.AppResourceCounts.prototype.serializeBinary = function () {
|
|
6408
|
+
var writer = new jspb.BinaryWriter();
|
|
6409
|
+
proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter(this, writer);
|
|
6410
|
+
return writer.getResultBuffer();
|
|
6411
|
+
};
|
|
6412
|
+
/**
|
|
6413
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6414
|
+
* format), writing to the given BinaryWriter.
|
|
6415
|
+
* @param {!proto.clarifai.api.AppResourceCounts} message
|
|
6416
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6417
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6418
|
+
*/
|
|
6419
|
+
proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter = function (message, writer) {
|
|
6420
|
+
var f = undefined;
|
|
6421
|
+
f = message.getDatasets();
|
|
6422
|
+
if (f !== 0) {
|
|
6423
|
+
writer.writeInt64(1, f);
|
|
6424
|
+
}
|
|
6425
|
+
f = message.getModels();
|
|
6426
|
+
if (f !== 0) {
|
|
6427
|
+
writer.writeInt64(2, f);
|
|
6428
|
+
}
|
|
6429
|
+
f = message.getWorkflows();
|
|
6430
|
+
if (f !== 0) {
|
|
6431
|
+
writer.writeInt64(3, f);
|
|
6432
|
+
}
|
|
6433
|
+
f = message.getModules();
|
|
6434
|
+
if (f !== 0) {
|
|
6435
|
+
writer.writeInt64(4, f);
|
|
6436
|
+
}
|
|
6437
|
+
f = message.getInputs();
|
|
6438
|
+
if (f !== 0) {
|
|
6439
|
+
writer.writeInt64(5, f);
|
|
6440
|
+
}
|
|
6441
|
+
};
|
|
6442
|
+
/**
|
|
6443
|
+
* optional int64 datasets = 1;
|
|
6444
|
+
* @return {number}
|
|
6445
|
+
*/
|
|
6446
|
+
proto.clarifai.api.AppResourceCounts.prototype.getDatasets = function () {
|
|
6447
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
6448
|
+
};
|
|
6449
|
+
/**
|
|
6450
|
+
* @param {number} value
|
|
6451
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6452
|
+
*/
|
|
6453
|
+
proto.clarifai.api.AppResourceCounts.prototype.setDatasets = function (value) {
|
|
6454
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
6455
|
+
};
|
|
6456
|
+
/**
|
|
6457
|
+
* optional int64 models = 2;
|
|
6458
|
+
* @return {number}
|
|
6459
|
+
*/
|
|
6460
|
+
proto.clarifai.api.AppResourceCounts.prototype.getModels = function () {
|
|
6461
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6462
|
+
};
|
|
6463
|
+
/**
|
|
6464
|
+
* @param {number} value
|
|
6465
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6466
|
+
*/
|
|
6467
|
+
proto.clarifai.api.AppResourceCounts.prototype.setModels = function (value) {
|
|
6468
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
6469
|
+
};
|
|
6470
|
+
/**
|
|
6471
|
+
* optional int64 workflows = 3;
|
|
6472
|
+
* @return {number}
|
|
6473
|
+
*/
|
|
6474
|
+
proto.clarifai.api.AppResourceCounts.prototype.getWorkflows = function () {
|
|
6475
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
6476
|
+
};
|
|
6477
|
+
/**
|
|
6478
|
+
* @param {number} value
|
|
6479
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6480
|
+
*/
|
|
6481
|
+
proto.clarifai.api.AppResourceCounts.prototype.setWorkflows = function (value) {
|
|
6482
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
6483
|
+
};
|
|
6484
|
+
/**
|
|
6485
|
+
* optional int64 modules = 4;
|
|
6486
|
+
* @return {number}
|
|
6487
|
+
*/
|
|
6488
|
+
proto.clarifai.api.AppResourceCounts.prototype.getModules = function () {
|
|
6489
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
6490
|
+
};
|
|
6491
|
+
/**
|
|
6492
|
+
* @param {number} value
|
|
6493
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6494
|
+
*/
|
|
6495
|
+
proto.clarifai.api.AppResourceCounts.prototype.setModules = function (value) {
|
|
6496
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
6497
|
+
};
|
|
6498
|
+
/**
|
|
6499
|
+
* optional int64 inputs = 5;
|
|
6500
|
+
* @return {number}
|
|
6501
|
+
*/
|
|
6502
|
+
proto.clarifai.api.AppResourceCounts.prototype.getInputs = function () {
|
|
6503
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
6504
|
+
};
|
|
6505
|
+
/**
|
|
6506
|
+
* @param {number} value
|
|
6507
|
+
* @return {!proto.clarifai.api.AppResourceCounts} returns this
|
|
6508
|
+
*/
|
|
6509
|
+
proto.clarifai.api.AppResourceCounts.prototype.setInputs = function (value) {
|
|
6510
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
6511
|
+
};
|
|
6229
6512
|
/**
|
|
6230
6513
|
* List of repeated fields within this message type.
|
|
6231
6514
|
* @private {!Array<number>}
|
|
@@ -16368,7 +16651,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
16368
16651
|
exportInfo: (f = msg.getExportInfo()) && proto.clarifai.api.DatasetVersionExportInfo.toObject(includeInstance, f),
|
|
16369
16652
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
16370
16653
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
16371
|
-
embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f
|
|
16654
|
+
embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
|
|
16655
|
+
requestOrigin: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
16372
16656
|
};
|
|
16373
16657
|
if (includeInstance) {
|
|
16374
16658
|
obj.$jspbMessageInstance = msg;
|
|
@@ -16475,6 +16759,10 @@ proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function (msg, r
|
|
|
16475
16759
|
var value = /** @type {string} */ (reader.readString());
|
|
16476
16760
|
msg.addEmbedModelVersionIds(value);
|
|
16477
16761
|
break;
|
|
16762
|
+
case 20:
|
|
16763
|
+
var value = /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (reader.readEnum());
|
|
16764
|
+
msg.setRequestOrigin(value);
|
|
16765
|
+
break;
|
|
16478
16766
|
default:
|
|
16479
16767
|
reader.skipField();
|
|
16480
16768
|
break;
|
|
@@ -16564,6 +16852,10 @@ proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function (message, w
|
|
|
16564
16852
|
if (f.length > 0) {
|
|
16565
16853
|
writer.writeRepeatedString(14, f);
|
|
16566
16854
|
}
|
|
16855
|
+
f = message.getRequestOrigin();
|
|
16856
|
+
if (f !== 0.0) {
|
|
16857
|
+
writer.writeEnum(20, f);
|
|
16858
|
+
}
|
|
16567
16859
|
};
|
|
16568
16860
|
/**
|
|
16569
16861
|
* optional string id = 1;
|
|
@@ -16933,6 +17225,20 @@ proto.clarifai.api.DatasetVersion.prototype.addEmbedModelVersionIds = function (
|
|
|
16933
17225
|
proto.clarifai.api.DatasetVersion.prototype.clearEmbedModelVersionIdsList = function () {
|
|
16934
17226
|
return this.setEmbedModelVersionIdsList([]);
|
|
16935
17227
|
};
|
|
17228
|
+
/**
|
|
17229
|
+
* optional DatasetVersionRequestOrigin request_origin = 20;
|
|
17230
|
+
* @return {!proto.clarifai.api.DatasetVersionRequestOrigin}
|
|
17231
|
+
*/
|
|
17232
|
+
proto.clarifai.api.DatasetVersion.prototype.getRequestOrigin = function () {
|
|
17233
|
+
return /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
|
17234
|
+
};
|
|
17235
|
+
/**
|
|
17236
|
+
* @param {!proto.clarifai.api.DatasetVersionRequestOrigin} value
|
|
17237
|
+
* @return {!proto.clarifai.api.DatasetVersion} returns this
|
|
17238
|
+
*/
|
|
17239
|
+
proto.clarifai.api.DatasetVersion.prototype.setRequestOrigin = function (value) {
|
|
17240
|
+
return jspb.Message.setProto3EnumField(this, 20, value);
|
|
17241
|
+
};
|
|
16936
17242
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16937
17243
|
/**
|
|
16938
17244
|
* Creates an object representation of this proto.
|
|
@@ -40906,7 +41212,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
40906
41212
|
awaitingReview: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
40907
41213
|
success: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
40908
41214
|
reviewDenied: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
40909
|
-
awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
41215
|
+
awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
41216
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
|
|
40910
41217
|
};
|
|
40911
41218
|
if (includeInstance) {
|
|
40912
41219
|
obj.$jspbMessageInstance = msg;
|
|
@@ -40962,6 +41269,11 @@ proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function
|
|
|
40962
41269
|
var value = /** @type {number} */ (reader.readUint32());
|
|
40963
41270
|
msg.setAwaitingConsensusReview(value);
|
|
40964
41271
|
break;
|
|
41272
|
+
case 7:
|
|
41273
|
+
var value = new proto.clarifai.api.Worker;
|
|
41274
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
41275
|
+
msg.setWorker(value);
|
|
41276
|
+
break;
|
|
40965
41277
|
default:
|
|
40966
41278
|
reader.skipField();
|
|
40967
41279
|
break;
|
|
@@ -41011,6 +41323,10 @@ proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter = function (me
|
|
|
41011
41323
|
if (f !== 0) {
|
|
41012
41324
|
writer.writeUint32(6, f);
|
|
41013
41325
|
}
|
|
41326
|
+
f = message.getWorker();
|
|
41327
|
+
if (f != null) {
|
|
41328
|
+
writer.writeMessage(7, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
41329
|
+
}
|
|
41014
41330
|
};
|
|
41015
41331
|
/**
|
|
41016
41332
|
* optional string user_id = 1;
|
|
@@ -41096,6 +41412,34 @@ proto.clarifai.api.TaskStatusCountPerUser.prototype.getAwaitingConsensusReview =
|
|
|
41096
41412
|
proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingConsensusReview = function (value) {
|
|
41097
41413
|
return jspb.Message.setProto3IntField(this, 6, value);
|
|
41098
41414
|
};
|
|
41415
|
+
/**
|
|
41416
|
+
* optional Worker worker = 7;
|
|
41417
|
+
* @return {?proto.clarifai.api.Worker}
|
|
41418
|
+
*/
|
|
41419
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.getWorker = function () {
|
|
41420
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 7));
|
|
41421
|
+
};
|
|
41422
|
+
/**
|
|
41423
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
41424
|
+
* @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
|
|
41425
|
+
*/
|
|
41426
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.setWorker = function (value) {
|
|
41427
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
41428
|
+
};
|
|
41429
|
+
/**
|
|
41430
|
+
* Clears the message field making it undefined.
|
|
41431
|
+
* @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
|
|
41432
|
+
*/
|
|
41433
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.clearWorker = function () {
|
|
41434
|
+
return this.setWorker(undefined);
|
|
41435
|
+
};
|
|
41436
|
+
/**
|
|
41437
|
+
* Returns whether this field is set.
|
|
41438
|
+
* @return {boolean}
|
|
41439
|
+
*/
|
|
41440
|
+
proto.clarifai.api.TaskStatusCountPerUser.prototype.hasWorker = function () {
|
|
41441
|
+
return jspb.Message.getField(this, 7) != null;
|
|
41442
|
+
};
|
|
41099
41443
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
41100
41444
|
/**
|
|
41101
41445
|
* Creates an object representation of this proto.
|
|
@@ -53835,6 +54179,151 @@ proto.clarifai.api.RunnerSelector.prototype.clearDeployment = function () {
|
|
|
53835
54179
|
proto.clarifai.api.RunnerSelector.prototype.hasDeployment = function () {
|
|
53836
54180
|
return jspb.Message.getField(this, 3) != null;
|
|
53837
54181
|
};
|
|
54182
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54183
|
+
/**
|
|
54184
|
+
* Creates an object representation of this proto.
|
|
54185
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54186
|
+
* Optional fields that are not set will be set to undefined.
|
|
54187
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54188
|
+
* For the list of reserved names please see:
|
|
54189
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
54190
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
54191
|
+
* JSPB instance for transitional soy proto support:
|
|
54192
|
+
* http://goto/soy-param-migration
|
|
54193
|
+
* @return {!Object}
|
|
54194
|
+
*/
|
|
54195
|
+
proto.clarifai.api.ProcessingInfo.prototype.toObject = function (opt_includeInstance) {
|
|
54196
|
+
return proto.clarifai.api.ProcessingInfo.toObject(opt_includeInstance, this);
|
|
54197
|
+
};
|
|
54198
|
+
/**
|
|
54199
|
+
* Static version of the {@see toObject} method.
|
|
54200
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54201
|
+
* the JSPB instance for transitional soy proto support:
|
|
54202
|
+
* http://goto/soy-param-migration
|
|
54203
|
+
* @param {!proto.clarifai.api.ProcessingInfo} msg The msg instance to transform.
|
|
54204
|
+
* @return {!Object}
|
|
54205
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54206
|
+
*/
|
|
54207
|
+
proto.clarifai.api.ProcessingInfo.toObject = function (includeInstance, msg) {
|
|
54208
|
+
var f, obj = {
|
|
54209
|
+
runnerMethodType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
54210
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
54211
|
+
};
|
|
54212
|
+
if (includeInstance) {
|
|
54213
|
+
obj.$jspbMessageInstance = msg;
|
|
54214
|
+
}
|
|
54215
|
+
return obj;
|
|
54216
|
+
};
|
|
54217
|
+
}
|
|
54218
|
+
/**
|
|
54219
|
+
* Deserializes binary data (in protobuf wire format).
|
|
54220
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54221
|
+
* @return {!proto.clarifai.api.ProcessingInfo}
|
|
54222
|
+
*/
|
|
54223
|
+
proto.clarifai.api.ProcessingInfo.deserializeBinary = function (bytes) {
|
|
54224
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
54225
|
+
var msg = new proto.clarifai.api.ProcessingInfo;
|
|
54226
|
+
return proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader(msg, reader);
|
|
54227
|
+
};
|
|
54228
|
+
/**
|
|
54229
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
54230
|
+
* given reader into the given message object.
|
|
54231
|
+
* @param {!proto.clarifai.api.ProcessingInfo} msg The message object to deserialize into.
|
|
54232
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54233
|
+
* @return {!proto.clarifai.api.ProcessingInfo}
|
|
54234
|
+
*/
|
|
54235
|
+
proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader = function (msg, reader) {
|
|
54236
|
+
while (reader.nextField()) {
|
|
54237
|
+
if (reader.isEndGroup()) {
|
|
54238
|
+
break;
|
|
54239
|
+
}
|
|
54240
|
+
var field = reader.getFieldNumber();
|
|
54241
|
+
switch (field) {
|
|
54242
|
+
case 1:
|
|
54243
|
+
var value = /** @type {!proto.clarifai.api.RunnerMethodType} */ (reader.readEnum());
|
|
54244
|
+
msg.setRunnerMethodType(value);
|
|
54245
|
+
break;
|
|
54246
|
+
case 2:
|
|
54247
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
54248
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
54249
|
+
msg.setStatus(value);
|
|
54250
|
+
break;
|
|
54251
|
+
default:
|
|
54252
|
+
reader.skipField();
|
|
54253
|
+
break;
|
|
54254
|
+
}
|
|
54255
|
+
}
|
|
54256
|
+
return msg;
|
|
54257
|
+
};
|
|
54258
|
+
/**
|
|
54259
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
54260
|
+
* @return {!Uint8Array}
|
|
54261
|
+
*/
|
|
54262
|
+
proto.clarifai.api.ProcessingInfo.prototype.serializeBinary = function () {
|
|
54263
|
+
var writer = new jspb.BinaryWriter();
|
|
54264
|
+
proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter(this, writer);
|
|
54265
|
+
return writer.getResultBuffer();
|
|
54266
|
+
};
|
|
54267
|
+
/**
|
|
54268
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
54269
|
+
* format), writing to the given BinaryWriter.
|
|
54270
|
+
* @param {!proto.clarifai.api.ProcessingInfo} message
|
|
54271
|
+
* @param {!jspb.BinaryWriter} writer
|
|
54272
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54273
|
+
*/
|
|
54274
|
+
proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter = function (message, writer) {
|
|
54275
|
+
var f = undefined;
|
|
54276
|
+
f = message.getRunnerMethodType();
|
|
54277
|
+
if (f !== 0.0) {
|
|
54278
|
+
writer.writeEnum(1, f);
|
|
54279
|
+
}
|
|
54280
|
+
f = message.getStatus();
|
|
54281
|
+
if (f != null) {
|
|
54282
|
+
writer.writeMessage(2, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
54283
|
+
}
|
|
54284
|
+
};
|
|
54285
|
+
/**
|
|
54286
|
+
* optional RunnerMethodType runner_method_type = 1;
|
|
54287
|
+
* @return {!proto.clarifai.api.RunnerMethodType}
|
|
54288
|
+
*/
|
|
54289
|
+
proto.clarifai.api.ProcessingInfo.prototype.getRunnerMethodType = function () {
|
|
54290
|
+
return /** @type {!proto.clarifai.api.RunnerMethodType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
54291
|
+
};
|
|
54292
|
+
/**
|
|
54293
|
+
* @param {!proto.clarifai.api.RunnerMethodType} value
|
|
54294
|
+
* @return {!proto.clarifai.api.ProcessingInfo} returns this
|
|
54295
|
+
*/
|
|
54296
|
+
proto.clarifai.api.ProcessingInfo.prototype.setRunnerMethodType = function (value) {
|
|
54297
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
54298
|
+
};
|
|
54299
|
+
/**
|
|
54300
|
+
* optional status.Status status = 2;
|
|
54301
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
54302
|
+
*/
|
|
54303
|
+
proto.clarifai.api.ProcessingInfo.prototype.getStatus = function () {
|
|
54304
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
|
|
54305
|
+
};
|
|
54306
|
+
/**
|
|
54307
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
54308
|
+
* @return {!proto.clarifai.api.ProcessingInfo} returns this
|
|
54309
|
+
*/
|
|
54310
|
+
proto.clarifai.api.ProcessingInfo.prototype.setStatus = function (value) {
|
|
54311
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
54312
|
+
};
|
|
54313
|
+
/**
|
|
54314
|
+
* Clears the message field making it undefined.
|
|
54315
|
+
* @return {!proto.clarifai.api.ProcessingInfo} returns this
|
|
54316
|
+
*/
|
|
54317
|
+
proto.clarifai.api.ProcessingInfo.prototype.clearStatus = function () {
|
|
54318
|
+
return this.setStatus(undefined);
|
|
54319
|
+
};
|
|
54320
|
+
/**
|
|
54321
|
+
* Returns whether this field is set.
|
|
54322
|
+
* @return {boolean}
|
|
54323
|
+
*/
|
|
54324
|
+
proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function () {
|
|
54325
|
+
return jspb.Message.getField(this, 2) != null;
|
|
54326
|
+
};
|
|
53838
54327
|
/**
|
|
53839
54328
|
* @enum {number}
|
|
53840
54329
|
*/
|
|
@@ -53843,6 +54332,16 @@ proto.clarifai.api.WorkflowModelUseCase = {
|
|
|
53843
54332
|
CLASSIFICATION: 1,
|
|
53844
54333
|
DETECTION: 2
|
|
53845
54334
|
};
|
|
54335
|
+
/**
|
|
54336
|
+
* @enum {number}
|
|
54337
|
+
*/
|
|
54338
|
+
proto.clarifai.api.DatasetVersionRequestOrigin = {
|
|
54339
|
+
DATASET_VERSION_REQUEST_ORIGIN_NOT_SET: 0,
|
|
54340
|
+
MANUAL: 1,
|
|
54341
|
+
TRAINING: 2,
|
|
54342
|
+
EVAL_GROUND_TRUTH: 3,
|
|
54343
|
+
EVAL_PREDICTIONS: 4
|
|
54344
|
+
};
|
|
53846
54345
|
/**
|
|
53847
54346
|
* @enum {number}
|
|
53848
54347
|
*/
|
|
@@ -53991,4 +54490,14 @@ proto.clarifai.api.InputIDConflictResolution = {
|
|
|
53991
54490
|
SKIP: 1,
|
|
53992
54491
|
SUFFIX: 2
|
|
53993
54492
|
};
|
|
54493
|
+
/**
|
|
54494
|
+
* @enum {number}
|
|
54495
|
+
*/
|
|
54496
|
+
proto.clarifai.api.RunnerMethodType = {
|
|
54497
|
+
UNKNOWN: 0,
|
|
54498
|
+
UNARY_UNARY: 1,
|
|
54499
|
+
UNARY_STREAMING: 2,
|
|
54500
|
+
STREAMING_UNARY: 3,
|
|
54501
|
+
STREAMING_STREAMING: 4
|
|
54502
|
+
};
|
|
53994
54503
|
goog.object.extend(exports, proto.clarifai.api);
|