clarifai-web-grpc 10.8.4 → 10.8.5
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 +112 -419
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +6 -48
- package/dist/cjs/proto/clarifai/api/service_pb.js +42 -551
- package/dist/esm/proto/clarifai/api/resources_pb.js +112 -419
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +6 -48
- package/dist/esm/proto/clarifai/api/service_pb.js +42 -551
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +23 -58
- package/proto/clarifai/api/resources_pb.js +146 -520
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +3 -15
- package/proto/clarifai/api/service_grpc_web_pb.js +6 -67
- package/proto/clarifai/api/service_pb.d.ts +16 -90
- package/proto/clarifai/api/service_pb.js +42 -681
|
@@ -93,7 +93,6 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
|
|
|
93
93
|
goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
|
|
94
94
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
|
|
95
95
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
|
|
96
|
-
goog.exportSymbol('proto.clarifai.api.CustomCodeOperatorRequest', null, global);
|
|
97
96
|
goog.exportSymbol('proto.clarifai.api.Data', null, global);
|
|
98
97
|
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
|
|
99
98
|
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
|
|
@@ -239,6 +238,7 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregate', null, global);
|
|
|
239
238
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
|
|
240
239
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
|
|
241
240
|
goog.exportSymbol('proto.clarifai.api.Task', null, global);
|
|
241
|
+
goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
|
|
242
242
|
goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
|
|
243
243
|
goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
|
|
244
244
|
goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
|
|
@@ -294,7 +294,6 @@ goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
|
|
|
294
294
|
goog.exportSymbol('proto.clarifai.api.WorkflowModelUseCase', null, global);
|
|
295
295
|
goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
|
|
296
296
|
goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
|
|
297
|
-
goog.exportSymbol('proto.clarifai.api.WorkflowResultsSimilarity', null, global);
|
|
298
297
|
goog.exportSymbol('proto.clarifai.api.WorkflowState', null, global);
|
|
299
298
|
goog.exportSymbol('proto.clarifai.api.WorkflowVersion', null, global);
|
|
300
299
|
/**
|
|
@@ -1578,27 +1577,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1578
1577
|
*/
|
|
1579
1578
|
proto.clarifai.api.FrameInterpolationInfo.displayName = 'proto.clarifai.api.FrameInterpolationInfo';
|
|
1580
1579
|
}
|
|
1581
|
-
/**
|
|
1582
|
-
* Generated by JsPbCodeGenerator.
|
|
1583
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1584
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
1585
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
1586
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
1587
|
-
* valid.
|
|
1588
|
-
* @extends {jspb.Message}
|
|
1589
|
-
* @constructor
|
|
1590
|
-
*/
|
|
1591
|
-
proto.clarifai.api.WorkflowResultsSimilarity = function(opt_data) {
|
|
1592
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.WorkflowResultsSimilarity.repeatedFields_, null);
|
|
1593
|
-
};
|
|
1594
|
-
goog.inherits(proto.clarifai.api.WorkflowResultsSimilarity, jspb.Message);
|
|
1595
|
-
if (goog.DEBUG && !COMPILED) {
|
|
1596
|
-
/**
|
|
1597
|
-
* @public
|
|
1598
|
-
* @override
|
|
1599
|
-
*/
|
|
1600
|
-
proto.clarifai.api.WorkflowResultsSimilarity.displayName = 'proto.clarifai.api.WorkflowResultsSimilarity';
|
|
1601
|
-
}
|
|
1602
1580
|
/**
|
|
1603
1581
|
* Generated by JsPbCodeGenerator.
|
|
1604
1582
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4308,27 +4286,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4308
4286
|
*/
|
|
4309
4287
|
proto.clarifai.api.UploadContentPart.displayName = 'proto.clarifai.api.UploadContentPart';
|
|
4310
4288
|
}
|
|
4311
|
-
/**
|
|
4312
|
-
* Generated by JsPbCodeGenerator.
|
|
4313
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4314
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
4315
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
4316
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
4317
|
-
* valid.
|
|
4318
|
-
* @extends {jspb.Message}
|
|
4319
|
-
* @constructor
|
|
4320
|
-
*/
|
|
4321
|
-
proto.clarifai.api.CustomCodeOperatorRequest = function(opt_data) {
|
|
4322
|
-
jspb.Message.initialize(this, opt_data, 0, 500, proto.clarifai.api.CustomCodeOperatorRequest.repeatedFields_, null);
|
|
4323
|
-
};
|
|
4324
|
-
goog.inherits(proto.clarifai.api.CustomCodeOperatorRequest, jspb.Message);
|
|
4325
|
-
if (goog.DEBUG && !COMPILED) {
|
|
4326
|
-
/**
|
|
4327
|
-
* @public
|
|
4328
|
-
* @override
|
|
4329
|
-
*/
|
|
4330
|
-
proto.clarifai.api.CustomCodeOperatorRequest.displayName = 'proto.clarifai.api.CustomCodeOperatorRequest';
|
|
4331
|
-
}
|
|
4332
4289
|
/**
|
|
4333
4290
|
* Generated by JsPbCodeGenerator.
|
|
4334
4291
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9929,7 +9886,8 @@ proto.clarifai.api.Concept.toObject = function(includeInstance, msg) {
|
|
|
9929
9886
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
9930
9887
|
userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
9931
9888
|
keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f),
|
|
9932
|
-
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f)
|
|
9889
|
+
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f),
|
|
9890
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
9933
9891
|
};
|
|
9934
9892
|
|
|
9935
9893
|
if (includeInstance) {
|
|
@@ -10018,6 +9976,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
10018
9976
|
reader.readMessage(value,proto.clarifai.api.ConceptExtraInfo.deserializeBinaryFromReader);
|
|
10019
9977
|
msg.setExtraInfo(value);
|
|
10020
9978
|
break;
|
|
9979
|
+
case 13:
|
|
9980
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
9981
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
9982
|
+
msg.setMetadata(value);
|
|
9983
|
+
break;
|
|
10021
9984
|
default:
|
|
10022
9985
|
reader.skipField();
|
|
10023
9986
|
break;
|
|
@@ -10135,6 +10098,14 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) {
|
|
|
10135
10098
|
proto.clarifai.api.ConceptExtraInfo.serializeBinaryToWriter
|
|
10136
10099
|
);
|
|
10137
10100
|
}
|
|
10101
|
+
f = message.getMetadata();
|
|
10102
|
+
if (f != null) {
|
|
10103
|
+
writer.writeMessage(
|
|
10104
|
+
13,
|
|
10105
|
+
f,
|
|
10106
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
10107
|
+
);
|
|
10108
|
+
}
|
|
10138
10109
|
};
|
|
10139
10110
|
|
|
10140
10111
|
|
|
@@ -10430,6 +10401,43 @@ proto.clarifai.api.Concept.prototype.hasExtraInfo = function() {
|
|
|
10430
10401
|
};
|
|
10431
10402
|
|
|
10432
10403
|
|
|
10404
|
+
/**
|
|
10405
|
+
* optional google.protobuf.Struct metadata = 13;
|
|
10406
|
+
* @return {?proto.google.protobuf.Struct}
|
|
10407
|
+
*/
|
|
10408
|
+
proto.clarifai.api.Concept.prototype.getMetadata = function() {
|
|
10409
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
10410
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13));
|
|
10411
|
+
};
|
|
10412
|
+
|
|
10413
|
+
|
|
10414
|
+
/**
|
|
10415
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
10416
|
+
* @return {!proto.clarifai.api.Concept} returns this
|
|
10417
|
+
*/
|
|
10418
|
+
proto.clarifai.api.Concept.prototype.setMetadata = function(value) {
|
|
10419
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
10420
|
+
};
|
|
10421
|
+
|
|
10422
|
+
|
|
10423
|
+
/**
|
|
10424
|
+
* Clears the message field making it undefined.
|
|
10425
|
+
* @return {!proto.clarifai.api.Concept} returns this
|
|
10426
|
+
*/
|
|
10427
|
+
proto.clarifai.api.Concept.prototype.clearMetadata = function() {
|
|
10428
|
+
return this.setMetadata(undefined);
|
|
10429
|
+
};
|
|
10430
|
+
|
|
10431
|
+
|
|
10432
|
+
/**
|
|
10433
|
+
* Returns whether this field is set.
|
|
10434
|
+
* @return {boolean}
|
|
10435
|
+
*/
|
|
10436
|
+
proto.clarifai.api.Concept.prototype.hasMetadata = function() {
|
|
10437
|
+
return jspb.Message.getField(this, 13) != null;
|
|
10438
|
+
};
|
|
10439
|
+
|
|
10440
|
+
|
|
10433
10441
|
|
|
10434
10442
|
/**
|
|
10435
10443
|
* List of repeated fields within this message type.
|
|
@@ -23262,217 +23270,6 @@ proto.clarifai.api.FrameInterpolationInfo.prototype.setSampleMs = function(value
|
|
|
23262
23270
|
|
|
23263
23271
|
|
|
23264
23272
|
|
|
23265
|
-
/**
|
|
23266
|
-
* List of repeated fields within this message type.
|
|
23267
|
-
* @private {!Array<number>}
|
|
23268
|
-
* @const
|
|
23269
|
-
*/
|
|
23270
|
-
proto.clarifai.api.WorkflowResultsSimilarity.repeatedFields_ = [2];
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23275
|
-
/**
|
|
23276
|
-
* Creates an object representation of this proto.
|
|
23277
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
23278
|
-
* Optional fields that are not set will be set to undefined.
|
|
23279
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
23280
|
-
* For the list of reserved names please see:
|
|
23281
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
23282
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
23283
|
-
* JSPB instance for transitional soy proto support:
|
|
23284
|
-
* http://goto/soy-param-migration
|
|
23285
|
-
* @return {!Object}
|
|
23286
|
-
*/
|
|
23287
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.toObject = function(opt_includeInstance) {
|
|
23288
|
-
return proto.clarifai.api.WorkflowResultsSimilarity.toObject(opt_includeInstance, this);
|
|
23289
|
-
};
|
|
23290
|
-
|
|
23291
|
-
|
|
23292
|
-
/**
|
|
23293
|
-
* Static version of the {@see toObject} method.
|
|
23294
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
23295
|
-
* the JSPB instance for transitional soy proto support:
|
|
23296
|
-
* http://goto/soy-param-migration
|
|
23297
|
-
* @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The msg instance to transform.
|
|
23298
|
-
* @return {!Object}
|
|
23299
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23300
|
-
*/
|
|
23301
|
-
proto.clarifai.api.WorkflowResultsSimilarity.toObject = function(includeInstance, msg) {
|
|
23302
|
-
var f, obj = {
|
|
23303
|
-
probeInput: (f = msg.getProbeInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
23304
|
-
poolResultsList: jspb.Message.toObjectList(msg.getPoolResultsList(),
|
|
23305
|
-
proto.clarifai.api.Hit.toObject, includeInstance)
|
|
23306
|
-
};
|
|
23307
|
-
|
|
23308
|
-
if (includeInstance) {
|
|
23309
|
-
obj.$jspbMessageInstance = msg;
|
|
23310
|
-
}
|
|
23311
|
-
return obj;
|
|
23312
|
-
};
|
|
23313
|
-
}
|
|
23314
|
-
|
|
23315
|
-
|
|
23316
|
-
/**
|
|
23317
|
-
* Deserializes binary data (in protobuf wire format).
|
|
23318
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
23319
|
-
* @return {!proto.clarifai.api.WorkflowResultsSimilarity}
|
|
23320
|
-
*/
|
|
23321
|
-
proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinary = function(bytes) {
|
|
23322
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
23323
|
-
var msg = new proto.clarifai.api.WorkflowResultsSimilarity;
|
|
23324
|
-
return proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader(msg, reader);
|
|
23325
|
-
};
|
|
23326
|
-
|
|
23327
|
-
|
|
23328
|
-
/**
|
|
23329
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
23330
|
-
* given reader into the given message object.
|
|
23331
|
-
* @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The message object to deserialize into.
|
|
23332
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
23333
|
-
* @return {!proto.clarifai.api.WorkflowResultsSimilarity}
|
|
23334
|
-
*/
|
|
23335
|
-
proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader = function(msg, reader) {
|
|
23336
|
-
while (reader.nextField()) {
|
|
23337
|
-
if (reader.isEndGroup()) {
|
|
23338
|
-
break;
|
|
23339
|
-
}
|
|
23340
|
-
var field = reader.getFieldNumber();
|
|
23341
|
-
switch (field) {
|
|
23342
|
-
case 1:
|
|
23343
|
-
var value = new proto.clarifai.api.Input;
|
|
23344
|
-
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
23345
|
-
msg.setProbeInput(value);
|
|
23346
|
-
break;
|
|
23347
|
-
case 2:
|
|
23348
|
-
var value = new proto.clarifai.api.Hit;
|
|
23349
|
-
reader.readMessage(value,proto.clarifai.api.Hit.deserializeBinaryFromReader);
|
|
23350
|
-
msg.addPoolResults(value);
|
|
23351
|
-
break;
|
|
23352
|
-
default:
|
|
23353
|
-
reader.skipField();
|
|
23354
|
-
break;
|
|
23355
|
-
}
|
|
23356
|
-
}
|
|
23357
|
-
return msg;
|
|
23358
|
-
};
|
|
23359
|
-
|
|
23360
|
-
|
|
23361
|
-
/**
|
|
23362
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
23363
|
-
* @return {!Uint8Array}
|
|
23364
|
-
*/
|
|
23365
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.serializeBinary = function() {
|
|
23366
|
-
var writer = new jspb.BinaryWriter();
|
|
23367
|
-
proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter(this, writer);
|
|
23368
|
-
return writer.getResultBuffer();
|
|
23369
|
-
};
|
|
23370
|
-
|
|
23371
|
-
|
|
23372
|
-
/**
|
|
23373
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
23374
|
-
* format), writing to the given BinaryWriter.
|
|
23375
|
-
* @param {!proto.clarifai.api.WorkflowResultsSimilarity} message
|
|
23376
|
-
* @param {!jspb.BinaryWriter} writer
|
|
23377
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23378
|
-
*/
|
|
23379
|
-
proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter = function(message, writer) {
|
|
23380
|
-
var f = undefined;
|
|
23381
|
-
f = message.getProbeInput();
|
|
23382
|
-
if (f != null) {
|
|
23383
|
-
writer.writeMessage(
|
|
23384
|
-
1,
|
|
23385
|
-
f,
|
|
23386
|
-
proto.clarifai.api.Input.serializeBinaryToWriter
|
|
23387
|
-
);
|
|
23388
|
-
}
|
|
23389
|
-
f = message.getPoolResultsList();
|
|
23390
|
-
if (f.length > 0) {
|
|
23391
|
-
writer.writeRepeatedMessage(
|
|
23392
|
-
2,
|
|
23393
|
-
f,
|
|
23394
|
-
proto.clarifai.api.Hit.serializeBinaryToWriter
|
|
23395
|
-
);
|
|
23396
|
-
}
|
|
23397
|
-
};
|
|
23398
|
-
|
|
23399
|
-
|
|
23400
|
-
/**
|
|
23401
|
-
* optional Input probe_input = 1;
|
|
23402
|
-
* @return {?proto.clarifai.api.Input}
|
|
23403
|
-
*/
|
|
23404
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.getProbeInput = function() {
|
|
23405
|
-
return /** @type{?proto.clarifai.api.Input} */ (
|
|
23406
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 1));
|
|
23407
|
-
};
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
|
-
/**
|
|
23411
|
-
* @param {?proto.clarifai.api.Input|undefined} value
|
|
23412
|
-
* @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
|
|
23413
|
-
*/
|
|
23414
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.setProbeInput = function(value) {
|
|
23415
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
23416
|
-
};
|
|
23417
|
-
|
|
23418
|
-
|
|
23419
|
-
/**
|
|
23420
|
-
* Clears the message field making it undefined.
|
|
23421
|
-
* @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
|
|
23422
|
-
*/
|
|
23423
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearProbeInput = function() {
|
|
23424
|
-
return this.setProbeInput(undefined);
|
|
23425
|
-
};
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
/**
|
|
23429
|
-
* Returns whether this field is set.
|
|
23430
|
-
* @return {boolean}
|
|
23431
|
-
*/
|
|
23432
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.hasProbeInput = function() {
|
|
23433
|
-
return jspb.Message.getField(this, 1) != null;
|
|
23434
|
-
};
|
|
23435
|
-
|
|
23436
|
-
|
|
23437
|
-
/**
|
|
23438
|
-
* repeated Hit pool_results = 2;
|
|
23439
|
-
* @return {!Array<!proto.clarifai.api.Hit>}
|
|
23440
|
-
*/
|
|
23441
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.getPoolResultsList = function() {
|
|
23442
|
-
return /** @type{!Array<!proto.clarifai.api.Hit>} */ (
|
|
23443
|
-
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 2));
|
|
23444
|
-
};
|
|
23445
|
-
|
|
23446
|
-
|
|
23447
|
-
/**
|
|
23448
|
-
* @param {!Array<!proto.clarifai.api.Hit>} value
|
|
23449
|
-
* @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
|
|
23450
|
-
*/
|
|
23451
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.setPoolResultsList = function(value) {
|
|
23452
|
-
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
23453
|
-
};
|
|
23454
|
-
|
|
23455
|
-
|
|
23456
|
-
/**
|
|
23457
|
-
* @param {!proto.clarifai.api.Hit=} opt_value
|
|
23458
|
-
* @param {number=} opt_index
|
|
23459
|
-
* @return {!proto.clarifai.api.Hit}
|
|
23460
|
-
*/
|
|
23461
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.addPoolResults = function(opt_value, opt_index) {
|
|
23462
|
-
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Hit, opt_index);
|
|
23463
|
-
};
|
|
23464
|
-
|
|
23465
|
-
|
|
23466
|
-
/**
|
|
23467
|
-
* Clears the list making it empty but non-null.
|
|
23468
|
-
* @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this
|
|
23469
|
-
*/
|
|
23470
|
-
proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearPoolResultsList = function() {
|
|
23471
|
-
return this.setPoolResultsList([]);
|
|
23472
|
-
};
|
|
23473
|
-
|
|
23474
|
-
|
|
23475
|
-
|
|
23476
23273
|
/**
|
|
23477
23274
|
* List of repeated fields within this message type.
|
|
23478
23275
|
* @private {!Array<number>}
|
|
@@ -41529,7 +41326,8 @@ proto.clarifai.api.User.toObject = function(includeInstance, msg) {
|
|
|
41529
41326
|
isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
|
|
41530
41327
|
starCount: jspb.Message.getFieldWithDefault(msg, 22, 0),
|
|
41531
41328
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
41532
|
-
userDetail: (f = msg.getUserDetail()) && proto.clarifai.api.UserDetail.toObject(includeInstance, f)
|
|
41329
|
+
userDetail: (f = msg.getUserDetail()) && proto.clarifai.api.UserDetail.toObject(includeInstance, f),
|
|
41330
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
41533
41331
|
};
|
|
41534
41332
|
|
|
41535
41333
|
if (includeInstance) {
|
|
@@ -41667,6 +41465,11 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
41667
41465
|
reader.readMessage(value,proto.clarifai.api.UserDetail.deserializeBinaryFromReader);
|
|
41668
41466
|
msg.setUserDetail(value);
|
|
41669
41467
|
break;
|
|
41468
|
+
case 26:
|
|
41469
|
+
var value = new proto.clarifai.api.Image;
|
|
41470
|
+
reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
41471
|
+
msg.setImage(value);
|
|
41472
|
+
break;
|
|
41670
41473
|
default:
|
|
41671
41474
|
reader.skipField();
|
|
41672
41475
|
break;
|
|
@@ -41866,6 +41669,14 @@ proto.clarifai.api.User.serializeBinaryToWriter = function(message, writer) {
|
|
|
41866
41669
|
proto.clarifai.api.UserDetail.serializeBinaryToWriter
|
|
41867
41670
|
);
|
|
41868
41671
|
}
|
|
41672
|
+
f = message.getImage();
|
|
41673
|
+
if (f != null) {
|
|
41674
|
+
writer.writeMessage(
|
|
41675
|
+
26,
|
|
41676
|
+
f,
|
|
41677
|
+
proto.clarifai.api.Image.serializeBinaryToWriter
|
|
41678
|
+
);
|
|
41679
|
+
}
|
|
41869
41680
|
};
|
|
41870
41681
|
|
|
41871
41682
|
|
|
@@ -42455,6 +42266,43 @@ proto.clarifai.api.User.prototype.hasUserDetail = function() {
|
|
|
42455
42266
|
};
|
|
42456
42267
|
|
|
42457
42268
|
|
|
42269
|
+
/**
|
|
42270
|
+
* optional Image image = 26;
|
|
42271
|
+
* @return {?proto.clarifai.api.Image}
|
|
42272
|
+
*/
|
|
42273
|
+
proto.clarifai.api.User.prototype.getImage = function() {
|
|
42274
|
+
return /** @type{?proto.clarifai.api.Image} */ (
|
|
42275
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 26));
|
|
42276
|
+
};
|
|
42277
|
+
|
|
42278
|
+
|
|
42279
|
+
/**
|
|
42280
|
+
* @param {?proto.clarifai.api.Image|undefined} value
|
|
42281
|
+
* @return {!proto.clarifai.api.User} returns this
|
|
42282
|
+
*/
|
|
42283
|
+
proto.clarifai.api.User.prototype.setImage = function(value) {
|
|
42284
|
+
return jspb.Message.setWrapperField(this, 26, value);
|
|
42285
|
+
};
|
|
42286
|
+
|
|
42287
|
+
|
|
42288
|
+
/**
|
|
42289
|
+
* Clears the message field making it undefined.
|
|
42290
|
+
* @return {!proto.clarifai.api.User} returns this
|
|
42291
|
+
*/
|
|
42292
|
+
proto.clarifai.api.User.prototype.clearImage = function() {
|
|
42293
|
+
return this.setImage(undefined);
|
|
42294
|
+
};
|
|
42295
|
+
|
|
42296
|
+
|
|
42297
|
+
/**
|
|
42298
|
+
* Returns whether this field is set.
|
|
42299
|
+
* @return {boolean}
|
|
42300
|
+
*/
|
|
42301
|
+
proto.clarifai.api.User.prototype.hasImage = function() {
|
|
42302
|
+
return jspb.Message.getField(this, 26) != null;
|
|
42303
|
+
};
|
|
42304
|
+
|
|
42305
|
+
|
|
42458
42306
|
|
|
42459
42307
|
/**
|
|
42460
42308
|
* List of repeated fields within this message type.
|
|
@@ -46460,7 +46308,6 @@ proto.clarifai.api.WorkflowResult.toObject = function(includeInstance, msg) {
|
|
|
46460
46308
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
46461
46309
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
46462
46310
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
46463
|
-
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
46464
46311
|
input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
|
|
46465
46312
|
outputsList: jspb.Message.toObjectList(msg.getOutputsList(),
|
|
46466
46313
|
proto.clarifai.api.Output.toObject, includeInstance),
|
|
@@ -46515,11 +46362,6 @@ proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader = function(msg, re
|
|
|
46515
46362
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
46516
46363
|
msg.setCreatedAt(value);
|
|
46517
46364
|
break;
|
|
46518
|
-
case 4:
|
|
46519
|
-
var value = new proto.clarifai.api.Model;
|
|
46520
|
-
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
46521
|
-
msg.setModel(value);
|
|
46522
|
-
break;
|
|
46523
46365
|
case 5:
|
|
46524
46366
|
var value = new proto.clarifai.api.Input;
|
|
46525
46367
|
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
@@ -46586,14 +46428,6 @@ proto.clarifai.api.WorkflowResult.serializeBinaryToWriter = function(message, wr
|
|
|
46586
46428
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
46587
46429
|
);
|
|
46588
46430
|
}
|
|
46589
|
-
f = message.getModel();
|
|
46590
|
-
if (f != null) {
|
|
46591
|
-
writer.writeMessage(
|
|
46592
|
-
4,
|
|
46593
|
-
f,
|
|
46594
|
-
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
46595
|
-
);
|
|
46596
|
-
}
|
|
46597
46431
|
f = message.getInput();
|
|
46598
46432
|
if (f != null) {
|
|
46599
46433
|
writer.writeMessage(
|
|
@@ -46712,43 +46546,6 @@ proto.clarifai.api.WorkflowResult.prototype.hasCreatedAt = function() {
|
|
|
46712
46546
|
};
|
|
46713
46547
|
|
|
46714
46548
|
|
|
46715
|
-
/**
|
|
46716
|
-
* optional Model model = 4;
|
|
46717
|
-
* @return {?proto.clarifai.api.Model}
|
|
46718
|
-
*/
|
|
46719
|
-
proto.clarifai.api.WorkflowResult.prototype.getModel = function() {
|
|
46720
|
-
return /** @type{?proto.clarifai.api.Model} */ (
|
|
46721
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 4));
|
|
46722
|
-
};
|
|
46723
|
-
|
|
46724
|
-
|
|
46725
|
-
/**
|
|
46726
|
-
* @param {?proto.clarifai.api.Model|undefined} value
|
|
46727
|
-
* @return {!proto.clarifai.api.WorkflowResult} returns this
|
|
46728
|
-
*/
|
|
46729
|
-
proto.clarifai.api.WorkflowResult.prototype.setModel = function(value) {
|
|
46730
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
46731
|
-
};
|
|
46732
|
-
|
|
46733
|
-
|
|
46734
|
-
/**
|
|
46735
|
-
* Clears the message field making it undefined.
|
|
46736
|
-
* @return {!proto.clarifai.api.WorkflowResult} returns this
|
|
46737
|
-
*/
|
|
46738
|
-
proto.clarifai.api.WorkflowResult.prototype.clearModel = function() {
|
|
46739
|
-
return this.setModel(undefined);
|
|
46740
|
-
};
|
|
46741
|
-
|
|
46742
|
-
|
|
46743
|
-
/**
|
|
46744
|
-
* Returns whether this field is set.
|
|
46745
|
-
* @return {boolean}
|
|
46746
|
-
*/
|
|
46747
|
-
proto.clarifai.api.WorkflowResult.prototype.hasModel = function() {
|
|
46748
|
-
return jspb.Message.getField(this, 4) != null;
|
|
46749
|
-
};
|
|
46750
|
-
|
|
46751
|
-
|
|
46752
46549
|
/**
|
|
46753
46550
|
* optional Input input = 5;
|
|
46754
46551
|
* @return {?proto.clarifai.api.Input}
|
|
@@ -48534,7 +48331,8 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
|
|
|
48534
48331
|
conceptsList: jspb.Message.toObjectList(msg.getConceptsList(),
|
|
48535
48332
|
proto.clarifai.api.TaskConcept.toObject, includeInstance),
|
|
48536
48333
|
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
|
|
48537
|
-
metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
|
|
48334
|
+
metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f),
|
|
48335
|
+
priority: jspb.Message.getFieldWithDefault(msg, 23, 0)
|
|
48538
48336
|
};
|
|
48539
48337
|
|
|
48540
48338
|
if (includeInstance) {
|
|
@@ -48670,6 +48468,10 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
48670
48468
|
reader.readMessage(value,proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
|
|
48671
48469
|
msg.setMetrics(value);
|
|
48672
48470
|
break;
|
|
48471
|
+
case 23:
|
|
48472
|
+
var value = /** @type {!proto.clarifai.api.Task.TaskPriority} */ (reader.readEnum());
|
|
48473
|
+
msg.setPriority(value);
|
|
48474
|
+
break;
|
|
48673
48475
|
default:
|
|
48674
48476
|
reader.skipField();
|
|
48675
48477
|
break;
|
|
@@ -48864,6 +48666,13 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
|
|
|
48864
48666
|
proto.clarifai.api.TaskMetrics.serializeBinaryToWriter
|
|
48865
48667
|
);
|
|
48866
48668
|
}
|
|
48669
|
+
f = message.getPriority();
|
|
48670
|
+
if (f !== 0.0) {
|
|
48671
|
+
writer.writeEnum(
|
|
48672
|
+
23,
|
|
48673
|
+
f
|
|
48674
|
+
);
|
|
48675
|
+
}
|
|
48867
48676
|
};
|
|
48868
48677
|
|
|
48869
48678
|
|
|
@@ -48886,6 +48695,16 @@ proto.clarifai.api.Task.TaskType = {
|
|
|
48886
48695
|
POLYGON_DETECTION: 3
|
|
48887
48696
|
};
|
|
48888
48697
|
|
|
48698
|
+
/**
|
|
48699
|
+
* @enum {number}
|
|
48700
|
+
*/
|
|
48701
|
+
proto.clarifai.api.Task.TaskPriority = {
|
|
48702
|
+
TASK_PRIORITY_NOT_SET: 0,
|
|
48703
|
+
LOW: 1,
|
|
48704
|
+
MEDIUM: 2,
|
|
48705
|
+
HIGH: 3
|
|
48706
|
+
};
|
|
48707
|
+
|
|
48889
48708
|
/**
|
|
48890
48709
|
* optional string id = 1;
|
|
48891
48710
|
* @return {string}
|
|
@@ -49511,6 +49330,24 @@ proto.clarifai.api.Task.prototype.hasMetrics = function() {
|
|
|
49511
49330
|
};
|
|
49512
49331
|
|
|
49513
49332
|
|
|
49333
|
+
/**
|
|
49334
|
+
* optional TaskPriority priority = 23;
|
|
49335
|
+
* @return {!proto.clarifai.api.Task.TaskPriority}
|
|
49336
|
+
*/
|
|
49337
|
+
proto.clarifai.api.Task.prototype.getPriority = function() {
|
|
49338
|
+
return /** @type {!proto.clarifai.api.Task.TaskPriority} */ (jspb.Message.getFieldWithDefault(this, 23, 0));
|
|
49339
|
+
};
|
|
49340
|
+
|
|
49341
|
+
|
|
49342
|
+
/**
|
|
49343
|
+
* @param {!proto.clarifai.api.Task.TaskPriority} value
|
|
49344
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
49345
|
+
*/
|
|
49346
|
+
proto.clarifai.api.Task.prototype.setPriority = function(value) {
|
|
49347
|
+
return jspb.Message.setProto3EnumField(this, 23, value);
|
|
49348
|
+
};
|
|
49349
|
+
|
|
49350
|
+
|
|
49514
49351
|
|
|
49515
49352
|
/**
|
|
49516
49353
|
* List of repeated fields within this message type.
|
|
@@ -63378,217 +63215,6 @@ proto.clarifai.api.UploadContentPart.prototype.setData = function(value) {
|
|
|
63378
63215
|
|
|
63379
63216
|
|
|
63380
63217
|
|
|
63381
|
-
/**
|
|
63382
|
-
* List of repeated fields within this message type.
|
|
63383
|
-
* @private {!Array<number>}
|
|
63384
|
-
* @const
|
|
63385
|
-
*/
|
|
63386
|
-
proto.clarifai.api.CustomCodeOperatorRequest.repeatedFields_ = [1];
|
|
63387
|
-
|
|
63388
|
-
|
|
63389
|
-
|
|
63390
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
63391
|
-
/**
|
|
63392
|
-
* Creates an object representation of this proto.
|
|
63393
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
63394
|
-
* Optional fields that are not set will be set to undefined.
|
|
63395
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
63396
|
-
* For the list of reserved names please see:
|
|
63397
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
63398
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
63399
|
-
* JSPB instance for transitional soy proto support:
|
|
63400
|
-
* http://goto/soy-param-migration
|
|
63401
|
-
* @return {!Object}
|
|
63402
|
-
*/
|
|
63403
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.toObject = function(opt_includeInstance) {
|
|
63404
|
-
return proto.clarifai.api.CustomCodeOperatorRequest.toObject(opt_includeInstance, this);
|
|
63405
|
-
};
|
|
63406
|
-
|
|
63407
|
-
|
|
63408
|
-
/**
|
|
63409
|
-
* Static version of the {@see toObject} method.
|
|
63410
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
63411
|
-
* the JSPB instance for transitional soy proto support:
|
|
63412
|
-
* http://goto/soy-param-migration
|
|
63413
|
-
* @param {!proto.clarifai.api.CustomCodeOperatorRequest} msg The msg instance to transform.
|
|
63414
|
-
* @return {!Object}
|
|
63415
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
63416
|
-
*/
|
|
63417
|
-
proto.clarifai.api.CustomCodeOperatorRequest.toObject = function(includeInstance, msg) {
|
|
63418
|
-
var f, obj = {
|
|
63419
|
-
inputsList: jspb.Message.toObjectList(msg.getInputsList(),
|
|
63420
|
-
proto.clarifai.api.Input.toObject, includeInstance),
|
|
63421
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
63422
|
-
};
|
|
63423
|
-
|
|
63424
|
-
if (includeInstance) {
|
|
63425
|
-
obj.$jspbMessageInstance = msg;
|
|
63426
|
-
}
|
|
63427
|
-
return obj;
|
|
63428
|
-
};
|
|
63429
|
-
}
|
|
63430
|
-
|
|
63431
|
-
|
|
63432
|
-
/**
|
|
63433
|
-
* Deserializes binary data (in protobuf wire format).
|
|
63434
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
63435
|
-
* @return {!proto.clarifai.api.CustomCodeOperatorRequest}
|
|
63436
|
-
*/
|
|
63437
|
-
proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinary = function(bytes) {
|
|
63438
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
63439
|
-
var msg = new proto.clarifai.api.CustomCodeOperatorRequest;
|
|
63440
|
-
return proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinaryFromReader(msg, reader);
|
|
63441
|
-
};
|
|
63442
|
-
|
|
63443
|
-
|
|
63444
|
-
/**
|
|
63445
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
63446
|
-
* given reader into the given message object.
|
|
63447
|
-
* @param {!proto.clarifai.api.CustomCodeOperatorRequest} msg The message object to deserialize into.
|
|
63448
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
63449
|
-
* @return {!proto.clarifai.api.CustomCodeOperatorRequest}
|
|
63450
|
-
*/
|
|
63451
|
-
proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
63452
|
-
while (reader.nextField()) {
|
|
63453
|
-
if (reader.isEndGroup()) {
|
|
63454
|
-
break;
|
|
63455
|
-
}
|
|
63456
|
-
var field = reader.getFieldNumber();
|
|
63457
|
-
switch (field) {
|
|
63458
|
-
case 1:
|
|
63459
|
-
var value = new proto.clarifai.api.Input;
|
|
63460
|
-
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
63461
|
-
msg.addInputs(value);
|
|
63462
|
-
break;
|
|
63463
|
-
case 1002:
|
|
63464
|
-
var value = new google_protobuf_struct_pb.Struct;
|
|
63465
|
-
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
63466
|
-
msg.setMetadata(value);
|
|
63467
|
-
break;
|
|
63468
|
-
default:
|
|
63469
|
-
reader.skipField();
|
|
63470
|
-
break;
|
|
63471
|
-
}
|
|
63472
|
-
}
|
|
63473
|
-
return msg;
|
|
63474
|
-
};
|
|
63475
|
-
|
|
63476
|
-
|
|
63477
|
-
/**
|
|
63478
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
63479
|
-
* @return {!Uint8Array}
|
|
63480
|
-
*/
|
|
63481
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.serializeBinary = function() {
|
|
63482
|
-
var writer = new jspb.BinaryWriter();
|
|
63483
|
-
proto.clarifai.api.CustomCodeOperatorRequest.serializeBinaryToWriter(this, writer);
|
|
63484
|
-
return writer.getResultBuffer();
|
|
63485
|
-
};
|
|
63486
|
-
|
|
63487
|
-
|
|
63488
|
-
/**
|
|
63489
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
63490
|
-
* format), writing to the given BinaryWriter.
|
|
63491
|
-
* @param {!proto.clarifai.api.CustomCodeOperatorRequest} message
|
|
63492
|
-
* @param {!jspb.BinaryWriter} writer
|
|
63493
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
63494
|
-
*/
|
|
63495
|
-
proto.clarifai.api.CustomCodeOperatorRequest.serializeBinaryToWriter = function(message, writer) {
|
|
63496
|
-
var f = undefined;
|
|
63497
|
-
f = message.getInputsList();
|
|
63498
|
-
if (f.length > 0) {
|
|
63499
|
-
writer.writeRepeatedMessage(
|
|
63500
|
-
1,
|
|
63501
|
-
f,
|
|
63502
|
-
proto.clarifai.api.Input.serializeBinaryToWriter
|
|
63503
|
-
);
|
|
63504
|
-
}
|
|
63505
|
-
f = message.getMetadata();
|
|
63506
|
-
if (f != null) {
|
|
63507
|
-
writer.writeMessage(
|
|
63508
|
-
1002,
|
|
63509
|
-
f,
|
|
63510
|
-
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
63511
|
-
);
|
|
63512
|
-
}
|
|
63513
|
-
};
|
|
63514
|
-
|
|
63515
|
-
|
|
63516
|
-
/**
|
|
63517
|
-
* repeated Input inputs = 1;
|
|
63518
|
-
* @return {!Array<!proto.clarifai.api.Input>}
|
|
63519
|
-
*/
|
|
63520
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.getInputsList = function() {
|
|
63521
|
-
return /** @type{!Array<!proto.clarifai.api.Input>} */ (
|
|
63522
|
-
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Input, 1));
|
|
63523
|
-
};
|
|
63524
|
-
|
|
63525
|
-
|
|
63526
|
-
/**
|
|
63527
|
-
* @param {!Array<!proto.clarifai.api.Input>} value
|
|
63528
|
-
* @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
|
|
63529
|
-
*/
|
|
63530
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.setInputsList = function(value) {
|
|
63531
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
63532
|
-
};
|
|
63533
|
-
|
|
63534
|
-
|
|
63535
|
-
/**
|
|
63536
|
-
* @param {!proto.clarifai.api.Input=} opt_value
|
|
63537
|
-
* @param {number=} opt_index
|
|
63538
|
-
* @return {!proto.clarifai.api.Input}
|
|
63539
|
-
*/
|
|
63540
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.addInputs = function(opt_value, opt_index) {
|
|
63541
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Input, opt_index);
|
|
63542
|
-
};
|
|
63543
|
-
|
|
63544
|
-
|
|
63545
|
-
/**
|
|
63546
|
-
* Clears the list making it empty but non-null.
|
|
63547
|
-
* @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
|
|
63548
|
-
*/
|
|
63549
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.clearInputsList = function() {
|
|
63550
|
-
return this.setInputsList([]);
|
|
63551
|
-
};
|
|
63552
|
-
|
|
63553
|
-
|
|
63554
|
-
/**
|
|
63555
|
-
* optional google.protobuf.Struct metadata = 1002;
|
|
63556
|
-
* @return {?proto.google.protobuf.Struct}
|
|
63557
|
-
*/
|
|
63558
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.getMetadata = function() {
|
|
63559
|
-
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
63560
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1002));
|
|
63561
|
-
};
|
|
63562
|
-
|
|
63563
|
-
|
|
63564
|
-
/**
|
|
63565
|
-
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
63566
|
-
* @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
|
|
63567
|
-
*/
|
|
63568
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.setMetadata = function(value) {
|
|
63569
|
-
return jspb.Message.setWrapperField(this, 1002, value);
|
|
63570
|
-
};
|
|
63571
|
-
|
|
63572
|
-
|
|
63573
|
-
/**
|
|
63574
|
-
* Clears the message field making it undefined.
|
|
63575
|
-
* @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this
|
|
63576
|
-
*/
|
|
63577
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.clearMetadata = function() {
|
|
63578
|
-
return this.setMetadata(undefined);
|
|
63579
|
-
};
|
|
63580
|
-
|
|
63581
|
-
|
|
63582
|
-
/**
|
|
63583
|
-
* Returns whether this field is set.
|
|
63584
|
-
* @return {boolean}
|
|
63585
|
-
*/
|
|
63586
|
-
proto.clarifai.api.CustomCodeOperatorRequest.prototype.hasMetadata = function() {
|
|
63587
|
-
return jspb.Message.getField(this, 1002) != null;
|
|
63588
|
-
};
|
|
63589
|
-
|
|
63590
|
-
|
|
63591
|
-
|
|
63592
63218
|
|
|
63593
63219
|
|
|
63594
63220
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|