clarifai-web-grpc 10.4.1 → 10.5.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 +326 -272
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +210 -42
- package/dist/cjs/proto/clarifai/api/service_pb.js +1364 -378
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +326 -272
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +210 -42
- package/dist/esm/proto/clarifai/api/service_pb.js +1364 -378
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +4 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +49 -43
- package/proto/clarifai/api/resources_pb.js +401 -322
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +60 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +305 -61
- package/proto/clarifai/api/service_pb.d.ts +194 -52
- package/proto/clarifai/api/service_pb.js +2254 -1038
- package/proto/clarifai/api/status/status_code_pb.d.ts +3 -0
- package/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +3 -0
- package/proto/clarifai/auth/scope/scope_pb.js +4 -1
|
@@ -79,7 +79,6 @@ goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
|
79
79
|
goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
|
|
80
80
|
goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
|
|
81
81
|
goog.exportSymbol('proto.clarifai.api.ConceptLanguage', null, global);
|
|
82
|
-
goog.exportSymbol('proto.clarifai.api.ConceptMappingJob', null, global);
|
|
83
82
|
goog.exportSymbol('proto.clarifai.api.ConceptQuery', null, global);
|
|
84
83
|
goog.exportSymbol('proto.clarifai.api.ConceptQuery.SourceCase', null, global);
|
|
85
84
|
goog.exportSymbol('proto.clarifai.api.ConceptRelation', null, global);
|
|
@@ -114,7 +113,6 @@ goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
|
|
|
114
113
|
goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
|
|
115
114
|
goog.exportSymbol('proto.clarifai.api.DeleteMetadata', null, global);
|
|
116
115
|
goog.exportSymbol('proto.clarifai.api.Deployment', null, global);
|
|
117
|
-
goog.exportSymbol('proto.clarifai.api.Deployment.ObjectCase', null, global);
|
|
118
116
|
goog.exportSymbol('proto.clarifai.api.Deployment.SchedulingChoice', null, global);
|
|
119
117
|
goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global);
|
|
120
118
|
goog.exportSymbol('proto.clarifai.api.DuplicateAnnotationsResults', null, global);
|
|
@@ -239,6 +237,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
|
|
|
239
237
|
goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
|
|
240
238
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
|
|
241
239
|
goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
|
|
240
|
+
goog.exportSymbol('proto.clarifai.api.TaskInputSourceMetrics', null, global);
|
|
242
241
|
goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
|
|
243
242
|
goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
|
|
244
243
|
goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
|
|
@@ -834,27 +833,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
834
833
|
*/
|
|
835
834
|
proto.clarifai.api.KnowledgeGraph.displayName = 'proto.clarifai.api.KnowledgeGraph';
|
|
836
835
|
}
|
|
837
|
-
/**
|
|
838
|
-
* Generated by JsPbCodeGenerator.
|
|
839
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
840
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
841
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
842
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
843
|
-
* valid.
|
|
844
|
-
* @extends {jspb.Message}
|
|
845
|
-
* @constructor
|
|
846
|
-
*/
|
|
847
|
-
proto.clarifai.api.ConceptMappingJob = function (opt_data) {
|
|
848
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptMappingJob.repeatedFields_, null);
|
|
849
|
-
};
|
|
850
|
-
goog.inherits(proto.clarifai.api.ConceptMappingJob, jspb.Message);
|
|
851
|
-
if (goog.DEBUG && !COMPILED) {
|
|
852
|
-
/**
|
|
853
|
-
* @public
|
|
854
|
-
* @override
|
|
855
|
-
*/
|
|
856
|
-
proto.clarifai.api.ConceptMappingJob.displayName = 'proto.clarifai.api.ConceptMappingJob';
|
|
857
|
-
}
|
|
858
836
|
/**
|
|
859
837
|
* Generated by JsPbCodeGenerator.
|
|
860
838
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3480,6 +3458,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3480
3458
|
*/
|
|
3481
3459
|
proto.clarifai.api.TaskReviewMetrics.displayName = 'proto.clarifai.api.TaskReviewMetrics';
|
|
3482
3460
|
}
|
|
3461
|
+
/**
|
|
3462
|
+
* Generated by JsPbCodeGenerator.
|
|
3463
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3464
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3465
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3466
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3467
|
+
* valid.
|
|
3468
|
+
* @extends {jspb.Message}
|
|
3469
|
+
* @constructor
|
|
3470
|
+
*/
|
|
3471
|
+
proto.clarifai.api.TaskInputSourceMetrics = function (opt_data) {
|
|
3472
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3473
|
+
};
|
|
3474
|
+
goog.inherits(proto.clarifai.api.TaskInputSourceMetrics, jspb.Message);
|
|
3475
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3476
|
+
/**
|
|
3477
|
+
* @public
|
|
3478
|
+
* @override
|
|
3479
|
+
*/
|
|
3480
|
+
proto.clarifai.api.TaskInputSourceMetrics.displayName = 'proto.clarifai.api.TaskInputSourceMetrics';
|
|
3481
|
+
}
|
|
3483
3482
|
/**
|
|
3484
3483
|
* Generated by JsPbCodeGenerator.
|
|
3485
3484
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4688,7 +4687,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4688
4687
|
* @constructor
|
|
4689
4688
|
*/
|
|
4690
4689
|
proto.clarifai.api.Deployment = function (opt_data) {
|
|
4691
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Deployment.repeatedFields_,
|
|
4690
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Deployment.repeatedFields_, null);
|
|
4692
4691
|
};
|
|
4693
4692
|
goog.inherits(proto.clarifai.api.Deployment, jspb.Message);
|
|
4694
4693
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -10878,157 +10877,6 @@ proto.clarifai.api.KnowledgeGraph.prototype.getSampledExamplesAppId = function (
|
|
|
10878
10877
|
proto.clarifai.api.KnowledgeGraph.prototype.setSampledExamplesAppId = function (value) {
|
|
10879
10878
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
10880
10879
|
};
|
|
10881
|
-
/**
|
|
10882
|
-
* List of repeated fields within this message type.
|
|
10883
|
-
* @private {!Array<number>}
|
|
10884
|
-
* @const
|
|
10885
|
-
*/
|
|
10886
|
-
proto.clarifai.api.ConceptMappingJob.repeatedFields_ = [2];
|
|
10887
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10888
|
-
/**
|
|
10889
|
-
* Creates an object representation of this proto.
|
|
10890
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10891
|
-
* Optional fields that are not set will be set to undefined.
|
|
10892
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10893
|
-
* For the list of reserved names please see:
|
|
10894
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10895
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10896
|
-
* JSPB instance for transitional soy proto support:
|
|
10897
|
-
* http://goto/soy-param-migration
|
|
10898
|
-
* @return {!Object}
|
|
10899
|
-
*/
|
|
10900
|
-
proto.clarifai.api.ConceptMappingJob.prototype.toObject = function (opt_includeInstance) {
|
|
10901
|
-
return proto.clarifai.api.ConceptMappingJob.toObject(opt_includeInstance, this);
|
|
10902
|
-
};
|
|
10903
|
-
/**
|
|
10904
|
-
* Static version of the {@see toObject} method.
|
|
10905
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10906
|
-
* the JSPB instance for transitional soy proto support:
|
|
10907
|
-
* http://goto/soy-param-migration
|
|
10908
|
-
* @param {!proto.clarifai.api.ConceptMappingJob} msg The msg instance to transform.
|
|
10909
|
-
* @return {!Object}
|
|
10910
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10911
|
-
*/
|
|
10912
|
-
proto.clarifai.api.ConceptMappingJob.toObject = function (includeInstance, msg) {
|
|
10913
|
-
var f, obj = {
|
|
10914
|
-
knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10915
|
-
conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
10916
|
-
};
|
|
10917
|
-
if (includeInstance) {
|
|
10918
|
-
obj.$jspbMessageInstance = msg;
|
|
10919
|
-
}
|
|
10920
|
-
return obj;
|
|
10921
|
-
};
|
|
10922
|
-
}
|
|
10923
|
-
/**
|
|
10924
|
-
* Deserializes binary data (in protobuf wire format).
|
|
10925
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10926
|
-
* @return {!proto.clarifai.api.ConceptMappingJob}
|
|
10927
|
-
*/
|
|
10928
|
-
proto.clarifai.api.ConceptMappingJob.deserializeBinary = function (bytes) {
|
|
10929
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
10930
|
-
var msg = new proto.clarifai.api.ConceptMappingJob;
|
|
10931
|
-
return proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader(msg, reader);
|
|
10932
|
-
};
|
|
10933
|
-
/**
|
|
10934
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
10935
|
-
* given reader into the given message object.
|
|
10936
|
-
* @param {!proto.clarifai.api.ConceptMappingJob} msg The message object to deserialize into.
|
|
10937
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10938
|
-
* @return {!proto.clarifai.api.ConceptMappingJob}
|
|
10939
|
-
*/
|
|
10940
|
-
proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader = function (msg, reader) {
|
|
10941
|
-
while (reader.nextField()) {
|
|
10942
|
-
if (reader.isEndGroup()) {
|
|
10943
|
-
break;
|
|
10944
|
-
}
|
|
10945
|
-
var field = reader.getFieldNumber();
|
|
10946
|
-
switch (field) {
|
|
10947
|
-
case 1:
|
|
10948
|
-
var value = /** @type {string} */ (reader.readString());
|
|
10949
|
-
msg.setKnowledgeGraphId(value);
|
|
10950
|
-
break;
|
|
10951
|
-
case 2:
|
|
10952
|
-
var value = /** @type {string} */ (reader.readString());
|
|
10953
|
-
msg.addConceptIds(value);
|
|
10954
|
-
break;
|
|
10955
|
-
default:
|
|
10956
|
-
reader.skipField();
|
|
10957
|
-
break;
|
|
10958
|
-
}
|
|
10959
|
-
}
|
|
10960
|
-
return msg;
|
|
10961
|
-
};
|
|
10962
|
-
/**
|
|
10963
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
10964
|
-
* @return {!Uint8Array}
|
|
10965
|
-
*/
|
|
10966
|
-
proto.clarifai.api.ConceptMappingJob.prototype.serializeBinary = function () {
|
|
10967
|
-
var writer = new jspb.BinaryWriter();
|
|
10968
|
-
proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter(this, writer);
|
|
10969
|
-
return writer.getResultBuffer();
|
|
10970
|
-
};
|
|
10971
|
-
/**
|
|
10972
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
10973
|
-
* format), writing to the given BinaryWriter.
|
|
10974
|
-
* @param {!proto.clarifai.api.ConceptMappingJob} message
|
|
10975
|
-
* @param {!jspb.BinaryWriter} writer
|
|
10976
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10977
|
-
*/
|
|
10978
|
-
proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter = function (message, writer) {
|
|
10979
|
-
var f = undefined;
|
|
10980
|
-
f = message.getKnowledgeGraphId();
|
|
10981
|
-
if (f.length > 0) {
|
|
10982
|
-
writer.writeString(1, f);
|
|
10983
|
-
}
|
|
10984
|
-
f = message.getConceptIdsList();
|
|
10985
|
-
if (f.length > 0) {
|
|
10986
|
-
writer.writeRepeatedString(2, f);
|
|
10987
|
-
}
|
|
10988
|
-
};
|
|
10989
|
-
/**
|
|
10990
|
-
* optional string knowledge_graph_id = 1;
|
|
10991
|
-
* @return {string}
|
|
10992
|
-
*/
|
|
10993
|
-
proto.clarifai.api.ConceptMappingJob.prototype.getKnowledgeGraphId = function () {
|
|
10994
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
10995
|
-
};
|
|
10996
|
-
/**
|
|
10997
|
-
* @param {string} value
|
|
10998
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
10999
|
-
*/
|
|
11000
|
-
proto.clarifai.api.ConceptMappingJob.prototype.setKnowledgeGraphId = function (value) {
|
|
11001
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
11002
|
-
};
|
|
11003
|
-
/**
|
|
11004
|
-
* repeated string concept_ids = 2;
|
|
11005
|
-
* @return {!Array<string>}
|
|
11006
|
-
*/
|
|
11007
|
-
proto.clarifai.api.ConceptMappingJob.prototype.getConceptIdsList = function () {
|
|
11008
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
11009
|
-
};
|
|
11010
|
-
/**
|
|
11011
|
-
* @param {!Array<string>} value
|
|
11012
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
11013
|
-
*/
|
|
11014
|
-
proto.clarifai.api.ConceptMappingJob.prototype.setConceptIdsList = function (value) {
|
|
11015
|
-
return jspb.Message.setField(this, 2, value || []);
|
|
11016
|
-
};
|
|
11017
|
-
/**
|
|
11018
|
-
* @param {string} value
|
|
11019
|
-
* @param {number=} opt_index
|
|
11020
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
11021
|
-
*/
|
|
11022
|
-
proto.clarifai.api.ConceptMappingJob.prototype.addConceptIds = function (value, opt_index) {
|
|
11023
|
-
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
11024
|
-
};
|
|
11025
|
-
/**
|
|
11026
|
-
* Clears the list making it empty but non-null.
|
|
11027
|
-
* @return {!proto.clarifai.api.ConceptMappingJob} returns this
|
|
11028
|
-
*/
|
|
11029
|
-
proto.clarifai.api.ConceptMappingJob.prototype.clearConceptIdsList = function () {
|
|
11030
|
-
return this.setConceptIdsList([]);
|
|
11031
|
-
};
|
|
11032
10880
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11033
10881
|
/**
|
|
11034
10882
|
* Creates an object representation of this proto.
|
|
@@ -42196,7 +42044,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
42196
42044
|
proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
|
|
42197
42045
|
var f, obj = {
|
|
42198
42046
|
work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f),
|
|
42199
|
-
review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f)
|
|
42047
|
+
review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f),
|
|
42048
|
+
inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSourceMetrics.toObject(includeInstance, f)
|
|
42200
42049
|
};
|
|
42201
42050
|
if (includeInstance) {
|
|
42202
42051
|
obj.$jspbMessageInstance = msg;
|
|
@@ -42238,6 +42087,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, read
|
|
|
42238
42087
|
reader.readMessage(value, proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader);
|
|
42239
42088
|
msg.setReview(value);
|
|
42240
42089
|
break;
|
|
42090
|
+
case 4:
|
|
42091
|
+
var value = new proto.clarifai.api.TaskInputSourceMetrics;
|
|
42092
|
+
reader.readMessage(value, proto.clarifai.api.TaskInputSourceMetrics.deserializeBinaryFromReader);
|
|
42093
|
+
msg.setInputSource(value);
|
|
42094
|
+
break;
|
|
42241
42095
|
default:
|
|
42242
42096
|
reader.skipField();
|
|
42243
42097
|
break;
|
|
@@ -42271,6 +42125,10 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writ
|
|
|
42271
42125
|
if (f != null) {
|
|
42272
42126
|
writer.writeMessage(3, f, proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter);
|
|
42273
42127
|
}
|
|
42128
|
+
f = message.getInputSource();
|
|
42129
|
+
if (f != null) {
|
|
42130
|
+
writer.writeMessage(4, f, proto.clarifai.api.TaskInputSourceMetrics.serializeBinaryToWriter);
|
|
42131
|
+
}
|
|
42274
42132
|
};
|
|
42275
42133
|
/**
|
|
42276
42134
|
* optional TaskWorkMetrics work = 2;
|
|
@@ -42328,6 +42186,34 @@ proto.clarifai.api.TaskMetrics.prototype.clearReview = function () {
|
|
|
42328
42186
|
proto.clarifai.api.TaskMetrics.prototype.hasReview = function () {
|
|
42329
42187
|
return jspb.Message.getField(this, 3) != null;
|
|
42330
42188
|
};
|
|
42189
|
+
/**
|
|
42190
|
+
* optional TaskInputSourceMetrics input_source = 4;
|
|
42191
|
+
* @return {?proto.clarifai.api.TaskInputSourceMetrics}
|
|
42192
|
+
*/
|
|
42193
|
+
proto.clarifai.api.TaskMetrics.prototype.getInputSource = function () {
|
|
42194
|
+
return /** @type{?proto.clarifai.api.TaskInputSourceMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskInputSourceMetrics, 4));
|
|
42195
|
+
};
|
|
42196
|
+
/**
|
|
42197
|
+
* @param {?proto.clarifai.api.TaskInputSourceMetrics|undefined} value
|
|
42198
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
42199
|
+
*/
|
|
42200
|
+
proto.clarifai.api.TaskMetrics.prototype.setInputSource = function (value) {
|
|
42201
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
42202
|
+
};
|
|
42203
|
+
/**
|
|
42204
|
+
* Clears the message field making it undefined.
|
|
42205
|
+
* @return {!proto.clarifai.api.TaskMetrics} returns this
|
|
42206
|
+
*/
|
|
42207
|
+
proto.clarifai.api.TaskMetrics.prototype.clearInputSource = function () {
|
|
42208
|
+
return this.setInputSource(undefined);
|
|
42209
|
+
};
|
|
42210
|
+
/**
|
|
42211
|
+
* Returns whether this field is set.
|
|
42212
|
+
* @return {boolean}
|
|
42213
|
+
*/
|
|
42214
|
+
proto.clarifai.api.TaskMetrics.prototype.hasInputSource = function () {
|
|
42215
|
+
return jspb.Message.getField(this, 4) != null;
|
|
42216
|
+
};
|
|
42331
42217
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42332
42218
|
/**
|
|
42333
42219
|
* Creates an object representation of this proto.
|
|
@@ -42588,6 +42474,113 @@ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = funct
|
|
|
42588
42474
|
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function (value) {
|
|
42589
42475
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
42590
42476
|
};
|
|
42477
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42478
|
+
/**
|
|
42479
|
+
* Creates an object representation of this proto.
|
|
42480
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
42481
|
+
* Optional fields that are not set will be set to undefined.
|
|
42482
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
42483
|
+
* For the list of reserved names please see:
|
|
42484
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
42485
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
42486
|
+
* JSPB instance for transitional soy proto support:
|
|
42487
|
+
* http://goto/soy-param-migration
|
|
42488
|
+
* @return {!Object}
|
|
42489
|
+
*/
|
|
42490
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.toObject = function (opt_includeInstance) {
|
|
42491
|
+
return proto.clarifai.api.TaskInputSourceMetrics.toObject(opt_includeInstance, this);
|
|
42492
|
+
};
|
|
42493
|
+
/**
|
|
42494
|
+
* Static version of the {@see toObject} method.
|
|
42495
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
42496
|
+
* the JSPB instance for transitional soy proto support:
|
|
42497
|
+
* http://goto/soy-param-migration
|
|
42498
|
+
* @param {!proto.clarifai.api.TaskInputSourceMetrics} msg The msg instance to transform.
|
|
42499
|
+
* @return {!Object}
|
|
42500
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42501
|
+
*/
|
|
42502
|
+
proto.clarifai.api.TaskInputSourceMetrics.toObject = function (includeInstance, msg) {
|
|
42503
|
+
var f, obj = {
|
|
42504
|
+
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
42505
|
+
};
|
|
42506
|
+
if (includeInstance) {
|
|
42507
|
+
obj.$jspbMessageInstance = msg;
|
|
42508
|
+
}
|
|
42509
|
+
return obj;
|
|
42510
|
+
};
|
|
42511
|
+
}
|
|
42512
|
+
/**
|
|
42513
|
+
* Deserializes binary data (in protobuf wire format).
|
|
42514
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
42515
|
+
* @return {!proto.clarifai.api.TaskInputSourceMetrics}
|
|
42516
|
+
*/
|
|
42517
|
+
proto.clarifai.api.TaskInputSourceMetrics.deserializeBinary = function (bytes) {
|
|
42518
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
42519
|
+
var msg = new proto.clarifai.api.TaskInputSourceMetrics;
|
|
42520
|
+
return proto.clarifai.api.TaskInputSourceMetrics.deserializeBinaryFromReader(msg, reader);
|
|
42521
|
+
};
|
|
42522
|
+
/**
|
|
42523
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
42524
|
+
* given reader into the given message object.
|
|
42525
|
+
* @param {!proto.clarifai.api.TaskInputSourceMetrics} msg The message object to deserialize into.
|
|
42526
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
42527
|
+
* @return {!proto.clarifai.api.TaskInputSourceMetrics}
|
|
42528
|
+
*/
|
|
42529
|
+
proto.clarifai.api.TaskInputSourceMetrics.deserializeBinaryFromReader = function (msg, reader) {
|
|
42530
|
+
while (reader.nextField()) {
|
|
42531
|
+
if (reader.isEndGroup()) {
|
|
42532
|
+
break;
|
|
42533
|
+
}
|
|
42534
|
+
var field = reader.getFieldNumber();
|
|
42535
|
+
switch (field) {
|
|
42536
|
+
case 1:
|
|
42537
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
42538
|
+
msg.setInputsCountEstimated(value);
|
|
42539
|
+
break;
|
|
42540
|
+
default:
|
|
42541
|
+
reader.skipField();
|
|
42542
|
+
break;
|
|
42543
|
+
}
|
|
42544
|
+
}
|
|
42545
|
+
return msg;
|
|
42546
|
+
};
|
|
42547
|
+
/**
|
|
42548
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
42549
|
+
* @return {!Uint8Array}
|
|
42550
|
+
*/
|
|
42551
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.serializeBinary = function () {
|
|
42552
|
+
var writer = new jspb.BinaryWriter();
|
|
42553
|
+
proto.clarifai.api.TaskInputSourceMetrics.serializeBinaryToWriter(this, writer);
|
|
42554
|
+
return writer.getResultBuffer();
|
|
42555
|
+
};
|
|
42556
|
+
/**
|
|
42557
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
42558
|
+
* format), writing to the given BinaryWriter.
|
|
42559
|
+
* @param {!proto.clarifai.api.TaskInputSourceMetrics} message
|
|
42560
|
+
* @param {!jspb.BinaryWriter} writer
|
|
42561
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
42562
|
+
*/
|
|
42563
|
+
proto.clarifai.api.TaskInputSourceMetrics.serializeBinaryToWriter = function (message, writer) {
|
|
42564
|
+
var f = undefined;
|
|
42565
|
+
f = message.getInputsCountEstimated();
|
|
42566
|
+
if (f !== 0) {
|
|
42567
|
+
writer.writeUint64(1, f);
|
|
42568
|
+
}
|
|
42569
|
+
};
|
|
42570
|
+
/**
|
|
42571
|
+
* optional uint64 inputs_count_estimated = 1;
|
|
42572
|
+
* @return {number}
|
|
42573
|
+
*/
|
|
42574
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.getInputsCountEstimated = function () {
|
|
42575
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
42576
|
+
};
|
|
42577
|
+
/**
|
|
42578
|
+
* @param {number} value
|
|
42579
|
+
* @return {!proto.clarifai.api.TaskInputSourceMetrics} returns this
|
|
42580
|
+
*/
|
|
42581
|
+
proto.clarifai.api.TaskInputSourceMetrics.prototype.setInputsCountEstimated = function (value) {
|
|
42582
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
42583
|
+
};
|
|
42591
42584
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
42592
42585
|
/**
|
|
42593
42586
|
* Creates an object representation of this proto.
|
|
@@ -52668,7 +52661,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
52668
52661
|
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
52669
52662
|
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
52670
52663
|
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
52671
|
-
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
|
|
52664
|
+
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
52665
|
+
numReplicas: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
52672
52666
|
};
|
|
52673
52667
|
if (includeInstance) {
|
|
52674
52668
|
obj.$jspbMessageInstance = msg;
|
|
@@ -52746,6 +52740,10 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
52746
52740
|
reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
|
|
52747
52741
|
msg.setComputeInfo(value);
|
|
52748
52742
|
break;
|
|
52743
|
+
case 11:
|
|
52744
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
52745
|
+
msg.setNumReplicas(value);
|
|
52746
|
+
break;
|
|
52749
52747
|
default:
|
|
52750
52748
|
reader.skipField();
|
|
52751
52749
|
break;
|
|
@@ -52811,6 +52809,10 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
|
|
|
52811
52809
|
if (f != null) {
|
|
52812
52810
|
writer.writeMessage(10, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
|
|
52813
52811
|
}
|
|
52812
|
+
f = message.getNumReplicas();
|
|
52813
|
+
if (f !== 0) {
|
|
52814
|
+
writer.writeUint32(11, f);
|
|
52815
|
+
}
|
|
52814
52816
|
};
|
|
52815
52817
|
/**
|
|
52816
52818
|
* optional string id = 1;
|
|
@@ -53051,6 +53053,20 @@ proto.clarifai.api.Runner.prototype.clearComputeInfo = function () {
|
|
|
53051
53053
|
proto.clarifai.api.Runner.prototype.hasComputeInfo = function () {
|
|
53052
53054
|
return jspb.Message.getField(this, 10) != null;
|
|
53053
53055
|
};
|
|
53056
|
+
/**
|
|
53057
|
+
* optional uint32 num_replicas = 11;
|
|
53058
|
+
* @return {number}
|
|
53059
|
+
*/
|
|
53060
|
+
proto.clarifai.api.Runner.prototype.getNumReplicas = function () {
|
|
53061
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
53062
|
+
};
|
|
53063
|
+
/**
|
|
53064
|
+
* @param {number} value
|
|
53065
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
53066
|
+
*/
|
|
53067
|
+
proto.clarifai.api.Runner.prototype.setNumReplicas = function (value) {
|
|
53068
|
+
return jspb.Message.setProto3IntField(this, 11, value);
|
|
53069
|
+
};
|
|
53054
53070
|
/**
|
|
53055
53071
|
* List of repeated fields within this message type.
|
|
53056
53072
|
* @private {!Array<number>}
|
|
@@ -54697,29 +54713,6 @@ proto.clarifai.api.AutoscaleConfig.prototype.setEnablePacking = function (value)
|
|
|
54697
54713
|
* @const
|
|
54698
54714
|
*/
|
|
54699
54715
|
proto.clarifai.api.Deployment.repeatedFields_ = [4];
|
|
54700
|
-
/**
|
|
54701
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
54702
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
54703
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
54704
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
54705
|
-
* @private {!Array<!Array<number>>}
|
|
54706
|
-
* @const
|
|
54707
|
-
*/
|
|
54708
|
-
proto.clarifai.api.Deployment.oneofGroups_ = [[5, 6]];
|
|
54709
|
-
/**
|
|
54710
|
-
* @enum {number}
|
|
54711
|
-
*/
|
|
54712
|
-
proto.clarifai.api.Deployment.ObjectCase = {
|
|
54713
|
-
OBJECT_NOT_SET: 0,
|
|
54714
|
-
MODEL: 5,
|
|
54715
|
-
WORKFLOW: 6
|
|
54716
|
-
};
|
|
54717
|
-
/**
|
|
54718
|
-
* @return {proto.clarifai.api.Deployment.ObjectCase}
|
|
54719
|
-
*/
|
|
54720
|
-
proto.clarifai.api.Deployment.prototype.getObjectCase = function () {
|
|
54721
|
-
return /** @type {proto.clarifai.api.Deployment.ObjectCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Deployment.oneofGroups_[0]));
|
|
54722
|
-
};
|
|
54723
54716
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54724
54717
|
/**
|
|
54725
54718
|
* Creates an object representation of this proto.
|
|
@@ -54751,11 +54744,13 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
54751
54744
|
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
54752
54745
|
autoscaleConfig: (f = msg.getAutoscaleConfig()) && proto.clarifai.api.AutoscaleConfig.toObject(includeInstance, f),
|
|
54753
54746
|
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
|
|
54754
|
-
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
54755
|
-
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
54756
54747
|
schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
54757
54748
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
54758
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
54749
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
54750
|
+
description: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
54751
|
+
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
54752
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54753
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
54759
54754
|
};
|
|
54760
54755
|
if (includeInstance) {
|
|
54761
54756
|
obj.$jspbMessageInstance = msg;
|
|
@@ -54805,16 +54800,6 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function (msg, reade
|
|
|
54805
54800
|
reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
|
|
54806
54801
|
msg.addNodepools(value);
|
|
54807
54802
|
break;
|
|
54808
|
-
case 5:
|
|
54809
|
-
var value = new proto.clarifai.api.Model;
|
|
54810
|
-
reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
54811
|
-
msg.setModel(value);
|
|
54812
|
-
break;
|
|
54813
|
-
case 6:
|
|
54814
|
-
var value = new proto.clarifai.api.Workflow;
|
|
54815
|
-
reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
54816
|
-
msg.setWorkflow(value);
|
|
54817
|
-
break;
|
|
54818
54803
|
case 7:
|
|
54819
54804
|
var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
|
|
54820
54805
|
msg.setSchedulingChoice(value);
|
|
@@ -54829,6 +54814,25 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function (msg, reade
|
|
|
54829
54814
|
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
54830
54815
|
msg.setMetadata(value);
|
|
54831
54816
|
break;
|
|
54817
|
+
case 10:
|
|
54818
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54819
|
+
msg.setDescription(value);
|
|
54820
|
+
break;
|
|
54821
|
+
case 11:
|
|
54822
|
+
var value = new proto.clarifai.api.Worker;
|
|
54823
|
+
reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
|
|
54824
|
+
msg.setWorker(value);
|
|
54825
|
+
break;
|
|
54826
|
+
case 12:
|
|
54827
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54828
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54829
|
+
msg.setCreatedAt(value);
|
|
54830
|
+
break;
|
|
54831
|
+
case 13:
|
|
54832
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54833
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54834
|
+
msg.setModifiedAt(value);
|
|
54835
|
+
break;
|
|
54832
54836
|
default:
|
|
54833
54837
|
reader.skipField();
|
|
54834
54838
|
break;
|
|
@@ -54870,14 +54874,6 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function (message, write
|
|
|
54870
54874
|
if (f.length > 0) {
|
|
54871
54875
|
writer.writeRepeatedMessage(4, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
|
|
54872
54876
|
}
|
|
54873
|
-
f = message.getModel();
|
|
54874
|
-
if (f != null) {
|
|
54875
|
-
writer.writeMessage(5, f, proto.clarifai.api.Model.serializeBinaryToWriter);
|
|
54876
|
-
}
|
|
54877
|
-
f = message.getWorkflow();
|
|
54878
|
-
if (f != null) {
|
|
54879
|
-
writer.writeMessage(6, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
|
|
54880
|
-
}
|
|
54881
54877
|
f = message.getSchedulingChoice();
|
|
54882
54878
|
if (f !== 0.0) {
|
|
54883
54879
|
writer.writeEnum(7, f);
|
|
@@ -54890,6 +54886,22 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function (message, write
|
|
|
54890
54886
|
if (f != null) {
|
|
54891
54887
|
writer.writeMessage(9, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
54892
54888
|
}
|
|
54889
|
+
f = message.getDescription();
|
|
54890
|
+
if (f.length > 0) {
|
|
54891
|
+
writer.writeString(10, f);
|
|
54892
|
+
}
|
|
54893
|
+
f = message.getWorker();
|
|
54894
|
+
if (f != null) {
|
|
54895
|
+
writer.writeMessage(11, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
|
|
54896
|
+
}
|
|
54897
|
+
f = message.getCreatedAt();
|
|
54898
|
+
if (f != null) {
|
|
54899
|
+
writer.writeMessage(12, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
54900
|
+
}
|
|
54901
|
+
f = message.getModifiedAt();
|
|
54902
|
+
if (f != null) {
|
|
54903
|
+
writer.writeMessage(13, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
54904
|
+
}
|
|
54893
54905
|
};
|
|
54894
54906
|
/**
|
|
54895
54907
|
* @enum {number}
|
|
@@ -54991,130 +55003,172 @@ proto.clarifai.api.Deployment.prototype.clearNodepoolsList = function () {
|
|
|
54991
55003
|
return this.setNodepoolsList([]);
|
|
54992
55004
|
};
|
|
54993
55005
|
/**
|
|
54994
|
-
* optional
|
|
54995
|
-
* @return {
|
|
55006
|
+
* optional SchedulingChoice scheduling_choice = 7;
|
|
55007
|
+
* @return {!proto.clarifai.api.Deployment.SchedulingChoice}
|
|
54996
55008
|
*/
|
|
54997
|
-
proto.clarifai.api.Deployment.prototype.
|
|
54998
|
-
return /** @type{
|
|
55009
|
+
proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function () {
|
|
55010
|
+
return /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
54999
55011
|
};
|
|
55000
55012
|
/**
|
|
55001
|
-
* @param {
|
|
55013
|
+
* @param {!proto.clarifai.api.Deployment.SchedulingChoice} value
|
|
55014
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55015
|
+
*/
|
|
55016
|
+
proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function (value) {
|
|
55017
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
55018
|
+
};
|
|
55019
|
+
/**
|
|
55020
|
+
* optional Visibility visibility = 8;
|
|
55021
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
55022
|
+
*/
|
|
55023
|
+
proto.clarifai.api.Deployment.prototype.getVisibility = function () {
|
|
55024
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
|
|
55025
|
+
};
|
|
55026
|
+
/**
|
|
55027
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
55002
55028
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55003
55029
|
*/
|
|
55004
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55005
|
-
return jspb.Message.
|
|
55030
|
+
proto.clarifai.api.Deployment.prototype.setVisibility = function (value) {
|
|
55031
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
55006
55032
|
};
|
|
55007
55033
|
/**
|
|
55008
55034
|
* Clears the message field making it undefined.
|
|
55009
55035
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55010
55036
|
*/
|
|
55011
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55012
|
-
return this.
|
|
55037
|
+
proto.clarifai.api.Deployment.prototype.clearVisibility = function () {
|
|
55038
|
+
return this.setVisibility(undefined);
|
|
55013
55039
|
};
|
|
55014
55040
|
/**
|
|
55015
55041
|
* Returns whether this field is set.
|
|
55016
55042
|
* @return {boolean}
|
|
55017
55043
|
*/
|
|
55018
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55019
|
-
return jspb.Message.getField(this,
|
|
55044
|
+
proto.clarifai.api.Deployment.prototype.hasVisibility = function () {
|
|
55045
|
+
return jspb.Message.getField(this, 8) != null;
|
|
55020
55046
|
};
|
|
55021
55047
|
/**
|
|
55022
|
-
* optional
|
|
55023
|
-
* @return {?proto.
|
|
55048
|
+
* optional google.protobuf.Struct metadata = 9;
|
|
55049
|
+
* @return {?proto.google.protobuf.Struct}
|
|
55024
55050
|
*/
|
|
55025
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55026
|
-
return /** @type{?proto.
|
|
55051
|
+
proto.clarifai.api.Deployment.prototype.getMetadata = function () {
|
|
55052
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
|
|
55027
55053
|
};
|
|
55028
55054
|
/**
|
|
55029
|
-
* @param {?proto.
|
|
55055
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
55030
55056
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55031
55057
|
*/
|
|
55032
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55033
|
-
return jspb.Message.
|
|
55058
|
+
proto.clarifai.api.Deployment.prototype.setMetadata = function (value) {
|
|
55059
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
55034
55060
|
};
|
|
55035
55061
|
/**
|
|
55036
55062
|
* Clears the message field making it undefined.
|
|
55037
55063
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55038
55064
|
*/
|
|
55039
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55040
|
-
return this.
|
|
55065
|
+
proto.clarifai.api.Deployment.prototype.clearMetadata = function () {
|
|
55066
|
+
return this.setMetadata(undefined);
|
|
55041
55067
|
};
|
|
55042
55068
|
/**
|
|
55043
55069
|
* Returns whether this field is set.
|
|
55044
55070
|
* @return {boolean}
|
|
55045
55071
|
*/
|
|
55046
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55047
|
-
return jspb.Message.getField(this,
|
|
55072
|
+
proto.clarifai.api.Deployment.prototype.hasMetadata = function () {
|
|
55073
|
+
return jspb.Message.getField(this, 9) != null;
|
|
55048
55074
|
};
|
|
55049
55075
|
/**
|
|
55050
|
-
* optional
|
|
55051
|
-
* @return {
|
|
55076
|
+
* optional string description = 10;
|
|
55077
|
+
* @return {string}
|
|
55052
55078
|
*/
|
|
55053
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55054
|
-
return /** @type {
|
|
55079
|
+
proto.clarifai.api.Deployment.prototype.getDescription = function () {
|
|
55080
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
55055
55081
|
};
|
|
55056
55082
|
/**
|
|
55057
|
-
* @param {
|
|
55083
|
+
* @param {string} value
|
|
55058
55084
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55059
55085
|
*/
|
|
55060
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55061
|
-
return jspb.Message.
|
|
55086
|
+
proto.clarifai.api.Deployment.prototype.setDescription = function (value) {
|
|
55087
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
55062
55088
|
};
|
|
55063
55089
|
/**
|
|
55064
|
-
* optional
|
|
55065
|
-
* @return {?proto.clarifai.api.
|
|
55090
|
+
* optional Worker worker = 11;
|
|
55091
|
+
* @return {?proto.clarifai.api.Worker}
|
|
55066
55092
|
*/
|
|
55067
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55068
|
-
return /** @type{?proto.clarifai.api.
|
|
55093
|
+
proto.clarifai.api.Deployment.prototype.getWorker = function () {
|
|
55094
|
+
return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 11));
|
|
55069
55095
|
};
|
|
55070
55096
|
/**
|
|
55071
|
-
* @param {?proto.clarifai.api.
|
|
55097
|
+
* @param {?proto.clarifai.api.Worker|undefined} value
|
|
55072
55098
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55073
55099
|
*/
|
|
55074
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55075
|
-
return jspb.Message.setWrapperField(this,
|
|
55100
|
+
proto.clarifai.api.Deployment.prototype.setWorker = function (value) {
|
|
55101
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
55076
55102
|
};
|
|
55077
55103
|
/**
|
|
55078
55104
|
* Clears the message field making it undefined.
|
|
55079
55105
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55080
55106
|
*/
|
|
55081
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55082
|
-
return this.
|
|
55107
|
+
proto.clarifai.api.Deployment.prototype.clearWorker = function () {
|
|
55108
|
+
return this.setWorker(undefined);
|
|
55083
55109
|
};
|
|
55084
55110
|
/**
|
|
55085
55111
|
* Returns whether this field is set.
|
|
55086
55112
|
* @return {boolean}
|
|
55087
55113
|
*/
|
|
55088
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55089
|
-
return jspb.Message.getField(this,
|
|
55114
|
+
proto.clarifai.api.Deployment.prototype.hasWorker = function () {
|
|
55115
|
+
return jspb.Message.getField(this, 11) != null;
|
|
55090
55116
|
};
|
|
55091
55117
|
/**
|
|
55092
|
-
* optional google.protobuf.
|
|
55093
|
-
* @return {?proto.google.protobuf.
|
|
55118
|
+
* optional google.protobuf.Timestamp created_at = 12;
|
|
55119
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
55094
55120
|
*/
|
|
55095
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55096
|
-
return /** @type{?proto.google.protobuf.
|
|
55121
|
+
proto.clarifai.api.Deployment.prototype.getCreatedAt = function () {
|
|
55122
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
|
|
55097
55123
|
};
|
|
55098
55124
|
/**
|
|
55099
|
-
* @param {?proto.google.protobuf.
|
|
55125
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
55100
55126
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55101
55127
|
*/
|
|
55102
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55103
|
-
return jspb.Message.setWrapperField(this,
|
|
55128
|
+
proto.clarifai.api.Deployment.prototype.setCreatedAt = function (value) {
|
|
55129
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
55104
55130
|
};
|
|
55105
55131
|
/**
|
|
55106
55132
|
* Clears the message field making it undefined.
|
|
55107
55133
|
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55108
55134
|
*/
|
|
55109
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55110
|
-
return this.
|
|
55135
|
+
proto.clarifai.api.Deployment.prototype.clearCreatedAt = function () {
|
|
55136
|
+
return this.setCreatedAt(undefined);
|
|
55111
55137
|
};
|
|
55112
55138
|
/**
|
|
55113
55139
|
* Returns whether this field is set.
|
|
55114
55140
|
* @return {boolean}
|
|
55115
55141
|
*/
|
|
55116
|
-
proto.clarifai.api.Deployment.prototype.
|
|
55117
|
-
return jspb.Message.getField(this,
|
|
55142
|
+
proto.clarifai.api.Deployment.prototype.hasCreatedAt = function () {
|
|
55143
|
+
return jspb.Message.getField(this, 12) != null;
|
|
55144
|
+
};
|
|
55145
|
+
/**
|
|
55146
|
+
* optional google.protobuf.Timestamp modified_at = 13;
|
|
55147
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
55148
|
+
*/
|
|
55149
|
+
proto.clarifai.api.Deployment.prototype.getModifiedAt = function () {
|
|
55150
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 13));
|
|
55151
|
+
};
|
|
55152
|
+
/**
|
|
55153
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
55154
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55155
|
+
*/
|
|
55156
|
+
proto.clarifai.api.Deployment.prototype.setModifiedAt = function (value) {
|
|
55157
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
55158
|
+
};
|
|
55159
|
+
/**
|
|
55160
|
+
* Clears the message field making it undefined.
|
|
55161
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
55162
|
+
*/
|
|
55163
|
+
proto.clarifai.api.Deployment.prototype.clearModifiedAt = function () {
|
|
55164
|
+
return this.setModifiedAt(undefined);
|
|
55165
|
+
};
|
|
55166
|
+
/**
|
|
55167
|
+
* Returns whether this field is set.
|
|
55168
|
+
* @return {boolean}
|
|
55169
|
+
*/
|
|
55170
|
+
proto.clarifai.api.Deployment.prototype.hasModifiedAt = function () {
|
|
55171
|
+
return jspb.Message.getField(this, 13) != null;
|
|
55118
55172
|
};
|
|
55119
55173
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55120
55174
|
/**
|