clarifai-web-grpc 9.6.1 → 9.10.4

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.
Files changed (79) hide show
  1. package/.github/workflows/ci.yml +25 -17
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/dist/cjs/google/api/annotations_pb.d.ts +1 -0
  5. package/dist/cjs/google/api/annotations_pb.js +32 -0
  6. package/dist/cjs/google/api/http_pb.d.ts +1 -0
  7. package/dist/cjs/google/api/http_pb.js +813 -0
  8. package/dist/cjs/index.d.ts +7 -0
  9. package/dist/cjs/index.js +2 -1
  10. package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +1 -0
  11. package/dist/cjs/proto/clarifai/api/resources_pb.js +51179 -0
  12. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  13. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +9103 -0
  14. package/dist/cjs/proto/clarifai/api/service_pb.d.ts +1 -0
  15. package/dist/cjs/proto/clarifai/api/service_pb.js +67405 -0
  16. package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  17. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +376 -0
  18. package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +1 -0
  19. package/dist/cjs/proto/clarifai/api/status/status_pb.js +717 -0
  20. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  21. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +60 -0
  22. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  23. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +197 -0
  24. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  25. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +529 -0
  26. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  27. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +332 -0
  28. package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  29. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +34 -0
  30. package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  31. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +88 -0
  32. package/dist/cjs/resources.d.ts +1 -0
  33. package/dist/cjs/resources.js +13 -0
  34. package/dist/cjs/service.d.ts +1 -0
  35. package/dist/cjs/service.js +13 -0
  36. package/dist/esm/google/api/annotations_pb.d.ts +1 -0
  37. package/dist/esm/google/api/annotations_pb.js +32 -0
  38. package/dist/esm/google/api/http_pb.d.ts +1 -0
  39. package/dist/esm/google/api/http_pb.js +813 -0
  40. package/dist/esm/index.d.ts +7 -0
  41. package/dist/esm/index.js +10 -0
  42. package/dist/esm/proto/clarifai/api/resources_pb.d.ts +1 -0
  43. package/dist/esm/proto/clarifai/api/resources_pb.js +51179 -0
  44. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  45. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +9103 -0
  46. package/dist/esm/proto/clarifai/api/service_pb.d.ts +1 -0
  47. package/dist/esm/proto/clarifai/api/service_pb.js +67405 -0
  48. package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  49. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +376 -0
  50. package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +1 -0
  51. package/dist/esm/proto/clarifai/api/status/status_pb.js +717 -0
  52. package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  53. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +60 -0
  54. package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  55. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +197 -0
  56. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  57. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +529 -0
  58. package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  59. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +332 -0
  60. package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  61. package/dist/esm/proto/clarifai/auth/types/types_pb.js +34 -0
  62. package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  63. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +88 -0
  64. package/dist/esm/resources.d.ts +1 -0
  65. package/dist/esm/resources.js +1 -0
  66. package/dist/esm/service.d.ts +1 -0
  67. package/dist/esm/service.js +1 -0
  68. package/index.ts +2 -1
  69. package/package.json +1 -1
  70. package/proto/clarifai/api/resources_pb.d.ts +352 -27
  71. package/proto/clarifai/api/resources_pb.js +2840 -232
  72. package/proto/clarifai/api/service_grpc_web_pb.d.ts +96 -0
  73. package/proto/clarifai/api/service_grpc_web_pb.js +488 -0
  74. package/proto/clarifai/api/service_pb.d.ts +742 -46
  75. package/proto/clarifai/api/service_pb.js +12437 -6437
  76. package/proto/clarifai/api/status/status_code_pb.d.ts +7 -1
  77. package/proto/clarifai/api/status/status_code_pb.js +7 -1
  78. package/proto/clarifai/auth/scope/scope_pb.d.ts +5 -0
  79. 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, null, null);
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
- savedSearch: (f = msg.getSavedSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f)
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 8:
18758
+ case 9:
17749
18759
  var value = new proto.clarifai.api.Search;
17750
18760
  reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader);
17751
- msg.setSavedSearch(value);
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.getSavedSearch();
18829
+ f = message.getSearch();
17820
18830
  if (f != null) {
17821
18831
  writer.writeMessage(
17822
- 8,
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 saved_search = 8;
18969
+ * optional Search search = 9;
17960
18970
  * @return {?proto.clarifai.api.Search}
17961
18971
  */
17962
- proto.clarifai.api.AnnotationFilter.prototype.getSavedSearch = function() {
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, 8));
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.setSavedSearch = function(value) {
17973
- return jspb.Message.setWrapperField(this, 8, value);
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.clearSavedSearch = function() {
17982
- return this.setSavedSearch(undefined);
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.hasSavedSearch = function() {
17991
- return jspb.Message.getField(this, 8) != null;
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
- importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f),
22216
- workflowRecommended: (f = msg.getWorkflowRecommended()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f)
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.getImportInfo();
23588
+ f = message.getWorkflowRecommended();
22601
23589
  if (f != null) {
22602
23590
  writer.writeMessage(
22603
- 24,
23591
+ 29,
22604
23592
  f,
22605
- proto.clarifai.api.ImportInfo.serializeBinaryToWriter
23593
+ google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
22606
23594
  );
22607
23595
  }
22608
- f = message.getWorkflowRecommended();
23596
+ f = message.getBookmarkOrigin();
22609
23597
  if (f != null) {
22610
23598
  writer.writeMessage(
22611
- 29,
23599
+ 33,
22612
23600
  f,
22613
- google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
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,8 @@ 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)
24588
25659
  };
24589
25660
 
24590
25661
  if (includeInstance) {
@@ -24626,6 +25697,11 @@ proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function(msg, reader)
24626
25697
  reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
24627
25698
  msg.setParams(value);
24628
25699
  break;
25700
+ case 2:
25701
+ var value = new proto.clarifai.api.Dataset;
25702
+ reader.readMessage(value,proto.clarifai.api.Dataset.deserializeBinaryFromReader);
25703
+ msg.setDataset(value);
25704
+ break;
24629
25705
  default:
24630
25706
  reader.skipField();
24631
25707
  break;
@@ -24663,6 +25739,14 @@ proto.clarifai.api.TrainInfo.serializeBinaryToWriter = function(message, writer)
24663
25739
  google_protobuf_struct_pb.Struct.serializeBinaryToWriter
24664
25740
  );
24665
25741
  }
25742
+ f = message.getDataset();
25743
+ if (f != null) {
25744
+ writer.writeMessage(
25745
+ 2,
25746
+ f,
25747
+ proto.clarifai.api.Dataset.serializeBinaryToWriter
25748
+ );
25749
+ }
24666
25750
  };
24667
25751
 
24668
25752
 
@@ -24703,6 +25787,43 @@ proto.clarifai.api.TrainInfo.prototype.hasParams = function() {
24703
25787
  };
24704
25788
 
24705
25789
 
25790
+ /**
25791
+ * optional Dataset dataset = 2;
25792
+ * @return {?proto.clarifai.api.Dataset}
25793
+ */
25794
+ proto.clarifai.api.TrainInfo.prototype.getDataset = function() {
25795
+ return /** @type{?proto.clarifai.api.Dataset} */ (
25796
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Dataset, 2));
25797
+ };
25798
+
25799
+
25800
+ /**
25801
+ * @param {?proto.clarifai.api.Dataset|undefined} value
25802
+ * @return {!proto.clarifai.api.TrainInfo} returns this
25803
+ */
25804
+ proto.clarifai.api.TrainInfo.prototype.setDataset = function(value) {
25805
+ return jspb.Message.setWrapperField(this, 2, value);
25806
+ };
25807
+
25808
+
25809
+ /**
25810
+ * Clears the message field making it undefined.
25811
+ * @return {!proto.clarifai.api.TrainInfo} returns this
25812
+ */
25813
+ proto.clarifai.api.TrainInfo.prototype.clearDataset = function() {
25814
+ return this.setDataset(undefined);
25815
+ };
25816
+
25817
+
25818
+ /**
25819
+ * Returns whether this field is set.
25820
+ * @return {boolean}
25821
+ */
25822
+ proto.clarifai.api.TrainInfo.prototype.hasDataset = function() {
25823
+ return jspb.Message.getField(this, 2) != null;
25824
+ };
25825
+
25826
+
24706
25827
 
24707
25828
 
24708
25829
 
@@ -27092,7 +28213,11 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
27092
28213
  RECURSIVE_ENUM: 14,
27093
28214
  PYTHON_CODE: 15,
27094
28215
  DATASET_ID: 16,
27095
- DATASET_VERSION_ID: 17
28216
+ DATASET_VERSION_ID: 17,
28217
+ ARRAY_OF_MODEL_CONCEPTS: 18,
28218
+ DATASET: 19,
28219
+ DATASET_VERSION: 20,
28220
+ ENCRYPTED_STRING: 21
27096
28221
  };
27097
28222
 
27098
28223
  /**
@@ -29725,7 +30850,8 @@ proto.clarifai.api.LabelCount.prototype.toObject = function(opt_includeInstance)
29725
30850
  proto.clarifai.api.LabelCount.toObject = function(includeInstance, msg) {
29726
30851
  var f, obj = {
29727
30852
  conceptName: jspb.Message.getFieldWithDefault(msg, 1, ""),
29728
- count: jspb.Message.getFieldWithDefault(msg, 2, 0)
30853
+ count: jspb.Message.getFieldWithDefault(msg, 2, 0),
30854
+ concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f)
29729
30855
  };
29730
30856
 
29731
30857
  if (includeInstance) {
@@ -29770,6 +30896,11 @@ proto.clarifai.api.LabelCount.deserializeBinaryFromReader = function(msg, reader
29770
30896
  var value = /** @type {number} */ (reader.readUint32());
29771
30897
  msg.setCount(value);
29772
30898
  break;
30899
+ case 3:
30900
+ var value = new proto.clarifai.api.Concept;
30901
+ reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
30902
+ msg.setConcept(value);
30903
+ break;
29773
30904
  default:
29774
30905
  reader.skipField();
29775
30906
  break;
@@ -29813,6 +30944,14 @@ proto.clarifai.api.LabelCount.serializeBinaryToWriter = function(message, writer
29813
30944
  f
29814
30945
  );
29815
30946
  }
30947
+ f = message.getConcept();
30948
+ if (f != null) {
30949
+ writer.writeMessage(
30950
+ 3,
30951
+ f,
30952
+ proto.clarifai.api.Concept.serializeBinaryToWriter
30953
+ );
30954
+ }
29816
30955
  };
29817
30956
 
29818
30957
 
@@ -29852,6 +30991,43 @@ proto.clarifai.api.LabelCount.prototype.setCount = function(value) {
29852
30991
  };
29853
30992
 
29854
30993
 
