clarifai-web-grpc 9.6.1 → 9.10.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/.github/workflows/ci.yml +25 -17
- package/README.md +1 -1
- package/VERSION +1 -1
- package/dist/cjs/google/api/annotations_pb.d.ts +1 -0
- package/dist/cjs/google/api/annotations_pb.js +32 -0
- package/dist/cjs/google/api/http_pb.d.ts +1 -0
- package/dist/cjs/google/api/http_pb.js +813 -0
- package/dist/cjs/index.d.ts +7 -0
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/resources_pb.js +51218 -0
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +9103 -0
- package/dist/cjs/proto/clarifai/api/service_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +67552 -0
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +376 -0
- package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +717 -0
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +60 -0
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +197 -0
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +529 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +332 -0
- package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +34 -0
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +88 -0
- package/dist/cjs/resources.d.ts +1 -0
- package/dist/cjs/resources.js +13 -0
- package/dist/cjs/service.d.ts +1 -0
- package/dist/cjs/service.js +13 -0
- package/dist/esm/google/api/annotations_pb.d.ts +1 -0
- package/dist/esm/google/api/annotations_pb.js +32 -0
- package/dist/esm/google/api/http_pb.d.ts +1 -0
- package/dist/esm/google/api/http_pb.js +813 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/proto/clarifai/api/resources_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +51218 -0
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +9103 -0
- package/dist/esm/proto/clarifai/api/service_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +67552 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +376 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.js +717 -0
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +60 -0
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +197 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +529 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +332 -0
- package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +34 -0
- package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +88 -0
- package/dist/esm/resources.d.ts +1 -0
- package/dist/esm/resources.js +1 -0
- package/dist/esm/service.d.ts +1 -0
- package/dist/esm/service.js +1 -0
- package/index.ts +2 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +359 -27
- package/proto/clarifai/api/resources_pb.js +2892 -232
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +96 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +488 -0
- package/proto/clarifai/api/service_pb.d.ts +770 -50
- package/proto/clarifai/api/service_pb.js +29397 -23205
- package/proto/clarifai/api/status/status_code_pb.d.ts +7 -1
- package/proto/clarifai/api/status/status_code_pb.js +7 -1
- package/proto/clarifai/auth/scope/scope_pb.d.ts +5 -0
- package/proto/clarifai/auth/scope/scope_pb.js +6 -1
|
@@ -54,11 +54,14 @@ goog.exportSymbol('proto.clarifai.api.App', null, global);
|
|
|
54
54
|
goog.exportSymbol('proto.clarifai.api.AppCopyProgress', null, global);
|
|
55
55
|
goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
|
|
56
56
|
goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
|
|
57
|
+
goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
|
|
57
58
|
goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
58
59
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
59
60
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
60
61
|
goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
|
|
61
62
|
goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
|
|
63
|
+
goog.exportSymbol('proto.clarifai.api.BookmarkOrigin', null, global);
|
|
64
|
+
goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global);
|
|
62
65
|
goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
|
|
63
66
|
goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
|
|
64
67
|
goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
|
|
@@ -70,6 +73,7 @@ goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
|
|
|
70
73
|
goog.exportSymbol('proto.clarifai.api.Color', null, global);
|
|
71
74
|
goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
72
75
|
goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
|
|
76
|
+
goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
|
|
73
77
|
goog.exportSymbol('proto.clarifai.api.ConceptLanguage', null, global);
|
|
74
78
|
goog.exportSymbol('proto.clarifai.api.ConceptMappingJob', null, global);
|
|
75
79
|
goog.exportSymbol('proto.clarifai.api.ConceptQuery', null, global);
|
|
@@ -114,6 +118,7 @@ goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global);
|
|
|
114
118
|
goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
|
|
115
119
|
goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
|
|
116
120
|
goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
|
|
121
|
+
goog.exportSymbol('proto.clarifai.api.ExtendedMetrics', null, global);
|
|
117
122
|
goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global);
|
|
118
123
|
goog.exportSymbol('proto.clarifai.api.Filter', null, global);
|
|
119
124
|
goog.exportSymbol('proto.clarifai.api.Frame', null, global);
|
|
@@ -197,6 +202,7 @@ goog.exportSymbol('proto.clarifai.api.Rank', null, global);
|
|
|
197
202
|
goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
198
203
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
199
204
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
205
|
+
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
200
206
|
goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
|
|
201
207
|
goog.exportSymbol('proto.clarifai.api.Search', null, global);
|
|
202
208
|
goog.exportSymbol('proto.clarifai.api.Search.Metric', null, global);
|
|
@@ -253,6 +259,8 @@ goog.exportSymbol('proto.clarifai.api.VideoInfo', null, global);
|
|
|
253
259
|
goog.exportSymbol('proto.clarifai.api.Visibility', null, global);
|
|
254
260
|
goog.exportSymbol('proto.clarifai.api.Visibility.Gettable', null, global);
|
|
255
261
|
goog.exportSymbol('proto.clarifai.api.W3C', null, global);
|
|
262
|
+
goog.exportSymbol('proto.clarifai.api.Worker', null, global);
|
|
263
|
+
goog.exportSymbol('proto.clarifai.api.Worker.WorkerCase', null, global);
|
|
256
264
|
goog.exportSymbol('proto.clarifai.api.Workflow', null, global);
|
|
257
265
|
goog.exportSymbol('proto.clarifai.api.WorkflowNode', null, global);
|
|
258
266
|
goog.exportSymbol('proto.clarifai.api.WorkflowResult', null, global);
|
|
@@ -280,6 +288,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
280
288
|
*/
|
|
281
289
|
proto.clarifai.api.Annotation.displayName = 'proto.clarifai.api.Annotation';
|
|
282
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Generated by JsPbCodeGenerator.
|
|
293
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
294
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
295
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
296
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
297
|
+
* valid.
|
|
298
|
+
* @extends {jspb.Message}
|
|
299
|
+
* @constructor
|
|
300
|
+
*/
|
|
301
|
+
proto.clarifai.api.Worker = function(opt_data) {
|
|
302
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.Worker.oneofGroups_);
|
|
303
|
+
};
|
|
304
|
+
goog.inherits(proto.clarifai.api.Worker, jspb.Message);
|
|
305
|
+
if (goog.DEBUG && !COMPILED) {
|
|
306
|
+
/**
|
|
307
|
+
* @public
|
|
308
|
+
* @override
|
|
309
|
+
*/
|
|
310
|
+
proto.clarifai.api.Worker.displayName = 'proto.clarifai.api.Worker';
|
|
311
|
+
}
|
|
283
312
|
/**
|
|
284
313
|
* Generated by JsPbCodeGenerator.
|
|
285
314
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -301,6 +330,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
301
330
|
*/
|
|
302
331
|
proto.clarifai.api.App.displayName = 'proto.clarifai.api.App';
|
|
303
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* Generated by JsPbCodeGenerator.
|
|
335
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
336
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
337
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
338
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
339
|
+
* valid.
|
|
340
|
+
* @extends {jspb.Message}
|
|
341
|
+
* @constructor
|
|
342
|
+
*/
|
|
343
|
+
proto.clarifai.api.AppExtraInfo = function(opt_data) {
|
|
344
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
345
|
+
};
|
|
346
|
+
goog.inherits(proto.clarifai.api.AppExtraInfo, jspb.Message);
|
|
347
|
+
if (goog.DEBUG && !COMPILED) {
|
|
348
|
+
/**
|
|
349
|
+
* @public
|
|
350
|
+
* @override
|
|
351
|
+
*/
|
|
352
|
+
proto.clarifai.api.AppExtraInfo.displayName = 'proto.clarifai.api.AppExtraInfo';
|
|
353
|
+
}
|
|
304
354
|
/**
|
|
305
355
|
* Generated by JsPbCodeGenerator.
|
|
306
356
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -595,6 +645,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
595
645
|
*/
|
|
596
646
|
proto.clarifai.api.KeypointEdge.displayName = 'proto.clarifai.api.KeypointEdge';
|
|
597
647
|
}
|
|
648
|
+
/**
|
|
649
|
+
* Generated by JsPbCodeGenerator.
|
|
650
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
651
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
652
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
653
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
654
|
+
* valid.
|
|
655
|
+
* @extends {jspb.Message}
|
|
656
|
+
* @constructor
|
|
657
|
+
*/
|
|
658
|
+
proto.clarifai.api.ConceptExtraInfo = function(opt_data) {
|
|
659
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
660
|
+
};
|
|
661
|
+
goog.inherits(proto.clarifai.api.ConceptExtraInfo, jspb.Message);
|
|
662
|
+
if (goog.DEBUG && !COMPILED) {
|
|
663
|
+
/**
|
|
664
|
+
* @public
|
|
665
|
+
* @override
|
|
666
|
+
*/
|
|
667
|
+
proto.clarifai.api.ConceptExtraInfo.displayName = 'proto.clarifai.api.ConceptExtraInfo';
|
|
668
|
+
}
|
|
598
669
|
/**
|
|
599
670
|
* Generated by JsPbCodeGenerator.
|
|
600
671
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1593,7 +1664,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1593
1664
|
* @constructor
|
|
1594
1665
|
*/
|
|
1595
1666
|
proto.clarifai.api.OutputInfo = function(opt_data) {
|
|
1596
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
1667
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.OutputInfo.repeatedFields_, null);
|
|
1597
1668
|
};
|
|
1598
1669
|
goog.inherits(proto.clarifai.api.OutputInfo, jspb.Message);
|
|
1599
1670
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -2275,6 +2346,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2275
2346
|
*/
|
|
2276
2347
|
proto.clarifai.api.EvalMetrics.displayName = 'proto.clarifai.api.EvalMetrics';
|
|
2277
2348
|
}
|
|
2349
|
+
/**
|
|
2350
|
+
* Generated by JsPbCodeGenerator.
|
|
2351
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2352
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2353
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2354
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2355
|
+
* valid.
|
|
2356
|
+
* @extends {jspb.Message}
|
|
2357
|
+
* @constructor
|
|
2358
|
+
*/
|
|
2359
|
+
proto.clarifai.api.ExtendedMetrics = function(opt_data) {
|
|
2360
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2361
|
+
};
|
|
2362
|
+
goog.inherits(proto.clarifai.api.ExtendedMetrics, jspb.Message);
|
|
2363
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2364
|
+
/**
|
|
2365
|
+
* @public
|
|
2366
|
+
* @override
|
|
2367
|
+
*/
|
|
2368
|
+
proto.clarifai.api.ExtendedMetrics.displayName = 'proto.clarifai.api.ExtendedMetrics';
|
|
2369
|
+
}
|
|
2278
2370
|
/**
|
|
2279
2371
|
* Generated by JsPbCodeGenerator.
|
|
2280
2372
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4249,6 +4341,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4249
4341
|
*/
|
|
4250
4342
|
proto.clarifai.api.InputsUpload.displayName = 'proto.clarifai.api.InputsUpload';
|
|
4251
4343
|
}
|
|
4344
|
+
/**
|
|
4345
|
+
* Generated by JsPbCodeGenerator.
|
|
4346
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4347
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4348
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4349
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4350
|
+
* valid.
|
|
4351
|
+
* @extends {jspb.Message}
|
|
4352
|
+
* @constructor
|
|
4353
|
+
*/
|
|
4354
|
+
proto.clarifai.api.BookmarkOrigin = function(opt_data) {
|
|
4355
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4356
|
+
};
|
|
4357
|
+
goog.inherits(proto.clarifai.api.BookmarkOrigin, jspb.Message);
|
|
4358
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4359
|
+
/**
|
|
4360
|
+
* @public
|
|
4361
|
+
* @override
|
|
4362
|
+
*/
|
|
4363
|
+
proto.clarifai.api.BookmarkOrigin.displayName = 'proto.clarifai.api.BookmarkOrigin';
|
|
4364
|
+
}
|
|
4365
|
+
/**
|
|
4366
|
+
* Generated by JsPbCodeGenerator.
|
|
4367
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4368
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4369
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4370
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4371
|
+
* valid.
|
|
4372
|
+
* @extends {jspb.Message}
|
|
4373
|
+
* @constructor
|
|
4374
|
+
*/
|
|
4375
|
+
proto.clarifai.api.Runner = function(opt_data) {
|
|
4376
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, null);
|
|
4377
|
+
};
|
|
4378
|
+
goog.inherits(proto.clarifai.api.Runner, jspb.Message);
|
|
4379
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4380
|
+
/**
|
|
4381
|
+
* @public
|
|
4382
|
+
* @override
|
|
4383
|
+
*/
|
|
4384
|
+
proto.clarifai.api.Runner.displayName = 'proto.clarifai.api.Runner';
|
|
4385
|
+
}
|
|
4252
4386
|
|
|
4253
4387
|
|
|
4254
4388
|
|
|
@@ -4294,7 +4428,8 @@ proto.clarifai.api.Annotation.toObject = function(includeInstance, msg) {
|
|
|
4294
4428
|
trusted: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
4295
4429
|
inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
4296
4430
|
consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
4297
|
-
taskId: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
4431
|
+
taskId: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
4432
|
+
workflowVersionId: jspb.Message.getFieldWithDefault(msg, 20, "")
|
|
4298
4433
|
};
|
|
4299
4434
|
|
|
4300
4435
|
if (includeInstance) {
|
|
@@ -4393,6 +4528,10 @@ proto.clarifai.api.Annotation.deserializeBinaryFromReader = function(msg, reader
|
|
|
4393
4528
|
var value = /** @type {string} */ (reader.readString());
|
|
4394
4529
|
msg.setTaskId(value);
|
|
4395
4530
|
break;
|
|
4531
|
+
case 20:
|
|
4532
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4533
|
+
msg.setWorkflowVersionId(value);
|
|
4534
|
+
break;
|
|
4396
4535
|
default:
|
|
4397
4536
|
reader.skipField();
|
|
4398
4537
|
break;
|
|
@@ -4526,6 +4665,13 @@ proto.clarifai.api.Annotation.serializeBinaryToWriter = function(message, writer
|
|
|
4526
4665
|
f
|
|
4527
4666
|
);
|
|
4528
4667
|
}
|
|
4668
|
+
f = message.getWorkflowVersionId();
|
|
4669
|
+
if (f.length > 0) {
|
|
4670
|
+
writer.writeString(
|
|
4671
|
+
20,
|
|
4672
|
+
f
|
|
4673
|
+
);
|
|
4674
|
+
}
|
|
4529
4675
|
};
|
|
4530
4676
|
|
|
4531
4677
|
|
|
@@ -4895,6 +5041,304 @@ proto.clarifai.api.Annotation.prototype.setTaskId = function(value) {
|
|
|
4895
5041
|
};
|
|
4896
5042
|
|
|
4897
5043
|
|
|
5044
|
+
/**
|
|
5045
|
+
* optional string workflow_version_id = 20;
|
|
5046
|
+
* @return {string}
|
|
5047
|
+
*/
|
|
5048
|
+
proto.clarifai.api.Annotation.prototype.getWorkflowVersionId = function() {
|
|
5049
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
|
|
5050
|
+
};
|
|
5051
|
+
|
|
5052
|
+
|
|
5053
|
+
/**
|
|
5054
|
+
* @param {string} value
|
|
5055
|
+
* @return {!proto.clarifai.api.Annotation} returns this
|
|
5056
|
+
*/
|
|
5057
|
+
proto.clarifai.api.Annotation.prototype.setWorkflowVersionId = function(value) {
|
|
5058
|
+
return jspb.Message.setProto3StringField(this, 20, value);
|
|
5059
|
+
};
|
|
5060
|
+
|
|
5061
|
+
|
|
5062
|
+
|
|
5063
|
+
/**
|
|
5064
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
5065
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
5066
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
5067
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
5068
|
+
* @private {!Array<!Array<number>>}
|
|
5069
|
+
* @const
|
|
5070
|
+
*/
|
|
5071
|
+
proto.clarifai.api.Worker.oneofGroups_ = [[1,2,3]];
|
|
5072
|
+
|
|
5073
|
+
/**
|
|
5074
|
+
* @enum {number}
|
|
5075
|
+
*/
|
|
5076
|
+
proto.clarifai.api.Worker.WorkerCase = {
|
|
5077
|
+
WORKER_NOT_SET: 0,
|
|
5078
|
+
USER: 1,
|
|
5079
|
+
MODEL: 2,
|
|
5080
|
+
WORKFLOW: 3
|
|
5081
|
+
};
|
|
5082
|
+
|
|
5083
|
+
/**
|
|
5084
|
+
* @return {proto.clarifai.api.Worker.WorkerCase}
|
|
5085
|
+
*/
|
|
5086
|
+
proto.clarifai.api.Worker.prototype.getWorkerCase = function() {
|
|
5087
|
+
return /** @type {proto.clarifai.api.Worker.WorkerCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Worker.oneofGroups_[0]));
|
|
5088
|
+
};
|
|
5089
|
+
|
|
5090
|
+
|
|
5091
|
+
|
|
5092
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5093
|
+
/**
|
|
5094
|
+
* Creates an object representation of this proto.
|
|
5095
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5096
|
+
* Optional fields that are not set will be set to undefined.
|
|
5097
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5098
|
+
* For the list of reserved names please see:
|
|
5099
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5100
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5101
|
+
* JSPB instance for transitional soy proto support:
|
|
5102
|
+
* http://goto/soy-param-migration
|
|
5103
|
+
* @return {!Object}
|
|
5104
|
+
*/
|
|
5105
|
+
proto.clarifai.api.Worker.prototype.toObject = function(opt_includeInstance) {
|
|
5106
|
+
return proto.clarifai.api.Worker.toObject(opt_includeInstance, this);
|
|
5107
|
+
};
|
|
5108
|
+
|
|
5109
|
+
|
|
5110
|
+
/**
|
|
5111
|
+
* Static version of the {@see toObject} method.
|
|
5112
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5113
|
+
* the JSPB instance for transitional soy proto support:
|
|
5114
|
+
* http://goto/soy-param-migration
|
|
5115
|
+
* @param {!proto.clarifai.api.Worker} msg The msg instance to transform.
|
|
5116
|
+
* @return {!Object}
|
|
5117
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5118
|
+
*/
|
|
5119
|
+
proto.clarifai.api.Worker.toObject = function(includeInstance, msg) {
|
|
5120
|
+
var f, obj = {
|
|
5121
|
+
user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
|
|
5122
|
+
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
5123
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
|
|
5124
|
+
};
|
|
5125
|
+
|
|
5126
|
+
if (includeInstance) {
|
|
5127
|
+
obj.$jspbMessageInstance = msg;
|
|
5128
|
+
}
|
|
5129
|
+
return obj;
|
|
5130
|
+
};
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
|
|
5134
|
+
/**
|
|
5135
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5136
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5137
|
+
* @return {!proto.clarifai.api.Worker}
|
|
5138
|
+
*/
|
|
5139
|
+
proto.clarifai.api.Worker.deserializeBinary = function(bytes) {
|
|
5140
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5141
|
+
var msg = new proto.clarifai.api.Worker;
|
|
5142
|
+
return proto.clarifai.api.Worker.deserializeBinaryFromReader(msg, reader);
|
|
5143
|
+
};
|
|
5144
|
+
|
|
5145
|
+
|
|
5146
|
+
/**
|
|
5147
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5148
|
+
* given reader into the given message object.
|
|
5149
|
+
* @param {!proto.clarifai.api.Worker} msg The message object to deserialize into.
|
|
5150
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5151
|
+
* @return {!proto.clarifai.api.Worker}
|
|
5152
|
+
*/
|
|
5153
|
+
proto.clarifai.api.Worker.deserializeBinaryFromReader = function(msg, reader) {
|
|
5154
|
+
while (reader.nextField()) {
|
|
5155
|
+
if (reader.isEndGroup()) {
|
|
5156
|
+
break;
|
|
5157
|
+
}
|
|
5158
|
+
var field = reader.getFieldNumber();
|
|
5159
|
+
switch (field) {
|
|
5160
|
+
case 1:
|
|
5161
|
+
var value = new proto.clarifai.api.User;
|
|
5162
|
+
reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
5163
|
+
msg.setUser(value);
|
|
5164
|
+
break;
|
|
5165
|
+
case 2:
|
|
5166
|
+
var value = new proto.clarifai.api.Model;
|
|
5167
|
+
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
5168
|
+
msg.setModel(value);
|
|
5169
|
+
break;
|
|
5170
|
+
case 3:
|
|
5171
|
+
var value = new proto.clarifai.api.Workflow;
|
|
5172
|
+
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
5173
|
+
msg.setWorkflow(value);
|
|
5174
|
+
break;
|
|
5175
|
+
default:
|
|
5176
|
+
reader.skipField();
|
|
5177
|
+
break;
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
return msg;
|
|
5181
|
+
};
|
|
5182
|
+
|
|
5183
|
+
|
|
5184
|
+
/**
|
|
5185
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5186
|
+
* @return {!Uint8Array}
|
|
5187
|
+
*/
|
|
5188
|
+
proto.clarifai.api.Worker.prototype.serializeBinary = function() {
|
|
5189
|
+
var writer = new jspb.BinaryWriter();
|
|
5190
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter(this, writer);
|
|
5191
|
+
return writer.getResultBuffer();
|
|
5192
|
+
};
|
|
5193
|
+
|
|
5194
|
+
|
|
5195
|
+
/**
|
|
5196
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5197
|
+
* format), writing to the given BinaryWriter.
|
|
5198
|
+
* @param {!proto.clarifai.api.Worker} message
|
|
5199
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5200
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5201
|
+
*/
|
|
5202
|
+
proto.clarifai.api.Worker.serializeBinaryToWriter = function(message, writer) {
|
|
5203
|
+
var f = undefined;
|
|
5204
|
+
f = message.getUser();
|
|
5205
|
+
if (f != null) {
|
|
5206
|
+
writer.writeMessage(
|
|
5207
|
+
1,
|
|
5208
|
+
f,
|
|
5209
|
+
proto.clarifai.api.User.serializeBinaryToWriter
|
|
5210
|
+
);
|
|
5211
|
+
}
|
|
5212
|
+
f = message.getModel();
|
|
5213
|
+
if (f != null) {
|
|
5214
|
+
writer.writeMessage(
|
|
5215
|
+
2,
|
|
5216
|
+
f,
|
|
5217
|
+
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
5218
|
+
);
|
|
5219
|
+
}
|
|
5220
|
+
f = message.getWorkflow();
|
|
5221
|
+
if (f != null) {
|
|
5222
|
+
writer.writeMessage(
|
|
5223
|
+
3,
|
|
5224
|
+
f,
|
|
5225
|
+
proto.clarifai.api.Workflow.serializeBinaryToWriter
|
|
5226
|
+
);
|
|
5227
|
+
}
|
|
5228
|
+
};
|
|
5229
|
+
|
|
5230
|
+
|
|
5231
|
+
/**
|
|
5232
|
+
* optional User user = 1;
|
|
5233
|
+
* @return {?proto.clarifai.api.User}
|
|
5234
|
+
*/
|
|
5235
|
+
proto.clarifai.api.Worker.prototype.getUser = function() {
|
|
5236
|
+
return /** @type{?proto.clarifai.api.User} */ (
|
|
5237
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
|
|
5238
|
+
};
|
|
5239
|
+
|
|
5240
|
+
|
|
5241
|
+
/**
|
|
5242
|
+
* @param {?proto.clarifai.api.User|undefined} value
|
|
5243
|
+
* @return {!proto.clarifai.api.Worker} returns this
|
|
5244
|
+
*/
|
|
5245
|
+
proto.clarifai.api.Worker.prototype.setUser = function(value) {
|
|
5246
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.Worker.oneofGroups_[0], value);
|
|
5247
|
+
};
|
|
5248
|
+
|
|
5249
|
+
|
|
5250
|
+
/**
|
|
5251
|
+
* Clears the message field making it undefined.
|
|
5252
|
+
* @return {!proto.clarifai.api.Worker} returns this
|
|
5253
|
+
*/
|
|
5254
|
+
proto.clarifai.api.Worker.prototype.clearUser = function() {
|
|
5255
|
+
return this.setUser(undefined);
|
|
5256
|
+
};
|
|
5257
|
+
|
|
5258
|
+
|
|
5259
|
+
/**
|
|
5260
|
+
* Returns whether this field is set.
|
|
5261
|
+
* @return {boolean}
|
|
5262
|
+
*/
|
|
5263
|
+
proto.clarifai.api.Worker.prototype.hasUser = function() {
|
|
5264
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5265
|
+
};
|
|
5266
|
+
|
|
5267
|
+
|
|
5268
|
+
/**
|
|
5269
|
+
* optional Model model = 2;
|
|
5270
|
+
* @return {?proto.clarifai.api.Model}
|
|
5271
|
+
*/
|
|
5272
|
+
proto.clarifai.api.Worker.prototype.getModel = function() {
|
|
5273
|
+
return /** @type{?proto.clarifai.api.Model} */ (
|
|
5274
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 2));
|
|
5275
|
+
};
|
|
5276
|
+
|
|
5277
|
+
|
|
5278
|
+
/**
|
|
5279
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
5280
|
+
* @return {!proto.clarifai.api.Worker} returns this
|
|
5281
|
+
*/
|
|
5282
|
+
proto.clarifai.api.Worker.prototype.setModel = function(value) {
|
|
5283
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.Worker.oneofGroups_[0], value);
|
|
5284
|
+
};
|
|
5285
|
+
|
|
5286
|
+
|
|
5287
|
+
/**
|
|
5288
|
+
* Clears the message field making it undefined.
|
|
5289
|
+
* @return {!proto.clarifai.api.Worker} returns this
|
|
5290
|
+
*/
|
|
5291
|
+
proto.clarifai.api.Worker.prototype.clearModel = function() {
|
|
5292
|
+
return this.setModel(undefined);
|
|
5293
|
+
};
|
|
5294
|
+
|
|
5295
|
+
|
|
5296
|
+
/**
|
|
5297
|
+
* Returns whether this field is set.
|
|
5298
|
+
* @return {boolean}
|
|
5299
|
+
*/
|
|
5300
|
+
proto.clarifai.api.Worker.prototype.hasModel = function() {
|
|
5301
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5302
|
+
};
|
|
5303
|
+
|
|
5304
|
+
|
|
5305
|
+
/**
|
|
5306
|
+
* optional Workflow workflow = 3;
|
|
5307
|
+
* @return {?proto.clarifai.api.Workflow}
|
|
5308
|
+
*/
|
|
5309
|
+
proto.clarifai.api.Worker.prototype.getWorkflow = function() {
|
|
5310
|
+
return /** @type{?proto.clarifai.api.Workflow} */ (
|
|
5311
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 3));
|
|
5312
|
+
};
|
|
5313
|
+
|
|
5314
|
+
|
|
5315
|
+
/**
|
|
5316
|
+
* @param {?proto.clarifai.api.Workflow|undefined} value
|
|
5317
|
+
* @return {!proto.clarifai.api.Worker} returns this
|
|
5318
|
+
*/
|
|
5319
|
+
proto.clarifai.api.Worker.prototype.setWorkflow = function(value) {
|
|
5320
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.Worker.oneofGroups_[0], value);
|
|
5321
|
+
};
|
|
5322
|
+
|
|
5323
|
+
|
|
5324
|
+
/**
|
|
5325
|
+
* Clears the message field making it undefined.
|
|
5326
|
+
* @return {!proto.clarifai.api.Worker} returns this
|
|
5327
|
+
*/
|
|
5328
|
+
proto.clarifai.api.Worker.prototype.clearWorkflow = function() {
|
|
5329
|
+
return this.setWorkflow(undefined);
|
|
5330
|
+
};
|
|
5331
|
+
|
|
5332
|
+
|
|
5333
|
+
/**
|
|
5334
|
+
* Returns whether this field is set.
|
|
5335
|
+
* @return {boolean}
|
|
5336
|
+
*/
|
|
5337
|
+
proto.clarifai.api.Worker.prototype.hasWorkflow = function() {
|
|
5338
|
+
return jspb.Message.getField(this, 3) != null;
|
|
5339
|
+
};
|
|
5340
|
+
|
|
5341
|
+
|
|
4898
5342
|
|
|
4899
5343
|
|
|
4900
5344
|
|
|
@@ -4944,7 +5388,9 @@ proto.clarifai.api.App.toObject = function(includeInstance, msg) {
|
|
|
4944
5388
|
isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
|
|
4945
5389
|
starCount: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
4946
5390
|
notes: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
4947
|
-
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
5391
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
|
|
5392
|
+
isTemplate: (f = msg.getIsTemplate()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
|
|
5393
|
+
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.AppExtraInfo.toObject(includeInstance, f)
|
|
4948
5394
|
};
|
|
4949
5395
|
|
|
4950
5396
|
if (includeInstance) {
|
|
@@ -5059,6 +5505,16 @@ proto.clarifai.api.App.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
5059
5505
|
reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
5060
5506
|
msg.setImage(value);
|
|
5061
5507
|
break;
|
|
5508
|
+
case 25:
|
|
5509
|
+
var value = new google_protobuf_wrappers_pb.BoolValue;
|
|
5510
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
|
|
5511
|
+
msg.setIsTemplate(value);
|
|
5512
|
+
break;
|
|
5513
|
+
case 24:
|
|
5514
|
+
var value = new proto.clarifai.api.AppExtraInfo;
|
|
5515
|
+
reader.readMessage(value,proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader);
|
|
5516
|
+
msg.setExtraInfo(value);
|
|
5517
|
+
break;
|
|
5062
5518
|
default:
|
|
5063
5519
|
reader.skipField();
|
|
5064
5520
|
break;
|
|
@@ -5220,6 +5676,22 @@ proto.clarifai.api.App.serializeBinaryToWriter = function(message, writer) {
|
|
|
5220
5676
|
proto.clarifai.api.Image.serializeBinaryToWriter
|
|
5221
5677
|
);
|
|
5222
5678
|
}
|
|
5679
|
+
f = message.getIsTemplate();
|
|
5680
|
+
if (f != null) {
|
|
5681
|
+
writer.writeMessage(
|
|
5682
|
+
25,
|
|
5683
|
+
f,
|
|
5684
|
+
google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
|
|
5685
|
+
);
|
|
5686
|
+
}
|
|
5687
|
+
f = message.getExtraInfo();
|
|
5688
|
+
if (f != null) {
|
|
5689
|
+
writer.writeMessage(
|
|
5690
|
+
24,
|
|
5691
|
+
f,
|
|
5692
|
+
proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter
|
|
5693
|
+
);
|
|
5694
|
+
}
|
|
5223
5695
|
};
|
|
5224
5696
|
|
|
5225
5697
|
|
|
@@ -5661,6 +6133,210 @@ proto.clarifai.api.App.prototype.hasImage = function() {
|
|
|
5661
6133
|
};
|
|
5662
6134
|
|
|
5663
6135
|
|
|
6136
|
+
/**
|
|
6137
|
+
* optional google.protobuf.BoolValue is_template = 25;
|
|
6138
|
+
* @return {?proto.google.protobuf.BoolValue}
|
|
6139
|
+
*/
|
|
6140
|
+
proto.clarifai.api.App.prototype.getIsTemplate = function() {
|
|
6141
|
+
return /** @type{?proto.google.protobuf.BoolValue} */ (
|
|
6142
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 25));
|
|
6143
|
+
};
|
|
6144
|
+
|
|
6145
|
+
|
|
6146
|
+
/**
|
|
6147
|
+
* @param {?proto.google.protobuf.BoolValue|undefined} value
|
|
6148
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
6149
|
+
*/
|
|
6150
|
+
proto.clarifai.api.App.prototype.setIsTemplate = function(value) {
|
|
6151
|
+
return jspb.Message.setWrapperField(this, 25, value);
|
|
6152
|
+
};
|
|
6153
|
+
|
|
6154
|
+
|
|
6155
|
+
/**
|
|
6156
|
+
* Clears the message field making it undefined.
|
|
6157
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
6158
|
+
*/
|
|
6159
|
+
proto.clarifai.api.App.prototype.clearIsTemplate = function() {
|
|
6160
|
+
return this.setIsTemplate(undefined);
|
|
6161
|
+
};
|
|
6162
|
+
|
|
6163
|
+
|
|
6164
|
+
/**
|
|
6165
|
+
* Returns whether this field is set.
|
|
6166
|
+
* @return {boolean}
|
|
6167
|
+
*/
|
|
6168
|
+
proto.clarifai.api.App.prototype.hasIsTemplate = function() {
|
|
6169
|
+
return jspb.Message.getField(this, 25) != null;
|
|
6170
|
+
};
|
|
6171
|
+
|
|
6172
|
+
|
|
6173
|
+
/**
|
|
6174
|
+
* optional AppExtraInfo extra_info = 24;
|
|
6175
|
+
* @return {?proto.clarifai.api.AppExtraInfo}
|
|
6176
|
+
*/
|
|
6177
|
+
proto.clarifai.api.App.prototype.getExtraInfo = function() {
|
|
6178
|
+
return /** @type{?proto.clarifai.api.AppExtraInfo} */ (
|
|
6179
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.AppExtraInfo, 24));
|
|
6180
|
+
};
|
|
6181
|
+
|
|
6182
|
+
|
|
6183
|
+
/**
|
|
6184
|
+
* @param {?proto.clarifai.api.AppExtraInfo|undefined} value
|
|
6185
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
6186
|
+
*/
|
|
6187
|
+
proto.clarifai.api.App.prototype.setExtraInfo = function(value) {
|
|
6188
|
+
return jspb.Message.setWrapperField(this, 24, value);
|
|
6189
|
+
};
|
|
6190
|
+
|
|
6191
|
+
|
|
6192
|
+
/**
|
|
6193
|
+
* Clears the message field making it undefined.
|
|
6194
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
6195
|
+
*/
|
|
6196
|
+
proto.clarifai.api.App.prototype.clearExtraInfo = function() {
|
|
6197
|
+
return this.setExtraInfo(undefined);
|
|
6198
|
+
};
|
|
6199
|
+
|
|
6200
|
+
|
|
6201
|
+
/**
|
|
6202
|
+
* Returns whether this field is set.
|
|
6203
|
+
* @return {boolean}
|
|
6204
|
+
*/
|
|
6205
|
+
proto.clarifai.api.App.prototype.hasExtraInfo = function() {
|
|
6206
|
+
return jspb.Message.getField(this, 24) != null;
|
|
6207
|
+
};
|
|
6208
|
+
|
|
6209
|
+
|
|
6210
|
+
|
|
6211
|
+
|
|
6212
|
+
|
|
6213
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6214
|
+
/**
|
|
6215
|
+
* Creates an object representation of this proto.
|
|
6216
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6217
|
+
* Optional fields that are not set will be set to undefined.
|
|
6218
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6219
|
+
* For the list of reserved names please see:
|
|
6220
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6221
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6222
|
+
* JSPB instance for transitional soy proto support:
|
|
6223
|
+
* http://goto/soy-param-migration
|
|
6224
|
+
* @return {!Object}
|
|
6225
|
+
*/
|
|
6226
|
+
proto.clarifai.api.AppExtraInfo.prototype.toObject = function(opt_includeInstance) {
|
|
6227
|
+
return proto.clarifai.api.AppExtraInfo.toObject(opt_includeInstance, this);
|
|
6228
|
+
};
|
|
6229
|
+
|
|
6230
|
+
|
|
6231
|
+
/**
|
|
6232
|
+
* Static version of the {@see toObject} method.
|
|
6233
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6234
|
+
* the JSPB instance for transitional soy proto support:
|
|
6235
|
+
* http://goto/soy-param-migration
|
|
6236
|
+
* @param {!proto.clarifai.api.AppExtraInfo} msg The msg instance to transform.
|
|
6237
|
+
* @return {!Object}
|
|
6238
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6239
|
+
*/
|
|
6240
|
+
proto.clarifai.api.AppExtraInfo.toObject = function(includeInstance, msg) {
|
|
6241
|
+
var f, obj = {
|
|
6242
|
+
searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
6243
|
+
};
|
|
6244
|
+
|
|
6245
|
+
if (includeInstance) {
|
|
6246
|
+
obj.$jspbMessageInstance = msg;
|
|
6247
|
+
}
|
|
6248
|
+
return obj;
|
|
6249
|
+
};
|
|
6250
|
+
}
|
|
6251
|
+
|
|
6252
|
+
|
|
6253
|
+
/**
|
|
6254
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6255
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6256
|
+
* @return {!proto.clarifai.api.AppExtraInfo}
|
|
6257
|
+
*/
|
|
6258
|
+
proto.clarifai.api.AppExtraInfo.deserializeBinary = function(bytes) {
|
|
6259
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6260
|
+
var msg = new proto.clarifai.api.AppExtraInfo;
|
|
6261
|
+
return proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader(msg, reader);
|
|
6262
|
+
};
|
|
6263
|
+
|
|
6264
|
+
|
|
6265
|
+
/**
|
|
6266
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6267
|
+
* given reader into the given message object.
|
|
6268
|
+
* @param {!proto.clarifai.api.AppExtraInfo} msg The message object to deserialize into.
|
|
6269
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6270
|
+
* @return {!proto.clarifai.api.AppExtraInfo}
|
|
6271
|
+
*/
|
|
6272
|
+
proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
6273
|
+
while (reader.nextField()) {
|
|
6274
|
+
if (reader.isEndGroup()) {
|
|
6275
|
+
break;
|
|
6276
|
+
}
|
|
6277
|
+
var field = reader.getFieldNumber();
|
|
6278
|
+
switch (field) {
|
|
6279
|
+
case 1:
|
|
6280
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6281
|
+
msg.setSearchRevisionMarker(value);
|
|
6282
|
+
break;
|
|
6283
|
+
default:
|
|
6284
|
+
reader.skipField();
|
|
6285
|
+
break;
|
|
6286
|
+
}
|
|
6287
|
+
}
|
|
6288
|
+
return msg;
|
|
6289
|
+
};
|
|
6290
|
+
|
|
6291
|
+
|
|
6292
|
+
/**
|
|
6293
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6294
|
+
* @return {!Uint8Array}
|
|
6295
|
+
*/
|
|
6296
|
+
proto.clarifai.api.AppExtraInfo.prototype.serializeBinary = function() {
|
|
6297
|
+
var writer = new jspb.BinaryWriter();
|
|
6298
|
+
proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter(this, writer);
|
|
6299
|
+
return writer.getResultBuffer();
|
|
6300
|
+
};
|
|
6301
|
+
|
|
6302
|
+
|
|
6303
|
+
/**
|
|
6304
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6305
|
+
* format), writing to the given BinaryWriter.
|
|
6306
|
+
* @param {!proto.clarifai.api.AppExtraInfo} message
|
|
6307
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6308
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6309
|
+
*/
|
|
6310
|
+
proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter = function(message, writer) {
|
|
6311
|
+
var f = undefined;
|
|
6312
|
+
f = message.getSearchRevisionMarker();
|
|
6313
|
+
if (f.length > 0) {
|
|
6314
|
+
writer.writeString(
|
|
6315
|
+
1,
|
|
6316
|
+
f
|
|
6317
|
+
);
|
|
6318
|
+
}
|
|
6319
|
+
};
|
|
6320
|
+
|
|
6321
|
+
|
|
6322
|
+
/**
|
|
6323
|
+
* optional string search_revision_marker = 1;
|
|
6324
|
+
* @return {string}
|
|
6325
|
+
*/
|
|
6326
|
+
proto.clarifai.api.AppExtraInfo.prototype.getSearchRevisionMarker = function() {
|
|
6327
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6328
|
+
};
|
|
6329
|
+
|
|
6330
|
+
|
|
6331
|
+
/**
|
|
6332
|
+
* @param {string} value
|
|
6333
|
+
* @return {!proto.clarifai.api.AppExtraInfo} returns this
|
|
6334
|
+
*/
|
|
6335
|
+
proto.clarifai.api.AppExtraInfo.prototype.setSearchRevisionMarker = function(value) {
|
|
6336
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6337
|
+
};
|
|
6338
|
+
|
|
6339
|
+
|
|
5664
6340
|
|
|
5665
6341
|
|
|
5666
6342
|
|
|
@@ -8501,7 +9177,8 @@ proto.clarifai.api.Concept.toObject = function(includeInstance, msg) {
|
|
|
8501
9177
|
vocabId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
8502
9178
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
8503
9179
|
userId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
8504
|
-
keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f)
|
|
9180
|
+
keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f),
|
|
9181
|
+
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f)
|
|
8505
9182
|
};
|
|
8506
9183
|
|
|
8507
9184
|
if (includeInstance) {
|
|
@@ -8585,6 +9262,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
8585
9262
|
reader.readMessage(value,proto.clarifai.api.KeypointInfo.deserializeBinaryFromReader);
|
|
8586
9263
|
msg.setKeypointInfo(value);
|
|
8587
9264
|
break;
|
|
9265
|
+
case 12:
|
|
9266
|
+
var value = new proto.clarifai.api.ConceptExtraInfo;
|
|
9267
|
+
reader.readMessage(value,proto.clarifai.api.ConceptExtraInfo.deserializeBinaryFromReader);
|
|
9268
|
+
msg.setExtraInfo(value);
|
|
9269
|
+
break;
|
|
8588
9270
|
default:
|
|
8589
9271
|
reader.skipField();
|
|
8590
9272
|
break;
|
|
@@ -8694,6 +9376,14 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) {
|
|
|
8694
9376
|
proto.clarifai.api.KeypointInfo.serializeBinaryToWriter
|
|
8695
9377
|
);
|
|
8696
9378
|
}
|
|
9379
|
+
f = message.getExtraInfo();
|
|
9380
|
+
if (f != null) {
|
|
9381
|
+
writer.writeMessage(
|
|
9382
|
+
12,
|
|
9383
|
+
f,
|
|
9384
|
+
proto.clarifai.api.ConceptExtraInfo.serializeBinaryToWriter
|
|
9385
|
+
);
|
|
9386
|
+
}
|
|
8697
9387
|
};
|
|
8698
9388
|
|
|
8699
9389
|
|
|
@@ -8952,6 +9642,43 @@ proto.clarifai.api.Concept.prototype.hasKeypointInfo = function() {
|
|
|
8952
9642
|
};
|
|
8953
9643
|
|
|
8954
9644
|
|
|
9645
|
+
/**
|
|
9646
|
+
* optional ConceptExtraInfo extra_info = 12;
|
|
9647
|
+
* @return {?proto.clarifai.api.ConceptExtraInfo}
|
|
9648
|
+
*/
|
|
9649
|
+
proto.clarifai.api.Concept.prototype.getExtraInfo = function() {
|
|
9650
|
+
return /** @type{?proto.clarifai.api.ConceptExtraInfo} */ (
|
|
9651
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptExtraInfo, 12));
|
|
9652
|
+
};
|
|
9653
|
+
|
|
9654
|
+
|
|
9655
|
+
/**
|
|
9656
|
+
* @param {?proto.clarifai.api.ConceptExtraInfo|undefined} value
|
|
9657
|
+
* @return {!proto.clarifai.api.Concept} returns this
|
|
9658
|
+
*/
|
|
9659
|
+
proto.clarifai.api.Concept.prototype.setExtraInfo = function(value) {
|
|
9660
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
9661
|
+
};
|
|
9662
|
+
|
|
9663
|
+
|
|
9664
|
+
/**
|
|
9665
|
+
* Clears the message field making it undefined.
|
|
9666
|
+
* @return {!proto.clarifai.api.Concept} returns this
|
|
9667
|
+
*/
|
|
9668
|
+
proto.clarifai.api.Concept.prototype.clearExtraInfo = function() {
|
|
9669
|
+
return this.setExtraInfo(undefined);
|
|
9670
|
+
};
|
|
9671
|
+
|
|
9672
|
+
|
|
9673
|
+
/**
|
|
9674
|
+
* Returns whether this field is set.
|
|
9675
|
+
* @return {boolean}
|
|
9676
|
+
*/
|
|
9677
|
+
proto.clarifai.api.Concept.prototype.hasExtraInfo = function() {
|
|
9678
|
+
return jspb.Message.getField(this, 12) != null;
|
|
9679
|
+
};
|
|
9680
|
+
|
|
9681
|
+
|
|
8955
9682
|
|
|
8956
9683
|
/**
|
|
8957
9684
|
* List of repeated fields within this message type.
|
|
@@ -9324,6 +10051,136 @@ proto.clarifai.api.KeypointEdge.prototype.setK2 = function(value) {
|
|
|
9324
10051
|
|
|
9325
10052
|
|
|
9326
10053
|
|
|
10054
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10055
|
+
/**
|
|
10056
|
+
* Creates an object representation of this proto.
|
|
10057
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10058
|
+
* Optional fields that are not set will be set to undefined.
|
|
10059
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10060
|
+
* For the list of reserved names please see:
|
|
10061
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10062
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10063
|
+
* JSPB instance for transitional soy proto support:
|
|
10064
|
+
* http://goto/soy-param-migration
|
|
10065
|
+
* @return {!Object}
|
|
10066
|
+
*/
|
|
10067
|
+
proto.clarifai.api.ConceptExtraInfo.prototype.toObject = function(opt_includeInstance) {
|
|
10068
|
+
return proto.clarifai.api.ConceptExtraInfo.toObject(opt_includeInstance, this);
|
|
10069
|
+
};
|
|
10070
|
+
|
|
10071
|
+
|
|
10072
|
+
/**
|
|
10073
|
+
* Static version of the {@see toObject} method.
|
|
10074
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10075
|
+
* the JSPB instance for transitional soy proto support:
|
|
10076
|
+
* http://goto/soy-param-migration
|
|
10077
|
+
* @param {!proto.clarifai.api.ConceptExtraInfo} msg The msg instance to transform.
|
|
10078
|
+
* @return {!Object}
|
|
10079
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10080
|
+
*/
|
|
10081
|
+
proto.clarifai.api.ConceptExtraInfo.toObject = function(includeInstance, msg) {
|
|
10082
|
+
var f, obj = {
|
|
10083
|
+
isRankable: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
10084
|
+
};
|
|
10085
|
+
|
|
10086
|
+
if (includeInstance) {
|
|
10087
|
+
obj.$jspbMessageInstance = msg;
|
|
10088
|
+
}
|
|
10089
|
+
return obj;
|
|
10090
|
+
};
|
|
10091
|
+
}
|
|
10092
|
+
|
|
10093
|
+
|
|
10094
|
+
/**
|
|
10095
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10096
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10097
|
+
* @return {!proto.clarifai.api.ConceptExtraInfo}
|
|
10098
|
+
*/
|
|
10099
|
+
proto.clarifai.api.ConceptExtraInfo.deserializeBinary = function(bytes) {
|
|
10100
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10101
|
+
var msg = new proto.clarifai.api.ConceptExtraInfo;
|
|
10102
|
+
return proto.clarifai.api.ConceptExtraInfo.deserializeBinaryFromReader(msg, reader);
|
|
10103
|
+
};
|
|
10104
|
+
|
|
10105
|
+
|
|
10106
|
+
/**
|
|
10107
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10108
|
+
* given reader into the given message object.
|
|
10109
|
+
* @param {!proto.clarifai.api.ConceptExtraInfo} msg The message object to deserialize into.
|
|
10110
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10111
|
+
* @return {!proto.clarifai.api.ConceptExtraInfo}
|
|
10112
|
+
*/
|
|
10113
|
+
proto.clarifai.api.ConceptExtraInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
10114
|
+
while (reader.nextField()) {
|
|
10115
|
+
if (reader.isEndGroup()) {
|
|
10116
|
+
break;
|
|
10117
|
+
}
|
|
10118
|
+
var field = reader.getFieldNumber();
|
|
10119
|
+
switch (field) {
|
|
10120
|
+
case 1:
|
|
10121
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
10122
|
+
msg.setIsRankable(value);
|
|
10123
|
+
break;
|
|
10124
|
+
default:
|
|
10125
|
+
reader.skipField();
|
|
10126
|
+
break;
|
|
10127
|
+
}
|
|
10128
|
+
}
|
|
10129
|
+
return msg;
|
|
10130
|
+
};
|
|
10131
|
+
|
|
10132
|
+
|
|
10133
|
+
/**
|
|
10134
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10135
|
+
* @return {!Uint8Array}
|
|
10136
|
+
*/
|
|
10137
|
+
proto.clarifai.api.ConceptExtraInfo.prototype.serializeBinary = function() {
|
|
10138
|
+
var writer = new jspb.BinaryWriter();
|
|
10139
|
+
proto.clarifai.api.ConceptExtraInfo.serializeBinaryToWriter(this, writer);
|
|
10140
|
+
return writer.getResultBuffer();
|
|
10141
|
+
};
|
|
10142
|
+
|
|
10143
|
+
|
|
10144
|
+
/**
|
|
10145
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10146
|
+
* format), writing to the given BinaryWriter.
|
|
10147
|
+
* @param {!proto.clarifai.api.ConceptExtraInfo} message
|
|
10148
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10149
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10150
|
+
*/
|
|
10151
|
+
proto.clarifai.api.ConceptExtraInfo.serializeBinaryToWriter = function(message, writer) {
|
|
10152
|
+
var f = undefined;
|
|
10153
|
+
f = message.getIsRankable();
|
|
10154
|
+
if (f) {
|
|
10155
|
+
writer.writeBool(
|
|
10156
|
+
1,
|
|
10157
|
+
f
|
|
10158
|
+
);
|
|
10159
|
+
}
|
|
10160
|
+
};
|
|
10161
|
+
|
|
10162
|
+
|
|
10163
|
+
/**
|
|
10164
|
+
* optional bool is_rankable = 1;
|
|
10165
|
+
* @return {boolean}
|
|
10166
|
+
*/
|
|
10167
|
+
proto.clarifai.api.ConceptExtraInfo.prototype.getIsRankable = function() {
|
|
10168
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
10169
|
+
};
|
|
10170
|
+
|
|
10171
|
+
|
|
10172
|
+
/**
|
|
10173
|
+
* @param {boolean} value
|
|
10174
|
+
* @return {!proto.clarifai.api.ConceptExtraInfo} returns this
|
|
10175
|
+
*/
|
|
10176
|
+
proto.clarifai.api.ConceptExtraInfo.prototype.setIsRankable = function(value) {
|
|
10177
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
10178
|
+
};
|
|
10179
|
+
|
|
10180
|
+
|
|
10181
|
+
|
|
10182
|
+
|
|
10183
|
+
|
|
9327
10184
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9328
10185
|
/**
|
|
9329
10186
|
* Creates an object representation of this proto.
|
|
@@ -17074,10 +17931,13 @@ proto.clarifai.api.Dataset.toObject = function(includeInstance, msg) {
|
|
|
17074
17931
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
17075
17932
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
17076
17933
|
defaultAnnotationFilter: (f = msg.getDefaultAnnotationFilter()) && proto.clarifai.api.AnnotationFilter.toObject(includeInstance, f),
|
|
17934
|
+
defaultProcessingInfo: (f = msg.getDefaultProcessingInfo()) && proto.clarifai.api.DatasetVersionProcessingInfo.toObject(includeInstance, f),
|
|
17077
17935
|
notes: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
17078
17936
|
version: (f = msg.getVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f),
|
|
17079
17937
|
isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
|
|
17080
|
-
starCount: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
17938
|
+
starCount: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
17939
|
+
bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
|
|
17940
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
17081
17941
|
};
|
|
17082
17942
|
|
|
17083
17943
|
if (includeInstance) {
|
|
@@ -17155,6 +18015,11 @@ proto.clarifai.api.Dataset.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
17155
18015
|
reader.readMessage(value,proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader);
|
|
17156
18016
|
msg.setDefaultAnnotationFilter(value);
|
|
17157
18017
|
break;
|
|
18018
|
+
case 16:
|
|
18019
|
+
var value = new proto.clarifai.api.DatasetVersionProcessingInfo;
|
|
18020
|
+
reader.readMessage(value,proto.clarifai.api.DatasetVersionProcessingInfo.deserializeBinaryFromReader);
|
|
18021
|
+
msg.setDefaultProcessingInfo(value);
|
|
18022
|
+
break;
|
|
17158
18023
|
case 11:
|
|
17159
18024
|
var value = /** @type {string} */ (reader.readString());
|
|
17160
18025
|
msg.setNotes(value);
|
|
@@ -17172,6 +18037,16 @@ proto.clarifai.api.Dataset.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
17172
18037
|
var value = /** @type {number} */ (reader.readInt32());
|
|
17173
18038
|
msg.setStarCount(value);
|
|
17174
18039
|
break;
|
|
18040
|
+
case 17:
|
|
18041
|
+
var value = new proto.clarifai.api.BookmarkOrigin;
|
|
18042
|
+
reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader);
|
|
18043
|
+
msg.setBookmarkOrigin(value);
|
|
18044
|
+
break;
|
|
18045
|
+
case 18:
|
|
18046
|
+
var value = new proto.clarifai.api.Image;
|
|
18047
|
+
reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
18048
|
+
msg.setImage(value);
|
|
18049
|
+
break;
|
|
17175
18050
|
default:
|
|
17176
18051
|
reader.skipField();
|
|
17177
18052
|
break;
|
|
@@ -17269,6 +18144,14 @@ proto.clarifai.api.Dataset.serializeBinaryToWriter = function(message, writer) {
|
|
|
17269
18144
|
proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter
|
|
17270
18145
|
);
|
|
17271
18146
|
}
|
|
18147
|
+
f = message.getDefaultProcessingInfo();
|
|
18148
|
+
if (f != null) {
|
|
18149
|
+
writer.writeMessage(
|
|
18150
|
+
16,
|
|
18151
|
+
f,
|
|
18152
|
+
proto.clarifai.api.DatasetVersionProcessingInfo.serializeBinaryToWriter
|
|
18153
|
+
);
|
|
18154
|
+
}
|
|
17272
18155
|
f = message.getNotes();
|
|
17273
18156
|
if (f.length > 0) {
|
|
17274
18157
|
writer.writeString(
|
|
@@ -17298,6 +18181,22 @@ proto.clarifai.api.Dataset.serializeBinaryToWriter = function(message, writer) {
|
|
|
17298
18181
|
f
|
|
17299
18182
|
);
|
|
17300
18183
|
}
|
|
18184
|
+
f = message.getBookmarkOrigin();
|
|
18185
|
+
if (f != null) {
|
|
18186
|
+
writer.writeMessage(
|
|
18187
|
+
17,
|
|
18188
|
+
f,
|
|
18189
|
+
proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter
|
|
18190
|
+
);
|
|
18191
|
+
}
|
|
18192
|
+
f = message.getImage();
|
|
18193
|
+
if (f != null) {
|
|
18194
|
+
writer.writeMessage(
|
|
18195
|
+
18,
|
|
18196
|
+
f,
|
|
18197
|
+
proto.clarifai.api.Image.serializeBinaryToWriter
|
|
18198
|
+
);
|
|
18199
|
+
}
|
|
17301
18200
|
};
|
|
17302
18201
|
|
|
17303
18202
|
|
|
@@ -17558,6 +18457,43 @@ proto.clarifai.api.Dataset.prototype.hasDefaultAnnotationFilter = function() {
|
|
|
17558
18457
|
};
|
|
17559
18458
|
|
|
17560
18459
|
|
|
18460
|
+
/**
|
|
18461
|
+
* optional DatasetVersionProcessingInfo default_processing_info = 16;
|
|
18462
|
+
* @return {?proto.clarifai.api.DatasetVersionProcessingInfo}
|
|
18463
|
+
*/
|
|
18464
|
+
proto.clarifai.api.Dataset.prototype.getDefaultProcessingInfo = function() {
|
|
18465
|
+
return /** @type{?proto.clarifai.api.DatasetVersionProcessingInfo} */ (
|
|
18466
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionProcessingInfo, 16));
|
|
18467
|
+
};
|
|
18468
|
+
|
|
18469
|
+
|
|
18470
|
+
/**
|
|
18471
|
+
* @param {?proto.clarifai.api.DatasetVersionProcessingInfo|undefined} value
|
|
18472
|
+
* @return {!proto.clarifai.api.Dataset} returns this
|
|
18473
|
+
*/
|
|
18474
|
+
proto.clarifai.api.Dataset.prototype.setDefaultProcessingInfo = function(value) {
|
|
18475
|
+
return jspb.Message.setWrapperField(this, 16, value);
|
|
18476
|
+
};
|
|
18477
|
+
|
|
18478
|
+
|
|
18479
|
+
/**
|
|
18480
|
+
* Clears the message field making it undefined.
|
|
18481
|
+
* @return {!proto.clarifai.api.Dataset} returns this
|
|
18482
|
+
*/
|
|
18483
|
+
proto.clarifai.api.Dataset.prototype.clearDefaultProcessingInfo = function() {
|
|
18484
|
+
return this.setDefaultProcessingInfo(undefined);
|
|
18485
|
+
};
|
|
18486
|
+
|
|
18487
|
+
|
|
18488
|
+
/**
|
|
18489
|
+
* Returns whether this field is set.
|
|
18490
|
+
* @return {boolean}
|
|
18491
|
+
*/
|
|
18492
|
+
proto.clarifai.api.Dataset.prototype.hasDefaultProcessingInfo = function() {
|
|
18493
|
+
return jspb.Message.getField(this, 16) != null;
|
|
18494
|
+
};
|
|
18495
|
+
|
|
18496
|
+
|
|
17561
18497
|
/**
|
|
17562
18498
|
* optional string notes = 11;
|
|
17563
18499
|
* @return {string}
|
|
@@ -17649,6 +18585,80 @@ proto.clarifai.api.Dataset.prototype.setStarCount = function(value) {
|
|
|
17649
18585
|
};
|
|
17650
18586
|
|
|
17651
18587
|
|
|
18588
|
+
/**
|
|
18589
|
+
* optional BookmarkOrigin bookmark_origin = 17;
|
|
18590
|
+
* @return {?proto.clarifai.api.BookmarkOrigin}
|
|
18591
|
+
*/
|
|
18592
|
+
proto.clarifai.api.Dataset.prototype.getBookmarkOrigin = function() {
|
|
18593
|
+
return /** @type{?proto.clarifai.api.BookmarkOrigin} */ (
|
|
18594
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 17));
|
|
18595
|
+
};
|
|
18596
|
+
|
|
18597
|
+
|
|
18598
|
+
/**
|
|
18599
|
+
* @param {?proto.clarifai.api.BookmarkOrigin|undefined} value
|
|
18600
|
+
* @return {!proto.clarifai.api.Dataset} returns this
|
|
18601
|
+
*/
|
|
18602
|
+
proto.clarifai.api.Dataset.prototype.setBookmarkOrigin = function(value) {
|
|
18603
|
+
return jspb.Message.setWrapperField(this, 17, value);
|
|
18604
|
+
};
|
|
18605
|
+
|
|
18606
|
+
|
|
18607
|
+
/**
|
|
18608
|
+
* Clears the message field making it undefined.
|
|
18609
|
+
* @return {!proto.clarifai.api.Dataset} returns this
|
|
18610
|
+
*/
|
|
18611
|
+
proto.clarifai.api.Dataset.prototype.clearBookmarkOrigin = function() {
|
|
18612
|
+
return this.setBookmarkOrigin(undefined);
|
|
18613
|
+
};
|
|
18614
|
+
|
|
18615
|
+
|
|
18616
|
+
/**
|
|
18617
|
+
* Returns whether this field is set.
|
|
18618
|
+
* @return {boolean}
|
|
18619
|
+
*/
|
|
18620
|
+
proto.clarifai.api.Dataset.prototype.hasBookmarkOrigin = function() {
|
|
18621
|
+
return jspb.Message.getField(this, 17) != null;
|
|
18622
|
+
};
|
|
18623
|
+
|
|
18624
|
+
|
|
18625
|
+
/**
|
|
18626
|
+
* optional Image image = 18;
|
|
18627
|
+
* @return {?proto.clarifai.api.Image}
|
|
18628
|
+
*/
|
|
18629
|
+
proto.clarifai.api.Dataset.prototype.getImage = function() {
|
|
18630
|
+
return /** @type{?proto.clarifai.api.Image} */ (
|
|
18631
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 18));
|
|
18632
|
+
};
|
|
18633
|
+
|
|
18634
|
+
|
|
18635
|
+
/**
|
|
18636
|
+
* @param {?proto.clarifai.api.Image|undefined} value
|
|
18637
|
+
* @return {!proto.clarifai.api.Dataset} returns this
|
|
18638
|
+
*/
|
|
18639
|
+
proto.clarifai.api.Dataset.prototype.setImage = function(value) {
|
|
18640
|
+
return jspb.Message.setWrapperField(this, 18, value);
|
|
18641
|
+
};
|
|
18642
|
+
|
|
18643
|
+
|
|
18644
|
+
/**
|
|
18645
|
+
* Clears the message field making it undefined.
|
|
18646
|
+
* @return {!proto.clarifai.api.Dataset} returns this
|
|
18647
|
+
*/
|
|
18648
|
+
proto.clarifai.api.Dataset.prototype.clearImage = function() {
|
|
18649
|
+
return this.setImage(undefined);
|
|
18650
|
+
};
|
|
18651
|
+
|
|
18652
|
+
|
|
18653
|
+
/**
|
|
18654
|
+
* Returns whether this field is set.
|
|
18655
|
+
* @return {boolean}
|
|
18656
|
+
*/
|
|
18657
|
+
proto.clarifai.api.Dataset.prototype.hasImage = function() {
|
|
18658
|
+
return jspb.Message.getField(this, 18) != null;
|
|
18659
|
+
};
|
|
18660
|
+
|
|
18661
|
+
|
|
17652
18662
|
|
|
17653
18663
|
|
|
17654
18664
|
|
|
@@ -17686,7 +18696,7 @@ proto.clarifai.api.AnnotationFilter.toObject = function(includeInstance, msg) {
|
|
|
17686
18696
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
17687
18697
|
userId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
17688
18698
|
appId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
17689
|
-
|
|
18699
|
+
search: (f = msg.getSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f)
|
|
17690
18700
|
};
|
|
17691
18701
|
|
|
17692
18702
|
if (includeInstance) {
|
|
@@ -17745,10 +18755,10 @@ proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader = function(msg,
|
|
|
17745
18755
|
var value = /** @type {string} */ (reader.readString());
|
|
17746
18756
|
msg.setAppId(value);
|
|
17747
18757
|
break;
|
|
17748
|
-
case
|
|
18758
|
+
case 9:
|
|
17749
18759
|
var value = new proto.clarifai.api.Search;
|
|
17750
18760
|
reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader);
|
|
17751
|
-
msg.
|
|
18761
|
+
msg.setSearch(value);
|
|
17752
18762
|
break;
|
|
17753
18763
|
default:
|
|
17754
18764
|
reader.skipField();
|
|
@@ -17816,10 +18826,10 @@ proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter = function(message,
|
|
|
17816
18826
|
f
|
|
17817
18827
|
);
|
|
17818
18828
|
}
|
|
17819
|
-
f = message.
|
|
18829
|
+
f = message.getSearch();
|
|
17820
18830
|
if (f != null) {
|
|
17821
18831
|
writer.writeMessage(
|
|
17822
|
-
|
|
18832
|
+
9,
|
|
17823
18833
|
f,
|
|
17824
18834
|
proto.clarifai.api.Search.serializeBinaryToWriter
|
|
17825
18835
|
);
|
|
@@ -17956,12 +18966,12 @@ proto.clarifai.api.AnnotationFilter.prototype.setAppId = function(value) {
|
|
|
17956
18966
|
|
|
17957
18967
|
|
|
17958
18968
|
/**
|
|
17959
|
-
* optional Search
|
|
18969
|
+
* optional Search search = 9;
|
|
17960
18970
|
* @return {?proto.clarifai.api.Search}
|
|
17961
18971
|
*/
|
|
17962
|
-
proto.clarifai.api.AnnotationFilter.prototype.
|
|
18972
|
+
proto.clarifai.api.AnnotationFilter.prototype.getSearch = function() {
|
|
17963
18973
|
return /** @type{?proto.clarifai.api.Search} */ (
|
|
17964
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.Search,
|
|
18974
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 9));
|
|
17965
18975
|
};
|
|
17966
18976
|
|
|
17967
18977
|
|
|
@@ -17969,8 +18979,8 @@ proto.clarifai.api.AnnotationFilter.prototype.getSavedSearch = function() {
|
|
|
17969
18979
|
* @param {?proto.clarifai.api.Search|undefined} value
|
|
17970
18980
|
* @return {!proto.clarifai.api.AnnotationFilter} returns this
|
|
17971
18981
|
*/
|
|
17972
|
-
proto.clarifai.api.AnnotationFilter.prototype.
|
|
17973
|
-
return jspb.Message.setWrapperField(this,
|
|
18982
|
+
proto.clarifai.api.AnnotationFilter.prototype.setSearch = function(value) {
|
|
18983
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
17974
18984
|
};
|
|
17975
18985
|
|
|
17976
18986
|
|
|
@@ -17978,8 +18988,8 @@ proto.clarifai.api.AnnotationFilter.prototype.setSavedSearch = function(value) {
|
|
|
17978
18988
|
* Clears the message field making it undefined.
|
|
17979
18989
|
* @return {!proto.clarifai.api.AnnotationFilter} returns this
|
|
17980
18990
|
*/
|
|
17981
|
-
proto.clarifai.api.AnnotationFilter.prototype.
|
|
17982
|
-
return this.
|
|
18991
|
+
proto.clarifai.api.AnnotationFilter.prototype.clearSearch = function() {
|
|
18992
|
+
return this.setSearch(undefined);
|
|
17983
18993
|
};
|
|
17984
18994
|
|
|
17985
18995
|
|
|
@@ -17987,8 +18997,8 @@ proto.clarifai.api.AnnotationFilter.prototype.clearSavedSearch = function() {
|
|
|
17987
18997
|
* Returns whether this field is set.
|
|
17988
18998
|
* @return {boolean}
|
|
17989
18999
|
*/
|
|
17990
|
-
proto.clarifai.api.AnnotationFilter.prototype.
|
|
17991
|
-
return jspb.Message.getField(this,
|
|
19000
|
+
proto.clarifai.api.AnnotationFilter.prototype.hasSearch = function() {
|
|
19001
|
+
return jspb.Message.getField(this, 9) != null;
|
|
17992
19002
|
};
|
|
17993
19003
|
|
|
17994
19004
|
|
|
@@ -22194,8 +23204,6 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) {
|
|
|
22194
23204
|
modelVersion: (f = msg.getModelVersion()) && proto.clarifai.api.ModelVersion.toObject(includeInstance, f),
|
|
22195
23205
|
displayName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
22196
23206
|
userId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
22197
|
-
inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
|
|
22198
|
-
trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
|
|
22199
23207
|
defaultEvalInfo: (f = msg.getDefaultEvalInfo()) && proto.clarifai.api.EvalInfo.toObject(includeInstance, f),
|
|
22200
23208
|
modelTypeId: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
22201
23209
|
task: jspb.Message.getFieldWithDefault(msg, 26, ""),
|
|
@@ -22212,8 +23220,9 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) {
|
|
|
22212
23220
|
checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 32)) == null ? undefined : f,
|
|
22213
23221
|
isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
|
22214
23222
|
starCount: jspb.Message.getFieldWithDefault(msg, 23, 0),
|
|
22215
|
-
|
|
22216
|
-
|
|
23223
|
+
workflowRecommended: (f = msg.getWorkflowRecommended()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
|
|
23224
|
+
bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
|
|
23225
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
22217
23226
|
};
|
|
22218
23227
|
|
|
22219
23228
|
if (includeInstance) {
|
|
@@ -22290,16 +23299,6 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
22290
23299
|
var value = /** @type {string} */ (reader.readString());
|
|
22291
23300
|
msg.setUserId(value);
|
|
22292
23301
|
break;
|
|
22293
|
-
case 12:
|
|
22294
|
-
var value = new proto.clarifai.api.InputInfo;
|
|
22295
|
-
reader.readMessage(value,proto.clarifai.api.InputInfo.deserializeBinaryFromReader);
|
|
22296
|
-
msg.setInputInfo(value);
|
|
22297
|
-
break;
|
|
22298
|
-
case 13:
|
|
22299
|
-
var value = new proto.clarifai.api.TrainInfo;
|
|
22300
|
-
reader.readMessage(value,proto.clarifai.api.TrainInfo.deserializeBinaryFromReader);
|
|
22301
|
-
msg.setTrainInfo(value);
|
|
22302
|
-
break;
|
|
22303
23302
|
case 30:
|
|
22304
23303
|
var value = new proto.clarifai.api.EvalInfo;
|
|
22305
23304
|
reader.readMessage(value,proto.clarifai.api.EvalInfo.deserializeBinaryFromReader);
|
|
@@ -22365,16 +23364,21 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
22365
23364
|
var value = /** @type {number} */ (reader.readInt32());
|
|
22366
23365
|
msg.setStarCount(value);
|
|
22367
23366
|
break;
|
|
22368
|
-
case 24:
|
|
22369
|
-
var value = new proto.clarifai.api.ImportInfo;
|
|
22370
|
-
reader.readMessage(value,proto.clarifai.api.ImportInfo.deserializeBinaryFromReader);
|
|
22371
|
-
msg.setImportInfo(value);
|
|
22372
|
-
break;
|
|
22373
23367
|
case 29:
|
|
22374
23368
|
var value = new google_protobuf_wrappers_pb.BoolValue;
|
|
22375
23369
|
reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
|
|
22376
23370
|
msg.setWorkflowRecommended(value);
|
|
22377
23371
|
break;
|
|
23372
|
+
case 33:
|
|
23373
|
+
var value = new proto.clarifai.api.BookmarkOrigin;
|
|
23374
|
+
reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader);
|
|
23375
|
+
msg.setBookmarkOrigin(value);
|
|
23376
|
+
break;
|
|
23377
|
+
case 34:
|
|
23378
|
+
var value = new proto.clarifai.api.Image;
|
|
23379
|
+
reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
23380
|
+
msg.setImage(value);
|
|
23381
|
+
break;
|
|
22378
23382
|
default:
|
|
22379
23383
|
reader.skipField();
|
|
22380
23384
|
break;
|
|
@@ -22471,22 +23475,6 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) {
|
|
|
22471
23475
|
f
|
|
22472
23476
|
);
|
|
22473
23477
|
}
|
|
22474
|
-
f = message.getInputInfo();
|
|
22475
|
-
if (f != null) {
|
|
22476
|
-
writer.writeMessage(
|
|
22477
|
-
12,
|
|
22478
|
-
f,
|
|
22479
|
-
proto.clarifai.api.InputInfo.serializeBinaryToWriter
|
|
22480
|
-
);
|
|
22481
|
-
}
|
|
22482
|
-
f = message.getTrainInfo();
|
|
22483
|
-
if (f != null) {
|
|
22484
|
-
writer.writeMessage(
|
|
22485
|
-
13,
|
|
22486
|
-
f,
|
|
22487
|
-
proto.clarifai.api.TrainInfo.serializeBinaryToWriter
|
|
22488
|
-
);
|
|
22489
|
-
}
|
|
22490
23478
|
f = message.getDefaultEvalInfo();
|
|
22491
23479
|
if (f != null) {
|
|
22492
23480
|
writer.writeMessage(
|
|
@@ -22597,20 +23585,28 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) {
|
|
|
22597
23585
|
f
|
|
22598
23586
|
);
|
|
22599
23587
|
}
|
|
22600
|
-
f = message.
|
|
23588
|
+
f = message.getWorkflowRecommended();
|
|
22601
23589
|
if (f != null) {
|
|
22602
23590
|
writer.writeMessage(
|
|
22603
|
-
|
|
23591
|
+
29,
|
|
22604
23592
|
f,
|
|
22605
|
-
|
|
23593
|
+
google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
|
|
22606
23594
|
);
|
|
22607
23595
|
}
|
|
22608
|
-
f = message.
|
|
23596
|
+
f = message.getBookmarkOrigin();
|
|
22609
23597
|
if (f != null) {
|
|
22610
23598
|
writer.writeMessage(
|
|
22611
|
-
|
|
23599
|
+
33,
|
|
22612
23600
|
f,
|
|
22613
|
-
|
|
23601
|
+
proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter
|
|
23602
|
+
);
|
|
23603
|
+
}
|
|
23604
|
+
f = message.getImage();
|
|
23605
|
+
if (f != null) {
|
|
23606
|
+
writer.writeMessage(
|
|
23607
|
+
34,
|
|
23608
|
+
f,
|
|
23609
|
+
proto.clarifai.api.Image.serializeBinaryToWriter
|
|
22614
23610
|
);
|
|
22615
23611
|
}
|
|
22616
23612
|
};
|
|
@@ -22854,80 +23850,6 @@ proto.clarifai.api.Model.prototype.setUserId = function(value) {
|
|
|
22854
23850
|
};
|
|
22855
23851
|
|
|
22856
23852
|
|
|
22857
|
-
/**
|
|
22858
|
-
* optional InputInfo input_info = 12;
|
|
22859
|
-
* @return {?proto.clarifai.api.InputInfo}
|
|
22860
|
-
*/
|
|
22861
|
-
proto.clarifai.api.Model.prototype.getInputInfo = function() {
|
|
22862
|
-
return /** @type{?proto.clarifai.api.InputInfo} */ (
|
|
22863
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.InputInfo, 12));
|
|
22864
|
-
};
|
|
22865
|
-
|
|
22866
|
-
|
|
22867
|
-
/**
|
|
22868
|
-
* @param {?proto.clarifai.api.InputInfo|undefined} value
|
|
22869
|
-
* @return {!proto.clarifai.api.Model} returns this
|
|
22870
|
-
*/
|
|
22871
|
-
proto.clarifai.api.Model.prototype.setInputInfo = function(value) {
|
|
22872
|
-
return jspb.Message.setWrapperField(this, 12, value);
|
|
22873
|
-
};
|
|
22874
|
-
|
|
22875
|
-
|
|
22876
|
-
/**
|
|
22877
|
-
* Clears the message field making it undefined.
|
|
22878
|
-
* @return {!proto.clarifai.api.Model} returns this
|
|
22879
|
-
*/
|
|
22880
|
-
proto.clarifai.api.Model.prototype.clearInputInfo = function() {
|
|
22881
|
-
return this.setInputInfo(undefined);
|
|
22882
|
-
};
|
|
22883
|
-
|
|
22884
|
-
|
|
22885
|
-
/**
|
|
22886
|
-
* Returns whether this field is set.
|
|
22887
|
-
* @return {boolean}
|
|
22888
|
-
*/
|
|
22889
|
-
proto.clarifai.api.Model.prototype.hasInputInfo = function() {
|
|
22890
|
-
return jspb.Message.getField(this, 12) != null;
|
|
22891
|
-
};
|
|
22892
|
-
|
|
22893
|
-
|
|
22894
|
-
/**
|
|
22895
|
-
* optional TrainInfo train_info = 13;
|
|
22896
|
-
* @return {?proto.clarifai.api.TrainInfo}
|
|
22897
|
-
*/
|
|
22898
|
-
proto.clarifai.api.Model.prototype.getTrainInfo = function() {
|
|
22899
|
-
return /** @type{?proto.clarifai.api.TrainInfo} */ (
|
|
22900
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.TrainInfo, 13));
|
|
22901
|
-
};
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
|
-
/**
|
|
22905
|
-
* @param {?proto.clarifai.api.TrainInfo|undefined} value
|
|
22906
|
-
* @return {!proto.clarifai.api.Model} returns this
|
|
22907
|
-
*/
|
|
22908
|
-
proto.clarifai.api.Model.prototype.setTrainInfo = function(value) {
|
|
22909
|
-
return jspb.Message.setWrapperField(this, 13, value);
|
|
22910
|
-
};
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
/**
|
|
22914
|
-
* Clears the message field making it undefined.
|
|
22915
|
-
* @return {!proto.clarifai.api.Model} returns this
|
|
22916
|
-
*/
|
|
22917
|
-
proto.clarifai.api.Model.prototype.clearTrainInfo = function() {
|
|
22918
|
-
return this.setTrainInfo(undefined);
|
|
22919
|
-
};
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
/**
|
|
22923
|
-
* Returns whether this field is set.
|
|
22924
|
-
* @return {boolean}
|
|
22925
|
-
*/
|
|
22926
|
-
proto.clarifai.api.Model.prototype.hasTrainInfo = function() {
|
|
22927
|
-
return jspb.Message.getField(this, 13) != null;
|
|
22928
|
-
};
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
23853
|
/**
|
|
22932
23854
|
* optional EvalInfo default_eval_info = 30;
|
|
22933
23855
|
* @return {?proto.clarifai.api.EvalInfo}
|
|
@@ -23370,43 +24292,6 @@ proto.clarifai.api.Model.prototype.setStarCount = function(value) {
|
|
|
23370
24292
|
};
|
|
23371
24293
|
|
|
23372
24294
|
|
|
23373
|
-
/**
|
|
23374
|
-
* optional ImportInfo import_info = 24;
|
|
23375
|
-
* @return {?proto.clarifai.api.ImportInfo}
|
|
23376
|
-
*/
|
|
23377
|
-
proto.clarifai.api.Model.prototype.getImportInfo = function() {
|
|
23378
|
-
return /** @type{?proto.clarifai.api.ImportInfo} */ (
|
|
23379
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.ImportInfo, 24));
|
|
23380
|
-
};
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
/**
|
|
23384
|
-
* @param {?proto.clarifai.api.ImportInfo|undefined} value
|
|
23385
|
-
* @return {!proto.clarifai.api.Model} returns this
|
|
23386
|
-
*/
|
|
23387
|
-
proto.clarifai.api.Model.prototype.setImportInfo = function(value) {
|
|
23388
|
-
return jspb.Message.setWrapperField(this, 24, value);
|
|
23389
|
-
};
|
|
23390
|
-
|
|
23391
|
-
|
|
23392
|
-
/**
|
|
23393
|
-
* Clears the message field making it undefined.
|
|
23394
|
-
* @return {!proto.clarifai.api.Model} returns this
|
|
23395
|
-
*/
|
|
23396
|
-
proto.clarifai.api.Model.prototype.clearImportInfo = function() {
|
|
23397
|
-
return this.setImportInfo(undefined);
|
|
23398
|
-
};
|
|
23399
|
-
|
|
23400
|
-
|
|
23401
|
-
/**
|
|
23402
|
-
* Returns whether this field is set.
|
|
23403
|
-
* @return {boolean}
|
|
23404
|
-
*/
|
|
23405
|
-
proto.clarifai.api.Model.prototype.hasImportInfo = function() {
|
|
23406
|
-
return jspb.Message.getField(this, 24) != null;
|
|
23407
|
-
};
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
24295
|
/**
|
|
23411
24296
|
* optional google.protobuf.BoolValue workflow_recommended = 29;
|
|
23412
24297
|
* @return {?proto.google.protobuf.BoolValue}
|
|
@@ -23444,6 +24329,80 @@ proto.clarifai.api.Model.prototype.hasWorkflowRecommended = function() {
|
|
|
23444
24329
|
};
|
|
23445
24330
|
|
|
23446
24331
|
|
|
24332
|
+
/**
|
|
24333
|
+
* optional BookmarkOrigin bookmark_origin = 33;
|
|
24334
|
+
* @return {?proto.clarifai.api.BookmarkOrigin}
|
|
24335
|
+
*/
|
|
24336
|
+
proto.clarifai.api.Model.prototype.getBookmarkOrigin = function() {
|
|
24337
|
+
return /** @type{?proto.clarifai.api.BookmarkOrigin} */ (
|
|
24338
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 33));
|
|
24339
|
+
};
|
|
24340
|
+
|
|
24341
|
+
|
|
24342
|
+
/**
|
|
24343
|
+
* @param {?proto.clarifai.api.BookmarkOrigin|undefined} value
|
|
24344
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
24345
|
+
*/
|
|
24346
|
+
proto.clarifai.api.Model.prototype.setBookmarkOrigin = function(value) {
|
|
24347
|
+
return jspb.Message.setWrapperField(this, 33, value);
|
|
24348
|
+
};
|
|
24349
|
+
|
|
24350
|
+
|
|
24351
|
+
/**
|
|
24352
|
+
* Clears the message field making it undefined.
|
|
24353
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
24354
|
+
*/
|
|
24355
|
+
proto.clarifai.api.Model.prototype.clearBookmarkOrigin = function() {
|
|
24356
|
+
return this.setBookmarkOrigin(undefined);
|
|
24357
|
+
};
|
|
24358
|
+
|
|
24359
|
+
|
|
24360
|
+
/**
|
|
24361
|
+
* Returns whether this field is set.
|
|
24362
|
+
* @return {boolean}
|
|
24363
|
+
*/
|
|
24364
|
+
proto.clarifai.api.Model.prototype.hasBookmarkOrigin = function() {
|
|
24365
|
+
return jspb.Message.getField(this, 33) != null;
|
|
24366
|
+
};
|
|
24367
|
+
|
|
24368
|
+
|
|
24369
|
+
/**
|
|
24370
|
+
* optional Image image = 34;
|
|
24371
|
+
* @return {?proto.clarifai.api.Image}
|
|
24372
|
+
*/
|
|
24373
|
+
proto.clarifai.api.Model.prototype.getImage = function() {
|
|
24374
|
+
return /** @type{?proto.clarifai.api.Image} */ (
|
|
24375
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 34));
|
|
24376
|
+
};
|
|
24377
|
+
|
|
24378
|
+
|
|
24379
|
+
/**
|
|
24380
|
+
* @param {?proto.clarifai.api.Image|undefined} value
|
|
24381
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
24382
|
+
*/
|
|
24383
|
+
proto.clarifai.api.Model.prototype.setImage = function(value) {
|
|
24384
|
+
return jspb.Message.setWrapperField(this, 34, value);
|
|
24385
|
+
};
|
|
24386
|
+
|
|
24387
|
+
|
|
24388
|
+
/**
|
|
24389
|
+
* Clears the message field making it undefined.
|
|
24390
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
24391
|
+
*/
|
|
24392
|
+
proto.clarifai.api.Model.prototype.clearImage = function() {
|
|
24393
|
+
return this.setImage(undefined);
|
|
24394
|
+
};
|
|
24395
|
+
|
|
24396
|
+
|
|
24397
|
+
/**
|
|
24398
|
+
* Returns whether this field is set.
|
|
24399
|
+
* @return {boolean}
|
|
24400
|
+
*/
|
|
24401
|
+
proto.clarifai.api.Model.prototype.hasImage = function() {
|
|
24402
|
+
return jspb.Message.getField(this, 34) != null;
|
|
24403
|
+
};
|
|
24404
|
+
|
|
24405
|
+
|
|
23447
24406
|
|
|
23448
24407
|
|
|
23449
24408
|
|
|
@@ -24017,6 +24976,13 @@ proto.clarifai.api.ModelVersionInputExample.prototype.setDescription = function(
|
|
|
24017
24976
|
|
|
24018
24977
|
|
|
24019
24978
|
|
|
24979
|
+
/**
|
|
24980
|
+
* List of repeated fields within this message type.
|
|
24981
|
+
* @private {!Array<number>}
|
|
24982
|
+
* @const
|
|
24983
|
+
*/
|
|
24984
|
+
proto.clarifai.api.OutputInfo.repeatedFields_ = [8];
|
|
24985
|
+
|
|
24020
24986
|
|
|
24021
24987
|
|
|
24022
24988
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -24052,7 +25018,9 @@ proto.clarifai.api.OutputInfo.toObject = function(includeInstance, msg) {
|
|
|
24052
25018
|
outputConfig: (f = msg.getOutputConfig()) && proto.clarifai.api.OutputConfig.toObject(includeInstance, f),
|
|
24053
25019
|
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
24054
25020
|
fieldsMap: (f = msg.getFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
24055
|
-
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
25021
|
+
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
25022
|
+
paramsSpecsList: jspb.Message.toObjectList(msg.getParamsSpecsList(),
|
|
25023
|
+
proto.clarifai.api.ModelTypeField.toObject, includeInstance)
|
|
24056
25024
|
};
|
|
24057
25025
|
|
|
24058
25026
|
if (includeInstance) {
|
|
@@ -24113,6 +25081,11 @@ proto.clarifai.api.OutputInfo.deserializeBinaryFromReader = function(msg, reader
|
|
|
24113
25081
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
24114
25082
|
msg.setParams(value);
|
|
24115
25083
|
break;
|
|
25084
|
+
case 8:
|
|
25085
|
+
var value = new proto.clarifai.api.ModelTypeField;
|
|
25086
|
+
reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader);
|
|
25087
|
+
msg.addParamsSpecs(value);
|
|
25088
|
+
break;
|
|
24116
25089
|
default:
|
|
24117
25090
|
reader.skipField();
|
|
24118
25091
|
break;
|
|
@@ -24181,6 +25154,14 @@ proto.clarifai.api.OutputInfo.serializeBinaryToWriter = function(message, writer
|
|
|
24181
25154
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
24182
25155
|
);
|
|
24183
25156
|
}
|
|
25157
|
+
f = message.getParamsSpecsList();
|
|
25158
|
+
if (f.length > 0) {
|
|
25159
|
+
writer.writeRepeatedMessage(
|
|
25160
|
+
8,
|
|
25161
|
+
f,
|
|
25162
|
+
proto.clarifai.api.ModelTypeField.serializeBinaryToWriter
|
|
25163
|
+
);
|
|
25164
|
+
}
|
|
24184
25165
|
};
|
|
24185
25166
|
|
|
24186
25167
|
|
|
@@ -24350,6 +25331,44 @@ proto.clarifai.api.OutputInfo.prototype.hasParams = function() {
|
|
|
24350
25331
|
};
|
|
24351
25332
|
|
|
24352
25333
|
|
|
25334
|
+
/**
|
|
25335
|
+
* repeated ModelTypeField params_specs = 8;
|
|
25336
|
+
* @return {!Array<!proto.clarifai.api.ModelTypeField>}
|
|
25337
|
+
*/
|
|
25338
|
+
proto.clarifai.api.OutputInfo.prototype.getParamsSpecsList = function() {
|
|
25339
|
+
return /** @type{!Array<!proto.clarifai.api.ModelTypeField>} */ (
|
|
25340
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 8));
|
|
25341
|
+
};
|
|
25342
|
+
|
|
25343
|
+
|
|
25344
|
+
/**
|
|
25345
|
+
* @param {!Array<!proto.clarifai.api.ModelTypeField>} value
|
|
25346
|
+
* @return {!proto.clarifai.api.OutputInfo} returns this
|
|
25347
|
+
*/
|
|
25348
|
+
proto.clarifai.api.OutputInfo.prototype.setParamsSpecsList = function(value) {
|
|
25349
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
25350
|
+
};
|
|
25351
|
+
|
|
25352
|
+
|
|
25353
|
+
/**
|
|
25354
|
+
* @param {!proto.clarifai.api.ModelTypeField=} opt_value
|
|
25355
|
+
* @param {number=} opt_index
|
|
25356
|
+
* @return {!proto.clarifai.api.ModelTypeField}
|
|
25357
|
+
*/
|
|
25358
|
+
proto.clarifai.api.OutputInfo.prototype.addParamsSpecs = function(opt_value, opt_index) {
|
|
25359
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.ModelTypeField, opt_index);
|
|
25360
|
+
};
|
|
25361
|
+
|
|
25362
|
+
|
|
25363
|
+
/**
|
|
25364
|
+
* Clears the list making it empty but non-null.
|
|
25365
|
+
* @return {!proto.clarifai.api.OutputInfo} returns this
|
|
25366
|
+
*/
|
|
25367
|
+
proto.clarifai.api.OutputInfo.prototype.clearParamsSpecsList = function() {
|
|
25368
|
+
return this.setParamsSpecsList([]);
|
|
25369
|
+
};
|
|
25370
|
+
|
|
25371
|
+
|
|
24353
25372
|
|
|
24354
25373
|
|
|
24355
25374
|
|
|
@@ -24383,7 +25402,8 @@ proto.clarifai.api.InputInfo.prototype.toObject = function(opt_includeInstance)
|
|
|
24383
25402
|
proto.clarifai.api.InputInfo.toObject = function(includeInstance, msg) {
|
|
24384
25403
|
var f, obj = {
|
|
24385
25404
|
fieldsMap: (f = msg.getFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
24386
|
-
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
25405
|
+
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
25406
|
+
baseEmbedModel: (f = msg.getBaseEmbedModel()) && proto.clarifai.api.Model.toObject(includeInstance, f)
|
|
24387
25407
|
};
|
|
24388
25408
|
|
|
24389
25409
|
if (includeInstance) {
|
|
@@ -24430,6 +25450,11 @@ proto.clarifai.api.InputInfo.deserializeBinaryFromReader = function(msg, reader)
|
|
|
24430
25450
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
24431
25451
|
msg.setParams(value);
|
|
24432
25452
|
break;
|
|
25453
|
+
case 3:
|
|
25454
|
+
var value = new proto.clarifai.api.Model;
|
|
25455
|
+
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
25456
|
+
msg.setBaseEmbedModel(value);
|
|
25457
|
+
break;
|
|
24433
25458
|
default:
|
|
24434
25459
|
reader.skipField();
|
|
24435
25460
|
break;
|
|
@@ -24475,6 +25500,14 @@ proto.clarifai.api.InputInfo.serializeBinaryToWriter = function(message, writer)
|
|
|
24475
25500
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
24476
25501
|
);
|
|
24477
25502
|
}
|
|
25503
|
+
f = message.getBaseEmbedModel();
|
|
25504
|
+
if (f != null) {
|
|
25505
|
+
writer.writeMessage(
|
|
25506
|
+
3,
|
|
25507
|
+
f,
|
|
25508
|
+
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
25509
|
+
);
|
|
25510
|
+
}
|
|
24478
25511
|
};
|
|
24479
25512
|
|
|
24480
25513
|
|
|
@@ -24552,6 +25585,43 @@ proto.clarifai.api.InputInfo.prototype.hasParams = function() {
|
|
|
24552
25585
|
};
|
|
24553
25586
|
|
|
24554
25587
|
|
|
25588
|
+
/**
|
|
25589
|
+
* optional Model base_embed_model = 3;
|
|
25590
|
+
* @return {?proto.clarifai.api.Model}
|
|
25591
|
+
*/
|
|
25592
|
+
proto.clarifai.api.InputInfo.prototype.getBaseEmbedModel = function() {
|
|
25593
|
+
return /** @type{?proto.clarifai.api.Model} */ (
|
|
25594
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 3));
|
|
25595
|
+
};
|
|
25596
|
+
|
|
25597
|
+
|
|
25598
|
+
/**
|
|
25599
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
25600
|
+
* @return {!proto.clarifai.api.InputInfo} returns this
|
|
25601
|
+
*/
|
|
25602
|
+
proto.clarifai.api.InputInfo.prototype.setBaseEmbedModel = function(value) {
|
|
25603
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
25604
|
+
};
|
|
25605
|
+
|
|
25606
|
+
|
|
25607
|
+
/**
|
|
25608
|
+
* Clears the message field making it undefined.
|
|
25609
|
+
* @return {!proto.clarifai.api.InputInfo} returns this
|
|
25610
|
+
*/
|
|
25611
|
+
proto.clarifai.api.InputInfo.prototype.clearBaseEmbedModel = function() {
|
|
25612
|
+
return this.setBaseEmbedModel(undefined);
|
|
25613
|
+
};
|
|
25614
|
+
|
|
25615
|
+
|
|
25616
|
+
/**
|
|
25617
|
+
* Returns whether this field is set.
|
|
25618
|
+
* @return {boolean}
|
|
25619
|
+
*/
|
|
25620
|
+
proto.clarifai.api.InputInfo.prototype.hasBaseEmbedModel = function() {
|
|
25621
|
+
return jspb.Message.getField(this, 3) != null;
|
|
25622
|
+
};
|
|
25623
|
+
|
|
25624
|
+
|
|
24555
25625
|
|
|
24556
25626
|
|
|
24557
25627
|
|
|
@@ -24584,7 +25654,9 @@ proto.clarifai.api.TrainInfo.prototype.toObject = function(opt_includeInstance)
|
|
|
24584
25654
|
*/
|
|
24585
25655
|
proto.clarifai.api.TrainInfo.toObject = function(includeInstance, msg) {
|
|
24586
25656
|
var f, obj = {
|
|
24587
|
-
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
25657
|
+
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
25658
|
+
dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f),
|
|
25659
|
+
resumeFromModel: (f = msg.getResumeFromModel()) && proto.clarifai.api.Model.toObject(includeInstance, f)
|
|
24588
25660
|
};
|
|
24589
25661
|
|
|
24590
25662
|
if (includeInstance) {
|
|
@@ -24626,6 +25698,16 @@ proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function(msg, reader)
|
|
|
24626
25698
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
24627
25699
|
msg.setParams(value);
|
|
24628
25700
|
break;
|
|
25701
|
+
case 2:
|
|
25702
|
+
var value = new proto.clarifai.api.Dataset;
|
|
25703
|
+
reader.readMessage(value,proto.clarifai.api.Dataset.deserializeBinaryFromReader);
|
|
25704
|
+
msg.setDataset(value);
|
|
25705
|
+
break;
|
|
25706
|
+
case 3:
|
|
25707
|
+
var value = new proto.clarifai.api.Model;
|
|
25708
|
+
reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
|
|
25709
|
+
msg.setResumeFromModel(value);
|
|
25710
|
+
break;
|
|
24629
25711
|
default:
|
|
24630
25712
|
reader.skipField();
|
|
24631
25713
|
break;
|
|
@@ -24663,6 +25745,22 @@ proto.clarifai.api.TrainInfo.serializeBinaryToWriter = function(message, writer)
|
|
|
24663
25745
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
24664
25746
|
);
|
|
24665
25747
|
}
|
|
25748
|
+
f = message.getDataset();
|
|
25749
|
+
if (f != null) {
|
|
25750
|
+
writer.writeMessage(
|
|
25751
|
+
2,
|
|
25752
|
+
f,
|
|
25753
|
+
proto.clarifai.api.Dataset.serializeBinaryToWriter
|
|
25754
|
+
);
|
|
25755
|
+
}
|
|
25756
|
+
f = message.getResumeFromModel();
|
|
25757
|
+
if (f != null) {
|
|
25758
|
+
writer.writeMessage(
|
|
25759
|
+
3,
|
|
25760
|
+
f,
|
|
25761
|
+
proto.clarifai.api.Model.serializeBinaryToWriter
|
|
25762
|
+
);
|
|
25763
|
+
}
|
|
24666
25764
|
};
|
|
24667
25765
|
|
|
24668
25766
|
|
|
@@ -24703,6 +25801,80 @@ proto.clarifai.api.TrainInfo.prototype.hasParams = function() {
|
|
|
24703
25801
|
};
|
|
24704
25802
|
|
|
24705
25803
|
|
|
25804
|
+
/**
|
|
25805
|
+
* optional Dataset dataset = 2;
|
|
25806
|
+
* @return {?proto.clarifai.api.Dataset}
|
|
25807
|
+
*/
|
|
25808
|
+
proto.clarifai.api.TrainInfo.prototype.getDataset = function() {
|
|
25809
|
+
return /** @type{?proto.clarifai.api.Dataset} */ (
|
|
25810
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Dataset, 2));
|
|
25811
|
+
};
|
|
25812
|
+
|
|
25813
|
+
|
|
25814
|
+
/**
|
|
25815
|
+
* @param {?proto.clarifai.api.Dataset|undefined} value
|
|
25816
|
+
* @return {!proto.clarifai.api.TrainInfo} returns this
|
|
25817
|
+
*/
|
|
25818
|
+
proto.clarifai.api.TrainInfo.prototype.setDataset = function(value) {
|
|
25819
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
25820
|
+
};
|
|
25821
|
+
|
|
25822
|
+
|
|
25823
|
+
/**
|
|
25824
|
+
* Clears the message field making it undefined.
|
|
25825
|
+
* @return {!proto.clarifai.api.TrainInfo} returns this
|
|
25826
|
+
*/
|
|
25827
|
+
proto.clarifai.api.TrainInfo.prototype.clearDataset = function() {
|
|
25828
|
+
return this.setDataset(undefined);
|
|
25829
|
+
};
|
|
25830
|
+
|
|
25831
|
+
|
|
25832
|
+
/**
|
|
25833
|
+
* Returns whether this field is set.
|
|
25834
|
+
* @return {boolean}
|
|
25835
|
+
*/
|
|
25836
|
+
proto.clarifai.api.TrainInfo.prototype.hasDataset = function() {
|
|
25837
|
+
return jspb.Message.getField(this, 2) != null;
|
|
25838
|
+
};
|
|
25839
|
+
|
|
25840
|
+
|
|
25841
|
+
/**
|
|
25842
|
+
* optional Model resume_from_model = 3;
|
|
25843
|
+
* @return {?proto.clarifai.api.Model}
|
|
25844
|
+
*/
|
|
25845
|
+
proto.clarifai.api.TrainInfo.prototype.getResumeFromModel = function() {
|
|
25846
|
+
return /** @type{?proto.clarifai.api.Model} */ (
|
|
25847
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 3));
|
|
25848
|
+
};
|
|
25849
|
+
|
|
25850
|
+
|
|
25851
|
+
/**
|
|
25852
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
25853
|
+
* @return {!proto.clarifai.api.TrainInfo} returns this
|
|
25854
|
+
*/
|
|
25855
|
+
proto.clarifai.api.TrainInfo.prototype.setResumeFromModel = function(value) {
|
|
25856
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
25857
|
+
};
|
|
25858
|
+
|
|
25859
|
+
|
|
25860
|
+
/**
|
|
25861
|
+
* Clears the message field making it undefined.
|
|
25862
|
+
* @return {!proto.clarifai.api.TrainInfo} returns this
|
|
25863
|
+
*/
|
|
25864
|
+
proto.clarifai.api.TrainInfo.prototype.clearResumeFromModel = function() {
|
|
25865
|
+
return this.setResumeFromModel(undefined);
|
|
25866
|
+
};
|
|
25867
|
+
|
|
25868
|
+
|
|
25869
|
+
/**
|
|
25870
|
+
* Returns whether this field is set.
|
|
25871
|
+
* @return {boolean}
|
|
25872
|
+
*/
|
|
25873
|
+
proto.clarifai.api.TrainInfo.prototype.hasResumeFromModel = function() {
|
|
25874
|
+
return jspb.Message.getField(this, 3) != null;
|
|
25875
|
+
};
|
|
25876
|
+
|
|
25877
|
+
|
|
24706
25878
|
|
|
24707
25879
|
|
|
24708
25880
|
|
|
@@ -27092,7 +28264,12 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
|
|
|
27092
28264
|
RECURSIVE_ENUM: 14,
|
|
27093
28265
|
PYTHON_CODE: 15,
|
|
27094
28266
|
DATASET_ID: 16,
|
|
27095
|
-
DATASET_VERSION_ID: 17
|
|
28267
|
+
DATASET_VERSION_ID: 17,
|
|
28268
|
+
ARRAY_OF_MODEL_CONCEPTS: 18,
|
|
28269
|
+
DATASET: 19,
|
|
28270
|
+
DATASET_VERSION: 20,
|
|
28271
|
+
ENCRYPTED_STRING: 21,
|
|
28272
|
+
CHECKPOINT_MODEL: 22
|
|
27096
28273
|
};
|
|
27097
28274
|
|
|
27098
28275
|
/**
|
|
@@ -29725,7 +30902,8 @@ proto.clarifai.api.LabelCount.prototype.toObject = function(opt_includeInstance)
|
|
|
29725
30902
|
proto.clarifai.api.LabelCount.toObject = function(includeInstance, msg) {
|
|
29726
30903
|
var f, obj = {
|
|
29727
30904
|
conceptName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
29728
|
-
count: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
30905
|
+
count: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
30906
|
+
concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f)
|
|
29729
30907
|
};
|
|
29730
30908
|
|
|
29731
30909
|
if (includeInstance) {
|
|
@@ -29770,6 +30948,11 @@ proto.clarifai.api.LabelCount.deserializeBinaryFromReader = function(msg, reader
|
|
|
29770
30948
|
var value = /** @type {number} */ (reader.readUint32());
|
|
29771
30949
|
msg.setCount(value);
|
|
29772
30950
|
break;
|
|
30951
|
+
case 3:
|
|
30952
|
+
var value = new proto.clarifai.api.Concept;
|
|
30953
|
+
reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
|
|
30954
|
+
msg.setConcept(value);
|
|
30955
|
+
break;
|
|
29773
30956
|
default:
|
|
29774
30957
|
reader.skipField();
|
|
29775
30958
|
break;
|
|
@@ -29813,6 +30996,14 @@ proto.clarifai.api.LabelCount.serializeBinaryToWriter = function(message, writer
|
|
|
29813
30996
|
f
|
|
29814
30997
|
);
|
|
29815
30998
|
}
|
|
30999
|
+
f = message.getConcept();
|
|
31000
|
+
if (f != null) {
|
|
31001
|
+
writer.writeMessage(
|
|
31002
|
+
3,
|
|
31003
|
+
f,
|
|
31004
|
+
proto.clarifai.api.Concept.serializeBinaryToWriter
|
|
31005
|
+
);
|
|
31006
|
+
}
|
|
29816
31007
|
};
|
|
29817
31008
|
|
|
29818
31009
|
|
|
@@ -29852,6 +31043,43 @@ proto.clarifai.api.LabelCount.prototype.setCount = function(value) {
|
|
|
29852
31043
|
};
|
|
29853
31044
|
|
|
29854
31045
|
|
|
31046
|
+
/**
|
|
31047
|
+
* optional Concept concept = 3;
|
|
31048
|
+
* @return {?proto.clarifai.api.Concept}
|
|
31049
|
+
*/
|
|
31050
|
+
proto.clarifai.api.LabelCount.prototype.getConcept = function() {
|
|
31051
|
+
return /** @type{?proto.clarifai.api.Concept} */ (
|
|
31052
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 3));
|
|
31053
|
+
};
|
|
31054
|
+
|
|
31055
|
+
|
|
31056
|
+
/**
|
|
31057
|
+
* @param {?proto.clarifai.api.Concept|undefined} value
|
|
31058
|
+
* @return {!proto.clarifai.api.LabelCount} returns this
|
|
31059
|
+
*/
|
|
31060
|
+
proto.clarifai.api.LabelCount.prototype.setConcept = function(value) {
|
|
31061
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
31062
|
+
};
|
|
31063
|
+
|
|
31064
|
+
|
|
31065
|
+
/**
|
|
31066
|
+
* Clears the message field making it undefined.
|
|
31067
|
+
* @return {!proto.clarifai.api.LabelCount} returns this
|
|
31068
|
+
*/
|
|
31069
|
+
proto.clarifai.api.LabelCount.prototype.clearConcept = function() {
|
|
31070
|
+
return this.setConcept(undefined);
|
|
31071
|
+
};
|
|
31072
|
+
|
|
31073
|
+
|
|
31074
|
+
/**
|
|
31075
|
+
* Returns whether this field is set.
|
|
31076
|
+
* @return {boolean}
|
|
31077
|
+
*/
|
|
31078
|
+
proto.clarifai.api.LabelCount.prototype.hasConcept = function() {
|
|
31079
|
+
return jspb.Message.getField(this, 3) != null;
|
|
31080
|
+
};
|
|
31081
|
+
|
|
31082
|
+
|
|
29855
31083
|
|
|
29856
31084
|
/**
|
|
29857
31085
|
* List of repeated fields within this message type.
|
|
@@ -30445,7 +31673,9 @@ proto.clarifai.api.ConfusionMatrixEntry.toObject = function(includeInstance, msg
|
|
|
30445
31673
|
var f, obj = {
|
|
30446
31674
|
predicted: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
30447
31675
|
actual: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
30448
|
-
value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
|
|
31676
|
+
value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
31677
|
+
predictedConcept: (f = msg.getPredictedConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f),
|
|
31678
|
+
actualConcept: (f = msg.getActualConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f)
|
|
30449
31679
|
};
|
|
30450
31680
|
|
|
30451
31681
|
if (includeInstance) {
|
|
@@ -30494,6 +31724,16 @@ proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader = function(m
|
|
|
30494
31724
|
var value = /** @type {number} */ (reader.readFloat());
|
|
30495
31725
|
msg.setValue(value);
|
|
30496
31726
|
break;
|
|
31727
|
+
case 5:
|
|
31728
|
+
var value = new proto.clarifai.api.Concept;
|
|
31729
|
+
reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
|
|
31730
|
+
msg.setPredictedConcept(value);
|
|
31731
|
+
break;
|
|
31732
|
+
case 6:
|
|
31733
|
+
var value = new proto.clarifai.api.Concept;
|
|
31734
|
+
reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
|
|
31735
|
+
msg.setActualConcept(value);
|
|
31736
|
+
break;
|
|
30497
31737
|
default:
|
|
30498
31738
|
reader.skipField();
|
|
30499
31739
|
break;
|
|
@@ -30544,6 +31784,22 @@ proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter = function(messa
|
|
|
30544
31784
|
f
|
|
30545
31785
|
);
|
|
30546
31786
|
}
|
|
31787
|
+
f = message.getPredictedConcept();
|
|
31788
|
+
if (f != null) {
|
|
31789
|
+
writer.writeMessage(
|
|
31790
|
+
5,
|
|
31791
|
+
f,
|
|
31792
|
+
proto.clarifai.api.Concept.serializeBinaryToWriter
|
|
31793
|
+
);
|
|
31794
|
+
}
|
|
31795
|
+
f = message.getActualConcept();
|
|
31796
|
+
if (f != null) {
|
|
31797
|
+
writer.writeMessage(
|
|
31798
|
+
6,
|
|
31799
|
+
f,
|
|
31800
|
+
proto.clarifai.api.Concept.serializeBinaryToWriter
|
|
31801
|
+
);
|
|
31802
|
+
}
|
|
30547
31803
|
};
|
|
30548
31804
|
|
|
30549
31805
|
|
|
@@ -30601,6 +31857,80 @@ proto.clarifai.api.ConfusionMatrixEntry.prototype.setValue = function(value) {
|
|
|
30601
31857
|
};
|
|
30602
31858
|
|
|
30603
31859
|
|
|
31860
|
+
/**
|
|
31861
|
+
* optional Concept predicted_concept = 5;
|
|
31862
|
+
* @return {?proto.clarifai.api.Concept}
|
|
31863
|
+
*/
|
|
31864
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.getPredictedConcept = function() {
|
|
31865
|
+
return /** @type{?proto.clarifai.api.Concept} */ (
|
|
31866
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 5));
|
|
31867
|
+
};
|
|
31868
|
+
|
|
31869
|
+
|
|
31870
|
+
/**
|
|
31871
|
+
* @param {?proto.clarifai.api.Concept|undefined} value
|
|
31872
|
+
* @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
|
|
31873
|
+
*/
|
|
31874
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.setPredictedConcept = function(value) {
|
|
31875
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
31876
|
+
};
|
|
31877
|
+
|
|
31878
|
+
|
|
31879
|
+
/**
|
|
31880
|
+
* Clears the message field making it undefined.
|
|
31881
|
+
* @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
|
|
31882
|
+
*/
|
|
31883
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.clearPredictedConcept = function() {
|
|
31884
|
+
return this.setPredictedConcept(undefined);
|
|
31885
|
+
};
|
|
31886
|
+
|
|
31887
|
+
|
|
31888
|
+
/**
|
|
31889
|
+
* Returns whether this field is set.
|
|
31890
|
+
* @return {boolean}
|
|
31891
|
+
*/
|
|
31892
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.hasPredictedConcept = function() {
|
|
31893
|
+
return jspb.Message.getField(this, 5) != null;
|
|
31894
|
+
};
|
|
31895
|
+
|
|
31896
|
+
|
|
31897
|
+
/**
|
|
31898
|
+
* optional Concept actual_concept = 6;
|
|
31899
|
+
* @return {?proto.clarifai.api.Concept}
|
|
31900
|
+
*/
|
|
31901
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.getActualConcept = function() {
|
|
31902
|
+
return /** @type{?proto.clarifai.api.Concept} */ (
|
|
31903
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 6));
|
|
31904
|
+
};
|
|
31905
|
+
|
|
31906
|
+
|
|
31907
|
+
/**
|
|
31908
|
+
* @param {?proto.clarifai.api.Concept|undefined} value
|
|
31909
|
+
* @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
|
|
31910
|
+
*/
|
|
31911
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.setActualConcept = function(value) {
|
|
31912
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
31913
|
+
};
|
|
31914
|
+
|
|
31915
|
+
|
|
31916
|
+
/**
|
|
31917
|
+
* Clears the message field making it undefined.
|
|
31918
|
+
* @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
|
|
31919
|
+
*/
|
|
31920
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.clearActualConcept = function() {
|
|
31921
|
+
return this.setActualConcept(undefined);
|
|
31922
|
+
};
|
|
31923
|
+
|
|
31924
|
+
|
|
31925
|
+
/**
|
|
31926
|
+
* Returns whether this field is set.
|
|
31927
|
+
* @return {boolean}
|
|
31928
|
+
*/
|
|
31929
|
+
proto.clarifai.api.ConfusionMatrixEntry.prototype.hasActualConcept = function() {
|
|
31930
|
+
return jspb.Message.getField(this, 6) != null;
|
|
31931
|
+
};
|
|
31932
|
+
|
|
31933
|
+
|
|
30604
31934
|
|
|
30605
31935
|
/**
|
|
30606
31936
|
* List of repeated fields within this message type.
|
|
@@ -33379,7 +34709,8 @@ proto.clarifai.api.EvalMetrics.toObject = function(includeInstance, msg) {
|
|
|
33379
34709
|
proto.clarifai.api.BinaryMetrics.toObject, includeInstance),
|
|
33380
34710
|
trackerMetricsList: jspb.Message.toObjectList(msg.getTrackerMetricsList(),
|
|
33381
34711
|
proto.clarifai.api.TrackerMetrics.toObject, includeInstance),
|
|
33382
|
-
evalInfo: (f = msg.getEvalInfo()) && proto.clarifai.api.EvalInfo.toObject(includeInstance, f)
|
|
34712
|
+
evalInfo: (f = msg.getEvalInfo()) && proto.clarifai.api.EvalInfo.toObject(includeInstance, f),
|
|
34713
|
+
extendedMetrics: (f = msg.getExtendedMetrics()) && proto.clarifai.api.ExtendedMetrics.toObject(includeInstance, f)
|
|
33383
34714
|
};
|
|
33384
34715
|
|
|
33385
34716
|
if (includeInstance) {
|
|
@@ -33493,6 +34824,11 @@ proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader = function(msg, reade
|
|
|
33493
34824
|
reader.readMessage(value,proto.clarifai.api.EvalInfo.deserializeBinaryFromReader);
|
|
33494
34825
|
msg.setEvalInfo(value);
|
|
33495
34826
|
break;
|
|
34827
|
+
case 17:
|
|
34828
|
+
var value = new proto.clarifai.api.ExtendedMetrics;
|
|
34829
|
+
reader.readMessage(value,proto.clarifai.api.ExtendedMetrics.deserializeBinaryFromReader);
|
|
34830
|
+
msg.setExtendedMetrics(value);
|
|
34831
|
+
break;
|
|
33496
34832
|
default:
|
|
33497
34833
|
reader.skipField();
|
|
33498
34834
|
break;
|
|
@@ -33647,6 +34983,14 @@ proto.clarifai.api.EvalMetrics.serializeBinaryToWriter = function(message, write
|
|
|
33647
34983
|
proto.clarifai.api.EvalInfo.serializeBinaryToWriter
|
|
33648
34984
|
);
|
|
33649
34985
|
}
|
|
34986
|
+
f = message.getExtendedMetrics();
|
|
34987
|
+
if (f != null) {
|
|
34988
|
+
writer.writeMessage(
|
|
34989
|
+
17,
|
|
34990
|
+
f,
|
|
34991
|
+
proto.clarifai.api.ExtendedMetrics.serializeBinaryToWriter
|
|
34992
|
+
);
|
|
34993
|
+
}
|
|
33650
34994
|
};
|
|
33651
34995
|
|
|
33652
34996
|
|
|
@@ -34190,6 +35534,194 @@ proto.clarifai.api.EvalMetrics.prototype.hasEvalInfo = function() {
|
|
|
34190
35534
|
};
|
|
34191
35535
|
|
|
34192
35536
|
|
|
35537
|
+
/**
|
|
35538
|
+
* optional ExtendedMetrics extended_metrics = 17;
|
|
35539
|
+
* @return {?proto.clarifai.api.ExtendedMetrics}
|
|
35540
|
+
*/
|
|
35541
|
+
proto.clarifai.api.EvalMetrics.prototype.getExtendedMetrics = function() {
|
|
35542
|
+
return /** @type{?proto.clarifai.api.ExtendedMetrics} */ (
|
|
35543
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ExtendedMetrics, 17));
|
|
35544
|
+
};
|
|
35545
|
+
|
|
35546
|
+
|
|
35547
|
+
/**
|
|
35548
|
+
* @param {?proto.clarifai.api.ExtendedMetrics|undefined} value
|
|
35549
|
+
* @return {!proto.clarifai.api.EvalMetrics} returns this
|
|
35550
|
+
*/
|
|
35551
|
+
proto.clarifai.api.EvalMetrics.prototype.setExtendedMetrics = function(value) {
|
|
35552
|
+
return jspb.Message.setWrapperField(this, 17, value);
|
|
35553
|
+
};
|
|
35554
|
+
|
|
35555
|
+
|
|
35556
|
+
/**
|
|
35557
|
+
* Clears the message field making it undefined.
|
|
35558
|
+
* @return {!proto.clarifai.api.EvalMetrics} returns this
|
|
35559
|
+
*/
|
|
35560
|
+
proto.clarifai.api.EvalMetrics.prototype.clearExtendedMetrics = function() {
|
|
35561
|
+
return this.setExtendedMetrics(undefined);
|
|
35562
|
+
};
|
|
35563
|
+
|
|
35564
|
+
|
|
35565
|
+
/**
|
|
35566
|
+
* Returns whether this field is set.
|
|
35567
|
+
* @return {boolean}
|
|
35568
|
+
*/
|
|
35569
|
+
proto.clarifai.api.EvalMetrics.prototype.hasExtendedMetrics = function() {
|
|
35570
|
+
return jspb.Message.getField(this, 17) != null;
|
|
35571
|
+
};
|
|
35572
|
+
|
|
35573
|
+
|
|
35574
|
+
|
|
35575
|
+
|
|
35576
|
+
|
|
35577
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35578
|
+
/**
|
|
35579
|
+
* Creates an object representation of this proto.
|
|
35580
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
35581
|
+
* Optional fields that are not set will be set to undefined.
|
|
35582
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
35583
|
+
* For the list of reserved names please see:
|
|
35584
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
35585
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
35586
|
+
* JSPB instance for transitional soy proto support:
|
|
35587
|
+
* http://goto/soy-param-migration
|
|
35588
|
+
* @return {!Object}
|
|
35589
|
+
*/
|
|
35590
|
+
proto.clarifai.api.ExtendedMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
35591
|
+
return proto.clarifai.api.ExtendedMetrics.toObject(opt_includeInstance, this);
|
|
35592
|
+
};
|
|
35593
|
+
|
|
35594
|
+
|
|
35595
|
+
/**
|
|
35596
|
+
* Static version of the {@see toObject} method.
|
|
35597
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
35598
|
+
* the JSPB instance for transitional soy proto support:
|
|
35599
|
+
* http://goto/soy-param-migration
|
|
35600
|
+
* @param {!proto.clarifai.api.ExtendedMetrics} msg The msg instance to transform.
|
|
35601
|
+
* @return {!Object}
|
|
35602
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35603
|
+
*/
|
|
35604
|
+
proto.clarifai.api.ExtendedMetrics.toObject = function(includeInstance, msg) {
|
|
35605
|
+
var f, obj = {
|
|
35606
|
+
userMetrics: (f = msg.getUserMetrics()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
35607
|
+
};
|
|
35608
|
+
|
|
35609
|
+
if (includeInstance) {
|
|
35610
|
+
obj.$jspbMessageInstance = msg;
|
|
35611
|
+
}
|
|
35612
|
+
return obj;
|
|
35613
|
+
};
|
|
35614
|
+
}
|
|
35615
|
+
|
|
35616
|
+
|
|
35617
|
+
/**
|
|
35618
|
+
* Deserializes binary data (in protobuf wire format).
|
|
35619
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
35620
|
+
* @return {!proto.clarifai.api.ExtendedMetrics}
|
|
35621
|
+
*/
|
|
35622
|
+
proto.clarifai.api.ExtendedMetrics.deserializeBinary = function(bytes) {
|
|
35623
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
35624
|
+
var msg = new proto.clarifai.api.ExtendedMetrics;
|
|
35625
|
+
return proto.clarifai.api.ExtendedMetrics.deserializeBinaryFromReader(msg, reader);
|
|
35626
|
+
};
|
|
35627
|
+
|
|
35628
|
+
|
|
35629
|
+
/**
|
|
35630
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
35631
|
+
* given reader into the given message object.
|
|
35632
|
+
* @param {!proto.clarifai.api.ExtendedMetrics} msg The message object to deserialize into.
|
|
35633
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
35634
|
+
* @return {!proto.clarifai.api.ExtendedMetrics}
|
|
35635
|
+
*/
|
|
35636
|
+
proto.clarifai.api.ExtendedMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
35637
|
+
while (reader.nextField()) {
|
|
35638
|
+
if (reader.isEndGroup()) {
|
|
35639
|
+
break;
|
|
35640
|
+
}
|
|
35641
|
+
var field = reader.getFieldNumber();
|
|
35642
|
+
switch (field) {
|
|
35643
|
+
case 1:
|
|
35644
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
35645
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
35646
|
+
msg.setUserMetrics(value);
|
|
35647
|
+
break;
|
|
35648
|
+
default:
|
|
35649
|
+
reader.skipField();
|
|
35650
|
+
break;
|
|
35651
|
+
}
|
|
35652
|
+
}
|
|
35653
|
+
return msg;
|
|
35654
|
+
};
|
|
35655
|
+
|
|
35656
|
+
|
|
35657
|
+
/**
|
|
35658
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
35659
|
+
* @return {!Uint8Array}
|
|
35660
|
+
*/
|
|
35661
|
+
proto.clarifai.api.ExtendedMetrics.prototype.serializeBinary = function() {
|
|
35662
|
+
var writer = new jspb.BinaryWriter();
|
|
35663
|
+
proto.clarifai.api.ExtendedMetrics.serializeBinaryToWriter(this, writer);
|
|
35664
|
+
return writer.getResultBuffer();
|
|
35665
|
+
};
|
|
35666
|
+
|
|
35667
|
+
|
|
35668
|
+
/**
|
|
35669
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
35670
|
+
* format), writing to the given BinaryWriter.
|
|
35671
|
+
* @param {!proto.clarifai.api.ExtendedMetrics} message
|
|
35672
|
+
* @param {!jspb.BinaryWriter} writer
|
|
35673
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35674
|
+
*/
|
|
35675
|
+
proto.clarifai.api.ExtendedMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
35676
|
+
var f = undefined;
|
|
35677
|
+
f = message.getUserMetrics();
|
|
35678
|
+
if (f != null) {
|
|
35679
|
+
writer.writeMessage(
|
|
35680
|
+
1,
|
|
35681
|
+
f,
|
|
35682
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
35683
|
+
);
|
|
35684
|
+
}
|
|
35685
|
+
};
|
|
35686
|
+
|
|
35687
|
+
|
|
35688
|
+
/**
|
|
35689
|
+
* optional google.protobuf.Struct user_metrics = 1;
|
|
35690
|
+
* @return {?proto.google.protobuf.Struct}
|
|
35691
|
+
*/
|
|
35692
|
+
proto.clarifai.api.ExtendedMetrics.prototype.getUserMetrics = function() {
|
|
35693
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
35694
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
|
|
35695
|
+
};
|
|
35696
|
+
|
|
35697
|
+
|
|
35698
|
+
/**
|
|
35699
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
35700
|
+
* @return {!proto.clarifai.api.ExtendedMetrics} returns this
|
|
35701
|
+
*/
|
|
35702
|
+
proto.clarifai.api.ExtendedMetrics.prototype.setUserMetrics = function(value) {
|
|
35703
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
35704
|
+
};
|
|
35705
|
+
|
|
35706
|
+
|
|
35707
|
+
/**
|
|
35708
|
+
* Clears the message field making it undefined.
|
|
35709
|
+
* @return {!proto.clarifai.api.ExtendedMetrics} returns this
|
|
35710
|
+
*/
|
|
35711
|
+
proto.clarifai.api.ExtendedMetrics.prototype.clearUserMetrics = function() {
|
|
35712
|
+
return this.setUserMetrics(undefined);
|
|
35713
|
+
};
|
|
35714
|
+
|
|
35715
|
+
|
|
35716
|
+
/**
|
|
35717
|
+
* Returns whether this field is set.
|
|
35718
|
+
* @return {boolean}
|
|
35719
|
+
*/
|
|
35720
|
+
proto.clarifai.api.ExtendedMetrics.prototype.hasUserMetrics = function() {
|
|
35721
|
+
return jspb.Message.getField(this, 1) != null;
|
|
35722
|
+
};
|
|
35723
|
+
|
|
35724
|
+
|
|
34193
35725
|
|
|
34194
35726
|
|
|
34195
35727
|
|
|
@@ -38411,6 +39943,7 @@ proto.clarifai.api.User.toObject = function(includeInstance, msg) {
|
|
|
38411
39943
|
companyName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
38412
39944
|
jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
38413
39945
|
jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
39946
|
+
intention: jspb.Message.getFieldWithDefault(msg, 24, ""),
|
|
38414
39947
|
billType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
38415
39948
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
38416
39949
|
dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
@@ -38490,6 +40023,10 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
38490
40023
|
var value = /** @type {string} */ (reader.readString());
|
|
38491
40024
|
msg.setJobRole(value);
|
|
38492
40025
|
break;
|
|
40026
|
+
case 24:
|
|
40027
|
+
var value = /** @type {string} */ (reader.readString());
|
|
40028
|
+
msg.setIntention(value);
|
|
40029
|
+
break;
|
|
38493
40030
|
case 7:
|
|
38494
40031
|
var value = /** @type {string} */ (reader.readString());
|
|
38495
40032
|
msg.setBillType(value);
|
|
@@ -38633,6 +40170,13 @@ proto.clarifai.api.User.serializeBinaryToWriter = function(message, writer) {
|
|
|
38633
40170
|
f
|
|
38634
40171
|
);
|
|
38635
40172
|
}
|
|
40173
|
+
f = message.getIntention();
|
|
40174
|
+
if (f.length > 0) {
|
|
40175
|
+
writer.writeString(
|
|
40176
|
+
24,
|
|
40177
|
+
f
|
|
40178
|
+
);
|
|
40179
|
+
}
|
|
38636
40180
|
f = message.getBillType();
|
|
38637
40181
|
if (f.length > 0) {
|
|
38638
40182
|
writer.writeString(
|
|
@@ -38869,6 +40413,24 @@ proto.clarifai.api.User.prototype.setJobRole = function(value) {
|
|
|
38869
40413
|
};
|
|
38870
40414
|
|
|
38871
40415
|
|
|
40416
|
+
/**
|
|
40417
|
+
* optional string intention = 24;
|
|
40418
|
+
* @return {string}
|
|
40419
|
+
*/
|
|
40420
|
+
proto.clarifai.api.User.prototype.getIntention = function() {
|
|
40421
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
|
|
40422
|
+
};
|
|
40423
|
+
|
|
40424
|
+
|
|
40425
|
+
/**
|
|
40426
|
+
* @param {string} value
|
|
40427
|
+
* @return {!proto.clarifai.api.User} returns this
|
|
40428
|
+
*/
|
|
40429
|
+
proto.clarifai.api.User.prototype.setIntention = function(value) {
|
|
40430
|
+
return jspb.Message.setProto3StringField(this, 24, value);
|
|
40431
|
+
};
|
|
40432
|
+
|
|
40433
|
+
|
|
38872
40434
|
/**
|
|
38873
40435
|
* optional string bill_type = 7;
|
|
38874
40436
|
* @return {string}
|
|
@@ -40765,6 +42327,7 @@ proto.clarifai.api.Video.toObject = function(includeInstance, msg) {
|
|
|
40765
42327
|
allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
40766
42328
|
thumbnailUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
40767
42329
|
hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
|
|
42330
|
+
hostedThumbnail: (f = msg.getHostedThumbnail()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
|
|
40768
42331
|
videoInfo: (f = msg.getVideoInfo()) && proto.clarifai.api.VideoInfo.toObject(includeInstance, f)
|
|
40769
42332
|
};
|
|
40770
42333
|
|
|
@@ -40823,6 +42386,11 @@ proto.clarifai.api.Video.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
40823
42386
|
reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader);
|
|
40824
42387
|
msg.setHosted(value);
|
|
40825
42388
|
break;
|
|
42389
|
+
case 8:
|
|
42390
|
+
var value = new proto.clarifai.api.HostedURL;
|
|
42391
|
+
reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader);
|
|
42392
|
+
msg.setHostedThumbnail(value);
|
|
42393
|
+
break;
|
|
40826
42394
|
case 7:
|
|
40827
42395
|
var value = new proto.clarifai.api.VideoInfo;
|
|
40828
42396
|
reader.readMessage(value,proto.clarifai.api.VideoInfo.deserializeBinaryFromReader);
|
|
@@ -40893,6 +42461,14 @@ proto.clarifai.api.Video.serializeBinaryToWriter = function(message, writer) {
|
|
|
40893
42461
|
proto.clarifai.api.HostedURL.serializeBinaryToWriter
|
|
40894
42462
|
);
|
|
40895
42463
|
}
|
|
42464
|
+
f = message.getHostedThumbnail();
|
|
42465
|
+
if (f != null) {
|
|
42466
|
+
writer.writeMessage(
|
|
42467
|
+
8,
|
|
42468
|
+
f,
|
|
42469
|
+
proto.clarifai.api.HostedURL.serializeBinaryToWriter
|
|
42470
|
+
);
|
|
42471
|
+
}
|
|
40896
42472
|
f = message.getVideoInfo();
|
|
40897
42473
|
if (f != null) {
|
|
40898
42474
|
writer.writeMessage(
|
|
@@ -41037,6 +42613,43 @@ proto.clarifai.api.Video.prototype.hasHosted = function() {
|
|
|
41037
42613
|
};
|
|
41038
42614
|
|
|
41039
42615
|
|
|
42616
|
+
/**
|
|
42617
|
+
* optional HostedURL hosted_thumbnail = 8;
|
|
42618
|
+
* @return {?proto.clarifai.api.HostedURL}
|
|
42619
|
+
*/
|
|
42620
|
+
proto.clarifai.api.Video.prototype.getHostedThumbnail = function() {
|
|
42621
|
+
return /** @type{?proto.clarifai.api.HostedURL} */ (
|
|
42622
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 8));
|
|
42623
|
+
};
|
|
42624
|
+
|
|
42625
|
+
|
|
42626
|
+
/**
|
|
42627
|
+
* @param {?proto.clarifai.api.HostedURL|undefined} value
|
|
42628
|
+
* @return {!proto.clarifai.api.Video} returns this
|
|
42629
|
+
*/
|
|
42630
|
+
proto.clarifai.api.Video.prototype.setHostedThumbnail = function(value) {
|
|
42631
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
42632
|
+
};
|
|
42633
|
+
|
|
42634
|
+
|
|
42635
|
+
/**
|
|
42636
|
+
* Clears the message field making it undefined.
|
|
42637
|
+
* @return {!proto.clarifai.api.Video} returns this
|
|
42638
|
+
*/
|
|
42639
|
+
proto.clarifai.api.Video.prototype.clearHostedThumbnail = function() {
|
|
42640
|
+
return this.setHostedThumbnail(undefined);
|
|
42641
|
+
};
|
|
42642
|
+
|
|
42643
|
+
|
|
42644
|
+
/**
|
|
42645
|
+
* Returns whether this field is set.
|
|
42646
|
+
* @return {boolean}
|
|
42647
|
+
*/
|
|
42648
|
+
proto.clarifai.api.Video.prototype.hasHostedThumbnail = function() {
|
|
42649
|
+
return jspb.Message.getField(this, 8) != null;
|
|
42650
|
+
};
|
|
42651
|
+
|
|
42652
|
+
|
|
41040
42653
|
/**
|
|
41041
42654
|
* optional VideoInfo video_info = 7;
|
|
41042
42655
|
* @return {?proto.clarifai.api.VideoInfo}
|
|
@@ -41438,7 +43051,9 @@ proto.clarifai.api.Workflow.toObject = function(includeInstance, msg) {
|
|
|
41438
43051
|
description: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
41439
43052
|
notes: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
41440
43053
|
useCasesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
|
|
41441
|
-
checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f
|
|
43054
|
+
checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
|
|
43055
|
+
bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
|
|
43056
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
41442
43057
|
};
|
|
41443
43058
|
|
|
41444
43059
|
if (includeInstance) {
|
|
@@ -41541,6 +43156,16 @@ proto.clarifai.api.Workflow.deserializeBinaryFromReader = function(msg, reader)
|
|
|
41541
43156
|
var value = /** @type {string} */ (reader.readString());
|
|
41542
43157
|
msg.addCheckConsents(value);
|
|
41543
43158
|
break;
|
|
43159
|
+
case 16:
|
|
43160
|
+
var value = new proto.clarifai.api.BookmarkOrigin;
|
|
43161
|
+
reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader);
|
|
43162
|
+
msg.setBookmarkOrigin(value);
|
|
43163
|
+
break;
|
|
43164
|
+
case 17:
|
|
43165
|
+
var value = new proto.clarifai.api.Image;
|
|
43166
|
+
reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
43167
|
+
msg.setImage(value);
|
|
43168
|
+
break;
|
|
41544
43169
|
default:
|
|
41545
43170
|
reader.skipField();
|
|
41546
43171
|
break;
|
|
@@ -41681,6 +43306,22 @@ proto.clarifai.api.Workflow.serializeBinaryToWriter = function(message, writer)
|
|
|
41681
43306
|
f
|
|
41682
43307
|
);
|
|
41683
43308
|
}
|
|
43309
|
+
f = message.getBookmarkOrigin();
|
|
43310
|
+
if (f != null) {
|
|
43311
|
+
writer.writeMessage(
|
|
43312
|
+
16,
|
|
43313
|
+
f,
|
|
43314
|
+
proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter
|
|
43315
|
+
);
|
|
43316
|
+
}
|
|
43317
|
+
f = message.getImage();
|
|
43318
|
+
if (f != null) {
|
|
43319
|
+
writer.writeMessage(
|
|
43320
|
+
17,
|
|
43321
|
+
f,
|
|
43322
|
+
proto.clarifai.api.Image.serializeBinaryToWriter
|
|
43323
|
+
);
|
|
43324
|
+
}
|
|
41684
43325
|
};
|
|
41685
43326
|
|
|
41686
43327
|
|
|
@@ -42107,6 +43748,80 @@ proto.clarifai.api.Workflow.prototype.clearCheckConsentsList = function() {
|
|
|
42107
43748
|
};
|
|
42108
43749
|
|
|
42109
43750
|
|
|
43751
|
+
/**
|
|
43752
|
+
* optional BookmarkOrigin bookmark_origin = 16;
|
|
43753
|
+
* @return {?proto.clarifai.api.BookmarkOrigin}
|
|
43754
|
+
*/
|
|
43755
|
+
proto.clarifai.api.Workflow.prototype.getBookmarkOrigin = function() {
|
|
43756
|
+
return /** @type{?proto.clarifai.api.BookmarkOrigin} */ (
|
|
43757
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 16));
|
|
43758
|
+
};
|
|
43759
|
+
|
|
43760
|
+
|
|
43761
|
+
/**
|
|
43762
|
+
* @param {?proto.clarifai.api.BookmarkOrigin|undefined} value
|
|
43763
|
+
* @return {!proto.clarifai.api.Workflow} returns this
|
|
43764
|
+
*/
|
|
43765
|
+
proto.clarifai.api.Workflow.prototype.setBookmarkOrigin = function(value) {
|
|
43766
|
+
return jspb.Message.setWrapperField(this, 16, value);
|
|
43767
|
+
};
|
|
43768
|
+
|
|
43769
|
+
|
|
43770
|
+
/**
|
|
43771
|
+
* Clears the message field making it undefined.
|
|
43772
|
+
* @return {!proto.clarifai.api.Workflow} returns this
|
|
43773
|
+
*/
|
|
43774
|
+
proto.clarifai.api.Workflow.prototype.clearBookmarkOrigin = function() {
|
|
43775
|
+
return this.setBookmarkOrigin(undefined);
|
|
43776
|
+
};
|
|
43777
|
+
|
|
43778
|
+
|
|
43779
|
+
/**
|
|
43780
|
+
* Returns whether this field is set.
|
|
43781
|
+
* @return {boolean}
|
|
43782
|
+
*/
|
|
43783
|
+
proto.clarifai.api.Workflow.prototype.hasBookmarkOrigin = function() {
|
|
43784
|
+
return jspb.Message.getField(this, 16) != null;
|
|
43785
|
+
};
|
|
43786
|
+
|
|
43787
|
+
|
|
43788
|
+
/**
|
|
43789
|
+
* optional Image image = 17;
|
|
43790
|
+
* @return {?proto.clarifai.api.Image}
|
|
43791
|
+
*/
|
|
43792
|
+
proto.clarifai.api.Workflow.prototype.getImage = function() {
|
|
43793
|
+
return /** @type{?proto.clarifai.api.Image} */ (
|
|
43794
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 17));
|
|
43795
|
+
};
|
|
43796
|
+
|
|
43797
|
+
|
|
43798
|
+
/**
|
|
43799
|
+
* @param {?proto.clarifai.api.Image|undefined} value
|
|
43800
|
+
* @return {!proto.clarifai.api.Workflow} returns this
|
|
43801
|
+
*/
|
|
43802
|
+
proto.clarifai.api.Workflow.prototype.setImage = function(value) {
|
|
43803
|
+
return jspb.Message.setWrapperField(this, 17, value);
|
|
43804
|
+
};
|
|
43805
|
+
|
|
43806
|
+
|
|
43807
|
+
/**
|
|
43808
|
+
* Clears the message field making it undefined.
|
|
43809
|
+
* @return {!proto.clarifai.api.Workflow} returns this
|
|
43810
|
+
*/
|
|
43811
|
+
proto.clarifai.api.Workflow.prototype.clearImage = function() {
|
|
43812
|
+
return this.setImage(undefined);
|
|
43813
|
+
};
|
|
43814
|
+
|
|
43815
|
+
|
|
43816
|
+
/**
|
|
43817
|
+
* Returns whether this field is set.
|
|
43818
|
+
* @return {boolean}
|
|
43819
|
+
*/
|
|
43820
|
+
proto.clarifai.api.Workflow.prototype.hasImage = function() {
|
|
43821
|
+
return jspb.Message.getField(this, 17) != null;
|
|
43822
|
+
};
|
|
43823
|
+
|
|
43824
|
+
|
|
42110
43825
|
|
|
42111
43826
|
/**
|
|
42112
43827
|
* List of repeated fields within this message type.
|
|
@@ -43697,13 +45412,14 @@ proto.clarifai.api.AppDuplication.prototype.toObject = function(opt_includeInsta
|
|
|
43697
45412
|
proto.clarifai.api.AppDuplication.toObject = function(includeInstance, msg) {
|
|
43698
45413
|
var f, obj = {
|
|
43699
45414
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
45415
|
+
existingAppId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
43700
45416
|
newAppId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
43701
45417
|
newAppName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
45418
|
+
newAppDescription: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
43702
45419
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
43703
45420
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
43704
45421
|
lastModifiedAt: (f = msg.getLastModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
43705
45422
|
filter: (f = msg.getFilter()) && proto.clarifai.api.AppDuplicationFilters.toObject(includeInstance, f),
|
|
43706
|
-
existingAppId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
43707
45423
|
progressList: jspb.Message.toObjectList(msg.getProgressList(),
|
|
43708
45424
|
proto.clarifai.api.AppCopyProgress.toObject, includeInstance)
|
|
43709
45425
|
};
|
|
@@ -43746,6 +45462,10 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
|
|
|
43746
45462
|
var value = /** @type {string} */ (reader.readString());
|
|
43747
45463
|
msg.setId(value);
|
|
43748
45464
|
break;
|
|
45465
|
+
case 8:
|
|
45466
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45467
|
+
msg.setExistingAppId(value);
|
|
45468
|
+
break;
|
|
43749
45469
|
case 2:
|
|
43750
45470
|
var value = /** @type {string} */ (reader.readString());
|
|
43751
45471
|
msg.setNewAppId(value);
|
|
@@ -43754,6 +45474,10 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
|
|
|
43754
45474
|
var value = /** @type {string} */ (reader.readString());
|
|
43755
45475
|
msg.setNewAppName(value);
|
|
43756
45476
|
break;
|
|
45477
|
+
case 10:
|
|
45478
|
+
var value = /** @type {string} */ (reader.readString());
|
|
45479
|
+
msg.setNewAppDescription(value);
|
|
45480
|
+
break;
|
|
43757
45481
|
case 4:
|
|
43758
45482
|
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
43759
45483
|
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
@@ -43774,10 +45498,6 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
|
|
|
43774
45498
|
reader.readMessage(value,proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader);
|
|
43775
45499
|
msg.setFilter(value);
|
|
43776
45500
|
break;
|
|
43777
|
-
case 8:
|
|
43778
|
-
var value = /** @type {string} */ (reader.readString());
|
|
43779
|
-
msg.setExistingAppId(value);
|
|
43780
|
-
break;
|
|
43781
45501
|
case 9:
|
|
43782
45502
|
var value = new proto.clarifai.api.AppCopyProgress;
|
|
43783
45503
|
reader.readMessage(value,proto.clarifai.api.AppCopyProgress.deserializeBinaryFromReader);
|
|
@@ -43819,6 +45539,13 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
|
|
|
43819
45539
|
f
|
|
43820
45540
|
);
|
|
43821
45541
|
}
|
|
45542
|
+
f = message.getExistingAppId();
|
|
45543
|
+
if (f.length > 0) {
|
|
45544
|
+
writer.writeString(
|
|
45545
|
+
8,
|
|
45546
|
+
f
|
|
45547
|
+
);
|
|
45548
|
+
}
|
|
43822
45549
|
f = message.getNewAppId();
|
|
43823
45550
|
if (f.length > 0) {
|
|
43824
45551
|
writer.writeString(
|
|
@@ -43833,6 +45560,13 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
|
|
|
43833
45560
|
f
|
|
43834
45561
|
);
|
|
43835
45562
|
}
|
|
45563
|
+
f = message.getNewAppDescription();
|
|
45564
|
+
if (f.length > 0) {
|
|
45565
|
+
writer.writeString(
|
|
45566
|
+
10,
|
|
45567
|
+
f
|
|
45568
|
+
);
|
|
45569
|
+
}
|
|
43836
45570
|
f = message.getStatus();
|
|
43837
45571
|
if (f != null) {
|
|
43838
45572
|
writer.writeMessage(
|
|
@@ -43865,13 +45599,6 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
|
|
|
43865
45599
|
proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter
|
|
43866
45600
|
);
|
|
43867
45601
|
}
|
|
43868
|
-
f = message.getExistingAppId();
|
|
43869
|
-
if (f.length > 0) {
|
|
43870
|
-
writer.writeString(
|
|
43871
|
-
8,
|
|
43872
|
-
f
|
|
43873
|
-
);
|
|
43874
|
-
}
|
|
43875
45602
|
f = message.getProgressList();
|
|
43876
45603
|
if (f.length > 0) {
|
|
43877
45604
|
writer.writeRepeatedMessage(
|
|
@@ -43901,6 +45628,24 @@ proto.clarifai.api.AppDuplication.prototype.setId = function(value) {
|
|
|
43901
45628
|
};
|
|
43902
45629
|
|
|
43903
45630
|
|
|
45631
|
+
/**
|
|
45632
|
+
* optional string existing_app_id = 8;
|
|
45633
|
+
* @return {string}
|
|
45634
|
+
*/
|
|
45635
|
+
proto.clarifai.api.AppDuplication.prototype.getExistingAppId = function() {
|
|
45636
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
45637
|
+
};
|
|
45638
|
+
|
|
45639
|
+
|
|
45640
|
+
/**
|
|
45641
|
+
* @param {string} value
|
|
45642
|
+
* @return {!proto.clarifai.api.AppDuplication} returns this
|
|
45643
|
+
*/
|
|
45644
|
+
proto.clarifai.api.AppDuplication.prototype.setExistingAppId = function(value) {
|
|
45645
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
45646
|
+
};
|
|
45647
|
+
|
|
45648
|
+
|
|
43904
45649
|
/**
|
|
43905
45650
|
* optional string new_app_id = 2;
|
|
43906
45651
|
* @return {string}
|
|
@@ -43937,6 +45682,24 @@ proto.clarifai.api.AppDuplication.prototype.setNewAppName = function(value) {
|
|
|
43937
45682
|
};
|
|
43938
45683
|
|
|
43939
45684
|
|
|
45685
|
+
/**
|
|
45686
|
+
* optional string new_app_description = 10;
|
|
45687
|
+
* @return {string}
|
|
45688
|
+
*/
|
|
45689
|
+
proto.clarifai.api.AppDuplication.prototype.getNewAppDescription = function() {
|
|
45690
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
45691
|
+
};
|
|
45692
|
+
|
|
45693
|
+
|
|
45694
|
+
/**
|
|
45695
|
+
* @param {string} value
|
|
45696
|
+
* @return {!proto.clarifai.api.AppDuplication} returns this
|
|
45697
|
+
*/
|
|
45698
|
+
proto.clarifai.api.AppDuplication.prototype.setNewAppDescription = function(value) {
|
|
45699
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
45700
|
+
};
|
|
45701
|
+
|
|
45702
|
+
|
|
43940
45703
|
/**
|
|
43941
45704
|
* optional status.Status status = 4;
|
|
43942
45705
|
* @return {?proto.clarifai.api.status.Status}
|
|
@@ -44085,24 +45848,6 @@ proto.clarifai.api.AppDuplication.prototype.hasFilter = function() {
|
|
|
44085
45848
|
};
|
|
44086
45849
|
|
|
44087
45850
|
|
|
44088
|
-
/**
|
|
44089
|
-
* optional string existing_app_id = 8;
|
|
44090
|
-
* @return {string}
|
|
44091
|
-
*/
|
|
44092
|
-
proto.clarifai.api.AppDuplication.prototype.getExistingAppId = function() {
|
|
44093
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
44094
|
-
};
|
|
44095
|
-
|
|
44096
|
-
|
|
44097
|
-
/**
|
|
44098
|
-
* @param {string} value
|
|
44099
|
-
* @return {!proto.clarifai.api.AppDuplication} returns this
|
|
44100
|
-
*/
|
|
44101
|
-
proto.clarifai.api.AppDuplication.prototype.setExistingAppId = function(value) {
|
|
44102
|
-
return jspb.Message.setProto3StringField(this, 8, value);
|
|
44103
|
-
};
|
|
44104
|
-
|
|
44105
|
-
|
|
44106
45851
|
/**
|
|
44107
45852
|
* repeated AppCopyProgress progress = 9;
|
|
44108
45853
|
* @return {!Array<!proto.clarifai.api.AppCopyProgress>}
|
|
@@ -49301,7 +51046,8 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject = function(includ
|
|
|
49301
51046
|
modelAppId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
49302
51047
|
modelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
49303
51048
|
modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
49304
|
-
postInputsKeyId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
51049
|
+
postInputsKeyId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
51050
|
+
callerUserId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
49305
51051
|
};
|
|
49306
51052
|
|
|
49307
51053
|
if (includeInstance) {
|
|
@@ -49358,6 +51104,10 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReade
|
|
|
49358
51104
|
var value = /** @type {string} */ (reader.readString());
|
|
49359
51105
|
msg.setPostInputsKeyId(value);
|
|
49360
51106
|
break;
|
|
51107
|
+
case 6:
|
|
51108
|
+
var value = /** @type {string} */ (reader.readString());
|
|
51109
|
+
msg.setCallerUserId(value);
|
|
51110
|
+
break;
|
|
49361
51111
|
default:
|
|
49362
51112
|
reader.skipField();
|
|
49363
51113
|
break;
|
|
@@ -49422,6 +51172,13 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter =
|
|
|
49422
51172
|
f
|
|
49423
51173
|
);
|
|
49424
51174
|
}
|
|
51175
|
+
f = message.getCallerUserId();
|
|
51176
|
+
if (f.length > 0) {
|
|
51177
|
+
writer.writeString(
|
|
51178
|
+
6,
|
|
51179
|
+
f
|
|
51180
|
+
);
|
|
51181
|
+
}
|
|
49425
51182
|
};
|
|
49426
51183
|
|
|
49427
51184
|
|
|
@@ -49515,6 +51272,24 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setPostInputsKey
|
|
|
49515
51272
|
};
|
|
49516
51273
|
|
|
49517
51274
|
|
|
51275
|
+
/**
|
|
51276
|
+
* optional string caller_user_id = 6;
|
|
51277
|
+
* @return {string}
|
|
51278
|
+
*/
|
|
51279
|
+
proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getCallerUserId = function() {
|
|
51280
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
51281
|
+
};
|
|
51282
|
+
|
|
51283
|
+
|
|
51284
|
+
/**
|
|
51285
|
+
* @param {string} value
|
|
51286
|
+
* @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this
|
|
51287
|
+
*/
|
|
51288
|
+
proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setCallerUserId = function(value) {
|
|
51289
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
51290
|
+
};
|
|
51291
|
+
|
|
51292
|
+
|
|
49518
51293
|
|
|
49519
51294
|
/**
|
|
49520
51295
|
* List of repeated fields within this message type.
|
|
@@ -52092,8 +53867,8 @@ proto.clarifai.api.TimeInfo.prototype.toObject = function(opt_includeInstance) {
|
|
|
52092
53867
|
proto.clarifai.api.TimeInfo.toObject = function(includeInstance, msg) {
|
|
52093
53868
|
var f, obj = {
|
|
52094
53869
|
numFrames: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
52095
|
-
beginTime: jspb.Message.
|
|
52096
|
-
endTime: jspb.Message.
|
|
53870
|
+
beginTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
53871
|
+
endTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
|
52097
53872
|
};
|
|
52098
53873
|
|
|
52099
53874
|
if (includeInstance) {
|
|
@@ -52134,12 +53909,12 @@ proto.clarifai.api.TimeInfo.deserializeBinaryFromReader = function(msg, reader)
|
|
|
52134
53909
|
var value = /** @type {number} */ (reader.readUint32());
|
|
52135
53910
|
msg.setNumFrames(value);
|
|
52136
53911
|
break;
|
|
52137
|
-
case
|
|
52138
|
-
var value = /** @type {number} */ (reader.
|
|
53912
|
+
case 4:
|
|
53913
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
52139
53914
|
msg.setBeginTime(value);
|
|
52140
53915
|
break;
|
|
52141
|
-
case
|
|
52142
|
-
var value = /** @type {number} */ (reader.
|
|
53916
|
+
case 5:
|
|
53917
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
52143
53918
|
msg.setEndTime(value);
|
|
52144
53919
|
break;
|
|
52145
53920
|
default:
|
|
@@ -52179,16 +53954,16 @@ proto.clarifai.api.TimeInfo.serializeBinaryToWriter = function(message, writer)
|
|
|
52179
53954
|
);
|
|
52180
53955
|
}
|
|
52181
53956
|
f = message.getBeginTime();
|
|
52182
|
-
if (f !== 0) {
|
|
52183
|
-
writer.
|
|
52184
|
-
|
|
53957
|
+
if (f !== 0.0) {
|
|
53958
|
+
writer.writeFloat(
|
|
53959
|
+
4,
|
|
52185
53960
|
f
|
|
52186
53961
|
);
|
|
52187
53962
|
}
|
|
52188
53963
|
f = message.getEndTime();
|
|
52189
|
-
if (f !== 0) {
|
|
52190
|
-
writer.
|
|
52191
|
-
|
|
53964
|
+
if (f !== 0.0) {
|
|
53965
|
+
writer.writeFloat(
|
|
53966
|
+
5,
|
|
52192
53967
|
f
|
|
52193
53968
|
);
|
|
52194
53969
|
}
|
|
@@ -52214,11 +53989,11 @@ proto.clarifai.api.TimeInfo.prototype.setNumFrames = function(value) {
|
|
|
52214
53989
|
|
|
52215
53990
|
|
|
52216
53991
|
/**
|
|
52217
|
-
* optional
|
|
53992
|
+
* optional float begin_time = 4;
|
|
52218
53993
|
* @return {number}
|
|
52219
53994
|
*/
|
|
52220
53995
|
proto.clarifai.api.TimeInfo.prototype.getBeginTime = function() {
|
|
52221
|
-
return /** @type {number} */ (jspb.Message.
|
|
53996
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
52222
53997
|
};
|
|
52223
53998
|
|
|
52224
53999
|
|
|
@@ -52227,16 +54002,16 @@ proto.clarifai.api.TimeInfo.prototype.getBeginTime = function() {
|
|
|
52227
54002
|
* @return {!proto.clarifai.api.TimeInfo} returns this
|
|
52228
54003
|
*/
|
|
52229
54004
|
proto.clarifai.api.TimeInfo.prototype.setBeginTime = function(value) {
|
|
52230
|
-
return jspb.Message.
|
|
54005
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
52231
54006
|
};
|
|
52232
54007
|
|
|
52233
54008
|
|
|
52234
54009
|
/**
|
|
52235
|
-
* optional
|
|
54010
|
+
* optional float end_time = 5;
|
|
52236
54011
|
* @return {number}
|
|
52237
54012
|
*/
|
|
52238
54013
|
proto.clarifai.api.TimeInfo.prototype.getEndTime = function() {
|
|
52239
|
-
return /** @type {number} */ (jspb.Message.
|
|
54014
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
52240
54015
|
};
|
|
52241
54016
|
|
|
52242
54017
|
|
|
@@ -52245,7 +54020,7 @@ proto.clarifai.api.TimeInfo.prototype.getEndTime = function() {
|
|
|
52245
54020
|
* @return {!proto.clarifai.api.TimeInfo} returns this
|
|
52246
54021
|
*/
|
|
52247
54022
|
proto.clarifai.api.TimeInfo.prototype.setEndTime = function(value) {
|
|
52248
|
-
return jspb.Message.
|
|
54023
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
52249
54024
|
};
|
|
52250
54025
|
|
|
52251
54026
|
|
|
@@ -52551,7 +54326,9 @@ proto.clarifai.api.Module.toObject = function(includeInstance, msg) {
|
|
|
52551
54326
|
appId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
52552
54327
|
moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f),
|
|
52553
54328
|
isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
52554
|
-
starCount: jspb.Message.getFieldWithDefault(msg, 13, 0)
|
|
54329
|
+
starCount: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
54330
|
+
bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
|
|
54331
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
52555
54332
|
};
|
|
52556
54333
|
|
|
52557
54334
|
if (includeInstance) {
|
|
@@ -52637,6 +54414,16 @@ proto.clarifai.api.Module.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
52637
54414
|
var value = /** @type {number} */ (reader.readInt32());
|
|
52638
54415
|
msg.setStarCount(value);
|
|
52639
54416
|
break;
|
|
54417
|
+
case 14:
|
|
54418
|
+
var value = new proto.clarifai.api.BookmarkOrigin;
|
|
54419
|
+
reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader);
|
|
54420
|
+
msg.setBookmarkOrigin(value);
|
|
54421
|
+
break;
|
|
54422
|
+
case 15:
|
|
54423
|
+
var value = new proto.clarifai.api.Image;
|
|
54424
|
+
reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
54425
|
+
msg.setImage(value);
|
|
54426
|
+
break;
|
|
52640
54427
|
default:
|
|
52641
54428
|
reader.skipField();
|
|
52642
54429
|
break;
|
|
@@ -52748,6 +54535,22 @@ proto.clarifai.api.Module.serializeBinaryToWriter = function(message, writer) {
|
|
|
52748
54535
|
f
|
|
52749
54536
|
);
|
|
52750
54537
|
}
|
|
54538
|
+
f = message.getBookmarkOrigin();
|
|
54539
|
+
if (f != null) {
|
|
54540
|
+
writer.writeMessage(
|
|
54541
|
+
14,
|
|
54542
|
+
f,
|
|
54543
|
+
proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter
|
|
54544
|
+
);
|
|
54545
|
+
}
|
|
54546
|
+
f = message.getImage();
|
|
54547
|
+
if (f != null) {
|
|
54548
|
+
writer.writeMessage(
|
|
54549
|
+
15,
|
|
54550
|
+
f,
|
|
54551
|
+
proto.clarifai.api.Image.serializeBinaryToWriter
|
|
54552
|
+
);
|
|
54553
|
+
}
|
|
52751
54554
|
};
|
|
52752
54555
|
|
|
52753
54556
|
|
|
@@ -53044,6 +54847,80 @@ proto.clarifai.api.Module.prototype.setStarCount = function(value) {
|
|
|
53044
54847
|
};
|
|
53045
54848
|
|
|
53046
54849
|
|
|
54850
|
+
/**
|
|
54851
|
+
* optional BookmarkOrigin bookmark_origin = 14;
|
|
54852
|
+
* @return {?proto.clarifai.api.BookmarkOrigin}
|
|
54853
|
+
*/
|
|
54854
|
+
proto.clarifai.api.Module.prototype.getBookmarkOrigin = function() {
|
|
54855
|
+
return /** @type{?proto.clarifai.api.BookmarkOrigin} */ (
|
|
54856
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 14));
|
|
54857
|
+
};
|
|
54858
|
+
|
|
54859
|
+
|
|
54860
|
+
/**
|
|
54861
|
+
* @param {?proto.clarifai.api.BookmarkOrigin|undefined} value
|
|
54862
|
+
* @return {!proto.clarifai.api.Module} returns this
|
|
54863
|
+
*/
|
|
54864
|
+
proto.clarifai.api.Module.prototype.setBookmarkOrigin = function(value) {
|
|
54865
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
54866
|
+
};
|
|
54867
|
+
|
|
54868
|
+
|
|
54869
|
+
/**
|
|
54870
|
+
* Clears the message field making it undefined.
|
|
54871
|
+
* @return {!proto.clarifai.api.Module} returns this
|
|
54872
|
+
*/
|
|
54873
|
+
proto.clarifai.api.Module.prototype.clearBookmarkOrigin = function() {
|
|
54874
|
+
return this.setBookmarkOrigin(undefined);
|
|
54875
|
+
};
|
|
54876
|
+
|
|
54877
|
+
|
|
54878
|
+
/**
|
|
54879
|
+
* Returns whether this field is set.
|
|
54880
|
+
* @return {boolean}
|
|
54881
|
+
*/
|
|
54882
|
+
proto.clarifai.api.Module.prototype.hasBookmarkOrigin = function() {
|
|
54883
|
+
return jspb.Message.getField(this, 14) != null;
|
|
54884
|
+
};
|
|
54885
|
+
|
|
54886
|
+
|
|
54887
|
+
/**
|
|
54888
|
+
* optional Image image = 15;
|
|
54889
|
+
* @return {?proto.clarifai.api.Image}
|
|
54890
|
+
*/
|
|
54891
|
+
proto.clarifai.api.Module.prototype.getImage = function() {
|
|
54892
|
+
return /** @type{?proto.clarifai.api.Image} */ (
|
|
54893
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 15));
|
|
54894
|
+
};
|
|
54895
|
+
|
|
54896
|
+
|
|
54897
|
+
/**
|
|
54898
|
+
* @param {?proto.clarifai.api.Image|undefined} value
|
|
54899
|
+
* @return {!proto.clarifai.api.Module} returns this
|
|
54900
|
+
*/
|
|
54901
|
+
proto.clarifai.api.Module.prototype.setImage = function(value) {
|
|
54902
|
+
return jspb.Message.setWrapperField(this, 15, value);
|
|
54903
|
+
};
|
|
54904
|
+
|
|
54905
|
+
|
|
54906
|
+
/**
|
|
54907
|
+
* Clears the message field making it undefined.
|
|
54908
|
+
* @return {!proto.clarifai.api.Module} returns this
|
|
54909
|
+
*/
|
|
54910
|
+
proto.clarifai.api.Module.prototype.clearImage = function() {
|
|
54911
|
+
return this.setImage(undefined);
|
|
54912
|
+
};
|
|
54913
|
+
|
|
54914
|
+
|
|
54915
|
+
/**
|
|
54916
|
+
* Returns whether this field is set.
|
|
54917
|
+
* @return {boolean}
|
|
54918
|
+
*/
|
|
54919
|
+
proto.clarifai.api.Module.prototype.hasImage = function() {
|
|
54920
|
+
return jspb.Message.getField(this, 15) != null;
|
|
54921
|
+
};
|
|
54922
|
+
|
|
54923
|
+
|
|
53047
54924
|
|
|
53048
54925
|
|
|
53049
54926
|
|
|
@@ -59225,7 +61102,8 @@ proto.clarifai.api.InputsExtractionJob.toObject = function(includeInstance, msg)
|
|
|
59225
61102
|
progress: (f = msg.getProgress()) && proto.clarifai.api.InputsExtractionJobProgress.toObject(includeInstance, f),
|
|
59226
61103
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
59227
61104
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
59228
|
-
inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
61105
|
+
inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
61106
|
+
inputTemplate: (f = msg.getInputTemplate()) && proto.clarifai.api.Input.toObject(includeInstance, f)
|
|
59229
61107
|
};
|
|
59230
61108
|
|
|
59231
61109
|
if (includeInstance) {
|
|
@@ -59294,6 +61172,11 @@ proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader = function(ms
|
|
|
59294
61172
|
var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum());
|
|
59295
61173
|
msg.setInputIdConflictResolution(value);
|
|
59296
61174
|
break;
|
|
61175
|
+
case 8:
|
|
61176
|
+
var value = new proto.clarifai.api.Input;
|
|
61177
|
+
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
61178
|
+
msg.setInputTemplate(value);
|
|
61179
|
+
break;
|
|
59297
61180
|
default:
|
|
59298
61181
|
reader.skipField();
|
|
59299
61182
|
break;
|
|
@@ -59376,6 +61259,14 @@ proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter = function(messag
|
|
|
59376
61259
|
f
|
|
59377
61260
|
);
|
|
59378
61261
|
}
|
|
61262
|
+
f = message.getInputTemplate();
|
|
61263
|
+
if (f != null) {
|
|
61264
|
+
writer.writeMessage(
|
|
61265
|
+
8,
|
|
61266
|
+
f,
|
|
61267
|
+
proto.clarifai.api.Input.serializeBinaryToWriter
|
|
61268
|
+
);
|
|
61269
|
+
}
|
|
59379
61270
|
};
|
|
59380
61271
|
|
|
59381
61272
|
|
|
@@ -59581,6 +61472,43 @@ proto.clarifai.api.InputsExtractionJob.prototype.setInputIdConflictResolution =
|
|
|
59581
61472
|
};
|
|
59582
61473
|
|
|
59583
61474
|
|
|
61475
|
+
/**
|
|
61476
|
+
* optional Input input_template = 8;
|
|
61477
|
+
* @return {?proto.clarifai.api.Input}
|
|
61478
|
+
*/
|
|
61479
|
+
proto.clarifai.api.InputsExtractionJob.prototype.getInputTemplate = function() {
|
|
61480
|
+
return /** @type{?proto.clarifai.api.Input} */ (
|
|
61481
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 8));
|
|
61482
|
+
};
|
|
61483
|
+
|
|
61484
|
+
|
|
61485
|
+
/**
|
|
61486
|
+
* @param {?proto.clarifai.api.Input|undefined} value
|
|
61487
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
61488
|
+
*/
|
|
61489
|
+
proto.clarifai.api.InputsExtractionJob.prototype.setInputTemplate = function(value) {
|
|
61490
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
61491
|
+
};
|
|
61492
|
+
|
|
61493
|
+
|
|
61494
|
+
/**
|
|
61495
|
+
* Clears the message field making it undefined.
|
|
61496
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
61497
|
+
*/
|
|
61498
|
+
proto.clarifai.api.InputsExtractionJob.prototype.clearInputTemplate = function() {
|
|
61499
|
+
return this.setInputTemplate(undefined);
|
|
61500
|
+
};
|
|
61501
|
+
|
|
61502
|
+
|
|
61503
|
+
/**
|
|
61504
|
+
* Returns whether this field is set.
|
|
61505
|
+
* @return {boolean}
|
|
61506
|
+
*/
|
|
61507
|
+
proto.clarifai.api.InputsExtractionJob.prototype.hasInputTemplate = function() {
|
|
61508
|
+
return jspb.Message.getField(this, 8) != null;
|
|
61509
|
+
};
|
|
61510
|
+
|
|
61511
|
+
|
|
59584
61512
|
|
|
59585
61513
|
|
|
59586
61514
|
|
|
@@ -59955,7 +61883,8 @@ proto.clarifai.api.InputsDataSource.toObject = function(includeInstance, msg) {
|
|
|
59955
61883
|
var f, obj = {
|
|
59956
61884
|
inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
59957
61885
|
url: (f = msg.getUrl()) && proto.clarifai.api.DataSourceURL.toObject(includeInstance, f),
|
|
59958
|
-
inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
61886
|
+
inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
61887
|
+
inputTemplate: (f = msg.getInputTemplate()) && proto.clarifai.api.Input.toObject(includeInstance, f)
|
|
59959
61888
|
};
|
|
59960
61889
|
|
|
59961
61890
|
if (includeInstance) {
|
|
@@ -60005,6 +61934,11 @@ proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader = function(msg,
|
|
|
60005
61934
|
var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum());
|
|
60006
61935
|
msg.setInputIdConflictResolution(value);
|
|
60007
61936
|
break;
|
|
61937
|
+
case 4:
|
|
61938
|
+
var value = new proto.clarifai.api.Input;
|
|
61939
|
+
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
61940
|
+
msg.setInputTemplate(value);
|
|
61941
|
+
break;
|
|
60008
61942
|
default:
|
|
60009
61943
|
reader.skipField();
|
|
60010
61944
|
break;
|
|
@@ -60056,6 +61990,14 @@ proto.clarifai.api.InputsDataSource.serializeBinaryToWriter = function(message,
|
|
|
60056
61990
|
f
|
|
60057
61991
|
);
|
|
60058
61992
|
}
|
|
61993
|
+
f = message.getInputTemplate();
|
|
61994
|
+
if (f != null) {
|
|
61995
|
+
writer.writeMessage(
|
|
61996
|
+
4,
|
|
61997
|
+
f,
|
|
61998
|
+
proto.clarifai.api.Input.serializeBinaryToWriter
|
|
61999
|
+
);
|
|
62000
|
+
}
|
|
60059
62001
|
};
|
|
60060
62002
|
|
|
60061
62003
|
|
|
@@ -60132,6 +62074,43 @@ proto.clarifai.api.InputsDataSource.prototype.setInputIdConflictResolution = fun
|
|
|
60132
62074
|
};
|
|
60133
62075
|
|
|
60134
62076
|
|
|
62077
|
+
/**
|
|
62078
|
+
* optional Input input_template = 4;
|
|
62079
|
+
* @return {?proto.clarifai.api.Input}
|
|
62080
|
+
*/
|
|
62081
|
+
proto.clarifai.api.InputsDataSource.prototype.getInputTemplate = function() {
|
|
62082
|
+
return /** @type{?proto.clarifai.api.Input} */ (
|
|
62083
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 4));
|
|
62084
|
+
};
|
|
62085
|
+
|
|
62086
|
+
|
|
62087
|
+
/**
|
|
62088
|
+
* @param {?proto.clarifai.api.Input|undefined} value
|
|
62089
|
+
* @return {!proto.clarifai.api.InputsDataSource} returns this
|
|
62090
|
+
*/
|
|
62091
|
+
proto.clarifai.api.InputsDataSource.prototype.setInputTemplate = function(value) {
|
|
62092
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
62093
|
+
};
|
|
62094
|
+
|
|
62095
|
+
|
|
62096
|
+
/**
|
|
62097
|
+
* Clears the message field making it undefined.
|
|
62098
|
+
* @return {!proto.clarifai.api.InputsDataSource} returns this
|
|
62099
|
+
*/
|
|
62100
|
+
proto.clarifai.api.InputsDataSource.prototype.clearInputTemplate = function() {
|
|
62101
|
+
return this.setInputTemplate(undefined);
|
|
62102
|
+
};
|
|
62103
|
+
|
|
62104
|
+
|
|
62105
|
+
/**
|
|
62106
|
+
* Returns whether this field is set.
|
|
62107
|
+
* @return {boolean}
|
|
62108
|
+
*/
|
|
62109
|
+
proto.clarifai.api.InputsDataSource.prototype.hasInputTemplate = function() {
|
|
62110
|
+
return jspb.Message.getField(this, 4) != null;
|
|
62111
|
+
};
|
|
62112
|
+
|
|
62113
|
+
|
|
60135
62114
|
|
|
60136
62115
|
|
|
60137
62116
|
|
|
@@ -61029,7 +63008,8 @@ proto.clarifai.api.InputsUpload.toObject = function(includeInstance, msg) {
|
|
|
61029
63008
|
inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
61030
63009
|
appPat: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
61031
63010
|
upload: (f = msg.getUpload()) && proto.clarifai.api.Upload.toObject(includeInstance, f),
|
|
61032
|
-
inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
63011
|
+
inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
63012
|
+
inputTemplate: (f = msg.getInputTemplate()) && proto.clarifai.api.Input.toObject(includeInstance, f)
|
|
61033
63013
|
};
|
|
61034
63014
|
|
|
61035
63015
|
if (includeInstance) {
|
|
@@ -61083,6 +63063,11 @@ proto.clarifai.api.InputsUpload.deserializeBinaryFromReader = function(msg, read
|
|
|
61083
63063
|
var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum());
|
|
61084
63064
|
msg.setInputIdConflictResolution(value);
|
|
61085
63065
|
break;
|
|
63066
|
+
case 5:
|
|
63067
|
+
var value = new proto.clarifai.api.Input;
|
|
63068
|
+
reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
|
|
63069
|
+
msg.setInputTemplate(value);
|
|
63070
|
+
break;
|
|
61086
63071
|
default:
|
|
61087
63072
|
reader.skipField();
|
|
61088
63073
|
break;
|
|
@@ -61141,6 +63126,14 @@ proto.clarifai.api.InputsUpload.serializeBinaryToWriter = function(message, writ
|
|
|
61141
63126
|
f
|
|
61142
63127
|
);
|
|
61143
63128
|
}
|
|
63129
|
+
f = message.getInputTemplate();
|
|
63130
|
+
if (f != null) {
|
|
63131
|
+
writer.writeMessage(
|
|
63132
|
+
5,
|
|
63133
|
+
f,
|
|
63134
|
+
proto.clarifai.api.Input.serializeBinaryToWriter
|
|
63135
|
+
);
|
|
63136
|
+
}
|
|
61144
63137
|
};
|
|
61145
63138
|
|
|
61146
63139
|
|
|
@@ -61235,6 +63228,673 @@ proto.clarifai.api.InputsUpload.prototype.setInputIdConflictResolution = functio
|
|
|
61235
63228
|
};
|
|
61236
63229
|
|
|
61237
63230
|
|
|
63231
|
+
/**
|
|
63232
|
+
* optional Input input_template = 5;
|
|
63233
|
+
* @return {?proto.clarifai.api.Input}
|
|
63234
|
+
*/
|
|
63235
|
+
proto.clarifai.api.InputsUpload.prototype.getInputTemplate = function() {
|
|
63236
|
+
return /** @type{?proto.clarifai.api.Input} */ (
|
|
63237
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5));
|
|
63238
|
+
};
|
|
63239
|
+
|
|
63240
|
+
|
|
63241
|
+
/**
|
|
63242
|
+
* @param {?proto.clarifai.api.Input|undefined} value
|
|
63243
|
+
* @return {!proto.clarifai.api.InputsUpload} returns this
|
|
63244
|
+
*/
|
|
63245
|
+
proto.clarifai.api.InputsUpload.prototype.setInputTemplate = function(value) {
|
|
63246
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
63247
|
+
};
|
|
63248
|
+
|
|
63249
|
+
|
|
63250
|
+
/**
|
|
63251
|
+
* Clears the message field making it undefined.
|
|
63252
|
+
* @return {!proto.clarifai.api.InputsUpload} returns this
|
|
63253
|
+
*/
|
|
63254
|
+
proto.clarifai.api.InputsUpload.prototype.clearInputTemplate = function() {
|
|
63255
|
+
return this.setInputTemplate(undefined);
|
|
63256
|
+
};
|
|
63257
|
+
|
|
63258
|
+
|
|
63259
|
+
/**
|
|
63260
|
+
* Returns whether this field is set.
|
|
63261
|
+
* @return {boolean}
|
|
63262
|
+
*/
|
|
63263
|
+
proto.clarifai.api.InputsUpload.prototype.hasInputTemplate = function() {
|
|
63264
|
+
return jspb.Message.getField(this, 5) != null;
|
|
63265
|
+
};
|
|
63266
|
+
|
|
63267
|
+
|
|
63268
|
+
|
|
63269
|
+
|
|
63270
|
+
|
|
63271
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
63272
|
+
/**
|
|
63273
|
+
* Creates an object representation of this proto.
|
|
63274
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
63275
|
+
* Optional fields that are not set will be set to undefined.
|
|
63276
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
63277
|
+
* For the list of reserved names please see:
|
|
63278
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
63279
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
63280
|
+
* JSPB instance for transitional soy proto support:
|
|
63281
|
+
* http://goto/soy-param-migration
|
|
63282
|
+
* @return {!Object}
|
|
63283
|
+
*/
|
|
63284
|
+
proto.clarifai.api.BookmarkOrigin.prototype.toObject = function(opt_includeInstance) {
|
|
63285
|
+
return proto.clarifai.api.BookmarkOrigin.toObject(opt_includeInstance, this);
|
|
63286
|
+
};
|
|
63287
|
+
|
|
63288
|
+
|
|
63289
|
+
/**
|
|
63290
|
+
* Static version of the {@see toObject} method.
|
|
63291
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
63292
|
+
* the JSPB instance for transitional soy proto support:
|
|
63293
|
+
* http://goto/soy-param-migration
|
|
63294
|
+
* @param {!proto.clarifai.api.BookmarkOrigin} msg The msg instance to transform.
|
|
63295
|
+
* @return {!Object}
|
|
63296
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
63297
|
+
*/
|
|
63298
|
+
proto.clarifai.api.BookmarkOrigin.toObject = function(includeInstance, msg) {
|
|
63299
|
+
var f, obj = {
|
|
63300
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
63301
|
+
appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
63302
|
+
userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
63303
|
+
resourceType: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
63304
|
+
};
|
|
63305
|
+
|
|
63306
|
+
if (includeInstance) {
|
|
63307
|
+
obj.$jspbMessageInstance = msg;
|
|
63308
|
+
}
|
|
63309
|
+
return obj;
|
|
63310
|
+
};
|
|
63311
|
+
}
|
|
63312
|
+
|
|
63313
|
+
|
|
63314
|
+
/**
|
|
63315
|
+
* Deserializes binary data (in protobuf wire format).
|
|
63316
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
63317
|
+
* @return {!proto.clarifai.api.BookmarkOrigin}
|
|
63318
|
+
*/
|
|
63319
|
+
proto.clarifai.api.BookmarkOrigin.deserializeBinary = function(bytes) {
|
|
63320
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
63321
|
+
var msg = new proto.clarifai.api.BookmarkOrigin;
|
|
63322
|
+
return proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader(msg, reader);
|
|
63323
|
+
};
|
|
63324
|
+
|
|
63325
|
+
|
|
63326
|
+
/**
|
|
63327
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
63328
|
+
* given reader into the given message object.
|
|
63329
|
+
* @param {!proto.clarifai.api.BookmarkOrigin} msg The message object to deserialize into.
|
|
63330
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
63331
|
+
* @return {!proto.clarifai.api.BookmarkOrigin}
|
|
63332
|
+
*/
|
|
63333
|
+
proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader = function(msg, reader) {
|
|
63334
|
+
while (reader.nextField()) {
|
|
63335
|
+
if (reader.isEndGroup()) {
|
|
63336
|
+
break;
|
|
63337
|
+
}
|
|
63338
|
+
var field = reader.getFieldNumber();
|
|
63339
|
+
switch (field) {
|
|
63340
|
+
case 1:
|
|
63341
|
+
var value = /** @type {string} */ (reader.readString());
|
|
63342
|
+
msg.setId(value);
|
|
63343
|
+
break;
|
|
63344
|
+
case 2:
|
|
63345
|
+
var value = /** @type {string} */ (reader.readString());
|
|
63346
|
+
msg.setAppId(value);
|
|
63347
|
+
break;
|
|
63348
|
+
case 3:
|
|
63349
|
+
var value = /** @type {string} */ (reader.readString());
|
|
63350
|
+
msg.setUserId(value);
|
|
63351
|
+
break;
|
|
63352
|
+
case 4:
|
|
63353
|
+
var value = /** @type {!proto.clarifai.api.BookmarkOrigin.BookmarkType} */ (reader.readEnum());
|
|
63354
|
+
msg.setResourceType(value);
|
|
63355
|
+
break;
|
|
63356
|
+
default:
|
|
63357
|
+
reader.skipField();
|
|
63358
|
+
break;
|
|
63359
|
+
}
|
|
63360
|
+
}
|
|
63361
|
+
return msg;
|
|
63362
|
+
};
|
|
63363
|
+
|
|
63364
|
+
|
|
63365
|
+
/**
|
|
63366
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
63367
|
+
* @return {!Uint8Array}
|
|
63368
|
+
*/
|
|
63369
|
+
proto.clarifai.api.BookmarkOrigin.prototype.serializeBinary = function() {
|
|
63370
|
+
var writer = new jspb.BinaryWriter();
|
|
63371
|
+
proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter(this, writer);
|
|
63372
|
+
return writer.getResultBuffer();
|
|
63373
|
+
};
|
|
63374
|
+
|
|
63375
|
+
|
|
63376
|
+
/**
|
|
63377
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
63378
|
+
* format), writing to the given BinaryWriter.
|
|
63379
|
+
* @param {!proto.clarifai.api.BookmarkOrigin} message
|
|
63380
|
+
* @param {!jspb.BinaryWriter} writer
|
|
63381
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
63382
|
+
*/
|
|
63383
|
+
proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter = function(message, writer) {
|
|
63384
|
+
var f = undefined;
|
|
63385
|
+
f = message.getId();
|
|
63386
|
+
if (f.length > 0) {
|
|
63387
|
+
writer.writeString(
|
|
63388
|
+
1,
|
|
63389
|
+
f
|
|
63390
|
+
);
|
|
63391
|
+
}
|
|
63392
|
+
f = message.getAppId();
|
|
63393
|
+
if (f.length > 0) {
|
|
63394
|
+
writer.writeString(
|
|
63395
|
+
2,
|
|
63396
|
+
f
|
|
63397
|
+
);
|
|
63398
|
+
}
|
|
63399
|
+
f = message.getUserId();
|
|
63400
|
+
if (f.length > 0) {
|
|
63401
|
+
writer.writeString(
|
|
63402
|
+
3,
|
|
63403
|
+
f
|
|
63404
|
+
);
|
|
63405
|
+
}
|
|
63406
|
+
f = message.getResourceType();
|
|
63407
|
+
if (f !== 0.0) {
|
|
63408
|
+
writer.writeEnum(
|
|
63409
|
+
4,
|
|
63410
|
+
f
|
|
63411
|
+
);
|
|
63412
|
+
}
|
|
63413
|
+
};
|
|
63414
|
+
|
|
63415
|
+
|
|
63416
|
+
/**
|
|
63417
|
+
* @enum {number}
|
|
63418
|
+
*/
|
|
63419
|
+
proto.clarifai.api.BookmarkOrigin.BookmarkType = {
|
|
63420
|
+
UNKNOWN: 0,
|
|
63421
|
+
MODEL: 1,
|
|
63422
|
+
WORKFLOW: 2,
|
|
63423
|
+
DATASET: 3,
|
|
63424
|
+
MODULE: 4
|
|
63425
|
+
};
|
|
63426
|
+
|
|
63427
|
+
/**
|
|
63428
|
+
* optional string id = 1;
|
|
63429
|
+
* @return {string}
|
|
63430
|
+
*/
|
|
63431
|
+
proto.clarifai.api.BookmarkOrigin.prototype.getId = function() {
|
|
63432
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
63433
|
+
};
|
|
63434
|
+
|
|
63435
|
+
|
|
63436
|
+
/**
|
|
63437
|
+
* @param {string} value
|
|
63438
|
+
* @return {!proto.clarifai.api.BookmarkOrigin} returns this
|
|
63439
|
+
*/
|
|
63440
|
+
proto.clarifai.api.BookmarkOrigin.prototype.setId = function(value) {
|
|
63441
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
63442
|
+
};
|
|
63443
|
+
|
|
63444
|
+
|
|
63445
|
+
/**
|
|
63446
|
+
* optional string app_id = 2;
|
|
63447
|
+
* @return {string}
|
|
63448
|
+
*/
|
|
63449
|
+
proto.clarifai.api.BookmarkOrigin.prototype.getAppId = function() {
|
|
63450
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
63451
|
+
};
|
|
63452
|
+
|
|
63453
|
+
|
|
63454
|
+
/**
|
|
63455
|
+
* @param {string} value
|
|
63456
|
+
* @return {!proto.clarifai.api.BookmarkOrigin} returns this
|
|
63457
|
+
*/
|
|
63458
|
+
proto.clarifai.api.BookmarkOrigin.prototype.setAppId = function(value) {
|
|
63459
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
63460
|
+
};
|
|
63461
|
+
|
|
63462
|
+
|
|
63463
|
+
/**
|
|
63464
|
+
* optional string user_id = 3;
|
|
63465
|
+
* @return {string}
|
|
63466
|
+
*/
|
|
63467
|
+
proto.clarifai.api.BookmarkOrigin.prototype.getUserId = function() {
|
|
63468
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
63469
|
+
};
|
|
63470
|
+
|
|
63471
|
+
|
|
63472
|
+
/**
|
|
63473
|
+
* @param {string} value
|
|
63474
|
+
* @return {!proto.clarifai.api.BookmarkOrigin} returns this
|
|
63475
|
+
*/
|
|
63476
|
+
proto.clarifai.api.BookmarkOrigin.prototype.setUserId = function(value) {
|
|
63477
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
63478
|
+
};
|
|
63479
|
+
|
|
63480
|
+
|
|
63481
|
+
/**
|
|
63482
|
+
* optional BookmarkType resource_type = 4;
|
|
63483
|
+
* @return {!proto.clarifai.api.BookmarkOrigin.BookmarkType}
|
|
63484
|
+
*/
|
|
63485
|
+
proto.clarifai.api.BookmarkOrigin.prototype.getResourceType = function() {
|
|
63486
|
+
return /** @type {!proto.clarifai.api.BookmarkOrigin.BookmarkType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
63487
|
+
};
|
|
63488
|
+
|
|
63489
|
+
|
|
63490
|
+
/**
|
|
63491
|
+
* @param {!proto.clarifai.api.BookmarkOrigin.BookmarkType} value
|
|
63492
|
+
* @return {!proto.clarifai.api.BookmarkOrigin} returns this
|
|
63493
|
+
*/
|
|
63494
|
+
proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) {
|
|
63495
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
63496
|
+
};
|
|
63497
|
+
|
|
63498
|
+
|
|
63499
|
+
|
|
63500
|
+
/**
|
|
63501
|
+
* List of repeated fields within this message type.
|
|
63502
|
+
* @private {!Array<number>}
|
|
63503
|
+
* @const
|
|
63504
|
+
*/
|
|
63505
|
+
proto.clarifai.api.Runner.repeatedFields_ = [7];
|
|
63506
|
+
|
|
63507
|
+
|
|
63508
|
+
|
|
63509
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
63510
|
+
/**
|
|
63511
|
+
* Creates an object representation of this proto.
|
|
63512
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
63513
|
+
* Optional fields that are not set will be set to undefined.
|
|
63514
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
63515
|
+
* For the list of reserved names please see:
|
|
63516
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
63517
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
63518
|
+
* JSPB instance for transitional soy proto support:
|
|
63519
|
+
* http://goto/soy-param-migration
|
|
63520
|
+
* @return {!Object}
|
|
63521
|
+
*/
|
|
63522
|
+
proto.clarifai.api.Runner.prototype.toObject = function(opt_includeInstance) {
|
|
63523
|
+
return proto.clarifai.api.Runner.toObject(opt_includeInstance, this);
|
|
63524
|
+
};
|
|
63525
|
+
|
|
63526
|
+
|
|
63527
|
+
/**
|
|
63528
|
+
* Static version of the {@see toObject} method.
|
|
63529
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
63530
|
+
* the JSPB instance for transitional soy proto support:
|
|
63531
|
+
* http://goto/soy-param-migration
|
|
63532
|
+
* @param {!proto.clarifai.api.Runner} msg The msg instance to transform.
|
|
63533
|
+
* @return {!Object}
|
|
63534
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
63535
|
+
*/
|
|
63536
|
+
proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
|
|
63537
|
+
var f, obj = {
|
|
63538
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
63539
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
63540
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
63541
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
63542
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
63543
|
+
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
63544
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
63545
|
+
};
|
|
63546
|
+
|
|
63547
|
+
if (includeInstance) {
|
|
63548
|
+
obj.$jspbMessageInstance = msg;
|
|
63549
|
+
}
|
|
63550
|
+
return obj;
|
|
63551
|
+
};
|
|
63552
|
+
}
|
|
63553
|
+
|
|
63554
|
+
|
|
63555
|
+
/**
|
|
63556
|
+
* Deserializes binary data (in protobuf wire format).
|
|
63557
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
63558
|
+
* @return {!proto.clarifai.api.Runner}
|
|
63559
|
+
*/
|
|
63560
|
+
proto.clarifai.api.Runner.deserializeBinary = function(bytes) {
|
|
63561
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
63562
|
+
var msg = new proto.clarifai.api.Runner;
|
|
63563
|
+
return proto.clarifai.api.Runner.deserializeBinaryFromReader(msg, reader);
|
|
63564
|
+
};
|
|
63565
|
+
|
|
63566
|
+
|
|
63567
|
+
/**
|
|
63568
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
63569
|
+
* given reader into the given message object.
|
|
63570
|
+
* @param {!proto.clarifai.api.Runner} msg The message object to deserialize into.
|
|
63571
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
63572
|
+
* @return {!proto.clarifai.api.Runner}
|
|
63573
|
+
*/
|
|
63574
|
+
proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
|
|
63575
|
+
while (reader.nextField()) {
|
|
63576
|
+
if (reader.isEndGroup()) {
|
|
63577
|
+
break;
|
|
63578
|
+
}
|
|
63579
|
+
var field = reader.getFieldNumber();
|
|
63580
|
+
switch (field) {
|
|
63581
|
+
case 1:
|
|
63582
|
+
var value = /** @type {string} */ (reader.readString());
|
|
63583
|
+
msg.setId(value);
|
|
63584
|
+
break;
|
|
63585
|
+
case 2:
|
|
63586
|
+
var value = /** @type {string} */ (reader.readString());
|
|
63587
|
+
msg.setDescription(value);
|
|
63588
|
+
break;
|
|
63589
|
+
case 3:
|
|
63590
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
63591
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
63592
|
+
msg.setCreatedAt(value);
|
|
63593
|
+
break;
|
|
63594
|
+
case 4:
|
|
63595
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
63596
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
63597
|
+
msg.setModifiedAt(value);
|
|
63598
|
+
break;
|
|
63599
|
+
case 5:
|
|
63600
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
63601
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
63602
|
+
msg.setMetadata(value);
|
|
63603
|
+
break;
|
|
63604
|
+
case 6:
|
|
63605
|
+
var value = /** @type {string} */ (reader.readString());
|
|
63606
|
+
msg.setUserId(value);
|
|
63607
|
+
break;
|
|
63608
|
+
case 7:
|
|
63609
|
+
var value = /** @type {string} */ (reader.readString());
|
|
63610
|
+
msg.addLabels(value);
|
|
63611
|
+
break;
|
|
63612
|
+
default:
|
|
63613
|
+
reader.skipField();
|
|
63614
|
+
break;
|
|
63615
|
+
}
|
|
63616
|
+
}
|
|
63617
|
+
return msg;
|
|
63618
|
+
};
|
|
63619
|
+
|
|
63620
|
+
|
|
63621
|
+
/**
|
|
63622
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
63623
|
+
* @return {!Uint8Array}
|
|
63624
|
+
*/
|
|
63625
|
+
proto.clarifai.api.Runner.prototype.serializeBinary = function() {
|
|
63626
|
+
var writer = new jspb.BinaryWriter();
|
|
63627
|
+
proto.clarifai.api.Runner.serializeBinaryToWriter(this, writer);
|
|
63628
|
+
return writer.getResultBuffer();
|
|
63629
|
+
};
|
|
63630
|
+
|
|
63631
|
+
|
|
63632
|
+
/**
|
|
63633
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
63634
|
+
* format), writing to the given BinaryWriter.
|
|
63635
|
+
* @param {!proto.clarifai.api.Runner} message
|
|
63636
|
+
* @param {!jspb.BinaryWriter} writer
|
|
63637
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
63638
|
+
*/
|
|
63639
|
+
proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
|
|
63640
|
+
var f = undefined;
|
|
63641
|
+
f = message.getId();
|
|
63642
|
+
if (f.length > 0) {
|
|
63643
|
+
writer.writeString(
|
|
63644
|
+
1,
|
|
63645
|
+
f
|
|
63646
|
+
);
|
|
63647
|
+
}
|
|
63648
|
+
f = message.getDescription();
|
|
63649
|
+
if (f.length > 0) {
|
|
63650
|
+
writer.writeString(
|
|
63651
|
+
2,
|
|
63652
|
+
f
|
|
63653
|
+
);
|
|
63654
|
+
}
|
|
63655
|
+
f = message.getCreatedAt();
|
|
63656
|
+
if (f != null) {
|
|
63657
|
+
writer.writeMessage(
|
|
63658
|
+
3,
|
|
63659
|
+
f,
|
|
63660
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
63661
|
+
);
|
|
63662
|
+
}
|
|
63663
|
+
f = message.getModifiedAt();
|
|
63664
|
+
if (f != null) {
|
|
63665
|
+
writer.writeMessage(
|
|
63666
|
+
4,
|
|
63667
|
+
f,
|
|
63668
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
63669
|
+
);
|
|
63670
|
+
}
|
|
63671
|
+
f = message.getMetadata();
|
|
63672
|
+
if (f != null) {
|
|
63673
|
+
writer.writeMessage(
|
|
63674
|
+
5,
|
|
63675
|
+
f,
|
|
63676
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
63677
|
+
);
|
|
63678
|
+
}
|
|
63679
|
+
f = message.getUserId();
|
|
63680
|
+
if (f.length > 0) {
|
|
63681
|
+
writer.writeString(
|
|
63682
|
+
6,
|
|
63683
|
+
f
|
|
63684
|
+
);
|
|
63685
|
+
}
|
|
63686
|
+
f = message.getLabelsList();
|
|
63687
|
+
if (f.length > 0) {
|
|
63688
|
+
writer.writeRepeatedString(
|
|
63689
|
+
7,
|
|
63690
|
+
f
|
|
63691
|
+
);
|
|
63692
|
+
}
|
|
63693
|
+
};
|
|
63694
|
+
|
|
63695
|
+
|
|
63696
|
+
/**
|
|
63697
|
+
* optional string id = 1;
|
|
63698
|
+
* @return {string}
|
|
63699
|
+
*/
|
|
63700
|
+
proto.clarifai.api.Runner.prototype.getId = function() {
|
|
63701
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
63702
|
+
};
|
|
63703
|
+
|
|
63704
|
+
|
|
63705
|
+
/**
|
|
63706
|
+
* @param {string} value
|
|
63707
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63708
|
+
*/
|
|
63709
|
+
proto.clarifai.api.Runner.prototype.setId = function(value) {
|
|
63710
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
63711
|
+
};
|
|
63712
|
+
|
|
63713
|
+
|
|
63714
|
+
/**
|
|
63715
|
+
* optional string description = 2;
|
|
63716
|
+
* @return {string}
|
|
63717
|
+
*/
|
|
63718
|
+
proto.clarifai.api.Runner.prototype.getDescription = function() {
|
|
63719
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
63720
|
+
};
|
|
63721
|
+
|
|
63722
|
+
|
|
63723
|
+
/**
|
|
63724
|
+
* @param {string} value
|
|
63725
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63726
|
+
*/
|
|
63727
|
+
proto.clarifai.api.Runner.prototype.setDescription = function(value) {
|
|
63728
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
63729
|
+
};
|
|
63730
|
+
|
|
63731
|
+
|
|
63732
|
+
/**
|
|
63733
|
+
* optional google.protobuf.Timestamp created_at = 3;
|
|
63734
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
63735
|
+
*/
|
|
63736
|
+
proto.clarifai.api.Runner.prototype.getCreatedAt = function() {
|
|
63737
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
63738
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
63739
|
+
};
|
|
63740
|
+
|
|
63741
|
+
|
|
63742
|
+
/**
|
|
63743
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
63744
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63745
|
+
*/
|
|
63746
|
+
proto.clarifai.api.Runner.prototype.setCreatedAt = function(value) {
|
|
63747
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
63748
|
+
};
|
|
63749
|
+
|
|
63750
|
+
|
|
63751
|
+
/**
|
|
63752
|
+
* Clears the message field making it undefined.
|
|
63753
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63754
|
+
*/
|
|
63755
|
+
proto.clarifai.api.Runner.prototype.clearCreatedAt = function() {
|
|
63756
|
+
return this.setCreatedAt(undefined);
|
|
63757
|
+
};
|
|
63758
|
+
|
|
63759
|
+
|
|
63760
|
+
/**
|
|
63761
|
+
* Returns whether this field is set.
|
|
63762
|
+
* @return {boolean}
|
|
63763
|
+
*/
|
|
63764
|
+
proto.clarifai.api.Runner.prototype.hasCreatedAt = function() {
|
|
63765
|
+
return jspb.Message.getField(this, 3) != null;
|
|
63766
|
+
};
|
|
63767
|
+
|
|
63768
|
+
|
|
63769
|
+
/**
|
|
63770
|
+
* optional google.protobuf.Timestamp modified_at = 4;
|
|
63771
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
63772
|
+
*/
|
|
63773
|
+
proto.clarifai.api.Runner.prototype.getModifiedAt = function() {
|
|
63774
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
63775
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
63776
|
+
};
|
|
63777
|
+
|
|
63778
|
+
|
|
63779
|
+
/**
|
|
63780
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
63781
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63782
|
+
*/
|
|
63783
|
+
proto.clarifai.api.Runner.prototype.setModifiedAt = function(value) {
|
|
63784
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
63785
|
+
};
|
|
63786
|
+
|
|
63787
|
+
|
|
63788
|
+
/**
|
|
63789
|
+
* Clears the message field making it undefined.
|
|
63790
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63791
|
+
*/
|
|
63792
|
+
proto.clarifai.api.Runner.prototype.clearModifiedAt = function() {
|
|
63793
|
+
return this.setModifiedAt(undefined);
|
|
63794
|
+
};
|
|
63795
|
+
|
|
63796
|
+
|
|
63797
|
+
/**
|
|
63798
|
+
* Returns whether this field is set.
|
|
63799
|
+
* @return {boolean}
|
|
63800
|
+
*/
|
|
63801
|
+
proto.clarifai.api.Runner.prototype.hasModifiedAt = function() {
|
|
63802
|
+
return jspb.Message.getField(this, 4) != null;
|
|
63803
|
+
};
|
|
63804
|
+
|
|
63805
|
+
|
|
63806
|
+
/**
|
|
63807
|
+
* optional google.protobuf.Struct metadata = 5;
|
|
63808
|
+
* @return {?proto.google.protobuf.Struct}
|
|
63809
|
+
*/
|
|
63810
|
+
proto.clarifai.api.Runner.prototype.getMetadata = function() {
|
|
63811
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
63812
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
|
|
63813
|
+
};
|
|
63814
|
+
|
|
63815
|
+
|
|
63816
|
+
/**
|
|
63817
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
63818
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63819
|
+
*/
|
|
63820
|
+
proto.clarifai.api.Runner.prototype.setMetadata = function(value) {
|
|
63821
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
63822
|
+
};
|
|
63823
|
+
|
|
63824
|
+
|
|
63825
|
+
/**
|
|
63826
|
+
* Clears the message field making it undefined.
|
|
63827
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63828
|
+
*/
|
|
63829
|
+
proto.clarifai.api.Runner.prototype.clearMetadata = function() {
|
|
63830
|
+
return this.setMetadata(undefined);
|
|
63831
|
+
};
|
|
63832
|
+
|
|
63833
|
+
|
|
63834
|
+
/**
|
|
63835
|
+
* Returns whether this field is set.
|
|
63836
|
+
* @return {boolean}
|
|
63837
|
+
*/
|
|
63838
|
+
proto.clarifai.api.Runner.prototype.hasMetadata = function() {
|
|
63839
|
+
return jspb.Message.getField(this, 5) != null;
|
|
63840
|
+
};
|
|
63841
|
+
|
|
63842
|
+
|
|
63843
|
+
/**
|
|
63844
|
+
* optional string user_id = 6;
|
|
63845
|
+
* @return {string}
|
|
63846
|
+
*/
|
|
63847
|
+
proto.clarifai.api.Runner.prototype.getUserId = function() {
|
|
63848
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
63849
|
+
};
|
|
63850
|
+
|
|
63851
|
+
|
|
63852
|
+
/**
|
|
63853
|
+
* @param {string} value
|
|
63854
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63855
|
+
*/
|
|
63856
|
+
proto.clarifai.api.Runner.prototype.setUserId = function(value) {
|
|
63857
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
63858
|
+
};
|
|
63859
|
+
|
|
63860
|
+
|
|
63861
|
+
/**
|
|
63862
|
+
* repeated string labels = 7;
|
|
63863
|
+
* @return {!Array<string>}
|
|
63864
|
+
*/
|
|
63865
|
+
proto.clarifai.api.Runner.prototype.getLabelsList = function() {
|
|
63866
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
63867
|
+
};
|
|
63868
|
+
|
|
63869
|
+
|
|
63870
|
+
/**
|
|
63871
|
+
* @param {!Array<string>} value
|
|
63872
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63873
|
+
*/
|
|
63874
|
+
proto.clarifai.api.Runner.prototype.setLabelsList = function(value) {
|
|
63875
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
63876
|
+
};
|
|
63877
|
+
|
|
63878
|
+
|
|
63879
|
+
/**
|
|
63880
|
+
* @param {string} value
|
|
63881
|
+
* @param {number=} opt_index
|
|
63882
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63883
|
+
*/
|
|
63884
|
+
proto.clarifai.api.Runner.prototype.addLabels = function(value, opt_index) {
|
|
63885
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
63886
|
+
};
|
|
63887
|
+
|
|
63888
|
+
|
|
63889
|
+
/**
|
|
63890
|
+
* Clears the list making it empty but non-null.
|
|
63891
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
63892
|
+
*/
|
|
63893
|
+
proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
|
|
63894
|
+
return this.setLabelsList([]);
|
|
63895
|
+
};
|
|
63896
|
+
|
|
63897
|
+
|
|
61238
63898
|
/**
|
|
61239
63899
|
* @enum {number}
|
|
61240
63900
|
*/
|