clarifai-web-grpc 10.1.6 → 10.2.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 +725 -88
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +132 -6
- package/dist/cjs/proto/clarifai/api/service_pb.js +2035 -2
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +725 -88
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +132 -6
- package/dist/esm/proto/clarifai/api/service_pb.js +2035 -2
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +109 -15
- package/proto/clarifai/api/resources_pb.js +899 -109
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +39 -3
- package/proto/clarifai/api/service_grpc_web_pb.js +189 -6
- package/proto/clarifai/api/service_pb.d.ts +313 -0
- package/proto/clarifai/api/service_pb.js +2914 -416
- package/proto/clarifai/api/status/status_code_pb.d.ts +8 -0
- package/proto/clarifai/api/status/status_code_pb.js +8 -0
|
@@ -172,6 +172,7 @@ goog.exportSymbol('proto.clarifai.api.ModelTypeField', null, global);
|
|
|
172
172
|
goog.exportSymbol('proto.clarifai.api.ModelTypeField.ModelTypeFieldType', null, global);
|
|
173
173
|
goog.exportSymbol('proto.clarifai.api.ModelTypeRangeInfo', null, global);
|
|
174
174
|
goog.exportSymbol('proto.clarifai.api.ModelVersion', null, global);
|
|
175
|
+
goog.exportSymbol('proto.clarifai.api.ModelVersionExport', null, global);
|
|
175
176
|
goog.exportSymbol('proto.clarifai.api.ModelVersionInputExample', null, global);
|
|
176
177
|
goog.exportSymbol('proto.clarifai.api.Module', null, global);
|
|
177
178
|
goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
|
|
@@ -217,6 +218,7 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
|
|
|
217
218
|
goog.exportSymbol('proto.clarifai.api.Task', null, global);
|
|
218
219
|
goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
|
|
219
220
|
goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
|
|
221
|
+
goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
|
|
220
222
|
goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
221
223
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
222
224
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
@@ -228,6 +230,7 @@ goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, glob
|
|
|
228
230
|
goog.exportSymbol('proto.clarifai.api.TaskReviewConsensusStrategyInfo', null, global);
|
|
229
231
|
goog.exportSymbol('proto.clarifai.api.TaskReviewManualStrategyInfo', null, global);
|
|
230
232
|
goog.exportSymbol('proto.clarifai.api.TaskStatusCountPerUser', null, global);
|
|
233
|
+
goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
|
|
231
234
|
goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
|
|
232
235
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.StrategyInfoCase', null, global);
|
|
233
236
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, global);
|
|
@@ -1990,6 +1993,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1990
1993
|
*/
|
|
1991
1994
|
proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
|
|
1992
1995
|
}
|
|
1996
|
+
/**
|
|
1997
|
+
* Generated by JsPbCodeGenerator.
|
|
1998
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1999
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2000
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2001
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2002
|
+
* valid.
|
|
2003
|
+
* @extends {jspb.Message}
|
|
2004
|
+
* @constructor
|
|
2005
|
+
*/
|
|
2006
|
+
proto.clarifai.api.ModelVersionExport = function(opt_data) {
|
|
2007
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2008
|
+
};
|
|
2009
|
+
goog.inherits(proto.clarifai.api.ModelVersionExport, jspb.Message);
|
|
2010
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2011
|
+
/**
|
|
2012
|
+
* @public
|
|
2013
|
+
* @override
|
|
2014
|
+
*/
|
|
2015
|
+
proto.clarifai.api.ModelVersionExport.displayName = 'proto.clarifai.api.ModelVersionExport';
|
|
2016
|
+
}
|
|
1993
2017
|
/**
|
|
1994
2018
|
* Generated by JsPbCodeGenerator.
|
|
1995
2019
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3229,6 +3253,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3229
3253
|
*/
|
|
3230
3254
|
proto.clarifai.api.TaskAIAssistant.displayName = 'proto.clarifai.api.TaskAIAssistant';
|
|
3231
3255
|
}
|
|
3256
|
+
/**
|
|
3257
|
+
* Generated by JsPbCodeGenerator.
|
|
3258
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3259
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3260
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3261
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3262
|
+
* valid.
|
|
3263
|
+
* @extends {jspb.Message}
|
|
3264
|
+
* @constructor
|
|
3265
|
+
*/
|
|
3266
|
+
proto.clarifai.api.TaskAssignment = function(opt_data) {
|
|
3267
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3268
|
+
};
|
|
3269
|
+
goog.inherits(proto.clarifai.api.TaskAssignment, jspb.Message);
|
|
3270
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3271
|
+
/**
|
|
3272
|
+
* @public
|
|
3273
|
+
* @override
|
|
3274
|
+
*/
|
|
3275
|
+
proto.clarifai.api.TaskAssignment.displayName = 'proto.clarifai.api.TaskAssignment';
|
|
3276
|
+
}
|
|
3232
3277
|
/**
|
|
3233
3278
|
* Generated by JsPbCodeGenerator.
|
|
3234
3279
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3334,6 +3379,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3334
3379
|
*/
|
|
3335
3380
|
proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
|
|
3336
3381
|
}
|
|
3382
|
+
/**
|
|
3383
|
+
* Generated by JsPbCodeGenerator.
|
|
3384
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3385
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3386
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3387
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3388
|
+
* valid.
|
|
3389
|
+
* @extends {jspb.Message}
|
|
3390
|
+
* @constructor
|
|
3391
|
+
*/
|
|
3392
|
+
proto.clarifai.api.TaskWorkMetrics = function(opt_data) {
|
|
3393
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3394
|
+
};
|
|
3395
|
+
goog.inherits(proto.clarifai.api.TaskWorkMetrics, jspb.Message);
|
|
3396
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3397
|
+
/**
|
|
3398
|
+
* @public
|
|
3399
|
+
* @override
|
|
3400
|
+
*/
|
|
3401
|
+
proto.clarifai.api.TaskWorkMetrics.displayName = 'proto.clarifai.api.TaskWorkMetrics';
|
|
3402
|
+
}
|
|
3337
3403
|
/**
|
|
3338
3404
|
* Generated by JsPbCodeGenerator.
|
|
3339
3405
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -30349,6 +30415,217 @@ proto.clarifai.api.ModelVersion.prototype.setTrainLog = function(value) {
|
|
|
30349
30415
|
|
|
30350
30416
|
|
|
30351
30417
|
|
|
30418
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
30419
|
+
/**
|
|
30420
|
+
* Creates an object representation of this proto.
|
|
30421
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
30422
|
+
* Optional fields that are not set will be set to undefined.
|
|
30423
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
30424
|
+
* For the list of reserved names please see:
|
|
30425
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
30426
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
30427
|
+
* JSPB instance for transitional soy proto support:
|
|
30428
|
+
* http://goto/soy-param-migration
|
|
30429
|
+
* @return {!Object}
|
|
30430
|
+
*/
|
|
30431
|
+
proto.clarifai.api.ModelVersionExport.prototype.toObject = function(opt_includeInstance) {
|
|
30432
|
+
return proto.clarifai.api.ModelVersionExport.toObject(opt_includeInstance, this);
|
|
30433
|
+
};
|
|
30434
|
+
|
|
30435
|
+
|
|
30436
|
+
/**
|
|
30437
|
+
* Static version of the {@see toObject} method.
|
|
30438
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
30439
|
+
* the JSPB instance for transitional soy proto support:
|
|
30440
|
+
* http://goto/soy-param-migration
|
|
30441
|
+
* @param {!proto.clarifai.api.ModelVersionExport} msg The msg instance to transform.
|
|
30442
|
+
* @return {!Object}
|
|
30443
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30444
|
+
*/
|
|
30445
|
+
proto.clarifai.api.ModelVersionExport.toObject = function(includeInstance, msg) {
|
|
30446
|
+
var f, obj = {
|
|
30447
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
30448
|
+
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
30449
|
+
size: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
30450
|
+
};
|
|
30451
|
+
|
|
30452
|
+
if (includeInstance) {
|
|
30453
|
+
obj.$jspbMessageInstance = msg;
|
|
30454
|
+
}
|
|
30455
|
+
return obj;
|
|
30456
|
+
};
|
|
30457
|
+
}
|
|
30458
|
+
|
|
30459
|
+
|
|
30460
|
+
/**
|
|
30461
|
+
* Deserializes binary data (in protobuf wire format).
|
|
30462
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
30463
|
+
* @return {!proto.clarifai.api.ModelVersionExport}
|
|
30464
|
+
*/
|
|
30465
|
+
proto.clarifai.api.ModelVersionExport.deserializeBinary = function(bytes) {
|
|
30466
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
30467
|
+
var msg = new proto.clarifai.api.ModelVersionExport;
|
|
30468
|
+
return proto.clarifai.api.ModelVersionExport.deserializeBinaryFromReader(msg, reader);
|
|
30469
|
+
};
|
|
30470
|
+
|
|
30471
|
+
|
|
30472
|
+
/**
|
|
30473
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
30474
|
+
* given reader into the given message object.
|
|
30475
|
+
* @param {!proto.clarifai.api.ModelVersionExport} msg The message object to deserialize into.
|
|
30476
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
30477
|
+
* @return {!proto.clarifai.api.ModelVersionExport}
|
|
30478
|
+
*/
|
|
30479
|
+
proto.clarifai.api.ModelVersionExport.deserializeBinaryFromReader = function(msg, reader) {
|
|
30480
|
+
while (reader.nextField()) {
|
|
30481
|
+
if (reader.isEndGroup()) {
|
|
30482
|
+
break;
|
|
30483
|
+
}
|
|
30484
|
+
var field = reader.getFieldNumber();
|
|
30485
|
+
switch (field) {
|
|
30486
|
+
case 1:
|
|
30487
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
30488
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
30489
|
+
msg.setStatus(value);
|
|
30490
|
+
break;
|
|
30491
|
+
case 2:
|
|
30492
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30493
|
+
msg.setUrl(value);
|
|
30494
|
+
break;
|
|
30495
|
+
case 3:
|
|
30496
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
30497
|
+
msg.setSize(value);
|
|
30498
|
+
break;
|
|
30499
|
+
default:
|
|
30500
|
+
reader.skipField();
|
|
30501
|
+
break;
|
|
30502
|
+
}
|
|
30503
|
+
}
|
|
30504
|
+
return msg;
|
|
30505
|
+
};
|
|
30506
|
+
|
|
30507
|
+
|
|
30508
|
+
/**
|
|
30509
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
30510
|
+
* @return {!Uint8Array}
|
|
30511
|
+
*/
|
|
30512
|
+
proto.clarifai.api.ModelVersionExport.prototype.serializeBinary = function() {
|
|
30513
|
+
var writer = new jspb.BinaryWriter();
|
|
30514
|
+
proto.clarifai.api.ModelVersionExport.serializeBinaryToWriter(this, writer);
|
|
30515
|
+
return writer.getResultBuffer();
|
|
30516
|
+
};
|
|
30517
|
+
|
|
30518
|
+
|
|
30519
|
+
/**
|
|
30520
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
30521
|
+
* format), writing to the given BinaryWriter.
|
|
30522
|
+
* @param {!proto.clarifai.api.ModelVersionExport} message
|
|
30523
|
+
* @param {!jspb.BinaryWriter} writer
|
|
30524
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
30525
|
+
*/
|
|
30526
|
+
proto.clarifai.api.ModelVersionExport.serializeBinaryToWriter = function(message, writer) {
|
|
30527
|
+
var f = undefined;
|
|
30528
|
+
f = message.getStatus();
|
|
30529
|
+
if (f != null) {
|
|
30530
|
+
writer.writeMessage(
|
|
30531
|
+
1,
|
|
30532
|
+
f,
|
|
30533
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
30534
|
+
);
|
|
30535
|
+
}
|
|
30536
|
+
f = message.getUrl();
|
|
30537
|
+
if (f.length > 0) {
|
|
30538
|
+
writer.writeString(
|
|
30539
|
+
2,
|
|
30540
|
+
f
|
|
30541
|
+
);
|
|
30542
|
+
}
|
|
30543
|
+
f = message.getSize();
|
|
30544
|
+
if (f !== 0) {
|
|
30545
|
+
writer.writeInt64(
|
|
30546
|
+
3,
|
|
30547
|
+
f
|
|
30548
|
+
);
|
|
30549
|
+
}
|
|
30550
|
+
};
|
|
30551
|
+
|
|
30552
|
+
|
|
30553
|
+
/**
|
|
30554
|
+
* optional status.Status status = 1;
|
|
30555
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
30556
|
+
*/
|
|
30557
|
+
proto.clarifai.api.ModelVersionExport.prototype.getStatus = function() {
|
|
30558
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
30559
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
30560
|
+
};
|
|
30561
|
+
|
|
30562
|
+
|
|
30563
|
+
/**
|
|
30564
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
30565
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
30566
|
+
*/
|
|
30567
|
+
proto.clarifai.api.ModelVersionExport.prototype.setStatus = function(value) {
|
|
30568
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
30569
|
+
};
|
|
30570
|
+
|
|
30571
|
+
|
|
30572
|
+
/**
|
|
30573
|
+
* Clears the message field making it undefined.
|
|
30574
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
30575
|
+
*/
|
|
30576
|
+
proto.clarifai.api.ModelVersionExport.prototype.clearStatus = function() {
|
|
30577
|
+
return this.setStatus(undefined);
|
|
30578
|
+
};
|
|
30579
|
+
|
|
30580
|
+
|
|
30581
|
+
/**
|
|
30582
|
+
* Returns whether this field is set.
|
|
30583
|
+
* @return {boolean}
|
|
30584
|
+
*/
|
|
30585
|
+
proto.clarifai.api.ModelVersionExport.prototype.hasStatus = function() {
|
|
30586
|
+
return jspb.Message.getField(this, 1) != null;
|
|
30587
|
+
};
|
|
30588
|
+
|
|
30589
|
+
|
|
30590
|
+
/**
|
|
30591
|
+
* optional string url = 2;
|
|
30592
|
+
* @return {string}
|
|
30593
|
+
*/
|
|
30594
|
+
proto.clarifai.api.ModelVersionExport.prototype.getUrl = function() {
|
|
30595
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
30596
|
+
};
|
|
30597
|
+
|
|
30598
|
+
|
|
30599
|
+
/**
|
|
30600
|
+
* @param {string} value
|
|
30601
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
30602
|
+
*/
|
|
30603
|
+
proto.clarifai.api.ModelVersionExport.prototype.setUrl = function(value) {
|
|
30604
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
30605
|
+
};
|
|
30606
|
+
|
|
30607
|
+
|
|
30608
|
+
/**
|
|
30609
|
+
* optional int64 size = 3;
|
|
30610
|
+
* @return {number}
|
|
30611
|
+
*/
|
|
30612
|
+
proto.clarifai.api.ModelVersionExport.prototype.getSize = function() {
|
|
30613
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
30614
|
+
};
|
|
30615
|
+
|
|
30616
|
+
|
|
30617
|
+
/**
|
|
30618
|
+
* @param {number} value
|
|
30619
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
30620
|
+
*/
|
|
30621
|
+
proto.clarifai.api.ModelVersionExport.prototype.setSize = function(value) {
|
|
30622
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
30623
|
+
};
|
|
30624
|
+
|
|
30625
|
+
|
|
30626
|
+
|
|
30627
|
+
|
|
30628
|
+
|
|
30352
30629
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
30353
30630
|
/**
|
|
30354
30631
|
* Creates an object representation of this proto.
|
|
@@ -48204,7 +48481,7 @@ proto.clarifai.api.AiAssistParameters.prototype.clearConceptRelationIdsList = fu
|
|
|
48204
48481
|
* @private {!Array<number>}
|
|
48205
48482
|
* @const
|
|
48206
48483
|
*/
|
|
48207
|
-
proto.clarifai.api.TaskWorker.repeatedFields_ = [2,4,
|
|
48484
|
+
proto.clarifai.api.TaskWorker.repeatedFields_ = [2,4,7];
|
|
48208
48485
|
|
|
48209
48486
|
/**
|
|
48210
48487
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -48266,11 +48543,9 @@ proto.clarifai.api.TaskWorker.toObject = function(includeInstance, msg) {
|
|
|
48266
48543
|
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
48267
48544
|
usersList: jspb.Message.toObjectList(msg.getUsersList(),
|
|
48268
48545
|
proto.clarifai.api.User.toObject, includeInstance),
|
|
48269
|
-
|
|
48270
|
-
|
|
48271
|
-
|
|
48272
|
-
proto.clarifai.api.Workflow.toObject, includeInstance),
|
|
48273
|
-
partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f)
|
|
48546
|
+
partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f),
|
|
48547
|
+
workersList: jspb.Message.toObjectList(msg.getWorkersList(),
|
|
48548
|
+
proto.clarifai.api.Worker.toObject, includeInstance)
|
|
48274
48549
|
};
|
|
48275
48550
|
|
|
48276
48551
|
if (includeInstance) {
|
|
@@ -48320,21 +48595,16 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader
|
|
|
48320
48595
|
reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
48321
48596
|
msg.addUsers(value);
|
|
48322
48597
|
break;
|
|
48323
|
-
case 5:
|
|
48324
|
-
var value = new proto.clarifai.api.Model;
|
|
48325
|
-
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
48326
|
-
msg.addModels(value);
|
|
48327
|
-
break;
|
|
48328
|
-
case 6:
|
|
48329
|
-
var value = new proto.clarifai.api.Workflow;
|
|
48330
|
-
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
48331
|
-
msg.addWorkflows(value);
|
|
48332
|
-
break;
|
|
48333
48598
|
case 3:
|
|
48334
48599
|
var value = new proto.clarifai.api.TaskWorkerPartitionedStrategyInfo;
|
|
48335
48600
|
reader.readMessage(value,proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader);
|
|
48336
48601
|
msg.setPartitionedStrategyInfo(value);
|
|
48337
48602
|
break;
|
|
48603
|
+
case 7:
|
|
48604
|
+
var value = new proto.clarifai.api.Worker;
|
|
48605
|
+
reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
48606
|
+
msg.addWorkers(value);
|
|
48607
|
+
break;
|
|
48338
48608
|
default:
|
|
48339
48609
|
reader.skipField();
|
|
48340
48610
|
break;
|
|
@@ -48386,22 +48656,6 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
|
|
|
48386
48656
|
proto.clarifai.api.User.serializeBinaryToWriter
|
|
48387
48657
|
);
|
|
48388
48658
|
}
|
|
48389
|
-
f = message.getModelsList();
|
|
48390
|
-
if (f.length > 0) {
|
|
48391
|
-
writer.writeRepeatedMessage(
|
|
48392
|
-
5,
|
|
48393
|
-
f,
|
|
48394
|
-
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
48395
|
-
);
|
|
48396
|
-
}
|
|
48397
|
-
f = message.getWorkflowsList();
|
|
48398
|
-
if (f.length > 0) {
|
|
48399
|
-
writer.writeRepeatedMessage(
|
|
48400
|
-
6,
|
|
48401
|
-
f,
|
|
48402
|
-
proto.clarifai.api.Workflow.serializeBinaryToWriter
|
|
48403
|
-
);
|
|
48404
|
-
}
|
|
48405
48659
|
f = message.getPartitionedStrategyInfo();
|
|
48406
48660
|
if (f != null) {
|
|
48407
48661
|
writer.writeMessage(
|
|
@@ -48410,6 +48664,14 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
|
|
|
48410
48664
|
proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter
|
|
48411
48665
|
);
|
|
48412
48666
|
}
|
|
48667
|
+
f = message.getWorkersList();
|
|
48668
|
+
if (f.length > 0) {
|
|
48669
|
+
writer.writeRepeatedMessage(
|
|
48670
|
+
7,
|
|
48671
|
+
f,
|
|
48672
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter
|
|
48673
|
+
);
|
|
48674
|
+
}
|
|
48413
48675
|
};
|
|
48414
48676
|
|
|
48415
48677
|
|
|
@@ -48516,69 +48778,68 @@ proto.clarifai.api.TaskWorker.prototype.clearUsersList = function() {
|
|
|
48516
48778
|
|
|
48517
48779
|
|
|
48518
48780
|
/**
|
|
48519
|
-
*
|
|
48520
|
-
* @return {
|
|
48781
|
+
* optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3;
|
|
48782
|
+
* @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo}
|
|
48521
48783
|
*/
|
|
48522
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48523
|
-
return /** @type{
|
|
48524
|
-
jspb.Message.
|
|
48784
|
+
proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function() {
|
|
48785
|
+
return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ (
|
|
48786
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3));
|
|
48525
48787
|
};
|
|
48526
48788
|
|
|
48527
48789
|
|
|
48528
48790
|
/**
|
|
48529
|
-
* @param {
|
|
48791
|
+
* @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value
|
|
48530
48792
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48531
48793
|
*/
|
|
48532
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48533
|
-
return jspb.Message.
|
|
48794
|
+
proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function(value) {
|
|
48795
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value);
|
|
48534
48796
|
};
|
|
48535
48797
|
|
|
48536
48798
|
|
|
48537
48799
|
/**
|
|
48538
|
-
*
|
|
48539
|
-
* @
|
|
48540
|
-
* @return {!proto.clarifai.api.Model}
|
|
48800
|
+
* Clears the message field making it undefined.
|
|
48801
|
+
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48541
48802
|
*/
|
|
48542
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48543
|
-
return
|
|
48803
|
+
proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function() {
|
|
48804
|
+
return this.setPartitionedStrategyInfo(undefined);
|
|
48544
48805
|
};
|
|
48545
48806
|
|
|
48546
48807
|
|
|
48547
48808
|
/**
|
|
48548
|
-
*
|
|
48549
|
-
* @return {
|
|
48809
|
+
* Returns whether this field is set.
|
|
48810
|
+
* @return {boolean}
|
|
48550
48811
|
*/
|
|
48551
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48552
|
-
return
|
|
48812
|
+
proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function() {
|
|
48813
|
+
return jspb.Message.getField(this, 3) != null;
|
|
48553
48814
|
};
|
|
48554
48815
|
|
|
48555
48816
|
|
|
48556
48817
|
/**
|
|
48557
|
-
* repeated
|
|
48558
|
-
* @return {!Array<!proto.clarifai.api.
|
|
48818
|
+
* repeated Worker workers = 7;
|
|
48819
|
+
* @return {!Array<!proto.clarifai.api.Worker>}
|
|
48559
48820
|
*/
|
|
48560
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48561
|
-
return /** @type{!Array<!proto.clarifai.api.
|
|
48562
|
-
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.
|
|
48821
|
+
proto.clarifai.api.TaskWorker.prototype.getWorkersList = function() {
|
|
48822
|
+
return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
|
|
48823
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Worker, 7));
|
|
48563
48824
|
};
|
|
48564
48825
|
|
|
48565
48826
|
|
|
48566
48827
|
/**
|
|
48567
|
-
* @param {!Array<!proto.clarifai.api.
|
|
48828
|
+
* @param {!Array<!proto.clarifai.api.Worker>} value
|
|
48568
48829
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48569
48830
|
*/
|
|
48570
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48571
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
48831
|
+
proto.clarifai.api.TaskWorker.prototype.setWorkersList = function(value) {
|
|
48832
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
48572
48833
|
};
|
|
48573
48834
|
|
|
48574
48835
|
|
|
48575
48836
|
/**
|
|
48576
|
-
* @param {!proto.clarifai.api.
|
|
48837
|
+
* @param {!proto.clarifai.api.Worker=} opt_value
|
|
48577
48838
|
* @param {number=} opt_index
|
|
48578
|
-
* @return {!proto.clarifai.api.
|
|
48839
|
+
* @return {!proto.clarifai.api.Worker}
|
|
48579
48840
|
*/
|
|
48580
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48581
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
48841
|
+
proto.clarifai.api.TaskWorker.prototype.addWorkers = function(opt_value, opt_index) {
|
|
48842
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.Worker, opt_index);
|
|
48582
48843
|
};
|
|
48583
48844
|
|
|
48584
48845
|
|
|
@@ -48586,45 +48847,8 @@ proto.clarifai.api.TaskWorker.prototype.addWorkflows = function(opt_value, opt_i
|
|
|
48586
48847
|
* Clears the list making it empty but non-null.
|
|
48587
48848
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48588
48849
|
*/
|
|
48589
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
48590
|
-
return this.
|
|
48591
|
-
};
|
|
48592
|
-
|
|
48593
|
-
|
|
48594
|
-
/**
|
|
48595
|
-
* optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3;
|
|
48596
|
-
* @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo}
|
|
48597
|
-
*/
|
|
48598
|
-
proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function() {
|
|
48599
|
-
return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ (
|
|
48600
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3));
|
|
48601
|
-
};
|
|
48602
|
-
|
|
48603
|
-
|
|
48604
|
-
/**
|
|
48605
|
-
* @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value
|
|
48606
|
-
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48607
|
-
*/
|
|
48608
|
-
proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function(value) {
|
|
48609
|
-
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value);
|
|
48610
|
-
};
|
|
48611
|
-
|
|
48612
|
-
|
|
48613
|
-
/**
|
|
48614
|
-
* Clears the message field making it undefined.
|
|
48615
|
-
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
48616
|
-
*/
|
|
48617
|
-
proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function() {
|
|
48618
|
-
return this.setPartitionedStrategyInfo(undefined);
|
|
48619
|
-
};
|
|
48620
|
-
|
|
48621
|
-
|
|
48622
|
-
/**
|
|
48623
|
-
* Returns whether this field is set.
|
|
48624
|
-
* @return {boolean}
|
|
48625
|
-
*/
|
|
48626
|
-
proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function() {
|
|
48627
|
-
return jspb.Message.getField(this, 3) != null;
|
|
48850
|
+
proto.clarifai.api.TaskWorker.prototype.clearWorkersList = function() {
|
|
48851
|
+
return this.setWorkersList([]);
|
|
48628
48852
|
};
|
|
48629
48853
|
|
|
48630
48854
|
|
|
@@ -49788,6 +50012,391 @@ proto.clarifai.api.TaskAIAssistant.prototype.setWorkflowId = function(value) {
|
|
|
49788
50012
|
|
|
49789
50013
|
|
|
49790
50014
|
|
|
50015
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50016
|
+
/**
|
|
50017
|
+
* Creates an object representation of this proto.
|
|
50018
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
50019
|
+
* Optional fields that are not set will be set to undefined.
|
|
50020
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
50021
|
+
* For the list of reserved names please see:
|
|
50022
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
50023
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
50024
|
+
* JSPB instance for transitional soy proto support:
|
|
50025
|
+
* http://goto/soy-param-migration
|
|
50026
|
+
* @return {!Object}
|
|
50027
|
+
*/
|
|
50028
|
+
proto.clarifai.api.TaskAssignment.prototype.toObject = function(opt_includeInstance) {
|
|
50029
|
+
return proto.clarifai.api.TaskAssignment.toObject(opt_includeInstance, this);
|
|
50030
|
+
};
|
|
50031
|
+
|
|
50032
|
+
|
|
50033
|
+
/**
|
|
50034
|
+
* Static version of the {@see toObject} method.
|
|
50035
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
50036
|
+
* the JSPB instance for transitional soy proto support:
|
|
50037
|
+
* http://goto/soy-param-migration
|
|
50038
|
+
* @param {!proto.clarifai.api.TaskAssignment} msg The msg instance to transform.
|
|
50039
|
+
* @return {!Object}
|
|
50040
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50041
|
+
*/
|
|
50042
|
+
proto.clarifai.api.TaskAssignment.toObject = function(includeInstance, msg) {
|
|
50043
|
+
var f, obj = {
|
|
50044
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
50045
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
50046
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
50047
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
50048
|
+
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
50049
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
50050
|
+
};
|
|
50051
|
+
|
|
50052
|
+
if (includeInstance) {
|
|
50053
|
+
obj.$jspbMessageInstance = msg;
|
|
50054
|
+
}
|
|
50055
|
+
return obj;
|
|
50056
|
+
};
|
|
50057
|
+
}
|
|
50058
|
+
|
|
50059
|
+
|
|
50060
|
+
/**
|
|
50061
|
+
* Deserializes binary data (in protobuf wire format).
|
|
50062
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
50063
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
50064
|
+
*/
|
|
50065
|
+
proto.clarifai.api.TaskAssignment.deserializeBinary = function(bytes) {
|
|
50066
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
50067
|
+
var msg = new proto.clarifai.api.TaskAssignment;
|
|
50068
|
+
return proto.clarifai.api.TaskAssignment.deserializeBinaryFromReader(msg, reader);
|
|
50069
|
+
};
|
|
50070
|
+
|
|
50071
|
+
|
|
50072
|
+
/**
|
|
50073
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
50074
|
+
* given reader into the given message object.
|
|
50075
|
+
* @param {!proto.clarifai.api.TaskAssignment} msg The message object to deserialize into.
|
|
50076
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
50077
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
50078
|
+
*/
|
|
50079
|
+
proto.clarifai.api.TaskAssignment.deserializeBinaryFromReader = function(msg, reader) {
|
|
50080
|
+
while (reader.nextField()) {
|
|
50081
|
+
if (reader.isEndGroup()) {
|
|
50082
|
+
break;
|
|
50083
|
+
}
|
|
50084
|
+
var field = reader.getFieldNumber();
|
|
50085
|
+
switch (field) {
|
|
50086
|
+
case 1:
|
|
50087
|
+
var value = /** @type {string} */ (reader.readString());
|
|
50088
|
+
msg.setId(value);
|
|
50089
|
+
break;
|
|
50090
|
+
case 2:
|
|
50091
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
50092
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
50093
|
+
msg.setCreatedAt(value);
|
|
50094
|
+
break;
|
|
50095
|
+
case 3:
|
|
50096
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
50097
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
50098
|
+
msg.setModifiedAt(value);
|
|
50099
|
+
break;
|
|
50100
|
+
case 4:
|
|
50101
|
+
var value = new proto.clarifai.api.Worker;
|
|
50102
|
+
reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
50103
|
+
msg.setWorker(value);
|
|
50104
|
+
break;
|
|
50105
|
+
case 5:
|
|
50106
|
+
var value = new proto.clarifai.api.Input;
|
|
50107
|
+
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
50108
|
+
msg.setInput(value);
|
|
50109
|
+
break;
|
|
50110
|
+
case 6:
|
|
50111
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
50112
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
50113
|
+
msg.setStatus(value);
|
|
50114
|
+
break;
|
|
50115
|
+
default:
|
|
50116
|
+
reader.skipField();
|
|
50117
|
+
break;
|
|
50118
|
+
}
|
|
50119
|
+
}
|
|
50120
|
+
return msg;
|
|
50121
|
+
};
|
|
50122
|
+
|
|
50123
|
+
|
|
50124
|
+
/**
|
|
50125
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
50126
|
+
* @return {!Uint8Array}
|
|
50127
|
+
*/
|
|
50128
|
+
proto.clarifai.api.TaskAssignment.prototype.serializeBinary = function() {
|
|
50129
|
+
var writer = new jspb.BinaryWriter();
|
|
50130
|
+
proto.clarifai.api.TaskAssignment.serializeBinaryToWriter(this, writer);
|
|
50131
|
+
return writer.getResultBuffer();
|
|
50132
|
+
};
|
|
50133
|
+
|
|
50134
|
+
|
|
50135
|
+
/**
|
|
50136
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
50137
|
+
* format), writing to the given BinaryWriter.
|
|
50138
|
+
* @param {!proto.clarifai.api.TaskAssignment} message
|
|
50139
|
+
* @param {!jspb.BinaryWriter} writer
|
|
50140
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
50141
|
+
*/
|
|
50142
|
+
proto.clarifai.api.TaskAssignment.serializeBinaryToWriter = function(message, writer) {
|
|
50143
|
+
var f = undefined;
|
|
50144
|
+
f = message.getId();
|
|
50145
|
+
if (f.length > 0) {
|
|
50146
|
+
writer.writeString(
|
|
50147
|
+
1,
|
|
50148
|
+
f
|
|
50149
|
+
);
|
|
50150
|
+
}
|
|
50151
|
+
f = message.getCreatedAt();
|
|
50152
|
+
if (f != null) {
|
|
50153
|
+
writer.writeMessage(
|
|
50154
|
+
2,
|
|
50155
|
+
f,
|
|
50156
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
50157
|
+
);
|
|
50158
|
+
}
|
|
50159
|
+
f = message.getModifiedAt();
|
|
50160
|
+
if (f != null) {
|
|
50161
|
+
writer.writeMessage(
|
|
50162
|
+
3,
|
|
50163
|
+
f,
|
|
50164
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
50165
|
+
);
|
|
50166
|
+
}
|
|
50167
|
+
f = message.getWorker();
|
|
50168
|
+
if (f != null) {
|
|
50169
|
+
writer.writeMessage(
|
|
50170
|
+
4,
|
|
50171
|
+
f,
|
|
50172
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter
|
|
50173
|
+
);
|
|
50174
|
+
}
|
|
50175
|
+
f = message.getInput();
|
|
50176
|
+
if (f != null) {
|
|
50177
|
+
writer.writeMessage(
|
|
50178
|
+
5,
|
|
50179
|
+
f,
|
|
50180
|
+
proto.clarifai.api.Input.serializeBinaryToWriter
|
|
50181
|
+
);
|
|
50182
|
+
}
|
|
50183
|
+
f = message.getStatus();
|
|
50184
|
+
if (f != null) {
|
|
50185
|
+
writer.writeMessage(
|
|
50186
|
+
6,
|
|
50187
|
+
f,
|
|
50188
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
50189
|
+
);
|
|
50190
|
+
}
|
|
50191
|
+
};
|
|
50192
|
+
|
|
50193
|
+
|
|
50194
|
+
/**
|
|
50195
|
+
* optional string id = 1;
|
|
50196
|
+
* @return {string}
|
|
50197
|
+
*/
|
|
50198
|
+
proto.clarifai.api.TaskAssignment.prototype.getId = function() {
|
|
50199
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
50200
|
+
};
|
|
50201
|
+
|
|
50202
|
+
|
|
50203
|
+
/**
|
|
50204
|
+
* @param {string} value
|
|
50205
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50206
|
+
*/
|
|
50207
|
+
proto.clarifai.api.TaskAssignment.prototype.setId = function(value) {
|
|
50208
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
50209
|
+
};
|
|
50210
|
+
|
|
50211
|
+
|
|
50212
|
+
/**
|
|
50213
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
50214
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
50215
|
+
*/
|
|
50216
|
+
proto.clarifai.api.TaskAssignment.prototype.getCreatedAt = function() {
|
|
50217
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
50218
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
50219
|
+
};
|
|
50220
|
+
|
|
50221
|
+
|
|
50222
|
+
/**
|
|
50223
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
50224
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50225
|
+
*/
|
|
50226
|
+
proto.clarifai.api.TaskAssignment.prototype.setCreatedAt = function(value) {
|
|
50227
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
50228
|
+
};
|
|
50229
|
+
|
|
50230
|
+
|
|
50231
|
+
/**
|
|
50232
|
+
* Clears the message field making it undefined.
|
|
50233
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50234
|
+
*/
|
|
50235
|
+
proto.clarifai.api.TaskAssignment.prototype.clearCreatedAt = function() {
|
|
50236
|
+
return this.setCreatedAt(undefined);
|
|
50237
|
+
};
|
|
50238
|
+
|
|
50239
|
+
|
|
50240
|
+
/**
|
|
50241
|
+
* Returns whether this field is set.
|
|
50242
|
+
* @return {boolean}
|
|
50243
|
+
*/
|
|
50244
|
+
proto.clarifai.api.TaskAssignment.prototype.hasCreatedAt = function() {
|
|
50245
|
+
return jspb.Message.getField(this, 2) != null;
|
|
50246
|
+
};
|
|
50247
|
+
|
|
50248
|
+
|
|
50249
|
+
/**
|
|
50250
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
50251
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
50252
|
+
*/
|
|
50253
|
+
proto.clarifai.api.TaskAssignment.prototype.getModifiedAt = function() {
|
|
50254
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
50255
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
50256
|
+
};
|
|
50257
|
+
|
|
50258
|
+
|
|
50259
|
+
/**
|
|
50260
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
50261
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50262
|
+
*/
|
|
50263
|
+
proto.clarifai.api.TaskAssignment.prototype.setModifiedAt = function(value) {
|
|
50264
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
50265
|
+
};
|
|
50266
|
+
|
|
50267
|
+
|
|
50268
|
+
/**
|
|
50269
|
+
* Clears the message field making it undefined.
|
|
50270
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50271
|
+
*/
|
|
50272
|
+
proto.clarifai.api.TaskAssignment.prototype.clearModifiedAt = function() {
|
|
50273
|
+
return this.setModifiedAt(undefined);
|
|
50274
|
+
};
|
|
50275
|
+
|
|
50276
|
+
|
|
50277
|
+
/**
|
|
50278
|
+
* Returns whether this field is set.
|
|
50279
|
+
* @return {boolean}
|
|
50280
|
+
*/
|
|
50281
|
+
proto.clarifai.api.TaskAssignment.prototype.hasModifiedAt = function() {
|
|
50282
|
+
return jspb.Message.getField(this, 3) != null;
|
|
50283
|
+
};
|
|
50284
|
+
|
|
50285
|
+
|
|
50286
|
+
/**
|
|
50287
|
+
* optional Worker worker = 4;
|
|
50288
|
+
* @return {?proto.clarifai.api.Worker}
|
|
50289
|
+
*/
|
|
50290
|
+
proto.clarifai.api.TaskAssignment.prototype.getWorker = function() {
|
|
50291
|
+
return /** @type{?proto.clarifai.api.Worker} */ (
|
|
50292
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 4));
|
|
50293
|
+
};
|
|
50294
|
+
|
|
50295
|
+
|
|
50296
|
+
/**
|
|
50297
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
50298
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50299
|
+
*/
|
|
50300
|
+
proto.clarifai.api.TaskAssignment.prototype.setWorker = function(value) {
|
|
50301
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
50302
|
+
};
|
|
50303
|
+
|
|
50304
|
+
|
|
50305
|
+
/**
|
|
50306
|
+
* Clears the message field making it undefined.
|
|
50307
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50308
|
+
*/
|
|
50309
|
+
proto.clarifai.api.TaskAssignment.prototype.clearWorker = function() {
|
|
50310
|
+
return this.setWorker(undefined);
|
|
50311
|
+
};
|
|
50312
|
+
|
|
50313
|
+
|
|
50314
|
+
/**
|
|
50315
|
+
* Returns whether this field is set.
|
|
50316
|
+
* @return {boolean}
|
|
50317
|
+
*/
|
|
50318
|
+
proto.clarifai.api.TaskAssignment.prototype.hasWorker = function() {
|
|
50319
|
+
return jspb.Message.getField(this, 4) != null;
|
|
50320
|
+
};
|
|
50321
|
+
|
|
50322
|
+
|
|
50323
|
+
/**
|
|
50324
|
+
* optional Input input = 5;
|
|
50325
|
+
* @return {?proto.clarifai.api.Input}
|
|
50326
|
+
*/
|
|
50327
|
+
proto.clarifai.api.TaskAssignment.prototype.getInput = function() {
|
|
50328
|
+
return /** @type{?proto.clarifai.api.Input} */ (
|
|
50329
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5));
|
|
50330
|
+
};
|
|
50331
|
+
|
|
50332
|
+
|
|
50333
|
+
/**
|
|
50334
|
+
* @param {?proto.clarifai.api.Input|undefined} value
|
|
50335
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50336
|
+
*/
|
|
50337
|
+
proto.clarifai.api.TaskAssignment.prototype.setInput = function(value) {
|
|
50338
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
50339
|
+
};
|
|
50340
|
+
|
|
50341
|
+
|
|
50342
|
+
/**
|
|
50343
|
+
* Clears the message field making it undefined.
|
|
50344
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50345
|
+
*/
|
|
50346
|
+
proto.clarifai.api.TaskAssignment.prototype.clearInput = function() {
|
|
50347
|
+
return this.setInput(undefined);
|
|
50348
|
+
};
|
|
50349
|
+
|
|
50350
|
+
|
|
50351
|
+
/**
|
|
50352
|
+
* Returns whether this field is set.
|
|
50353
|
+
* @return {boolean}
|
|
50354
|
+
*/
|
|
50355
|
+
proto.clarifai.api.TaskAssignment.prototype.hasInput = function() {
|
|
50356
|
+
return jspb.Message.getField(this, 5) != null;
|
|
50357
|
+
};
|
|
50358
|
+
|
|
50359
|
+
|
|
50360
|
+
/**
|
|
50361
|
+
* optional status.Status status = 6;
|
|
50362
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
50363
|
+
*/
|
|
50364
|
+
proto.clarifai.api.TaskAssignment.prototype.getStatus = function() {
|
|
50365
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
50366
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 6));
|
|
50367
|
+
};
|
|
50368
|
+
|
|
50369
|
+
|
|
50370
|
+
/**
|
|
50371
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
50372
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50373
|
+
*/
|
|
50374
|
+
proto.clarifai.api.TaskAssignment.prototype.setStatus = function(value) {
|
|
50375
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
50376
|
+
};
|
|
50377
|
+
|
|
50378
|
+
|
|
50379
|
+
/**
|
|
50380
|
+
* Clears the message field making it undefined.
|
|
50381
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
50382
|
+
*/
|
|
50383
|
+
proto.clarifai.api.TaskAssignment.prototype.clearStatus = function() {
|
|
50384
|
+
return this.setStatus(undefined);
|
|
50385
|
+
};
|
|
50386
|
+
|
|
50387
|
+
|
|
50388
|
+
/**
|
|
50389
|
+
* Returns whether this field is set.
|
|
50390
|
+
* @return {boolean}
|
|
50391
|
+
*/
|
|
50392
|
+
proto.clarifai.api.TaskAssignment.prototype.hasStatus = function() {
|
|
50393
|
+
return jspb.Message.getField(this, 6) != null;
|
|
50394
|
+
};
|
|
50395
|
+
|
|
50396
|
+
|
|
50397
|
+
|
|
50398
|
+
|
|
50399
|
+
|
|
49791
50400
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
49792
50401
|
/**
|
|
49793
50402
|
* Creates an object representation of this proto.
|
|
@@ -50730,7 +51339,7 @@ proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance
|
|
|
50730
51339
|
*/
|
|
50731
51340
|
proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
|
|
50732
51341
|
var f, obj = {
|
|
50733
|
-
|
|
51342
|
+
work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f)
|
|
50734
51343
|
};
|
|
50735
51344
|
|
|
50736
51345
|
if (includeInstance) {
|
|
@@ -50767,9 +51376,10 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reade
|
|
|
50767
51376
|
}
|
|
50768
51377
|
var field = reader.getFieldNumber();
|
|
50769
51378
|
switch (field) {
|
|
50770
|
-
case
|
|
50771
|
-
var value =
|
|
50772
|
-
|
|
51379
|
+
case 2:
|
|
51380
|
+
var value = new proto.clarifai.api.TaskWorkMetrics;
|
|
51381
|
+
reader.readMessage(value,proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
|
|
51382
|
+
msg.setWork(value);
|
|
50773
51383
|
break;
|
|
50774
51384
|
default:
|
|
50775
51385
|
reader.skipField();
|
|
@@ -50800,34 +51410,214 @@ proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function() {
|
|
|
50800
51410
|
*/
|
|
50801
51411
|
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
50802
51412
|
var f = undefined;
|
|
50803
|
-
f = message.
|
|
51413
|
+
f = message.getWork();
|
|
51414
|
+
if (f != null) {
|
|
51415
|
+
writer.writeMessage(
|
|
51416
|
+
2,
|
|
51417
|
+
f,
|
|
51418
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter
|
|
51419
|
+
);
|
|
51420
|
+
}
|
|
51421
|
+
};
|
|
51422
|
+
|
|
51423
|
+
|
|
51424
|
+
/**
|
|
51425
|
+
* optional TaskWorkMetrics work = 2;
|
|
51426
|
+
* @return {?proto.clarifai.api.TaskWorkMetrics}
|
|
51427
|
+
*/
|
|
51428
|
+
proto.clarifai.api.TaskMetrics.prototype.getWork = function() {
|
|
51429
|
+
return /** @type{?proto.clarifai.api.TaskWorkMetrics} */ (
|
|
51430
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkMetrics, 2));
|
|
51431
|
+
};
|
|
51432
|
+
|
|
51433
|
+
|
|
51434
|
+
/**
|
|
51435
|
+
* @param {?proto.clarifai.api.TaskWorkMetrics|undefined} value
|
|
51436
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
51437
|
+
*/
|
|
51438
|
+
proto.clarifai.api.TaskMetrics.prototype.setWork = function(value) {
|
|
51439
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
51440
|
+
};
|
|
51441
|
+
|
|
51442
|
+
|
|
51443
|
+
/**
|
|
51444
|
+
* Clears the message field making it undefined.
|
|
51445
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
51446
|
+
*/
|
|
51447
|
+
proto.clarifai.api.TaskMetrics.prototype.clearWork = function() {
|
|
51448
|
+
return this.setWork(undefined);
|
|
51449
|
+
};
|
|
51450
|
+
|
|
51451
|
+
|
|
51452
|
+
/**
|
|
51453
|
+
* Returns whether this field is set.
|
|
51454
|
+
* @return {boolean}
|
|
51455
|
+
*/
|
|
51456
|
+
proto.clarifai.api.TaskMetrics.prototype.hasWork = function() {
|
|
51457
|
+
return jspb.Message.getField(this, 2) != null;
|
|
51458
|
+
};
|
|
51459
|
+
|
|
51460
|
+
|
|
51461
|
+
|
|
51462
|
+
|
|
51463
|
+
|
|
51464
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
51465
|
+
/**
|
|
51466
|
+
* Creates an object representation of this proto.
|
|
51467
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
51468
|
+
* Optional fields that are not set will be set to undefined.
|
|
51469
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
51470
|
+
* For the list of reserved names please see:
|
|
51471
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
51472
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
51473
|
+
* JSPB instance for transitional soy proto support:
|
|
51474
|
+
* http://goto/soy-param-migration
|
|
51475
|
+
* @return {!Object}
|
|
51476
|
+
*/
|
|
51477
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
51478
|
+
return proto.clarifai.api.TaskWorkMetrics.toObject(opt_includeInstance, this);
|
|
51479
|
+
};
|
|
51480
|
+
|
|
51481
|
+
|
|
51482
|
+
/**
|
|
51483
|
+
* Static version of the {@see toObject} method.
|
|
51484
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
51485
|
+
* the JSPB instance for transitional soy proto support:
|
|
51486
|
+
* http://goto/soy-param-migration
|
|
51487
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} msg The msg instance to transform.
|
|
51488
|
+
* @return {!Object}
|
|
51489
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
51490
|
+
*/
|
|
51491
|
+
proto.clarifai.api.TaskWorkMetrics.toObject = function(includeInstance, msg) {
|
|
51492
|
+
var f, obj = {
|
|
51493
|
+
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
51494
|
+
inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
51495
|
+
};
|
|
51496
|
+
|
|
51497
|
+
if (includeInstance) {
|
|
51498
|
+
obj.$jspbMessageInstance = msg;
|
|
51499
|
+
}
|
|
51500
|
+
return obj;
|
|
51501
|
+
};
|
|
51502
|
+
}
|
|
51503
|
+
|
|
51504
|
+
|
|
51505
|
+
/**
|
|
51506
|
+
* Deserializes binary data (in protobuf wire format).
|
|
51507
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
51508
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics}
|
|
51509
|
+
*/
|
|
51510
|
+
proto.clarifai.api.TaskWorkMetrics.deserializeBinary = function(bytes) {
|
|
51511
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
51512
|
+
var msg = new proto.clarifai.api.TaskWorkMetrics;
|
|
51513
|
+
return proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader(msg, reader);
|
|
51514
|
+
};
|
|
51515
|
+
|
|
51516
|
+
|
|
51517
|
+
/**
|
|
51518
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
51519
|
+
* given reader into the given message object.
|
|
51520
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} msg The message object to deserialize into.
|
|
51521
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
51522
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics}
|
|
51523
|
+
*/
|
|
51524
|
+
proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
51525
|
+
while (reader.nextField()) {
|
|
51526
|
+
if (reader.isEndGroup()) {
|
|
51527
|
+
break;
|
|
51528
|
+
}
|
|
51529
|
+
var field = reader.getFieldNumber();
|
|
51530
|
+
switch (field) {
|
|
51531
|
+
case 1:
|
|
51532
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
51533
|
+
msg.setInputsCountEstimated(value);
|
|
51534
|
+
break;
|
|
51535
|
+
case 2:
|
|
51536
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
51537
|
+
msg.setInputsPercentEstimated(value);
|
|
51538
|
+
break;
|
|
51539
|
+
default:
|
|
51540
|
+
reader.skipField();
|
|
51541
|
+
break;
|
|
51542
|
+
}
|
|
51543
|
+
}
|
|
51544
|
+
return msg;
|
|
51545
|
+
};
|
|
51546
|
+
|
|
51547
|
+
|
|
51548
|
+
/**
|
|
51549
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
51550
|
+
* @return {!Uint8Array}
|
|
51551
|
+
*/
|
|
51552
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.serializeBinary = function() {
|
|
51553
|
+
var writer = new jspb.BinaryWriter();
|
|
51554
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter(this, writer);
|
|
51555
|
+
return writer.getResultBuffer();
|
|
51556
|
+
};
|
|
51557
|
+
|
|
51558
|
+
|
|
51559
|
+
/**
|
|
51560
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
51561
|
+
* format), writing to the given BinaryWriter.
|
|
51562
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} message
|
|
51563
|
+
* @param {!jspb.BinaryWriter} writer
|
|
51564
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
51565
|
+
*/
|
|
51566
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
51567
|
+
var f = undefined;
|
|
51568
|
+
f = message.getInputsCountEstimated();
|
|
50804
51569
|
if (f !== 0) {
|
|
50805
51570
|
writer.writeUint64(
|
|
50806
51571
|
1,
|
|
50807
51572
|
f
|
|
50808
51573
|
);
|
|
50809
51574
|
}
|
|
51575
|
+
f = message.getInputsPercentEstimated();
|
|
51576
|
+
if (f !== 0) {
|
|
51577
|
+
writer.writeUint32(
|
|
51578
|
+
2,
|
|
51579
|
+
f
|
|
51580
|
+
);
|
|
51581
|
+
}
|
|
50810
51582
|
};
|
|
50811
51583
|
|
|
50812
51584
|
|
|
50813
51585
|
/**
|
|
50814
|
-
* optional uint64
|
|
51586
|
+
* optional uint64 inputs_count_estimated = 1;
|
|
50815
51587
|
* @return {number}
|
|
50816
51588
|
*/
|
|
50817
|
-
proto.clarifai.api.
|
|
51589
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.getInputsCountEstimated = function() {
|
|
50818
51590
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
50819
51591
|
};
|
|
50820
51592
|
|
|
50821
51593
|
|
|
50822
51594
|
/**
|
|
50823
51595
|
* @param {number} value
|
|
50824
|
-
* @return {!proto.clarifai.api.
|
|
51596
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics} returns this
|
|
50825
51597
|
*/
|
|
50826
|
-
proto.clarifai.api.
|
|
51598
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsCountEstimated = function(value) {
|
|
50827
51599
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
50828
51600
|
};
|
|
50829
51601
|
|
|
50830
51602
|
|
|
51603
|
+
/**
|
|
51604
|
+
* optional uint32 inputs_percent_estimated = 2;
|
|
51605
|
+
* @return {number}
|
|
51606
|
+
*/
|
|
51607
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = function() {
|
|
51608
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
51609
|
+
};
|
|
51610
|
+
|
|
51611
|
+
|
|
51612
|
+
/**
|
|
51613
|
+
* @param {number} value
|
|
51614
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics} returns this
|
|
51615
|
+
*/
|
|
51616
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function(value) {
|
|
51617
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
51618
|
+
};
|
|
51619
|
+
|
|
51620
|
+
|
|
50831
51621
|
|
|
50832
51622
|
|
|
50833
51623
|
|