30994
+ /**
30995
+ * optional Concept concept = 3;
30996
+ * @return {?proto.clarifai.api.Concept}
30997
+ */
30998
+ proto.clarifai.api.LabelCount.prototype.getConcept = function() {
30999
+ return /** @type{?proto.clarifai.api.Concept} */ (
31000
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 3));
31001
+ };
31002
+
31003
+
31004
+ /**
31005
+ * @param {?proto.clarifai.api.Concept|undefined} value
31006
+ * @return {!proto.clarifai.api.LabelCount} returns this
31007
+ */
31008
+ proto.clarifai.api.LabelCount.prototype.setConcept = function(value) {
31009
+ return jspb.Message.setWrapperField(this, 3, value);
31010
+ };
31011
+
31012
+
31013
+ /**
31014
+ * Clears the message field making it undefined.
31015
+ * @return {!proto.clarifai.api.LabelCount} returns this
31016
+ */
31017
+ proto.clarifai.api.LabelCount.prototype.clearConcept = function() {
31018
+ return this.setConcept(undefined);
31019
+ };
31020
+
31021
+
31022
+ /**
31023
+ * Returns whether this field is set.
31024
+ * @return {boolean}
31025
+ */
31026
+ proto.clarifai.api.LabelCount.prototype.hasConcept = function() {
31027
+ return jspb.Message.getField(this, 3) != null;
31028
+ };
31029
+
31030
+
29855
31031
 
29856
31032
  /**
29857
31033
  * List of repeated fields within this message type.
@@ -30445,7 +31621,9 @@ proto.clarifai.api.ConfusionMatrixEntry.toObject = function(includeInstance, msg
30445
31621
  var f, obj = {
30446
31622
  predicted: jspb.Message.getFieldWithDefault(msg, 1, ""),
30447
31623
  actual: jspb.Message.getFieldWithDefault(msg, 2, ""),
30448
- value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
31624
+ value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
31625
+ predictedConcept: (f = msg.getPredictedConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f),
31626
+ actualConcept: (f = msg.getActualConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f)
30449
31627
  };
30450
31628
 
30451
31629
  if (includeInstance) {
@@ -30494,6 +31672,16 @@ proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader = function(m
30494
31672
  var value = /** @type {number} */ (reader.readFloat());
30495
31673
  msg.setValue(value);
30496
31674
  break;
31675
+ case 5:
31676
+ var value = new proto.clarifai.api.Concept;
31677
+ reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
31678
+ msg.setPredictedConcept(value);
31679
+ break;
31680
+ case 6:
31681
+ var value = new proto.clarifai.api.Concept;
31682
+ reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
31683
+ msg.setActualConcept(value);
31684
+ break;
30497
31685
  default:
30498
31686
  reader.skipField();
30499
31687
  break;
@@ -30544,6 +31732,22 @@ proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter = function(messa
30544
31732
  f
30545
31733
  );
30546
31734
  }
31735
+ f = message.getPredictedConcept();
31736
+ if (f != null) {
31737
+ writer.writeMessage(
31738
+ 5,
31739
+ f,
31740
+ proto.clarifai.api.Concept.serializeBinaryToWriter
31741
+ );
31742
+ }
31743
+ f = message.getActualConcept();
31744
+ if (f != null) {
31745
+ writer.writeMessage(
31746
+ 6,
31747
+ f,
31748
+ proto.clarifai.api.Concept.serializeBinaryToWriter
31749
+ );
31750
+ }
30547
31751
  };
30548
31752
 
30549
31753
 
@@ -30601,6 +31805,80 @@ proto.clarifai.api.ConfusionMatrixEntry.prototype.setValue = function(value) {
30601
31805
  };
30602
31806
 
30603
31807
 
31808
+ /**
31809
+ * optional Concept predicted_concept = 5;
31810
+ * @return {?proto.clarifai.api.Concept}
31811
+ */
31812
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.getPredictedConcept = function() {
31813
+ return /** @type{?proto.clarifai.api.Concept} */ (
31814
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 5));
31815
+ };
31816
+
31817
+
31818
+ /**
31819
+ * @param {?proto.clarifai.api.Concept|undefined} value
31820
+ * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
31821
+ */
31822
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.setPredictedConcept = function(value) {
31823
+ return jspb.Message.setWrapperField(this, 5, value);
31824
+ };
31825
+
31826
+
31827
+ /**
31828
+ * Clears the message field making it undefined.
31829
+ * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
31830
+ */
31831
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.clearPredictedConcept = function() {
31832
+ return this.setPredictedConcept(undefined);
31833
+ };
31834
+
31835
+
31836
+ /**
31837
+ * Returns whether this field is set.
31838
+ * @return {boolean}
31839
+ */
31840
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.hasPredictedConcept = function() {
31841
+ return jspb.Message.getField(this, 5) != null;
31842
+ };
31843
+
31844
+
31845
+ /**
31846
+ * optional Concept actual_concept = 6;
31847
+ * @return {?proto.clarifai.api.Concept}
31848
+ */
31849
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.getActualConcept = function() {
31850
+ return /** @type{?proto.clarifai.api.Concept} */ (
31851
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 6));
31852
+ };
31853
+
31854
+
31855
+ /**
31856
+ * @param {?proto.clarifai.api.Concept|undefined} value
31857
+ * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
31858
+ */
31859
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.setActualConcept = function(value) {
31860
+ return jspb.Message.setWrapperField(this, 6, value);
31861
+ };
31862
+
31863
+
31864
+ /**
31865
+ * Clears the message field making it undefined.
31866
+ * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this
31867
+ */
31868
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.clearActualConcept = function() {
31869
+ return this.setActualConcept(undefined);
31870
+ };
31871
+
31872
+
31873
+ /**
31874
+ * Returns whether this field is set.
31875
+ * @return {boolean}
31876
+ */
31877
+ proto.clarifai.api.ConfusionMatrixEntry.prototype.hasActualConcept = function() {
31878
+ return jspb.Message.getField(this, 6) != null;
31879
+ };
31880
+
31881
+
30604
31882
 
