clarifai-web-grpc 10.1.5 → 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
|
@@ -170,6 +170,7 @@ goog.exportSymbol('proto.clarifai.api.ModelTypeField', null, global);
|
|
|
170
170
|
goog.exportSymbol('proto.clarifai.api.ModelTypeField.ModelTypeFieldType', null, global);
|
|
171
171
|
goog.exportSymbol('proto.clarifai.api.ModelTypeRangeInfo', null, global);
|
|
172
172
|
goog.exportSymbol('proto.clarifai.api.ModelVersion', null, global);
|
|
173
|
+
goog.exportSymbol('proto.clarifai.api.ModelVersionExport', null, global);
|
|
173
174
|
goog.exportSymbol('proto.clarifai.api.ModelVersionInputExample', null, global);
|
|
174
175
|
goog.exportSymbol('proto.clarifai.api.Module', null, global);
|
|
175
176
|
goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
|
|
@@ -215,6 +216,7 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
|
|
|
215
216
|
goog.exportSymbol('proto.clarifai.api.Task', null, global);
|
|
216
217
|
goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
|
|
217
218
|
goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
|
|
219
|
+
goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
|
|
218
220
|
goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
219
221
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
220
222
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
@@ -226,6 +228,7 @@ goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, glob
|
|
|
226
228
|
goog.exportSymbol('proto.clarifai.api.TaskReviewConsensusStrategyInfo', null, global);
|
|
227
229
|
goog.exportSymbol('proto.clarifai.api.TaskReviewManualStrategyInfo', null, global);
|
|
228
230
|
goog.exportSymbol('proto.clarifai.api.TaskStatusCountPerUser', null, global);
|
|
231
|
+
goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
|
|
229
232
|
goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
|
|
230
233
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.StrategyInfoCase', null, global);
|
|
231
234
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, global);
|
|
@@ -1988,6 +1991,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1988
1991
|
*/
|
|
1989
1992
|
proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
|
|
1990
1993
|
}
|
|
1994
|
+
/**
|
|
1995
|
+
* Generated by JsPbCodeGenerator.
|
|
1996
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1997
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1998
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1999
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2000
|
+
* valid.
|
|
2001
|
+
* @extends {jspb.Message}
|
|
2002
|
+
* @constructor
|
|
2003
|
+
*/
|
|
2004
|
+
proto.clarifai.api.ModelVersionExport = function (opt_data) {
|
|
2005
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2006
|
+
};
|
|
2007
|
+
goog.inherits(proto.clarifai.api.ModelVersionExport, jspb.Message);
|
|
2008
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2009
|
+
/**
|
|
2010
|
+
* @public
|
|
2011
|
+
* @override
|
|
2012
|
+
*/
|
|
2013
|
+
proto.clarifai.api.ModelVersionExport.displayName = 'proto.clarifai.api.ModelVersionExport';
|
|
2014
|
+
}
|
|
1991
2015
|
/**
|
|
1992
2016
|
* Generated by JsPbCodeGenerator.
|
|
1993
2017
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3227,6 +3251,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3227
3251
|
*/
|
|
3228
3252
|
proto.clarifai.api.TaskAIAssistant.displayName = 'proto.clarifai.api.TaskAIAssistant';
|
|
3229
3253
|
}
|
|
3254
|
+
/**
|
|
3255
|
+
* Generated by JsPbCodeGenerator.
|
|
3256
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3257
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3258
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3259
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3260
|
+
* valid.
|
|
3261
|
+
* @extends {jspb.Message}
|
|
3262
|
+
* @constructor
|
|
3263
|
+
*/
|
|
3264
|
+
proto.clarifai.api.TaskAssignment = function (opt_data) {
|
|
3265
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3266
|
+
};
|
|
3267
|
+
goog.inherits(proto.clarifai.api.TaskAssignment, jspb.Message);
|
|
3268
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3269
|
+
/**
|
|
3270
|
+
* @public
|
|
3271
|
+
* @override
|
|
3272
|
+
*/
|
|
3273
|
+
proto.clarifai.api.TaskAssignment.displayName = 'proto.clarifai.api.TaskAssignment';
|
|
3274
|
+
}
|
|
3230
3275
|
/**
|
|
3231
3276
|
* Generated by JsPbCodeGenerator.
|
|
3232
3277
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3332,6 +3377,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3332
3377
|
*/
|
|
3333
3378
|
proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
|
|
3334
3379
|
}
|
|
3380
|
+
/**
|
|
3381
|
+
* Generated by JsPbCodeGenerator.
|
|
3382
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3383
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3384
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3385
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3386
|
+
* valid.
|
|
3387
|
+
* @extends {jspb.Message}
|
|
3388
|
+
* @constructor
|
|
3389
|
+
*/
|
|
3390
|
+
proto.clarifai.api.TaskWorkMetrics = function (opt_data) {
|
|
3391
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3392
|
+
};
|
|
3393
|
+
goog.inherits(proto.clarifai.api.TaskWorkMetrics, jspb.Message);
|
|
3394
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3395
|
+
/**
|
|
3396
|
+
* @public
|
|
3397
|
+
* @override
|
|
3398
|
+
*/
|
|
3399
|
+
proto.clarifai.api.TaskWorkMetrics.displayName = 'proto.clarifai.api.TaskWorkMetrics';
|
|
3400
|
+
}
|
|
3335
3401
|
/**
|
|
3336
3402
|
* Generated by JsPbCodeGenerator.
|
|
3337
3403
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -24705,6 +24771,174 @@ proto.clarifai.api.ModelVersion.prototype.getTrainLog = function () {
|
|
|
24705
24771
|
proto.clarifai.api.ModelVersion.prototype.setTrainLog = function (value) {
|
|
24706
24772
|
return jspb.Message.setProto3StringField(this, 23, value);
|
|
24707
24773
|
};
|
|
24774
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24775
|
+
/**
|
|
24776
|
+
* Creates an object representation of this proto.
|
|
24777
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
24778
|
+
* Optional fields that are not set will be set to undefined.
|
|
24779
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
24780
|
+
* For the list of reserved names please see:
|
|
24781
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
24782
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
24783
|
+
* JSPB instance for transitional soy proto support:
|
|
24784
|
+
* http://goto/soy-param-migration
|
|
24785
|
+
* @return {!Object}
|
|
24786
|
+
*/
|
|
24787
|
+
proto.clarifai.api.ModelVersionExport.prototype.toObject = function (opt_includeInstance) {
|
|
24788
|
+
return proto.clarifai.api.ModelVersionExport.toObject(opt_includeInstance, this);
|
|
24789
|
+
};
|
|
24790
|
+
/**
|
|
24791
|
+
* Static version of the {@see toObject} method.
|
|
24792
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
24793
|
+
* the JSPB instance for transitional soy proto support:
|
|
24794
|
+
* http://goto/soy-param-migration
|
|
24795
|
+
* @param {!proto.clarifai.api.ModelVersionExport} msg The msg instance to transform.
|
|
24796
|
+
* @return {!Object}
|
|
24797
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24798
|
+
*/
|
|
24799
|
+
proto.clarifai.api.ModelVersionExport.toObject = function (includeInstance, msg) {
|
|
24800
|
+
var f, obj = {
|
|
24801
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
24802
|
+
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
24803
|
+
size: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
24804
|
+
};
|
|
24805
|
+
if (includeInstance) {
|
|
24806
|
+
obj.$jspbMessageInstance = msg;
|
|
24807
|
+
}
|
|
24808
|
+
return obj;
|
|
24809
|
+
};
|
|
24810
|
+
}
|
|
24811
|
+
/**
|
|
24812
|
+
* Deserializes binary data (in protobuf wire format).
|
|
24813
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
24814
|
+
* @return {!proto.clarifai.api.ModelVersionExport}
|
|
24815
|
+
*/
|
|
24816
|
+
proto.clarifai.api.ModelVersionExport.deserializeBinary = function (bytes) {
|
|
24817
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
24818
|
+
var msg = new proto.clarifai.api.ModelVersionExport;
|
|
24819
|
+
return proto.clarifai.api.ModelVersionExport.deserializeBinaryFromReader(msg, reader);
|
|
24820
|
+
};
|
|
24821
|
+
/**
|
|
24822
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
24823
|
+
* given reader into the given message object.
|
|
24824
|
+
* @param {!proto.clarifai.api.ModelVersionExport} msg The message object to deserialize into.
|
|
24825
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
24826
|
+
* @return {!proto.clarifai.api.ModelVersionExport}
|
|
24827
|
+
*/
|
|
24828
|
+
proto.clarifai.api.ModelVersionExport.deserializeBinaryFromReader = function (msg, reader) {
|
|
24829
|
+
while (reader.nextField()) {
|
|
24830
|
+
if (reader.isEndGroup()) {
|
|
24831
|
+
break;
|
|
24832
|
+
}
|
|
24833
|
+
var field = reader.getFieldNumber();
|
|
24834
|
+
switch (field) {
|
|
24835
|
+
case 1:
|
|
24836
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
24837
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
24838
|
+
msg.setStatus(value);
|
|
24839
|
+
break;
|
|
24840
|
+
case 2:
|
|
24841
|
+
var value = /** @type {string} */ (reader.readString());
|
|
24842
|
+
msg.setUrl(value);
|
|
24843
|
+
break;
|
|
24844
|
+
case 3:
|
|
24845
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
24846
|
+
msg.setSize(value);
|
|
24847
|
+
break;
|
|
24848
|
+
default:
|
|
24849
|
+
reader.skipField();
|
|
24850
|
+
break;
|
|
24851
|
+
}
|
|
24852
|
+
}
|
|
24853
|
+
return msg;
|
|
24854
|
+
};
|
|
24855
|
+
/**
|
|
24856
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
24857
|
+
* @return {!Uint8Array}
|
|
24858
|
+
*/
|
|
24859
|
+
proto.clarifai.api.ModelVersionExport.prototype.serializeBinary = function () {
|
|
24860
|
+
var writer = new jspb.BinaryWriter();
|
|
24861
|
+
proto.clarifai.api.ModelVersionExport.serializeBinaryToWriter(this, writer);
|
|
24862
|
+
return writer.getResultBuffer();
|
|
24863
|
+
};
|
|
24864
|
+
/**
|
|
24865
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
24866
|
+
* format), writing to the given BinaryWriter.
|
|
24867
|
+
* @param {!proto.clarifai.api.ModelVersionExport} message
|
|
24868
|
+
* @param {!jspb.BinaryWriter} writer
|
|
24869
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24870
|
+
*/
|
|
24871
|
+
proto.clarifai.api.ModelVersionExport.serializeBinaryToWriter = function (message, writer) {
|
|
24872
|
+
var f = undefined;
|
|
24873
|
+
f = message.getStatus();
|
|
24874
|
+
if (f != null) {
|
|
24875
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
24876
|
+
}
|
|
24877
|
+
f = message.getUrl();
|
|
24878
|
+
if (f.length > 0) {
|
|
24879
|
+
writer.writeString(2, f);
|
|
24880
|
+
}
|
|
24881
|
+
f = message.getSize();
|
|
24882
|
+
if (f !== 0) {
|
|
24883
|
+
writer.writeInt64(3, f);
|
|
24884
|
+
}
|
|
24885
|
+
};
|
|
24886
|
+
/**
|
|
24887
|
+
* optional status.Status status = 1;
|
|
24888
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
24889
|
+
*/
|
|
24890
|
+
proto.clarifai.api.ModelVersionExport.prototype.getStatus = function () {
|
|
24891
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
24892
|
+
};
|
|
24893
|
+
/**
|
|
24894
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
24895
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
24896
|
+
*/
|
|
24897
|
+
proto.clarifai.api.ModelVersionExport.prototype.setStatus = function (value) {
|
|
24898
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
24899
|
+
};
|
|
24900
|
+
/**
|
|
24901
|
+
* Clears the message field making it undefined.
|
|
24902
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
24903
|
+
*/
|
|
24904
|
+
proto.clarifai.api.ModelVersionExport.prototype.clearStatus = function () {
|
|
24905
|
+
return this.setStatus(undefined);
|
|
24906
|
+
};
|
|
24907
|
+
/**
|
|
24908
|
+
* Returns whether this field is set.
|
|
24909
|
+
* @return {boolean}
|
|
24910
|
+
*/
|
|
24911
|
+
proto.clarifai.api.ModelVersionExport.prototype.hasStatus = function () {
|
|
24912
|
+
return jspb.Message.getField(this, 1) != null;
|
|
24913
|
+
};
|
|
24914
|
+
/**
|
|
24915
|
+
* optional string url = 2;
|
|
24916
|
+
* @return {string}
|
|
24917
|
+
*/
|
|
24918
|
+
proto.clarifai.api.ModelVersionExport.prototype.getUrl = function () {
|
|
24919
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
24920
|
+
};
|
|
24921
|
+
/**
|
|
24922
|
+
* @param {string} value
|
|
24923
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
24924
|
+
*/
|
|
24925
|
+
proto.clarifai.api.ModelVersionExport.prototype.setUrl = function (value) {
|
|
24926
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
24927
|
+
};
|
|
24928
|
+
/**
|
|
24929
|
+
* optional int64 size = 3;
|
|
24930
|
+
* @return {number}
|
|
24931
|
+
*/
|
|
24932
|
+
proto.clarifai.api.ModelVersionExport.prototype.getSize = function () {
|
|
24933
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
24934
|
+
};
|
|
24935
|
+
/**
|
|
24936
|
+
* @param {number} value
|
|
24937
|
+
* @return {!proto.clarifai.api.ModelVersionExport} returns this
|
|
24938
|
+
*/
|
|
24939
|
+
proto.clarifai.api.ModelVersionExport.prototype.setSize = function (value) {
|
|
24940
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
24941
|
+
};
|
|
24708
24942
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24709
24943
|
/**
|
|
24710
24944
|
* Creates an object representation of this proto.
|
|
@@ -38653,7 +38887,7 @@ proto.clarifai.api.AiAssistParameters.prototype.clearConceptRelationIdsList = fu
|
|
|
38653
38887
|
* @private {!Array<number>}
|
|
38654
38888
|
* @const
|
|
38655
38889
|
*/
|
|
38656
|
-
proto.clarifai.api.TaskWorker.repeatedFields_ = [2, 4,
|
|
38890
|
+
proto.clarifai.api.TaskWorker.repeatedFields_ = [2, 4, 7];
|
|
38657
38891
|
/**
|
|
38658
38892
|
* Oneof group definitions for this message. Each group defines the field
|
|
38659
38893
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -38706,9 +38940,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
38706
38940
|
strategy: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
38707
38941
|
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
38708
38942
|
usersList: jspb.Message.toObjectList(msg.getUsersList(), proto.clarifai.api.User.toObject, includeInstance),
|
|
38709
|
-
|
|
38710
|
-
|
|
38711
|
-
partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f)
|
|
38943
|
+
partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f),
|
|
38944
|
+
workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto.clarifai.api.Worker.toObject, includeInstance)
|
|
38712
38945
|
};
|
|
38713
38946
|
if (includeInstance) {
|
|
38714
38947
|
obj.$jspbMessageInstance = msg;
|
|
@@ -38753,21 +38986,16 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function (msg, reade
|
|
|
38753
38986
|
reader.readMessage(value, proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
38754
38987
|
msg.addUsers(value);
|
|
38755
38988
|
break;
|
|
38756
|
-
case 5:
|
|
38757
|
-
var value = new proto.clarifai.api.Model;
|
|
38758
|
-
reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
38759
|
-
msg.addModels(value);
|
|
38760
|
-
break;
|
|
38761
|
-
case 6:
|
|
38762
|
-
var value = new proto.clarifai.api.Workflow;
|
|
38763
|
-
reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
38764
|
-
msg.addWorkflows(value);
|
|
38765
|
-
break;
|
|
38766
38989
|
case 3:
|
|
38767
38990
|
var value = new proto.clarifai.api.TaskWorkerPartitionedStrategyInfo;
|
|
38768
38991
|
reader.readMessage(value, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader);
|
|
38769
38992
|
msg.setPartitionedStrategyInfo(value);
|
|
38770
38993
|
break;
|
|
38994
|
+
case 7:
|
|
38995
|
+
var value = new proto.clarifai.api.Worker;
|
|
38996
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
38997
|
+
msg.addWorkers(value);
|
|
38998
|
+
break;
|
|
38771
38999
|
default:
|
|
38772
39000
|
reader.skipField();
|
|
38773
39001
|
break;
|
|
@@ -38805,18 +39033,14 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function (message, write
|
|
|
38805
39033
|
if (f.length > 0) {
|
|
38806
39034
|
writer.writeRepeatedMessage(4, f, proto.clarifai.api.User.serializeBinaryToWriter);
|
|
38807
39035
|
}
|
|
38808
|
-
f = message.getModelsList();
|
|
38809
|
-
if (f.length > 0) {
|
|
38810
|
-
writer.writeRepeatedMessage(5, f, proto.clarifai.api.Model.serializeBinaryToWriter);
|
|
38811
|
-
}
|
|
38812
|
-
f = message.getWorkflowsList();
|
|
38813
|
-
if (f.length > 0) {
|
|
38814
|
-
writer.writeRepeatedMessage(6, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
|
|
38815
|
-
}
|
|
38816
39036
|
f = message.getPartitionedStrategyInfo();
|
|
38817
39037
|
if (f != null) {
|
|
38818
39038
|
writer.writeMessage(3, f, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter);
|
|
38819
39039
|
}
|
|
39040
|
+
f = message.getWorkersList();
|
|
39041
|
+
if (f.length > 0) {
|
|
39042
|
+
writer.writeRepeatedMessage(7, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
39043
|
+
}
|
|
38820
39044
|
};
|
|
38821
39045
|
/**
|
|
38822
39046
|
* @enum {number}
|
|
@@ -38899,90 +39123,61 @@ proto.clarifai.api.TaskWorker.prototype.clearUsersList = function () {
|
|
|
38899
39123
|
return this.setUsersList([]);
|
|
38900
39124
|
};
|
|
38901
39125
|
/**
|
|
38902
|
-
*
|
|
38903
|
-
* @return {
|
|
39126
|
+
* optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3;
|
|
39127
|
+
* @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo}
|
|
38904
39128
|
*/
|
|
38905
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38906
|
-
return /** @type{
|
|
39129
|
+
proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function () {
|
|
39130
|
+
return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3));
|
|
38907
39131
|
};
|
|
38908
39132
|
/**
|
|
38909
|
-
* @param {
|
|
39133
|
+
* @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value
|
|
38910
39134
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
38911
39135
|
*/
|
|
38912
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38913
|
-
return jspb.Message.
|
|
39136
|
+
proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function (value) {
|
|
39137
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value);
|
|
38914
39138
|
};
|
|
38915
39139
|
/**
|
|
38916
|
-
*
|
|
38917
|
-
* @
|
|
38918
|
-
* @return {!proto.clarifai.api.Model}
|
|
39140
|
+
* Clears the message field making it undefined.
|
|
39141
|
+
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
38919
39142
|
*/
|
|
38920
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38921
|
-
return
|
|
39143
|
+
proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function () {
|
|
39144
|
+
return this.setPartitionedStrategyInfo(undefined);
|
|
38922
39145
|
};
|
|
38923
39146
|
/**
|
|
38924
|
-
*
|
|
38925
|
-
* @return {
|
|
39147
|
+
* Returns whether this field is set.
|
|
39148
|
+
* @return {boolean}
|
|
38926
39149
|
*/
|
|
38927
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38928
|
-
return
|
|
39150
|
+
proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function () {
|
|
39151
|
+
return jspb.Message.getField(this, 3) != null;
|
|
38929
39152
|
};
|
|
38930
39153
|
/**
|
|
38931
|
-
* repeated
|
|
38932
|
-
* @return {!Array<!proto.clarifai.api.
|
|
39154
|
+
* repeated Worker workers = 7;
|
|
39155
|
+
* @return {!Array<!proto.clarifai.api.Worker>}
|
|
38933
39156
|
*/
|
|
38934
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38935
|
-
return /** @type{!Array<!proto.clarifai.api.
|
|
39157
|
+
proto.clarifai.api.TaskWorker.prototype.getWorkersList = function () {
|
|
39158
|
+
return /** @type{!Array<!proto.clarifai.api.Worker>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Worker, 7));
|
|
38936
39159
|
};
|
|
38937
39160
|
/**
|
|
38938
|
-
* @param {!Array<!proto.clarifai.api.
|
|
39161
|
+
* @param {!Array<!proto.clarifai.api.Worker>} value
|
|
38939
39162
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
38940
39163
|
*/
|
|
38941
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38942
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
39164
|
+
proto.clarifai.api.TaskWorker.prototype.setWorkersList = function (value) {
|
|
39165
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
38943
39166
|
};
|
|
38944
39167
|
/**
|
|
38945
|
-
* @param {!proto.clarifai.api.
|
|
39168
|
+
* @param {!proto.clarifai.api.Worker=} opt_value
|
|
38946
39169
|
* @param {number=} opt_index
|
|
38947
|
-
* @return {!proto.clarifai.api.
|
|
39170
|
+
* @return {!proto.clarifai.api.Worker}
|
|
38948
39171
|
*/
|
|
38949
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38950
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
39172
|
+
proto.clarifai.api.TaskWorker.prototype.addWorkers = function (opt_value, opt_index) {
|
|
39173
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.Worker, opt_index);
|
|
38951
39174
|
};
|
|
38952
39175
|
/**
|
|
38953
39176
|
* Clears the list making it empty but non-null.
|
|
38954
39177
|
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
38955
39178
|
*/
|
|
38956
|
-
proto.clarifai.api.TaskWorker.prototype.
|
|
38957
|
-
return this.
|
|
38958
|
-
};
|
|
38959
|
-
/**
|
|
38960
|
-
* optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3;
|
|
38961
|
-
* @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo}
|
|
38962
|
-
*/
|
|
38963
|
-
proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function () {
|
|
38964
|
-
return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3));
|
|
38965
|
-
};
|
|
38966
|
-
/**
|
|
38967
|
-
* @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value
|
|
38968
|
-
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
38969
|
-
*/
|
|
38970
|
-
proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function (value) {
|
|
38971
|
-
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value);
|
|
38972
|
-
};
|
|
38973
|
-
/**
|
|
38974
|
-
* Clears the message field making it undefined.
|
|
38975
|
-
* @return {!proto.clarifai.api.TaskWorker} returns this
|
|
38976
|
-
*/
|
|
38977
|
-
proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function () {
|
|
38978
|
-
return this.setPartitionedStrategyInfo(undefined);
|
|
38979
|
-
};
|
|
38980
|
-
/**
|
|
38981
|
-
* Returns whether this field is set.
|
|
38982
|
-
* @return {boolean}
|
|
38983
|
-
*/
|
|
38984
|
-
proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function () {
|
|
38985
|
-
return jspb.Message.getField(this, 3) != null;
|
|
39179
|
+
proto.clarifai.api.TaskWorker.prototype.clearWorkersList = function () {
|
|
39180
|
+
return this.setWorkersList([]);
|
|
38986
39181
|
};
|
|
38987
39182
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
38988
39183
|
/**
|
|
@@ -39918,6 +40113,303 @@ proto.clarifai.api.TaskAIAssistant.prototype.getWorkflowId = function () {
|
|
|
39918
40113
|
proto.clarifai.api.TaskAIAssistant.prototype.setWorkflowId = function (value) {
|
|
39919
40114
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
39920
40115
|
};
|
|
40116
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40117
|
+
/**
|
|
40118
|
+
* Creates an object representation of this proto.
|
|
40119
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
40120
|
+
* Optional fields that are not set will be set to undefined.
|
|
40121
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
40122
|
+
* For the list of reserved names please see:
|
|
40123
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
40124
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
40125
|
+
* JSPB instance for transitional soy proto support:
|
|
40126
|
+
* http://goto/soy-param-migration
|
|
40127
|
+
* @return {!Object}
|
|
40128
|
+
*/
|
|
40129
|
+
proto.clarifai.api.TaskAssignment.prototype.toObject = function (opt_includeInstance) {
|
|
40130
|
+
return proto.clarifai.api.TaskAssignment.toObject(opt_includeInstance, this);
|
|
40131
|
+
};
|
|
40132
|
+
/**
|
|
40133
|
+
* Static version of the {@see toObject} method.
|
|
40134
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
40135
|
+
* the JSPB instance for transitional soy proto support:
|
|
40136
|
+
* http://goto/soy-param-migration
|
|
40137
|
+
* @param {!proto.clarifai.api.TaskAssignment} msg The msg instance to transform.
|
|
40138
|
+
* @return {!Object}
|
|
40139
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40140
|
+
*/
|
|
40141
|
+
proto.clarifai.api.TaskAssignment.toObject = function (includeInstance, msg) {
|
|
40142
|
+
var f, obj = {
|
|
40143
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
40144
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
40145
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
40146
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
40147
|
+
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
40148
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
40149
|
+
};
|
|
40150
|
+
if (includeInstance) {
|
|
40151
|
+
obj.$jspbMessageInstance = msg;
|
|
40152
|
+
}
|
|
40153
|
+
return obj;
|
|
40154
|
+
};
|
|
40155
|
+
}
|
|
40156
|
+
/**
|
|
40157
|
+
* Deserializes binary data (in protobuf wire format).
|
|
40158
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
40159
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
40160
|
+
*/
|
|
40161
|
+
proto.clarifai.api.TaskAssignment.deserializeBinary = function (bytes) {
|
|
40162
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
40163
|
+
var msg = new proto.clarifai.api.TaskAssignment;
|
|
40164
|
+
return proto.clarifai.api.TaskAssignment.deserializeBinaryFromReader(msg, reader);
|
|
40165
|
+
};
|
|
40166
|
+
/**
|
|
40167
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
40168
|
+
* given reader into the given message object.
|
|
40169
|
+
* @param {!proto.clarifai.api.TaskAssignment} msg The message object to deserialize into.
|
|
40170
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
40171
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
40172
|
+
*/
|
|
40173
|
+
proto.clarifai.api.TaskAssignment.deserializeBinaryFromReader = function (msg, reader) {
|
|
40174
|
+
while (reader.nextField()) {
|
|
40175
|
+
if (reader.isEndGroup()) {
|
|
40176
|
+
break;
|
|
40177
|
+
}
|
|
40178
|
+
var field = reader.getFieldNumber();
|
|
40179
|
+
switch (field) {
|
|
40180
|
+
case 1:
|
|
40181
|
+
var value = /** @type {string} */ (reader.readString());
|
|
40182
|
+
msg.setId(value);
|
|
40183
|
+
break;
|
|
40184
|
+
case 2:
|
|
40185
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
40186
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
40187
|
+
msg.setCreatedAt(value);
|
|
40188
|
+
break;
|
|
40189
|
+
case 3:
|
|
40190
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
40191
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
40192
|
+
msg.setModifiedAt(value);
|
|
40193
|
+
break;
|
|
40194
|
+
case 4:
|
|
40195
|
+
var value = new proto.clarifai.api.Worker;
|
|
40196
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
40197
|
+
msg.setWorker(value);
|
|
40198
|
+
break;
|
|
40199
|
+
case 5:
|
|
40200
|
+
var value = new proto.clarifai.api.Input;
|
|
40201
|
+
reader.readMessage(value, proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
40202
|
+
msg.setInput(value);
|
|
40203
|
+
break;
|
|
40204
|
+
case 6:
|
|
40205
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
40206
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
40207
|
+
msg.setStatus(value);
|
|
40208
|
+
break;
|
|
40209
|
+
default:
|
|
40210
|
+
reader.skipField();
|
|
40211
|
+
break;
|
|
40212
|
+
}
|
|
40213
|
+
}
|
|
40214
|
+
return msg;
|
|
40215
|
+
};
|
|
40216
|
+
/**
|
|
40217
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
40218
|
+
* @return {!Uint8Array}
|
|
40219
|
+
*/
|
|
40220
|
+
proto.clarifai.api.TaskAssignment.prototype.serializeBinary = function () {
|
|
40221
|
+
var writer = new jspb.BinaryWriter();
|
|
40222
|
+
proto.clarifai.api.TaskAssignment.serializeBinaryToWriter(this, writer);
|
|
40223
|
+
return writer.getResultBuffer();
|
|
40224
|
+
};
|
|
40225
|
+
/**
|
|
40226
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
40227
|
+
* format), writing to the given BinaryWriter.
|
|
40228
|
+
* @param {!proto.clarifai.api.TaskAssignment} message
|
|
40229
|
+
* @param {!jspb.BinaryWriter} writer
|
|
40230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
40231
|
+
*/
|
|
40232
|
+
proto.clarifai.api.TaskAssignment.serializeBinaryToWriter = function (message, writer) {
|
|
40233
|
+
var f = undefined;
|
|
40234
|
+
f = message.getId();
|
|
40235
|
+
if (f.length > 0) {
|
|
40236
|
+
writer.writeString(1, f);
|
|
40237
|
+
}
|
|
40238
|
+
f = message.getCreatedAt();
|
|
40239
|
+
if (f != null) {
|
|
40240
|
+
writer.writeMessage(2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
40241
|
+
}
|
|
40242
|
+
f = message.getModifiedAt();
|
|
40243
|
+
if (f != null) {
|
|
40244
|
+
writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
40245
|
+
}
|
|
40246
|
+
f = message.getWorker();
|
|
40247
|
+
if (f != null) {
|
|
40248
|
+
writer.writeMessage(4, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
40249
|
+
}
|
|
40250
|
+
f = message.getInput();
|
|
40251
|
+
if (f != null) {
|
|
40252
|
+
writer.writeMessage(5, f, proto.clarifai.api.Input.serializeBinaryToWriter);
|
|
40253
|
+
}
|
|
40254
|
+
f = message.getStatus();
|
|
40255
|
+
if (f != null) {
|
|
40256
|
+
writer.writeMessage(6, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
40257
|
+
}
|
|
40258
|
+
};
|
|
40259
|
+
/**
|
|
40260
|
+
* optional string id = 1;
|
|
40261
|
+
* @return {string}
|
|
40262
|
+
*/
|
|
40263
|
+
proto.clarifai.api.TaskAssignment.prototype.getId = function () {
|
|
40264
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
40265
|
+
};
|
|
40266
|
+
/**
|
|
40267
|
+
* @param {string} value
|
|
40268
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40269
|
+
*/
|
|
40270
|
+
proto.clarifai.api.TaskAssignment.prototype.setId = function (value) {
|
|
40271
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
40272
|
+
};
|
|
40273
|
+
/**
|
|
40274
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
40275
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
40276
|
+
*/
|
|
40277
|
+
proto.clarifai.api.TaskAssignment.prototype.getCreatedAt = function () {
|
|
40278
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
40279
|
+
};
|
|
40280
|
+
/**
|
|
40281
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
40282
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40283
|
+
*/
|
|
40284
|
+
proto.clarifai.api.TaskAssignment.prototype.setCreatedAt = function (value) {
|
|
40285
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
40286
|
+
};
|
|
40287
|
+
/**
|
|
40288
|
+
* Clears the message field making it undefined.
|
|
40289
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40290
|
+
*/
|
|
40291
|
+
proto.clarifai.api.TaskAssignment.prototype.clearCreatedAt = function () {
|
|
40292
|
+
return this.setCreatedAt(undefined);
|
|
40293
|
+
};
|
|
40294
|
+
/**
|
|
40295
|
+
* Returns whether this field is set.
|
|
40296
|
+
* @return {boolean}
|
|
40297
|
+
*/
|
|
40298
|
+
proto.clarifai.api.TaskAssignment.prototype.hasCreatedAt = function () {
|
|
40299
|
+
return jspb.Message.getField(this, 2) != null;
|
|
40300
|
+
};
|
|
40301
|
+
/**
|
|
40302
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
40303
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
40304
|
+
*/
|
|
40305
|
+
proto.clarifai.api.TaskAssignment.prototype.getModifiedAt = function () {
|
|
40306
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
40307
|
+
};
|
|
40308
|
+
/**
|
|
40309
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
40310
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40311
|
+
*/
|
|
40312
|
+
proto.clarifai.api.TaskAssignment.prototype.setModifiedAt = function (value) {
|
|
40313
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
40314
|
+
};
|
|
40315
|
+
/**
|
|
40316
|
+
* Clears the message field making it undefined.
|
|
40317
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40318
|
+
*/
|
|
40319
|
+
proto.clarifai.api.TaskAssignment.prototype.clearModifiedAt = function () {
|
|
40320
|
+
return this.setModifiedAt(undefined);
|
|
40321
|
+
};
|
|
40322
|
+
/**
|
|
40323
|
+
* Returns whether this field is set.
|
|
40324
|
+
* @return {boolean}
|
|
40325
|
+
*/
|
|
40326
|
+
proto.clarifai.api.TaskAssignment.prototype.hasModifiedAt = function () {
|
|
40327
|
+
return jspb.Message.getField(this, 3) != null;
|
|
40328
|
+
};
|
|
40329
|
+
/**
|
|
40330
|
+
* optional Worker worker = 4;
|
|
40331
|
+
* @return {?proto.clarifai.api.Worker}
|
|
40332
|
+
*/
|
|
40333
|
+
proto.clarifai.api.TaskAssignment.prototype.getWorker = function () {
|
|
40334
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 4));
|
|
40335
|
+
};
|
|
40336
|
+
/**
|
|
40337
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
40338
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40339
|
+
*/
|
|
40340
|
+
proto.clarifai.api.TaskAssignment.prototype.setWorker = function (value) {
|
|
40341
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
40342
|
+
};
|
|
40343
|
+
/**
|
|
40344
|
+
* Clears the message field making it undefined.
|
|
40345
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40346
|
+
*/
|
|
40347
|
+
proto.clarifai.api.TaskAssignment.prototype.clearWorker = function () {
|
|
40348
|
+
return this.setWorker(undefined);
|
|
40349
|
+
};
|
|
40350
|
+
/**
|
|
40351
|
+
* Returns whether this field is set.
|
|
40352
|
+
* @return {boolean}
|
|
40353
|
+
*/
|
|
40354
|
+
proto.clarifai.api.TaskAssignment.prototype.hasWorker = function () {
|
|
40355
|
+
return jspb.Message.getField(this, 4) != null;
|
|
40356
|
+
};
|
|
40357
|
+
/**
|
|
40358
|
+
* optional Input input = 5;
|
|
40359
|
+
* @return {?proto.clarifai.api.Input}
|
|
40360
|
+
*/
|
|
40361
|
+
proto.clarifai.api.TaskAssignment.prototype.getInput = function () {
|
|
40362
|
+
return /** @type{?proto.clarifai.api.Input} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5));
|
|
40363
|
+
};
|
|
40364
|
+
/**
|
|
40365
|
+
* @param {?proto.clarifai.api.Input|undefined} value
|
|
40366
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40367
|
+
*/
|
|
40368
|
+
proto.clarifai.api.TaskAssignment.prototype.setInput = function (value) {
|
|
40369
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
40370
|
+
};
|
|
40371
|
+
/**
|
|
40372
|
+
* Clears the message field making it undefined.
|
|
40373
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40374
|
+
*/
|
|
40375
|
+
proto.clarifai.api.TaskAssignment.prototype.clearInput = function () {
|
|
40376
|
+
return this.setInput(undefined);
|
|
40377
|
+
};
|
|
40378
|
+
/**
|
|
40379
|
+
* Returns whether this field is set.
|
|
40380
|
+
* @return {boolean}
|
|
40381
|
+
*/
|
|
40382
|
+
proto.clarifai.api.TaskAssignment.prototype.hasInput = function () {
|
|
40383
|
+
return jspb.Message.getField(this, 5) != null;
|
|
40384
|
+
};
|
|
40385
|
+
/**
|
|
40386
|
+
* optional status.Status status = 6;
|
|
40387
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
40388
|
+
*/
|
|
40389
|
+
proto.clarifai.api.TaskAssignment.prototype.getStatus = function () {
|
|
40390
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 6));
|
|
40391
|
+
};
|
|
40392
|
+
/**
|
|
40393
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
40394
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40395
|
+
*/
|
|
40396
|
+
proto.clarifai.api.TaskAssignment.prototype.setStatus = function (value) {
|
|
40397
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
40398
|
+
};
|
|
40399
|
+
/**
|
|
40400
|
+
* Clears the message field making it undefined.
|
|
40401
|
+
* @return {!proto.clarifai.api.TaskAssignment} returns this
|
|
40402
|
+
*/
|
|
40403
|
+
proto.clarifai.api.TaskAssignment.prototype.clearStatus = function () {
|
|
40404
|
+
return this.setStatus(undefined);
|
|
40405
|
+
};
|
|
40406
|
+
/**
|
|
40407
|
+
* Returns whether this field is set.
|
|
40408
|
+
* @return {boolean}
|
|
40409
|
+
*/
|
|
40410
|
+
proto.clarifai.api.TaskAssignment.prototype.hasStatus = function () {
|
|
40411
|
+
return jspb.Message.getField(this, 6) != null;
|
|
40412
|
+
};
|
|
39921
40413
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
39922
40414
|
/**
|
|
39923
40415
|
* Creates an object representation of this proto.
|
|
@@ -40671,7 +41163,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
40671
41163
|
*/
|
|
40672
41164
|
proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
|
|
40673
41165
|
var f, obj = {
|
|
40674
|
-
|
|
41166
|
+
work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f)
|
|
40675
41167
|
};
|
|
40676
41168
|
if (includeInstance) {
|
|
40677
41169
|
obj.$jspbMessageInstance = msg;
|
|
@@ -40703,9 +41195,10 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, read
|
|
|
40703
41195
|
}
|
|
40704
41196
|
var field = reader.getFieldNumber();
|
|
40705
41197
|
switch (field) {
|
|
40706
|
-
case
|
|
40707
|
-
var value =
|
|
40708
|
-
|
|
41198
|
+
case 2:
|
|
41199
|
+
var value = new proto.clarifai.api.TaskWorkMetrics;
|
|
41200
|
+
reader.readMessage(value, proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
|
|
41201
|
+
msg.setWork(value);
|
|
40709
41202
|
break;
|
|
40710
41203
|
default:
|
|
40711
41204
|
reader.skipField();
|
|
@@ -40732,25 +41225,169 @@ proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function () {
|
|
|
40732
41225
|
*/
|
|
40733
41226
|
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writer) {
|
|
40734
41227
|
var f = undefined;
|
|
40735
|
-
f = message.
|
|
41228
|
+
f = message.getWork();
|
|
41229
|
+
if (f != null) {
|
|
41230
|
+
writer.writeMessage(2, f, proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter);
|
|
41231
|
+
}
|
|
41232
|
+
};
|
|
41233
|
+
/**
|
|
41234
|
+
* optional TaskWorkMetrics work = 2;
|
|
41235
|
+
* @return {?proto.clarifai.api.TaskWorkMetrics}
|
|
41236
|
+
*/
|
|
41237
|
+
proto.clarifai.api.TaskMetrics.prototype.getWork = function () {
|
|
41238
|
+
return /** @type{?proto.clarifai.api.TaskWorkMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkMetrics, 2));
|
|
41239
|
+
};
|
|
41240
|
+
/**
|
|
41241
|
+
* @param {?proto.clarifai.api.TaskWorkMetrics|undefined} value
|
|
41242
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
41243
|
+
*/
|
|
41244
|
+
proto.clarifai.api.TaskMetrics.prototype.setWork = function (value) {
|
|
41245
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
41246
|
+
};
|
|
41247
|
+
/**
|
|
41248
|
+
* Clears the message field making it undefined.
|
|
41249
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
41250
|
+
*/
|
|
41251
|
+
proto.clarifai.api.TaskMetrics.prototype.clearWork = function () {
|
|
41252
|
+
return this.setWork(undefined);
|
|
41253
|
+
};
|
|
41254
|
+
/**
|
|
41255
|
+
* Returns whether this field is set.
|
|
41256
|
+
* @return {boolean}
|
|
41257
|
+
*/
|
|
41258
|
+
proto.clarifai.api.TaskMetrics.prototype.hasWork = function () {
|
|
41259
|
+
return jspb.Message.getField(this, 2) != null;
|
|
41260
|
+
};
|
|
41261
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
41262
|
+
/**
|
|
41263
|
+
* Creates an object representation of this proto.
|
|
41264
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
41265
|
+
* Optional fields that are not set will be set to undefined.
|
|
41266
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
41267
|
+
* For the list of reserved names please see:
|
|
41268
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
41269
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
41270
|
+
* JSPB instance for transitional soy proto support:
|
|
41271
|
+
* http://goto/soy-param-migration
|
|
41272
|
+
* @return {!Object}
|
|
41273
|
+
*/
|
|
41274
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.toObject = function (opt_includeInstance) {
|
|
41275
|
+
return proto.clarifai.api.TaskWorkMetrics.toObject(opt_includeInstance, this);
|
|
41276
|
+
};
|
|
41277
|
+
/**
|
|
41278
|
+
* Static version of the {@see toObject} method.
|
|
41279
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
41280
|
+
* the JSPB instance for transitional soy proto support:
|
|
41281
|
+
* http://goto/soy-param-migration
|
|
41282
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} msg The msg instance to transform.
|
|
41283
|
+
* @return {!Object}
|
|
41284
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41285
|
+
*/
|
|
41286
|
+
proto.clarifai.api.TaskWorkMetrics.toObject = function (includeInstance, msg) {
|
|
41287
|
+
var f, obj = {
|
|
41288
|
+
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
41289
|
+
inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
41290
|
+
};
|
|
41291
|
+
if (includeInstance) {
|
|
41292
|
+
obj.$jspbMessageInstance = msg;
|
|
41293
|
+
}
|
|
41294
|
+
return obj;
|
|
41295
|
+
};
|
|
41296
|
+
}
|
|
41297
|
+
/**
|
|
41298
|
+
* Deserializes binary data (in protobuf wire format).
|
|
41299
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
41300
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics}
|
|
41301
|
+
*/
|
|
41302
|
+
proto.clarifai.api.TaskWorkMetrics.deserializeBinary = function (bytes) {
|
|
41303
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
41304
|
+
var msg = new proto.clarifai.api.TaskWorkMetrics;
|
|
41305
|
+
return proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader(msg, reader);
|
|
41306
|
+
};
|
|
41307
|
+
/**
|
|
41308
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
41309
|
+
* given reader into the given message object.
|
|
41310
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} msg The message object to deserialize into.
|
|
41311
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
41312
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics}
|
|
41313
|
+
*/
|
|
41314
|
+
proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader = function (msg, reader) {
|
|
41315
|
+
while (reader.nextField()) {
|
|
41316
|
+
if (reader.isEndGroup()) {
|
|
41317
|
+
break;
|
|
41318
|
+
}
|
|
41319
|
+
var field = reader.getFieldNumber();
|
|
41320
|
+
switch (field) {
|
|
41321
|
+
case 1:
|
|
41322
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
41323
|
+
msg.setInputsCountEstimated(value);
|
|
41324
|
+
break;
|
|
41325
|
+
case 2:
|
|
41326
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
41327
|
+
msg.setInputsPercentEstimated(value);
|
|
41328
|
+
break;
|
|
41329
|
+
default:
|
|
41330
|
+
reader.skipField();
|
|
41331
|
+
break;
|
|
41332
|
+
}
|
|
41333
|
+
}
|
|
41334
|
+
return msg;
|
|
41335
|
+
};
|
|
41336
|
+
/**
|
|
41337
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
41338
|
+
* @return {!Uint8Array}
|
|
41339
|
+
*/
|
|
41340
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.serializeBinary = function () {
|
|
41341
|
+
var writer = new jspb.BinaryWriter();
|
|
41342
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter(this, writer);
|
|
41343
|
+
return writer.getResultBuffer();
|
|
41344
|
+
};
|
|
41345
|
+
/**
|
|
41346
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
41347
|
+
* format), writing to the given BinaryWriter.
|
|
41348
|
+
* @param {!proto.clarifai.api.TaskWorkMetrics} message
|
|
41349
|
+
* @param {!jspb.BinaryWriter} writer
|
|
41350
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
41351
|
+
*/
|
|
41352
|
+
proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter = function (message, writer) {
|
|
41353
|
+
var f = undefined;
|
|
41354
|
+
f = message.getInputsCountEstimated();
|
|
40736
41355
|
if (f !== 0) {
|
|
40737
41356
|
writer.writeUint64(1, f);
|
|
40738
41357
|
}
|
|
41358
|
+
f = message.getInputsPercentEstimated();
|
|
41359
|
+
if (f !== 0) {
|
|
41360
|
+
writer.writeUint32(2, f);
|
|
41361
|
+
}
|
|
40739
41362
|
};
|
|
40740
41363
|
/**
|
|
40741
|
-
* optional uint64
|
|
41364
|
+
* optional uint64 inputs_count_estimated = 1;
|
|
40742
41365
|
* @return {number}
|
|
40743
41366
|
*/
|
|
40744
|
-
proto.clarifai.api.
|
|
41367
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.getInputsCountEstimated = function () {
|
|
40745
41368
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
40746
41369
|
};
|
|
40747
41370
|
/**
|
|
40748
41371
|
* @param {number} value
|
|
40749
|
-
* @return {!proto.clarifai.api.
|
|
41372
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics} returns this
|
|
40750
41373
|
*/
|
|
40751
|
-
proto.clarifai.api.
|
|
41374
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsCountEstimated = function (value) {
|
|
40752
41375
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
40753
41376
|
};
|
|
41377
|
+
/**
|
|
41378
|
+
* optional uint32 inputs_percent_estimated = 2;
|
|
41379
|
+
* @return {number}
|
|
41380
|
+
*/
|
|
41381
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = function () {
|
|
41382
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
41383
|
+
};
|
|
41384
|
+
/**
|
|
41385
|
+
* @param {number} value
|
|
41386
|
+
* @return {!proto.clarifai.api.TaskWorkMetrics} returns this
|
|
41387
|
+
*/
|
|
41388
|
+
proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function (value) {
|
|
41389
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
41390
|
+
};
|
|
40754
41391
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
40755
41392
|
/**
|
|
40756
41393
|
* Creates an object representation of this proto.
|