30605
31883
  /**
30606
31884
  * List of repeated fields within this message type.
@@ -33379,7 +34657,8 @@ proto.clarifai.api.EvalMetrics.toObject = function(includeInstance, msg) {
33379
34657
  proto.clarifai.api.BinaryMetrics.toObject, includeInstance),
33380
34658
  trackerMetricsList: jspb.Message.toObjectList(msg.getTrackerMetricsList(),
33381
34659
  proto.clarifai.api.TrackerMetrics.toObject, includeInstance),
33382
- evalInfo: (f = msg.getEvalInfo()) && proto.clarifai.api.EvalInfo.toObject(includeInstance, f)
34660
+ evalInfo: (f = msg.getEvalInfo()) && proto.clarifai.api.EvalInfo.toObject(includeInstance, f),
34661
+ extendedMetrics: (f = msg.getExtendedMetrics()) && proto.clarifai.api.ExtendedMetrics.toObject(includeInstance, f)
33383
34662
  };
33384
34663
 
33385
34664
  if (includeInstance) {
@@ -33493,6 +34772,11 @@ proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader = function(msg, reade
33493
34772
  reader.readMessage(value,proto.clarifai.api.EvalInfo.deserializeBinaryFromReader);
33494
34773
  msg.setEvalInfo(value);
33495
34774
  break;
34775
+ case 17:
34776
+ var value = new proto.clarifai.api.ExtendedMetrics;
34777
+ reader.readMessage(value,proto.clarifai.api.ExtendedMetrics.deserializeBinaryFromReader);
34778
+ msg.setExtendedMetrics(value);
34779
+ break;
33496
34780
  default:
33497
34781
  reader.skipField();
33498
34782
  break;
@@ -33647,6 +34931,14 @@ proto.clarifai.api.EvalMetrics.serializeBinaryToWriter = function(message, write
33647
34931
  proto.clarifai.api.EvalInfo.serializeBinaryToWriter
33648
34932
  );
33649
34933
  }
34934
+ f = message.getExtendedMetrics();
34935
+ if (f != null) {
34936
+ writer.writeMessage(
34937
+ 17,
34938
+ f,
34939
+ proto.clarifai.api.ExtendedMetrics.serializeBinaryToWriter
34940
+ );
34941
+ }
33650
34942
  };
33651
34943
 
33652
34944
 
@@ -34190,6 +35482,194 @@ proto.clarifai.api.EvalMetrics.prototype.hasEvalInfo = function() {
34190
35482
  };
34191
35483
 
34192
35484
 
35485
+ /**
35486
+ * optional ExtendedMetrics extended_metrics = 17;
35487
+ * @return {?proto.clarifai.api.ExtendedMetrics}
35488
+ */
35489
+ proto.clarifai.api.EvalMetrics.prototype.getExtendedMetrics = function() {
35490
+ return /** @type{?proto.clarifai.api.ExtendedMetrics} */ (
35491
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ExtendedMetrics, 17));
35492
+ };
35493
+
35494
+
35495
+ /**
35496
+ * @param {?proto.clarifai.api.ExtendedMetrics|undefined} value
35497
+ * @return {!proto.clarifai.api.EvalMetrics} returns this
35498
+ */
35499
+ proto.clarifai.api.EvalMetrics.prototype.setExtendedMetrics = function(value) {
35500
+ return jspb.Message.setWrapperField(this, 17, value);
35501
+ };
35502
+
35503
+
35504
+ /**
35505
+ * Clears the message field making it undefined.
35506
+ * @return {!proto.clarifai.api.EvalMetrics} returns this
35507
+ */
35508
+ proto.clarifai.api.EvalMetrics.prototype.clearExtendedMetrics = function() {
35509
+ return this.setExtendedMetrics(undefined);
35510
+ };
35511
+
35512
+
35513
+ /**
35514
+ * Returns whether this field is set.
35515
+ * @return {boolean}
35516
+ */
35517
+ proto.clarifai.api.EvalMetrics.prototype.hasExtendedMetrics = function() {
35518
+ return jspb.Message.getField(this, 17) != null;
35519
+ };
35520
+
35521
+
35522
+
35523
+
35524
+
35525
+ if (jspb.Message.GENERATE_TO_OBJECT) {
35526
+ /**
35527
+ * Creates an object representation of this proto.
35528
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
35529
+ * Optional fields that are not set will be set to undefined.
35530
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
35531
+ * For the list of reserved names please see:
35532
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
35533
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
35534
+ * JSPB instance for transitional soy proto support:
35535
+ * http://goto/soy-param-migration
35536
+ * @return {!Object}
35537
+ */
35538
+ proto.clarifai.api.ExtendedMetrics.prototype.toObject = function(opt_includeInstance) {
35539
+ return proto.clarifai.api.ExtendedMetrics.toObject(opt_includeInstance, this);
35540
+ };
35541
+
35542
+
35543
+ /**
35544
+ * Static version of the {@see toObject} method.
35545
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
35546
+ * the JSPB instance for transitional soy proto support:
35547
+ * http://goto/soy-param-migration
35548
+ * @param {!proto.clarifai.api.ExtendedMetrics} msg The msg instance to transform.
35549
+ * @return {!Object}
35550
+ * @suppress {unusedLocalVariables} f is only used for nested messages
35551
+ */
35552
+ proto.clarifai.api.ExtendedMetrics.toObject = function(includeInstance, msg) {
35553
+ var f, obj = {
35554
+ userMetrics: (f = msg.getUserMetrics()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
35555
+ };
35556
+
35557
+ if (includeInstance) {
35558
+ obj.$jspbMessageInstance = msg;
35559
+ }
35560
+ return obj;
35561
+ };
35562
+ }
35563
+
35564
+
35565
+ /**
35566
+ * Deserializes binary data (in protobuf wire format).
35567
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
35568
+ * @return {!proto.clarifai.api.ExtendedMetrics}
35569
+ */
35570
+ proto.clarifai.api.ExtendedMetrics.deserializeBinary = function(bytes) {
35571
+ var reader = new jspb.BinaryReader(bytes);
35572
+ var msg = new proto.clarifai.api.ExtendedMetrics;
35573
+ return proto.clarifai.api.ExtendedMetrics.deserializeBinaryFromReader(msg, reader);
35574
+ };
35575
+
35576
+
35577
+ /**
35578
+ * Deserializes binary data (in protobuf wire format) from the
35579
+ * given reader into the given message object.
35580
+ * @param {!proto.clarifai.api.ExtendedMetrics} msg The message object to deserialize into.
35581
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
35582
+ * @return {!proto.clarifai.api.ExtendedMetrics}
35583
+ */
35584
+ proto.clarifai.api.ExtendedMetrics.deserializeBinaryFromReader = function(msg, reader) {
35585
+ while (reader.nextField()) {
35586
+ if (reader.isEndGroup()) {
35587
+ break;
35588
+ }
35589
+ var field = reader.getFieldNumber();
35590
+ switch (field) {
35591
+ case 1:
35592
+ var value = new google_protobuf_struct_pb.Struct;
35593
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
35594
+ msg.setUserMetrics(value);
35595
+ break;
35596
+ default:
35597
+ reader.skipField();
35598
+ break;
35599
+ }
35600
+ }
35601
+ return msg;
35602
+ };
35603
+
35604
+
35605
+ /**
35606
+ * Serializes the message to binary data (in protobuf wire format).
35607
+ * @return {!Uint8Array}
35608
+ */
35609
+ proto.clarifai.api.ExtendedMetrics.prototype.serializeBinary = function() {
35610
+ var writer = new jspb.BinaryWriter();
35611
+ proto.clarifai.api.ExtendedMetrics.serializeBinaryToWriter(this, writer);
35612
+ return writer.getResultBuffer();
35613
+ };
35614
+
35615
+
35616
+ /**
35617
+ * Serializes the given message to binary data (in protobuf wire
35618
+ * format), writing to the given BinaryWriter.
35619
+ * @param {!proto.clarifai.api.ExtendedMetrics} message
35620
+ * @param {!jspb.BinaryWriter} writer
35621
+ * @suppress {unusedLocalVariables} f is only used for nested messages
35622
+ */
35623
+ proto.clarifai.api.ExtendedMetrics.serializeBinaryToWriter = function(message, writer) {
35624
+ var f = undefined;
35625
+ f = message.getUserMetrics();
35626
+ if (f != null) {
35627
+ writer.writeMessage(
35628
+ 1,
35629
+ f,
35630
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
35631
+ );
35632
+ }
35633
+ };
35634
+
35635
+
35636
+ /**
35637
+ * optional google.protobuf.Struct user_metrics = 1;
35638
+ * @return {?proto.google.protobuf.Struct}
35639
+ */
35640
+ proto.clarifai.api.ExtendedMetrics.prototype.getUserMetrics = function() {
35641
+ return /** @type{?proto.google.protobuf.Struct} */ (
35642
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
35643
+ };
35644
+
35645
+
35646
+ /**
35647
+ * @param {?proto.google.protobuf.Struct|undefined} value
35648
+ * @return {!proto.clarifai.api.ExtendedMetrics} returns this
35649
+ */
35650
+ proto.clarifai.api.ExtendedMetrics.prototype.setUserMetrics = function(value) {
35651
+ return jspb.Message.setWrapperField(this, 1, value);
35652
+ };
35653
+
35654
+
35655
+ /**
35656
+ * Clears the message field making it undefined.
35657
+ * @return {!proto.clarifai.api.ExtendedMetrics} returns this
35658
+ */
35659
+ proto.clarifai.api.ExtendedMetrics.prototype.clearUserMetrics = function() {
35660
+ return this.setUserMetrics(undefined);
35661
+ };
35662
+
35663
+
35664
+ /**
35665
+ * Returns whether this field is set.
35666
+ * @return {boolean}
35667
+ */
35668
+ proto.clarifai.api.ExtendedMetrics.prototype.hasUserMetrics = function() {
35669
+ return jspb.Message.getField(this, 1) != null;
35670
+ };
35671
+
35672
+
34193
35673
 
34194
35674
 
34195
35675
 
@@ -38411,6 +39891,7 @@ proto.clarifai.api.User.toObject = function(includeInstance, msg) {
38411
39891
  companyName: jspb.Message.getFieldWithDefault(msg, 5, ""),
38412
39892
  jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""),
38413
39893
  jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""),
39894
+ intention: jspb.Message.getFieldWithDefault(msg, 24, ""),
38414
39895
  billType: jspb.Message.getFieldWithDefault(msg, 7, ""),
38415
39896
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
38416
39897
  dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
@@ -38490,6 +39971,10 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) {
38490
39971
  var value = /** @type {string} */ (reader.readString());
38491
39972
  msg.setJobRole(value);
38492
39973
  break;
39974
+ case 24:
39975
+ var value = /** @type {string} */ (reader.readString());
39976
+ msg.setIntention(value);
39977
+ break;
38493
39978
  case 7:
38494
39979
  var value = /** @type {string} */ (reader.readString());
38495
39980
  msg.setBillType(value);
@@ -38633,6 +40118,13 @@ proto.clarifai.api.User.serializeBinaryToWriter = function(message, writer) {
38633
40118
  f
38634
40119
  );
38635
40120
  }
40121
+ f = message.getIntention();
40122
+ if (f.length > 0) {
40123
+ writer.writeString(
40124
+ 24,
40125
+ f
40126
+ );
40127
+ }
38636
40128
  f = message.getBillType();
38637
40129
  if (f.length > 0) {
38638
40130
  writer.writeString(
@@ -38869,6 +40361,24 @@ proto.clarifai.api.User.prototype.setJobRole = function(value) {
38869
40361
  };
38870
40362
 
38871
40363
 
40364
+ /**
40365
+ * optional string intention = 24;
40366
+ * @return {string}
40367
+ */
40368
+ proto.clarifai.api.User.prototype.getIntention = function() {
40369
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
40370
+ };
40371
+
40372
+
40373
+ /**
40374
+ * @param {string} value
40375
+ * @return {!proto.clarifai.api.User} returns this
40376
+ */
40377
+ proto.clarifai.api.User.prototype.setIntention = function(value) {
40378
+ return jspb.Message.setProto3StringField(this, 24, value);
40379
+ };
40380
+
40381
+
38872
40382
  /**
38873
40383
  * optional string bill_type = 7;
38874
40384
  * @return {string}
@@ -40765,6 +42275,7 @@ proto.clarifai.api.Video.toObject = function(includeInstance, msg) {
40765
42275
  allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
40766
42276
  thumbnailUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
40767
42277
  hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
42278
+ hostedThumbnail: (f = msg.getHostedThumbnail()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
40768
42279
  videoInfo: (f = msg.getVideoInfo()) && proto.clarifai.api.VideoInfo.toObject(includeInstance, f)
40769
42280
  };
40770
42281
 
@@ -40823,6 +42334,11 @@ proto.clarifai.api.Video.deserializeBinaryFromReader = function(msg, reader) {
40823
42334
  reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader);
40824
42335
  msg.setHosted(value);
40825
42336
  break;
42337
+ case 8:
42338
+ var value = new proto.clarifai.api.HostedURL;
42339
+ reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader);
42340
+ msg.setHostedThumbnail(value);
42341
+ break;
40826
42342
  case 7:
40827
42343
  var value = new proto.clarifai.api.VideoInfo;
40828
42344
  reader.readMessage(value,proto.clarifai.api.VideoInfo.deserializeBinaryFromReader);
@@ -40893,6 +42409,14 @@ proto.clarifai.api.Video.serializeBinaryToWriter = function(message, writer) {
40893
42409
  proto.clarifai.api.HostedURL.serializeBinaryToWriter
40894
42410
  );
40895
42411
  }
42412
+ f = message.getHostedThumbnail();
42413
+ if (f != null) {
42414
+ writer.writeMessage(
42415
+ 8,
42416
+ f,
42417
+ proto.clarifai.api.HostedURL.serializeBinaryToWriter
42418
+ );
42419
+ }
40896
42420
  f = message.getVideoInfo();
40897
42421
  if (f != null) {
40898
42422
  writer.writeMessage(
@@ -41037,6 +42561,43 @@ proto.clarifai.api.Video.prototype.hasHosted = function() {
41037
42561
  };
41038
42562
 
41039
42563
 
42564
+ /**
42565
+ * optional HostedURL hosted_thumbnail = 8;
42566
+ * @return {?proto.clarifai.api.HostedURL}
42567
+ */
42568
+ proto.clarifai.api.Video.prototype.getHostedThumbnail = function() {
42569
+ return /** @type{?proto.clarifai.api.HostedURL} */ (
42570
+ jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 8));
42571
+ };
42572
+
42573
+
42574
+ /**
42575
+ * @param {?proto.clarifai.api.HostedURL|undefined} value
42576
+ * @return {!proto.clarifai.api.Video} returns this
42577
+ */
42578
+ proto.clarifai.api.Video.prototype.setHostedThumbnail = function(value) {
42579
+ return jspb.Message.setWrapperField(this, 8, value);
42580
+ };
42581
+
42582
+
42583
+ /**
42584
+ * Clears the message field making it undefined.
42585
+ * @return {!proto.clarifai.api.Video} returns this
42586
+ */
42587
+ proto.clarifai.api.Video.prototype.clearHostedThumbnail = function() {
42588
+ return this.setHostedThumbnail(undefined);
42589
+ };
42590
+
42591
+
42592
+ /**
42593
+ * Returns whether this field is set.
42594
+ * @return {boolean}
42595
+ */
42596
+ proto.clarifai.api.Video.prototype.hasHostedThumbnail = function() {
42597
+ return jspb.Message.getField(this, 8) != null;
42598
+ };
42599
+
42600
+
41040
42601
  /**
41041
42602
  * optional VideoInfo video_info = 7;
41042
42603
  * @return {?proto.clarifai.api.VideoInfo}
@@ -41438,7 +42999,9 @@ proto.clarifai.api.Workflow.toObject = function(includeInstance, msg) {
41438
42999
  description: jspb.Message.getFieldWithDefault(msg, 12, ""),
41439
43000
  notes: jspb.Message.getFieldWithDefault(msg, 13, ""),
41440
43001
  useCasesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
41441
- checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f
43002
+ checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
43003
+ bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
43004
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
41442
43005
  };
41443
43006
 
41444
43007
  if (includeInstance) {
@@ -41541,6 +43104,16 @@ proto.clarifai.api.Workflow.deserializeBinaryFromReader = function(msg, reader)
41541
43104
  var value = /** @type {string} */ (reader.readString());
41542
43105
  msg.addCheckConsents(value);
41543
43106
  break;
43107
+ case 16:
43108
+ var value = new proto.clarifai.api.BookmarkOrigin;
43109
+ reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader);
43110
+ msg.setBookmarkOrigin(value);
43111
+ break;
43112
+ case 17:
43113
+ var value = new proto.clarifai.api.Image;
43114
+ reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
43115
+ msg.setImage(value);
43116
+ break;
41544
43117
  default:
41545
43118
  reader.skipField();
41546
43119
  break;
@@ -41681,6 +43254,22 @@ proto.clarifai.api.Workflow.serializeBinaryToWriter = function(message, writer)
41681
43254
  f
41682
43255
  );
41683
43256
  }
43257
+ f = message.getBookmarkOrigin();
43258
+ if (f != null) {
43259
+ writer.writeMessage(
43260
+ 16,
43261
+ f,
43262
+ proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter
43263
+ );
43264
+ }
43265
+ f = message.getImage();
43266
+ if (f != null) {
43267
+ writer.writeMessage(
43268
+ 17,
43269
+ f,
43270
+ proto.clarifai.api.Image.serializeBinaryToWriter
43271
+ );
43272
+ }
41684
43273
  };
41685
43274
 
41686
43275
 
@@ -42107,6 +43696,80 @@ proto.clarifai.api.Workflow.prototype.clearCheckConsentsList = function() {
42107
43696
  };
42108
43697
 
42109
43698
 
43699
+ /**
43700
+ * optional BookmarkOrigin bookmark_origin = 16;
43701
+ * @return {?proto.clarifai.api.BookmarkOrigin}
43702
+ */
43703
+ proto.clarifai.api.Workflow.prototype.getBookmarkOrigin = function() {
43704
+ return /** @type{?proto.clarifai.api.BookmarkOrigin} */ (
43705
+ jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 16));
43706
+ };
43707
+
43708
+
43709
+ /**
43710
+ * @param {?proto.clarifai.api.BookmarkOrigin|undefined} value
43711
+ * @return {!proto.clarifai.api.Workflow} returns this
43712
+ */
43713
+ proto.clarifai.api.Workflow.prototype.setBookmarkOrigin = function(value) {
43714
+ return jspb.Message.setWrapperField(this, 16, value);
43715
+ };
43716
+
43717
+
43718
+ /**
43719
+ * Clears the message field making it undefined.
43720
+ * @return {!proto.clarifai.api.Workflow} returns this
43721
+ */
43722
+ proto.clarifai.api.Workflow.prototype.clearBookmarkOrigin = function() {
43723
+ return this.setBookmarkOrigin(undefined);
43724
+ };
43725
+
43726
+
43727
+ /**
43728
+ * Returns whether this field is set.
43729
+ * @return {boolean}
43730
+ */
43731
+ proto.clarifai.api.Workflow.prototype.hasBookmarkOrigin = function() {
43732
+ return jspb.Message.getField(this, 16) != null;
43733
+ };
43734
+
43735
+
43736
+ /**
43737
+ * optional Image image = 17;
43738
+ * @return {?proto.clarifai.api.Image}
43739
+ */
43740
+ proto.clarifai.api.Workflow.prototype.getImage = function() {
43741
+ return /** @type{?proto.clarifai.api.Image} */ (
43742
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 17));
43743
+ };
43744
+
43745
+
43746
+ /**
43747
+ * @param {?proto.clarifai.api.Image|undefined} value
43748
+ * @return {!proto.clarifai.api.Workflow} returns this
43749
+ */
43750
+ proto.clarifai.api.Workflow.prototype.setImage = function(value) {
43751
+ return jspb.Message.setWrapperField(this, 17, value);
43752
+ };
43753
+
43754
+
43755
+ /**
43756
+ * Clears the message field making it undefined.
43757
+ * @return {!proto.clarifai.api.Workflow} returns this
43758
+ */
43759
+ proto.clarifai.api.Workflow.prototype.clearImage = function() {
43760
+ return this.setImage(undefined);
43761
+ };
43762
+
43763
+
43764
+ /**
43765
+ * Returns whether this field is set.
43766
+ * @return {boolean}
43767
+ */
43768
+ proto.clarifai.api.Workflow.prototype.hasImage = function() {
43769
+ return jspb.Message.getField(this, 17) != null;
43770
+ };
43771
+
43772
+
42110
43773
 
42111
43774
  /**
42112
43775
  * List of repeated fields within this message type.
@@ -43697,13 +45360,14 @@ proto.clarifai.api.AppDuplication.prototype.toObject = function(opt_includeInsta
43697
45360
  proto.clarifai.api.AppDuplication.toObject = function(includeInstance, msg) {
43698
45361
  var f, obj = {
43699
45362
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
45363
+ existingAppId: jspb.Message.getFieldWithDefault(msg, 8, ""),
43700
45364
  newAppId: jspb.Message.getFieldWithDefault(msg, 2, ""),
43701
45365
  newAppName: jspb.Message.getFieldWithDefault(msg, 3, ""),
45366
+ newAppDescription: jspb.Message.getFieldWithDefault(msg, 10, ""),
43702
45367
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
43703
45368
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
43704
45369
  lastModifiedAt: (f = msg.getLastModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
43705
45370
  filter: (f = msg.getFilter()) && proto.clarifai.api.AppDuplicationFilters.toObject(includeInstance, f),
43706
- existingAppId: jspb.Message.getFieldWithDefault(msg, 8, ""),
43707
45371
  progressList: jspb.Message.toObjectList(msg.getProgressList(),
43708
45372
  proto.clarifai.api.AppCopyProgress.toObject, includeInstance)
43709
45373
  };
@@ -43746,6 +45410,10 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
43746
45410
  var value = /** @type {string} */ (reader.readString());
43747
45411
  msg.setId(value);
43748
45412
  break;
45413
+ case 8:
45414
+ var value = /** @type {string} */ (reader.readString());
45415
+ msg.setExistingAppId(value);
45416
+ break;
43749
45417
  case 2:
43750
45418
  var value = /** @type {string} */ (reader.readString());
43751
45419
  msg.setNewAppId(value);
@@ -43754,6 +45422,10 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
43754
45422
  var value = /** @type {string} */ (reader.readString());
43755
45423
  msg.setNewAppName(value);
43756
45424
  break;
45425
+ case 10:
45426
+ var value = /** @type {string} */ (reader.readString());
45427
+ msg.setNewAppDescription(value);
45428
+ break;
43757
45429
  case 4:
43758
45430
  var value = new proto_clarifai_api_status_status_pb.Status;
43759
45431
  reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
@@ -43774,10 +45446,6 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
43774
45446
  reader.readMessage(value,proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader);
43775
45447
  msg.setFilter(value);
43776
45448
  break;
43777
- case 8:
43778
- var value = /** @type {string} */ (reader.readString());
43779
- msg.setExistingAppId(value);
43780
- break;
43781
45449
  case 9:
43782
45450
  var value = new proto.clarifai.api.AppCopyProgress;
43783
45451
  reader.readMessage(value,proto.clarifai.api.AppCopyProgress.deserializeBinaryFromReader);
@@ -43819,6 +45487,13 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
43819
45487
  f
43820
45488
  );
43821
45489
  }
45490
+ f = message.getExistingAppId();
45491
+ if (f.length > 0) {
45492
+ writer.writeString(
45493
+ 8,
45494
+ f
45495
+ );
45496
+ }
43822
45497
  f = message.getNewAppId();
43823
45498
  if (f.length > 0) {
43824
45499
  writer.writeString(
@@ -43833,6 +45508,13 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
43833
45508
  f
43834
45509
  );
43835
45510
  }
45511
+ f = message.getNewAppDescription();
45512
+ if (f.length > 0) {
45513
+ writer.writeString(
45514
+ 10,
45515
+ f
45516
+ );
45517
+ }
43836
45518
  f = message.getStatus();
43837
45519
  if (f != null) {
43838
45520
  writer.writeMessage(
@@ -43865,13 +45547,6 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
43865
45547
  proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter
43866
45548
  );
43867
45549
  }
43868
- f = message.getExistingAppId();
43869
- if (f.length > 0) {
43870
- writer.writeString(
43871
- 8,
43872
- f
43873
- );
43874
- }
43875
45550
  f = message.getProgressList();
43876
45551
  if (f.length > 0) {
43877
45552
  writer.writeRepeatedMessage(
@@ -43901,6 +45576,24 @@ proto.clarifai.api.AppDuplication.prototype.setId = function(value) {
43901
45576
  };
43902
45577
 
43903
45578
 
45579
+ /**
45580
+ * optional string existing_app_id = 8;
45581
+ * @return {string}
45582
+ */
45583
+ proto.clarifai.api.AppDuplication.prototype.getExistingAppId = function() {
45584
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
45585
+ };
45586
+
45587
+
45588
+ /**
45589
+ * @param {string} value
45590
+ * @return {!proto.clarifai.api.AppDuplication} returns this
45591
+ */
45592
+ proto.clarifai.api.AppDuplication.prototype.setExistingAppId = function(value) {
45593
+ return jspb.Message.setProto3StringField(this, 8, value);
45594
+ };
45595
+
45596
+
43904
45597
  /**
43905
45598
  * optional string new_app_id = 2;
43906
45599
  * @return {string}
@@ -43937,6 +45630,24 @@ proto.clarifai.api.AppDuplication.prototype.setNewAppName = function(value) {
43937
45630
  };
43938
45631
 
43939
45632
 
45633
+ /**
45634
+ * optional string new_app_description = 10;
45635
+ * @return {string}
45636
+ */
45637
+ proto.clarifai.api.AppDuplication.prototype.getNewAppDescription = function() {
45638
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
45639
+ };
45640
+
45641
+
45642
+ /**
45643
+ * @param {string} value
45644
+ * @return {!proto.clarifai.api.AppDuplication} returns this
45645
+ */
45646
+ proto.clarifai.api.AppDuplication.prototype.setNewAppDescription = function(value) {
45647
+ return jspb.Message.setProto3StringField(this, 10, value);
45648
+ };
45649
+
45650
+
43940
45651
  /**
43941
45652
  * optional status.Status status = 4;
43942
45653
  * @return {?proto.clarifai.api.status.Status}
@@ -44085,24 +45796,6 @@ proto.clarifai.api.AppDuplication.prototype.hasFilter = function() {
44085
45796
  };
44086
45797
 
44087
45798
 
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
45799
  /**
44107
45800
  * repeated AppCopyProgress progress = 9;
44108
45801
  * @return {!Array<!proto.clarifai.api.AppCopyProgress>}
@@ -49301,7 +50994,8 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject = function(includ
49301
50994
  modelAppId: jspb.Message.getFieldWithDefault(msg, 2, ""),
49302
50995
  modelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
49303
50996
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
49304
- postInputsKeyId: jspb.Message.getFieldWithDefault(msg, 5, "")
50997
+ postInputsKeyId: jspb.Message.getFieldWithDefault(msg, 5, ""),
50998
+ callerUserId: jspb.Message.getFieldWithDefault(msg, 6, "")
49305
50999
  };
49306
51000
 
49307
51001
  if (includeInstance) {
@@ -49358,6 +51052,10 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReade
49358
51052
  var value = /** @type {string} */ (reader.readString());
49359
51053
  msg.setPostInputsKeyId(value);
49360
51054
  break;
51055
+ case 6:
51056
+ var value = /** @type {string} */ (reader.readString());
51057
+ msg.setCallerUserId(value);
51058
+ break;
49361
51059
  default:
49362
51060
  reader.skipField();
49363
51061
  break;
@@ -49422,6 +51120,13 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter =
49422
51120
  f
49423
51121
  );
49424
51122
  }
51123
+ f = message.getCallerUserId();
51124
+ if (f.length > 0) {
51125
+ writer.writeString(
51126
+ 6,
51127
+ f
51128
+ );
51129
+ }
49425
51130
  };
49426
51131
 
49427
51132
 
@@ -49515,6 +51220,24 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setPostInputsKey
49515
51220
  };
49516
51221
 
49517
51222
 
51223
+ /**
51224
+ * optional string caller_user_id = 6;
51225
+ * @return {string}
51226
+ */
51227
+ proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getCallerUserId = function() {
51228
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
51229
+ };
51230
+
51231
+
51232
+ /**
51233
+ * @param {string} value
51234
+ * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this
51235
+ */
51236
+ proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setCallerUserId = function(value) {
51237
+ return jspb.Message.setProto3StringField(this, 6, value);
51238
+ };
51239
+
51240
+
49518
51241
 
49519
51242
  /**
49520
51243
  * List of repeated fields within this message type.
@@ -52092,8 +53815,8 @@ proto.clarifai.api.TimeInfo.prototype.toObject = function(opt_includeInstance) {
52092
53815
  proto.clarifai.api.TimeInfo.toObject = function(includeInstance, msg) {
52093
53816
  var f, obj = {
52094
53817
  numFrames: jspb.Message.getFieldWithDefault(msg, 1, 0),
52095
- beginTime: jspb.Message.getFieldWithDefault(msg, 2, 0),
52096
- endTime: jspb.Message.getFieldWithDefault(msg, 3, 0)
53818
+ beginTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
53819
+ endTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
52097
53820
  };
52098
53821
 
52099
53822
  if (includeInstance) {
@@ -52134,12 +53857,12 @@ proto.clarifai.api.TimeInfo.deserializeBinaryFromReader = function(msg, reader)
52134
53857
  var value = /** @type {number} */ (reader.readUint32());
52135
53858
  msg.setNumFrames(value);
52136
53859
  break;
52137
- case 2:
52138
- var value = /** @type {number} */ (reader.readUint32());
53860
+ case 4:
53861
+ var value = /** @type {number} */ (reader.readFloat());
52139
53862
  msg.setBeginTime(value);
52140
53863
  break;
52141
- case 3:
52142
- var value = /** @type {number} */ (reader.readUint32());
53864
+ case 5:
53865
+ var value = /** @type {number} */ (reader.readFloat());
52143
53866
  msg.setEndTime(value);
52144
53867
  break;
52145
53868
  default:
@@ -52179,16 +53902,16 @@ proto.clarifai.api.TimeInfo.serializeBinaryToWriter = function(message, writer)
52179
53902
  );
52180
53903
  }
52181
53904
  f = message.getBeginTime();
52182
- if (f !== 0) {
52183
- writer.writeUint32(
52184
- 2,
53905
+ if (f !== 0.0) {
53906
+ writer.writeFloat(
53907
+ 4,
52185
53908
  f
52186
53909
  );
52187
53910
  }
52188
53911
  f = message.getEndTime();
52189
- if (f !== 0) {
52190
- writer.writeUint32(
52191
- 3,
53912
+ if (f !== 0.0) {
53913
+ writer.writeFloat(
53914
+ 5,
52192
53915
  f
52193
53916
  );
52194
53917
  }
@@ -52214,11 +53937,11 @@ proto.clarifai.api.TimeInfo.prototype.setNumFrames = function(value) {
52214
53937
 
52215
53938
 
52216
53939
  /**
52217
- * optional uint32 begin_time = 2;
53940
+ * optional float begin_time = 4;
52218
53941
  * @return {number}
52219
53942
  */
52220
53943
  proto.clarifai.api.TimeInfo.prototype.getBeginTime = function() {
52221
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
53944
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
52222
53945
  };
52223
53946
 
52224
53947
 
@@ -52227,16 +53950,16 @@ proto.clarifai.api.TimeInfo.prototype.getBeginTime = function() {
52227
53950
  * @return {!proto.clarifai.api.TimeInfo} returns this
52228
53951
  */
52229
53952
  proto.clarifai.api.TimeInfo.prototype.setBeginTime = function(value) {
52230
- return jspb.Message.setProto3IntField(this, 2, value);
53953
+ return jspb.Message.setProto3FloatField(this, 4, value);
52231
53954
  };
52232
53955
 
52233
53956
 
52234
53957
  /**
52235
- * optional uint32 end_time = 3;
53958
+ * optional float end_time = 5;
52236
53959
  * @return {number}
52237
53960
  */
52238
53961
  proto.clarifai.api.TimeInfo.prototype.getEndTime = function() {
52239
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
53962
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
52240
53963
  };
52241
53964
 
52242
53965
 
@@ -52245,7 +53968,7 @@ proto.clarifai.api.TimeInfo.prototype.getEndTime = function() {
52245
53968
  * @return {!proto.clarifai.api.TimeInfo} returns this
52246
53969
  */
52247
53970
  proto.clarifai.api.TimeInfo.prototype.setEndTime = function(value) {
52248
- return jspb.Message.setProto3IntField(this, 3, value);
53971
+ return jspb.Message.setProto3FloatField(this, 5, value);
52249
53972
  };
52250
53973
 
52251
53974
 
@@ -52551,7 +54274,9 @@ proto.clarifai.api.Module.toObject = function(includeInstance, msg) {
52551
54274
  appId: jspb.Message.getFieldWithDefault(msg, 10, ""),
52552
54275
  moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f),
52553
54276
  isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
52554
- starCount: jspb.Message.getFieldWithDefault(msg, 13, 0)
54277
+ starCount: jspb.Message.getFieldWithDefault(msg, 13, 0),
54278
+ bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
54279
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
52555
54280
  };
52556
54281
 
52557
54282
  if (includeInstance) {
@@ -52637,6 +54362,16 @@ proto.clarifai.api.Module.deserializeBinaryFromReader = function(msg, reader) {
52637
54362
  var value = /** @type {number} */ (reader.readInt32());
52638
54363
  msg.setStarCount(value);
52639
54364
  break;
54365
+ case 14:
54366
+ var value = new proto.clarifai.api.BookmarkOrigin;
54367
+ reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader);
54368
+ msg.setBookmarkOrigin(value);
54369
+ break;
54370
+ case 15:
54371
+ var value = new proto.clarifai.api.Image;
54372
+ reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
54373
+ msg.setImage(value);
54374
+ break;
52640
54375
  default:
52641
54376
  reader.skipField();
52642
54377
  break;
@@ -52748,6 +54483,22 @@ proto.clarifai.api.Module.serializeBinaryToWriter = function(message, writer) {
52748
54483
  f
52749
54484
  );
52750
54485
  }
54486
+ f = message.getBookmarkOrigin();
54487
+ if (f != null) {
54488
+ writer.writeMessage(
54489
+ 14,
54490
+ f,
54491
+ proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter
54492
+ );
54493
+ }
54494
+ f = message.getImage();
54495
+ if (f != null) {
54496
+ writer.writeMessage(
54497
+ 15,
54498
+ f,
54499
+ proto.clarifai.api.Image.serializeBinaryToWriter
54500
+ );
54501
+ }
52751
54502
  };
52752
54503
 
52753
54504
 
@@ -53044,6 +54795,80 @@ proto.clarifai.api.Module.prototype.setStarCount = function(value) {
53044
54795
  };
53045
54796
 
53046
54797
 
54798
+ /**
54799
+ * optional BookmarkOrigin bookmark_origin = 14;
54800
+ * @return {?proto.clarifai.api.BookmarkOrigin}
54801
+ */
54802
+ proto.clarifai.api.Module.prototype.getBookmarkOrigin = function() {
54803
+ return /** @type{?proto.clarifai.api.BookmarkOrigin} */ (
54804
+ jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 14));
54805
+ };
54806
+
54807
+
54808
+ /**
54809
+ * @param {?proto.clarifai.api.BookmarkOrigin|undefined} value
54810
+ * @return {!proto.clarifai.api.Module} returns this
54811
+ */
54812
+ proto.clarifai.api.Module.prototype.setBookmarkOrigin = function(value) {
54813
+ return jspb.Message.setWrapperField(this, 14, value);
54814
+ };
54815
+
54816
+
54817
+ /**
54818
+ * Clears the message field making it undefined.
54819
+ * @return {!proto.clarifai.api.Module} returns this
54820
+ */
54821
+ proto.clarifai.api.Module.prototype.clearBookmarkOrigin = function() {
54822
+ return this.setBookmarkOrigin(undefined);
54823
+ };
54824
+
54825
+
54826
+ /**
54827
+ * Returns whether this field is set.
54828
+ * @return {boolean}
54829
+ */
54830
+ proto.clarifai.api.Module.prototype.hasBookmarkOrigin = function() {
54831
+ return jspb.Message.getField(this, 14) != null;
54832
+ };
54833
+
54834
+
54835
+ /**
54836
+ * optional Image image = 15;
54837
+ * @return {?proto.clarifai.api.Image}
54838
+ */
54839
+ proto.clarifai.api.Module.prototype.getImage = function() {
54840
+ return /** @type{?proto.clarifai.api.Image} */ (
54841
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 15));
54842
+ };
54843
+
54844
+
54845
+ /**
54846
+ * @param {?proto.clarifai.api.Image|undefined} value
54847
+ * @return {!proto.clarifai.api.Module} returns this
54848
+ */
54849
+ proto.clarifai.api.Module.prototype.setImage = function(value) {
54850
+ return jspb.Message.setWrapperField(this, 15, value);
54851
+ };
54852
+
54853
+
54854
+ /**
54855
+ * Clears the message field making it undefined.
54856
+ * @return {!proto.clarifai.api.Module} returns this
54857
+ */
54858
+ proto.clarifai.api.Module.prototype.clearImage = function() {
54859
+ return this.setImage(undefined);
54860
+ };
54861
+
54862
+
54863
+ /**
54864
+ * Returns whether this field is set.
54865
+ * @return {boolean}
54866
+ */
54867
+ proto.clarifai.api.Module.prototype.hasImage = function() {
54868
+ return jspb.Message.getField(this, 15) != null;
54869
+ };
54870
+
54871
+
53047
54872
 
53048
54873
 
53049
54874
 
@@ -59225,7 +61050,8 @@ proto.clarifai.api.InputsExtractionJob.toObject = function(includeInstance, msg)
59225
61050
  progress: (f = msg.getProgress()) && proto.clarifai.api.InputsExtractionJobProgress.toObject(includeInstance, f),
59226
61051
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
59227
61052
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
59228
- inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 7, 0)
61053
+ inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 7, 0),
61054
+ inputTemplate: (f = msg.getInputTemplate()) && proto.clarifai.api.Input.toObject(includeInstance, f)
59229
61055
  };
59230
61056
 
59231
61057
  if (includeInstance) {
@@ -59294,6 +61120,11 @@ proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader = function(ms
59294
61120
  var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum());
59295
61121
  msg.setInputIdConflictResolution(value);
59296
61122
  break;
61123
+ case 8:
61124
+ var value = new proto.clarifai.api.Input;
61125
+ reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
61126
+ msg.setInputTemplate(value);
61127
+ break;
59297
61128
  default:
59298
61129
  reader.skipField();
59299
61130
  break;
@@ -59376,6 +61207,14 @@ proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter = function(messag
59376
61207
  f
59377
61208
  );
59378
61209
  }
61210
+ f = message.getInputTemplate();
61211
+ if (f != null) {
61212
+ writer.writeMessage(
61213
+ 8,
61214
+ f,
61215
+ proto.clarifai.api.Input.serializeBinaryToWriter
61216
+ );
61217
+ }
59379
61218
  };
59380
61219
 
59381
61220
 
@@ -59581,6 +61420,43 @@ proto.clarifai.api.InputsExtractionJob.prototype.setInputIdConflictResolution =
59581
61420
  };
59582
61421
 
59583
61422
 
61423
+ /**
61424
+ * optional Input input_template = 8;
61425
+ * @return {?proto.clarifai.api.Input}
61426
+ */
61427
+ proto.clarifai.api.InputsExtractionJob.prototype.getInputTemplate = function() {
61428
+ return /** @type{?proto.clarifai.api.Input} */ (
61429
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 8));
61430
+ };
61431
+
61432
+
61433
+ /**
61434
+ * @param {?proto.clarifai.api.Input|undefined} value
61435
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
61436
+ */
61437
+ proto.clarifai.api.InputsExtractionJob.prototype.setInputTemplate = function(value) {
61438
+ return jspb.Message.setWrapperField(this, 8, value);
61439
+ };
61440
+
61441
+
61442
+ /**
61443
+ * Clears the message field making it undefined.
61444
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
61445
+ */
61446
+ proto.clarifai.api.InputsExtractionJob.prototype.clearInputTemplate = function() {
61447
+ return this.setInputTemplate(undefined);
61448
+ };
61449
+
61450
+
61451
+ /**
61452
+ * Returns whether this field is set.
61453
+ * @return {boolean}
61454
+ */
61455
+ proto.clarifai.api.InputsExtractionJob.prototype.hasInputTemplate = function() {
61456
+ return jspb.Message.getField(this, 8) != null;
61457
+ };
61458
+
61459
+
59584
61460
 
59585
61461
 
59586
61462
 
@@ -59955,7 +61831,8 @@ proto.clarifai.api.InputsDataSource.toObject = function(includeInstance, msg) {
59955
61831
  var f, obj = {
59956
61832
  inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""),
59957
61833
  url: (f = msg.getUrl()) && proto.clarifai.api.DataSourceURL.toObject(includeInstance, f),
59958
- inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 3, 0)
61834
+ inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 3, 0),
61835
+ inputTemplate: (f = msg.getInputTemplate()) && proto.clarifai.api.Input.toObject(includeInstance, f)
59959
61836
  };
59960
61837
 
59961
61838
  if (includeInstance) {
@@ -60005,6 +61882,11 @@ proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader = function(msg,
60005
61882
  var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum());
60006
61883
  msg.setInputIdConflictResolution(value);
60007
61884
  break;
61885
+ case 4:
61886
+ var value = new proto.clarifai.api.Input;
61887
+ reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
61888
+ msg.setInputTemplate(value);
61889
+ break;
60008
61890
  default:
60009
61891
  reader.skipField();
60010
61892
  break;
@@ -60056,6 +61938,14 @@ proto.clarifai.api.InputsDataSource.serializeBinaryToWriter = function(message,
60056
61938
  f
60057
61939
  );
60058
61940
  }
61941
+ f = message.getInputTemplate();
61942
+ if (f != null) {
61943
+ writer.writeMessage(
61944
+ 4,
61945
+ f,
61946
+ proto.clarifai.api.Input.serializeBinaryToWriter
61947
+ );
61948
+ }
60059
61949
  };
60060
61950
 
60061
61951
 
@@ -60132,6 +62022,43 @@ proto.clarifai.api.InputsDataSource.prototype.setInputIdConflictResolution = fun
60132
62022
  };
60133
62023
 
60134
62024
 
62025
+ /**
62026
+ * optional Input input_template = 4;
62027
+ * @return {?proto.clarifai.api.Input}
62028
+ */
62029
+ proto.clarifai.api.InputsDataSource.prototype.getInputTemplate = function() {
62030
+ return /** @type{?proto.clarifai.api.Input} */ (
62031
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 4));
62032
+ };
62033
+
62034
+
62035
+ /**
62036
+ * @param {?proto.clarifai.api.Input|undefined} value
62037
+ * @return {!proto.clarifai.api.InputsDataSource} returns this
62038
+ */
62039
+ proto.clarifai.api.InputsDataSource.prototype.setInputTemplate = function(value) {
62040
+ return jspb.Message.setWrapperField(this, 4, value);
62041
+ };
62042
+
62043
+
62044
+ /**
62045
+ * Clears the message field making it undefined.
62046
+ * @return {!proto.clarifai.api.InputsDataSource} returns this
62047
+ */
62048
+ proto.clarifai.api.InputsDataSource.prototype.clearInputTemplate = function() {
62049
+ return this.setInputTemplate(undefined);
62050
+ };
62051
+
62052
+
62053
+ /**
62054
+ * Returns whether this field is set.
62055
+ * @return {boolean}
62056
+ */
62057
+ proto.clarifai.api.InputsDataSource.prototype.hasInputTemplate = function() {
62058
+ return jspb.Message.getField(this, 4) != null;
62059
+ };
62060
+
62061
+
60135
62062
 
60136
62063
 
60137
62064
 
@@ -61029,7 +62956,8 @@ proto.clarifai.api.InputsUpload.toObject = function(includeInstance, msg) {
61029
62956
  inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""),
61030
62957
  appPat: jspb.Message.getFieldWithDefault(msg, 2, ""),
61031
62958
  upload: (f = msg.getUpload()) && proto.clarifai.api.Upload.toObject(includeInstance, f),
61032
- inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 4, 0)
62959
+ inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 4, 0),
62960
+ inputTemplate: (f = msg.getInputTemplate()) && proto.clarifai.api.Input.toObject(includeInstance, f)
61033
62961
  };
61034
62962
 
61035
62963
  if (includeInstance) {
@@ -61083,6 +63011,11 @@ proto.clarifai.api.InputsUpload.deserializeBinaryFromReader = function(msg, read
61083
63011
  var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum());
61084
63012
  msg.setInputIdConflictResolution(value);
61085
63013
  break;
63014
+ case 5:
63015
+ var value = new proto.clarifai.api.Input;
63016
+ reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader);
63017
+ msg.setInputTemplate(value);
63018
+ break;
61086
63019
  default:
61087
63020
  reader.skipField();
61088
63021
  break;
@@ -61141,6 +63074,14 @@ proto.clarifai.api.InputsUpload.serializeBinaryToWriter = function(message, writ
61141
63074
  f
61142
63075
  );
61143
63076
  }
63077
+ f = message.getInputTemplate();
63078
+ if (f != null) {
63079
+ writer.writeMessage(
63080
+ 5,
63081
+ f,
63082
+ proto.clarifai.api.Input.serializeBinaryToWriter
63083
+ );
63084
+ }
61144
63085
  };
61145
63086
 
61146
63087
 
@@ -61235,6 +63176,673 @@ proto.clarifai.api.InputsUpload.prototype.setInputIdConflictResolution = functio
61235
63176
  };
61236
63177
 
61237
63178
 
63179
+ /**
63180
+ * optional Input input_template = 5;
63181
+ * @return {?proto.clarifai.api.Input}
63182
+ */
63183
+ proto.clarifai.api.InputsUpload.prototype.getInputTemplate = function() {
63184
+ return /** @type{?proto.clarifai.api.Input} */ (
63185
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5));
63186
+ };
63187
+
63188
+
63189
+ /**
63190
+ * @param {?proto.clarifai.api.Input|undefined} value
63191
+ * @return {!proto.clarifai.api.InputsUpload} returns this
63192
+ */
63193
+ proto.clarifai.api.InputsUpload.prototype.setInputTemplate = function(value) {
63194
+ return jspb.Message.setWrapperField(this, 5, value);
63195
+ };
63196
+
63197
+
63198
+ /**
63199
+ * Clears the message field making it undefined.
63200
+ * @return {!proto.clarifai.api.InputsUpload} returns this
63201
+ */
63202
+ proto.clarifai.api.InputsUpload.prototype.clearInputTemplate = function() {
63203
+ return this.setInputTemplate(undefined);
63204
+ };
63205
+
63206
+
63207
+ /**
63208
+ * Returns whether this field is set.
63209
+ * @return {boolean}
63210
+ */
63211
+ proto.clarifai.api.InputsUpload.prototype.hasInputTemplate = function() {
63212
+ return jspb.Message.getField(this, 5) != null;
63213
+ };
63214
+
63215
+
63216
+
63217
+
63218
+
63219
+ if (jspb.Message.GENERATE_TO_OBJECT) {
63220
+ /**
63221
+ * Creates an object representation of this proto.
63222
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
63223
+ * Optional fields that are not set will be set to undefined.
63224
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
63225
+ * For the list of reserved names please see:
63226
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
63227
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
63228
+ * JSPB instance for transitional soy proto support:
63229
+ * http://goto/soy-param-migration
63230
+ * @return {!Object}
63231
+ */
63232
+ proto.clarifai.api.BookmarkOrigin.prototype.toObject = function(opt_includeInstance) {
63233
+ return proto.clarifai.api.BookmarkOrigin.toObject(opt_includeInstance, this);
63234
+ };
63235
+
63236
+
63237
+ /**
63238
+ * Static version of the {@see toObject} method.
63239
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
63240
+ * the JSPB instance for transitional soy proto support:
63241
+ * http://goto/soy-param-migration
63242
+ * @param {!proto.clarifai.api.BookmarkOrigin} msg The msg instance to transform.
63243
+ * @return {!Object}
63244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
63245
+ */
63246
+ proto.clarifai.api.BookmarkOrigin.toObject = function(includeInstance, msg) {
63247
+ var f, obj = {
63248
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
63249
+ appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
63250
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
63251
+ resourceType: jspb.Message.getFieldWithDefault(msg, 4, 0)
63252
+ };
63253
+
63254
+ if (includeInstance) {
63255
+ obj.$jspbMessageInstance = msg;
63256
+ }
63257
+ return obj;
63258
+ };
63259
+ }
63260
+
63261
+
63262
+ /**
63263
+ * Deserializes binary data (in protobuf wire format).
63264
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
63265
+ * @return {!proto.clarifai.api.BookmarkOrigin}
63266
+ */
63267
+ proto.clarifai.api.BookmarkOrigin.deserializeBinary = function(bytes) {
63268
+ var reader = new jspb.BinaryReader(bytes);
63269
+ var msg = new proto.clarifai.api.BookmarkOrigin;
63270
+ return proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader(msg, reader);
63271
+ };
63272
+
63273
+
63274
+ /**
63275
+ * Deserializes binary data (in protobuf wire format) from the
63276
+ * given reader into the given message object.
63277
+ * @param {!proto.clarifai.api.BookmarkOrigin} msg The message object to deserialize into.
63278
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
63279
+ * @return {!proto.clarifai.api.BookmarkOrigin}
63280
+ */
63281
+ proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader = function(msg, reader) {
63282
+ while (reader.nextField()) {
63283
+ if (reader.isEndGroup()) {
63284
+ break;
63285
+ }
63286
+ var field = reader.getFieldNumber();
63287
+ switch (field) {
63288
+ case 1:
63289
+ var value = /** @type {string} */ (reader.readString());
63290
+ msg.setId(value);
63291
+ break;
63292
+ case 2:
63293
+ var value = /** @type {string} */ (reader.readString());
63294
+ msg.setAppId(value);
63295
+ break;
63296
+ case 3:
63297
+ var value = /** @type {string} */ (reader.readString());
63298
+ msg.setUserId(value);
63299
+ break;
63300
+ case 4:
63301
+ var value = /** @type {!proto.clarifai.api.BookmarkOrigin.BookmarkType} */ (reader.readEnum());
63302
+ msg.setResourceType(value);
63303
+ break;
63304
+ default:
63305
+ reader.skipField();
63306
+ break;
63307
+ }
63308
+ }
63309
+ return msg;
63310
+ };
63311
+
63312
+
63313
+ /**
63314
+ * Serializes the message to binary data (in protobuf wire format).
63315
+ * @return {!Uint8Array}
63316
+ */
63317
+ proto.clarifai.api.BookmarkOrigin.prototype.serializeBinary = function() {
63318
+ var writer = new jspb.BinaryWriter();
63319
+ proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter(this, writer);
63320
+ return writer.getResultBuffer();
63321
+ };
63322
+
63323
+
63324
+ /**
63325
+ * Serializes the given message to binary data (in protobuf wire
63326
+ * format), writing to the given BinaryWriter.
63327
+ * @param {!proto.clarifai.api.BookmarkOrigin} message
63328
+ * @param {!jspb.BinaryWriter} writer
63329
+ * @suppress {unusedLocalVariables} f is only used for nested messages
63330
+ */
63331
+ proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter = function(message, writer) {
63332
+ var f = undefined;
63333
+ f = message.getId();
63334
+ if (f.length > 0) {
63335
+ writer.writeString(
63336
+ 1,
63337
+ f
63338
+ );
63339
+ }
63340
+ f = message.getAppId();
63341
+ if (f.length > 0) {
63342
+ writer.writeString(
63343
+ 2,
63344
+ f
63345
+ );
63346
+ }
63347
+ f = message.getUserId();
63348
+ if (f.length > 0) {
63349
+ writer.writeString(
63350
+ 3,
63351
+ f
63352
+ );
63353
+ }
63354
+ f = message.getResourceType();
63355
+ if (f !== 0.0) {
63356
+ writer.writeEnum(
63357
+ 4,
63358
+ f
63359
+ );
63360
+ }
63361
+ };
63362
+
63363
+
63364
+ /**
63365
+ * @enum {number}
63366
+ */
63367
+ proto.clarifai.api.BookmarkOrigin.BookmarkType = {
63368
+ UNKNOWN: 0,
63369
+ MODEL: 1,
63370
+ WORKFLOW: 2,
63371
+ DATASET: 3,
63372
+ MODULE: 4
63373
+ };
63374
+
63375
+ /**
63376
+ * optional string id = 1;
63377
+ * @return {string}
63378
+ */
63379
+ proto.clarifai.api.BookmarkOrigin.prototype.getId = function() {
63380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
63381
+ };
63382
+
63383
+
63384
+ /**
63385
+ * @param {string} value
63386
+ * @return {!proto.clarifai.api.BookmarkOrigin} returns this
63387
+ */
63388
+ proto.clarifai.api.BookmarkOrigin.prototype.setId = function(value) {
63389
+ return jspb.Message.setProto3StringField(this, 1, value);
63390
+ };
63391
+
63392
+
63393
+ /**
63394
+ * optional string app_id = 2;
63395
+ * @return {string}
63396
+ */
63397
+ proto.clarifai.api.BookmarkOrigin.prototype.getAppId = function() {
63398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
63399
+ };
63400
+
63401
+
63402
+ /**
63403
+ * @param {string} value
63404
+ * @return {!proto.clarifai.api.BookmarkOrigin} returns this
63405
+ */
63406
+ proto.clarifai.api.BookmarkOrigin.prototype.setAppId = function(value) {
63407
+ return jspb.Message.setProto3StringField(this, 2, value);
63408
+ };
63409
+
63410
+
63411
+ /**
63412
+ * optional string user_id = 3;
63413
+ * @return {string}
63414
+ */
63415
+ proto.clarifai.api.BookmarkOrigin.prototype.getUserId = function() {
63416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
63417
+ };
63418
+
63419
+
63420
+ /**
63421
+ * @param {string} value
63422
+ * @return {!proto.clarifai.api.BookmarkOrigin} returns this
63423
+ */
63424
+ proto.clarifai.api.BookmarkOrigin.prototype.setUserId = function(value) {
63425
+ return jspb.Message.setProto3StringField(this, 3, value);
63426
+ };
63427
+
63428
+
63429
+ /**
63430
+ * optional BookmarkType resource_type = 4;
63431
+ * @return {!proto.clarifai.api.BookmarkOrigin.BookmarkType}
63432
+ */
63433
+ proto.clarifai.api.BookmarkOrigin.prototype.getResourceType = function() {
63434
+ return /** @type {!proto.clarifai.api.BookmarkOrigin.BookmarkType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
63435
+ };
63436
+
63437
+
63438
+ /**
63439
+ * @param {!proto.clarifai.api.BookmarkOrigin.BookmarkType} value
63440
+ * @return {!proto.clarifai.api.BookmarkOrigin} returns this
63441
+ */
63442
+ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) {
63443
+ return jspb.Message.setProto3EnumField(this, 4, value);
63444
+ };
63445
+
63446
+
63447
+
63448
+ /**
63449
+ * List of repeated fields within this message type.
63450
+ * @private {!Array<number>}
63451
+ * @const
63452
+ */
63453
+ proto.clarifai.api.Runner.repeatedFields_ = [7];
63454
+
63455
+
63456
+
63457
+ if (jspb.Message.GENERATE_TO_OBJECT) {
63458
+ /**
63459
+ * Creates an object representation of this proto.
63460
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
63461
+ * Optional fields that are not set will be set to undefined.
63462
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
63463
+ * For the list of reserved names please see:
63464
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
63465
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
63466
+ * JSPB instance for transitional soy proto support:
63467
+ * http://goto/soy-param-migration
63468
+ * @return {!Object}
63469
+ */
63470
+ proto.clarifai.api.Runner.prototype.toObject = function(opt_includeInstance) {
63471
+ return proto.clarifai.api.Runner.toObject(opt_includeInstance, this);
63472
+ };
63473
+
63474
+
63475
+ /**
63476
+ * Static version of the {@see toObject} method.
63477
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
63478
+ * the JSPB instance for transitional soy proto support:
63479
+ * http://goto/soy-param-migration
63480
+ * @param {!proto.clarifai.api.Runner} msg The msg instance to transform.
63481
+ * @return {!Object}
63482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
63483
+ */
63484
+ proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
63485
+ var f, obj = {
63486
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
63487
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
63488
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
63489
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
63490
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
63491
+ userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
63492
+ labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
63493
+ };
63494
+
63495
+ if (includeInstance) {
63496
+ obj.$jspbMessageInstance = msg;
63497
+ }
63498
+ return obj;
63499
+ };
63500
+ }
63501
+
63502
+
63503
+ /**
63504
+ * Deserializes binary data (in protobuf wire format).
63505
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
63506
+ * @return {!proto.clarifai.api.Runner}
63507
+ */
63508
+ proto.clarifai.api.Runner.deserializeBinary = function(bytes) {
63509
+ var reader = new jspb.BinaryReader(bytes);
63510
+ var msg = new proto.clarifai.api.Runner;
63511
+ return proto.clarifai.api.Runner.deserializeBinaryFromReader(msg, reader);
63512
+ };
63513
+
63514
+
63515
+ /**
63516
+ * Deserializes binary data (in protobuf wire format) from the
63517
+ * given reader into the given message object.
63518
+ * @param {!proto.clarifai.api.Runner} msg The message object to deserialize into.
63519
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
63520
+ * @return {!proto.clarifai.api.Runner}
63521
+ */
63522
+ proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
63523
+ while (reader.nextField()) {
63524
+ if (reader.isEndGroup()) {
63525
+ break;
63526
+ }
63527
+ var field = reader.getFieldNumber();
63528
+ switch (field) {
63529
+ case 1:
63530
+ var value = /** @type {string} */ (reader.readString());
63531
+ msg.setId(value);
63532
+ break;
63533
+ case 2:
63534
+ var value = /** @type {string} */ (reader.readString());
63535
+ msg.setDescription(value);
63536
+ break;
63537
+ case 3:
63538
+ var value = new google_protobuf_timestamp_pb.Timestamp;
63539
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
63540
+ msg.setCreatedAt(value);
63541
+ break;
63542
+ case 4:
63543
+ var value = new google_protobuf_timestamp_pb.Timestamp;
63544
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
63545
+ msg.setModifiedAt(value);
63546
+ break;
63547
+ case 5:
63548
+ var value = new google_protobuf_struct_pb.Struct;
63549
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
63550
+ msg.setMetadata(value);
63551
+ break;
63552
+ case 6:
63553
+ var value = /** @type {string} */ (reader.readString());
63554
+ msg.setUserId(value);
63555
+ break;
63556
+ case 7:
63557
+ var value = /** @type {string} */ (reader.readString());
63558
+ msg.addLabels(value);
63559
+ break;
63560
+ default:
63561
+ reader.skipField();
63562
+ break;
63563
+ }
63564
+ }
63565
+ return msg;
63566
+ };
63567
+
63568
+
63569
+ /**
63570
+ * Serializes the message to binary data (in protobuf wire format).
63571
+ * @return {!Uint8Array}
63572
+ */
63573
+ proto.clarifai.api.Runner.prototype.serializeBinary = function() {
63574
+ var writer = new jspb.BinaryWriter();
63575
+ proto.clarifai.api.Runner.serializeBinaryToWriter(this, writer);
63576
+ return writer.getResultBuffer();
63577
+ };
63578
+
63579
+
63580
+ /**
63581
+ * Serializes the given message to binary data (in protobuf wire
63582
+ * format), writing to the given BinaryWriter.
63583
+ * @param {!proto.clarifai.api.Runner} message
63584
+ * @param {!jspb.BinaryWriter} writer
63585
+ * @suppress {unusedLocalVariables} f is only used for nested messages
63586
+ */
63587
+ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
63588
+ var f = undefined;
63589
+ f = message.getId();
63590
+ if (f.length > 0) {
63591
+ writer.writeString(
63592
+ 1,
63593
+ f
63594
+ );
63595
+ }
63596
+ f = message.getDescription();
63597
+ if (f.length > 0) {
63598
+ writer.writeString(
63599
+ 2,
63600
+ f
63601
+ );
63602
+ }
63603
+ f = message.getCreatedAt();
63604
+ if (f != null) {
63605
+ writer.writeMessage(
63606
+ 3,
63607
+ f,
63608
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
63609
+ );
63610
+ }
63611
+ f = message.getModifiedAt();
63612
+ if (f != null) {
63613
+ writer.writeMessage(
63614
+ 4,
63615
+ f,
63616
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
63617
+ );
63618
+ }
63619
+ f = message.getMetadata();
63620
+ if (f != null) {
63621
+ writer.writeMessage(
63622
+ 5,
63623
+ f,
63624
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
63625
+ );
63626
+ }
63627
+ f = message.getUserId();
63628
+ if (f.length > 0) {
63629
+ writer.writeString(
63630
+ 6,
63631
+ f
63632
+ );
63633
+ }
63634
+ f = message.getLabelsList();
63635
+ if (f.length > 0) {
63636
+ writer.writeRepeatedString(
63637
+ 7,
63638
+ f
63639
+ );
63640
+ }
63641
+ };
63642
+
63643
+
63644
+ /**
63645
+ * optional string id = 1;
63646
+ * @return {string}
63647
+ */
63648
+ proto.clarifai.api.Runner.prototype.getId = function() {
63649
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
63650
+ };
63651
+
63652
+
63653
+ /**
63654
+ * @param {string} value
63655
+ * @return {!proto.clarifai.api.Runner} returns this
63656
+ */
63657
+ proto.clarifai.api.Runner.prototype.setId = function(value) {
63658
+ return jspb.Message.setProto3StringField(this, 1, value);
63659
+ };
63660
+
63661
+
63662
+ /**
63663
+ * optional string description = 2;
63664
+ * @return {string}
63665
+ */
63666
+ proto.clarifai.api.Runner.prototype.getDescription = function() {
63667
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
63668
+ };
63669
+
63670
+
63671
+ /**
63672
+ * @param {string} value
63673
+ * @return {!proto.clarifai.api.Runner} returns this
63674
+ */
63675
+ proto.clarifai.api.Runner.prototype.setDescription = function(value) {
63676
+ return jspb.Message.setProto3StringField(this, 2, value);
63677
+ };
63678
+
63679
+
63680
+ /**
63681
+ * optional google.protobuf.Timestamp created_at = 3;
63682
+ * @return {?proto.google.protobuf.Timestamp}
63683
+ */
63684
+ proto.clarifai.api.Runner.prototype.getCreatedAt = function() {
63685
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
63686
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
63687
+ };
63688
+
63689
+
63690
+ /**
63691
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
63692
+ * @return {!proto.clarifai.api.Runner} returns this
63693
+ */
63694
+ proto.clarifai.api.Runner.prototype.setCreatedAt = function(value) {
63695
+ return jspb.Message.setWrapperField(this, 3, value);
63696
+ };
63697
+
63698
+
63699
+ /**
63700
+ * Clears the message field making it undefined.
63701
+ * @return {!proto.clarifai.api.Runner} returns this
63702
+ */
63703
+ proto.clarifai.api.Runner.prototype.clearCreatedAt = function() {
63704
+ return this.setCreatedAt(undefined);
63705
+ };
63706
+
63707
+
63708
+ /**
63709
+ * Returns whether this field is set.
63710
+ * @return {boolean}
63711
+ */
63712
+ proto.clarifai.api.Runner.prototype.hasCreatedAt = function() {
63713
+ return jspb.Message.getField(this, 3) != null;
63714
+ };
63715
+
63716
+
63717
+ /**
63718
+ * optional google.protobuf.Timestamp modified_at = 4;
63719
+ * @return {?proto.google.protobuf.Timestamp}
63720
+ */
63721
+ proto.clarifai.api.Runner.prototype.getModifiedAt = function() {
63722
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
63723
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
63724
+ };
63725
+
63726
+
63727
+ /**
63728
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
63729
+ * @return {!proto.clarifai.api.Runner} returns this
63730
+ */
63731
+ proto.clarifai.api.Runner.prototype.setModifiedAt = function(value) {
63732
+ return jspb.Message.setWrapperField(this, 4, value);
63733
+ };
63734
+
63735
+
63736
+ /**
63737
+ * Clears the message field making it undefined.
63738
+ * @return {!proto.clarifai.api.Runner} returns this
63739
+ */
63740
+ proto.clarifai.api.Runner.prototype.clearModifiedAt = function() {
63741
+ return this.setModifiedAt(undefined);
63742
+ };
63743
+
63744
+
63745
+ /**
63746
+ * Returns whether this field is set.
63747
+ * @return {boolean}
63748
+ */
63749
+ proto.clarifai.api.Runner.prototype.hasModifiedAt = function() {
63750
+ return jspb.Message.getField(this, 4) != null;
63751
+ };
63752
+
63753
+
63754
+ /**
63755
+ * optional google.protobuf.Struct metadata = 5;
63756
+ * @return {?proto.google.protobuf.Struct}
63757
+ */
63758
+ proto.clarifai.api.Runner.prototype.getMetadata = function() {
63759
+ return /** @type{?proto.google.protobuf.Struct} */ (
63760
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
63761
+ };
63762
+
63763
+
63764
+ /**
63765
+ * @param {?proto.google.protobuf.Struct|undefined} value
63766
+ * @return {!proto.clarifai.api.Runner} returns this
63767
+ */
63768
+ proto.clarifai.api.Runner.prototype.setMetadata = function(value) {
63769
+ return jspb.Message.setWrapperField(this, 5, value);
63770
+ };
63771
+
63772
+
63773
+ /**
63774
+ * Clears the message field making it undefined.
63775
+ * @return {!proto.clarifai.api.Runner} returns this
63776
+ */
63777
+ proto.clarifai.api.Runner.prototype.clearMetadata = function() {
63778
+ return this.setMetadata(undefined);
63779
+ };
63780
+
63781
+
63782
+ /**
63783
+ * Returns whether this field is set.
63784
+ * @return {boolean}
63785
+ */
63786
+ proto.clarifai.api.Runner.prototype.hasMetadata = function() {
63787
+ return jspb.Message.getField(this, 5) != null;
63788
+ };
63789
+
63790
+
63791
+ /**
63792
+ * optional string user_id = 6;
63793
+ * @return {string}
63794
+ */
63795
+ proto.clarifai.api.Runner.prototype.getUserId = function() {
63796
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
63797
+ };
63798
+
63799
+
63800
+ /**
63801
+ * @param {string} value
63802
+ * @return {!proto.clarifai.api.Runner} returns this
63803
+ */
63804
+ proto.clarifai.api.Runner.prototype.setUserId = function(value) {
63805
+ return jspb.Message.setProto3StringField(this, 6, value);
63806
+ };
63807
+
63808
+
63809
+ /**
63810
+ * repeated string labels = 7;
63811
+ * @return {!Array<string>}
63812
+ */
63813
+ proto.clarifai.api.Runner.prototype.getLabelsList = function() {
63814
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
63815
+ };
63816
+
63817
+
63818
+ /**
63819
+ * @param {!Array<string>} value
63820
+ * @return {!proto.clarifai.api.Runner} returns this
63821
+ */
63822
+ proto.clarifai.api.Runner.prototype.setLabelsList = function(value) {
63823
+ return jspb.Message.setField(this, 7, value || []);
63824
+ };
63825
+
63826
+
63827
+ /**
63828
+ * @param {string} value
63829
+ * @param {number=} opt_index
63830
+ * @return {!proto.clarifai.api.Runner} returns this
63831
+ */
63832
+ proto.clarifai.api.Runner.prototype.addLabels = function(value, opt_index) {
63833
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
63834
+ };
63835
+
63836
+
63837
+ /**
63838
+ * Clears the list making it empty but non-null.
63839
+ * @return {!proto.clarifai.api.Runner} returns this
63840
+ */
63841
+ proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
63842
+ return this.setLabelsList([]);
63843
+ };
63844
+
63845
+
61238
63846
  /**
61239
63847
  * @enum {number}
61240
63848
  */