clarifai-web-grpc 5.0.0 → 5.1.0

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 (42) hide show
  1. package/CHANGELOG.md +4 -9
  2. package/README.md +15 -18
  3. package/VERSION +1 -1
  4. package/dist/cjs/proto/clarifai/api/resources_pb.js +1644 -34
  5. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +126 -0
  6. package/dist/cjs/proto/clarifai/api/service_pb.js +1034 -48
  7. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -21
  8. package/dist/cjs/proto/clarifai/api/status/status_pb.js +6 -15
  9. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +6 -15
  10. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +6 -15
  11. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +6 -15
  12. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +6 -15
  13. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +6 -15
  14. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +6 -15
  15. package/dist/esm/proto/clarifai/api/resources_pb.js +1644 -34
  16. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +126 -0
  17. package/dist/esm/proto/clarifai/api/service_pb.js +1034 -48
  18. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -21
  19. package/dist/esm/proto/clarifai/api/status/status_pb.js +6 -15
  20. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +6 -15
  21. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +6 -15
  22. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +6 -15
  23. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +6 -15
  24. package/dist/esm/proto/clarifai/auth/types/types_pb.js +6 -15
  25. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +6 -15
  26. package/package.json +2 -2
  27. package/package.json-E +1 -1
  28. package/proto/clarifai/api/resources_pb.d.ts +251 -6
  29. package/proto/clarifai/api/resources_pb.js +2246 -230
  30. package/proto/clarifai/api/service_grpc_web_pb.d.ts +36 -0
  31. package/proto/clarifai/api/service_grpc_web_pb.js +183 -0
  32. package/proto/clarifai/api/service_pb.d.ts +150 -8
  33. package/proto/clarifai/api/service_pb.js +1278 -62
  34. package/proto/clarifai/api/status/status_code_pb.d.ts +2 -6
  35. package/proto/clarifai/api/status/status_code_pb.js +9 -13
  36. package/proto/clarifai/api/status/status_pb.js +7 -7
  37. package/proto/clarifai/api/utils/extensions_pb.js +7 -7
  38. package/proto/clarifai/api/utils/matrix_pb.js +7 -7
  39. package/proto/clarifai/api/utils/test_proto_pb.js +7 -7
  40. package/proto/clarifai/auth/scope/scope_pb.js +7 -7
  41. package/proto/clarifai/auth/types/types_pb.js +7 -7
  42. package/proto/clarifai/auth/util/extension_pb.js +7 -7
@@ -44,6 +44,7 @@ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrapp
44
44
  goog.object.extend(proto, google_protobuf_wrappers_pb);
45
45
  goog.exportSymbol('proto.clarifai.api.APIEventType', null, global);
46
46
  goog.exportSymbol('proto.clarifai.api.APIPostModelOutputsCollectorSource', null, global);
47
+ goog.exportSymbol('proto.clarifai.api.AWSCreds', null, global);
47
48
  goog.exportSymbol('proto.clarifai.api.AddConcepts', null, global);
48
49
  goog.exportSymbol('proto.clarifai.api.AddMetadata', null, global);
49
50
  goog.exportSymbol('proto.clarifai.api.AiAssistParameters', null, global);
@@ -81,6 +82,9 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
81
82
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
82
83
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
83
84
  goog.exportSymbol('proto.clarifai.api.Data', null, global);
85
+ goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
86
+ goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
87
+ goog.exportSymbol('proto.clarifai.api.DataSourceURL', null, global);
84
88
  goog.exportSymbol('proto.clarifai.api.DataType', null, global);
85
89
  goog.exportSymbol('proto.clarifai.api.Dataset', null, global);
86
90
  goog.exportSymbol('proto.clarifai.api.DatasetInput', null, global);
@@ -125,6 +129,9 @@ goog.exportSymbol('proto.clarifai.api.InputIDs', null, global);
125
129
  goog.exportSymbol('proto.clarifai.api.InputInfo', null, global);
126
130
  goog.exportSymbol('proto.clarifai.api.InputsAddJob', null, global);
127
131
  goog.exportSymbol('proto.clarifai.api.InputsAddJobProgress', null, global);
132
+ goog.exportSymbol('proto.clarifai.api.InputsDataSource', null, global);
133
+ goog.exportSymbol('proto.clarifai.api.InputsExtractionJob', null, global);
134
+ goog.exportSymbol('proto.clarifai.api.InputsExtractionJobProgress', null, global);
128
135
  goog.exportSymbol('proto.clarifai.api.InstalledModuleVersion', null, global);
129
136
  goog.exportSymbol('proto.clarifai.api.Key', null, global);
130
137
  goog.exportSymbol('proto.clarifai.api.KeypointEdge', null, global);
@@ -3625,7 +3632,7 @@ if (goog.DEBUG && !COMPILED) {
3625
3632
  * @constructor
3626
3633
  */
3627
3634
  proto.clarifai.api.InputsAddJob = function (opt_data) {
3628
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3635
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputsAddJob.repeatedFields_, null);
3629
3636
  };
3630
3637
  goog.inherits(proto.clarifai.api.InputsAddJob, jspb.Message);
3631
3638
  if (goog.DEBUG && !COMPILED) {
@@ -3698,6 +3705,132 @@ if (goog.DEBUG && !COMPILED) {
3698
3705
  */
3699
3706
  proto.clarifai.api.UploadContentPart.displayName = 'proto.clarifai.api.UploadContentPart';
3700
3707
  }
3708
+ /**
3709
+ * Generated by JsPbCodeGenerator.
3710
+ * @param {Array=} opt_data Optional initial data array, typically from a
3711
+ * server response, or constructed directly in Javascript. The array is used
3712
+ * in place and becomes part of the constructed object. It is not cloned.
3713
+ * If no data is provided, the constructed object will be empty, but still
3714
+ * valid.
3715
+ * @extends {jspb.Message}
3716
+ * @constructor
3717
+ */
3718
+ proto.clarifai.api.InputsExtractionJob = function (opt_data) {
3719
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3720
+ };
3721
+ goog.inherits(proto.clarifai.api.InputsExtractionJob, jspb.Message);
3722
+ if (goog.DEBUG && !COMPILED) {
3723
+ /**
3724
+ * @public
3725
+ * @override
3726
+ */
3727
+ proto.clarifai.api.InputsExtractionJob.displayName = 'proto.clarifai.api.InputsExtractionJob';
3728
+ }
3729
+ /**
3730
+ * Generated by JsPbCodeGenerator.
3731
+ * @param {Array=} opt_data Optional initial data array, typically from a
3732
+ * server response, or constructed directly in Javascript. The array is used
3733
+ * in place and becomes part of the constructed object. It is not cloned.
3734
+ * If no data is provided, the constructed object will be empty, but still
3735
+ * valid.
3736
+ * @extends {jspb.Message}
3737
+ * @constructor
3738
+ */
3739
+ proto.clarifai.api.InputsExtractionJobProgress = function (opt_data) {
3740
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3741
+ };
3742
+ goog.inherits(proto.clarifai.api.InputsExtractionJobProgress, jspb.Message);
3743
+ if (goog.DEBUG && !COMPILED) {
3744
+ /**
3745
+ * @public
3746
+ * @override
3747
+ */
3748
+ proto.clarifai.api.InputsExtractionJobProgress.displayName = 'proto.clarifai.api.InputsExtractionJobProgress';
3749
+ }
3750
+ /**
3751
+ * Generated by JsPbCodeGenerator.
3752
+ * @param {Array=} opt_data Optional initial data array, typically from a
3753
+ * server response, or constructed directly in Javascript. The array is used
3754
+ * in place and becomes part of the constructed object. It is not cloned.
3755
+ * If no data is provided, the constructed object will be empty, but still
3756
+ * valid.
3757
+ * @extends {jspb.Message}
3758
+ * @constructor
3759
+ */
3760
+ proto.clarifai.api.InputsDataSource = function (opt_data) {
3761
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3762
+ };
3763
+ goog.inherits(proto.clarifai.api.InputsDataSource, jspb.Message);
3764
+ if (goog.DEBUG && !COMPILED) {
3765
+ /**
3766
+ * @public
3767
+ * @override
3768
+ */
3769
+ proto.clarifai.api.InputsDataSource.displayName = 'proto.clarifai.api.InputsDataSource';
3770
+ }
3771
+ /**
3772
+ * Generated by JsPbCodeGenerator.
3773
+ * @param {Array=} opt_data Optional initial data array, typically from a
3774
+ * server response, or constructed directly in Javascript. The array is used
3775
+ * in place and becomes part of the constructed object. It is not cloned.
3776
+ * If no data is provided, the constructed object will be empty, but still
3777
+ * valid.
3778
+ * @extends {jspb.Message}
3779
+ * @constructor
3780
+ */
3781
+ proto.clarifai.api.DataSourceURL = function (opt_data) {
3782
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3783
+ };
3784
+ goog.inherits(proto.clarifai.api.DataSourceURL, jspb.Message);
3785
+ if (goog.DEBUG && !COMPILED) {
3786
+ /**
3787
+ * @public
3788
+ * @override
3789
+ */
3790
+ proto.clarifai.api.DataSourceURL.displayName = 'proto.clarifai.api.DataSourceURL';
3791
+ }
3792
+ /**
3793
+ * Generated by JsPbCodeGenerator.
3794
+ * @param {Array=} opt_data Optional initial data array, typically from a
3795
+ * server response, or constructed directly in Javascript. The array is used
3796
+ * in place and becomes part of the constructed object. It is not cloned.
3797
+ * If no data is provided, the constructed object will be empty, but still
3798
+ * valid.
3799
+ * @extends {jspb.Message}
3800
+ * @constructor
3801
+ */
3802
+ proto.clarifai.api.DataSourceCredentials = function (opt_data) {
3803
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.DataSourceCredentials.oneofGroups_);
3804
+ };
3805
+ goog.inherits(proto.clarifai.api.DataSourceCredentials, jspb.Message);
3806
+ if (goog.DEBUG && !COMPILED) {
3807
+ /**
3808
+ * @public
3809
+ * @override
3810
+ */
3811
+ proto.clarifai.api.DataSourceCredentials.displayName = 'proto.clarifai.api.DataSourceCredentials';
3812
+ }
3813
+ /**
3814
+ * Generated by JsPbCodeGenerator.
3815
+ * @param {Array=} opt_data Optional initial data array, typically from a
3816
+ * server response, or constructed directly in Javascript. The array is used
3817
+ * in place and becomes part of the constructed object. It is not cloned.
3818
+ * If no data is provided, the constructed object will be empty, but still
3819
+ * valid.
3820
+ * @extends {jspb.Message}
3821
+ * @constructor
3822
+ */
3823
+ proto.clarifai.api.AWSCreds = function (opt_data) {
3824
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3825
+ };
3826
+ goog.inherits(proto.clarifai.api.AWSCreds, jspb.Message);
3827
+ if (goog.DEBUG && !COMPILED) {
3828
+ /**
3829
+ * @public
3830
+ * @override
3831
+ */
3832
+ proto.clarifai.api.AWSCreds.displayName = 'proto.clarifai.api.AWSCreds';
3833
+ }
3701
3834
  if (jspb.Message.GENERATE_TO_OBJECT) {
3702
3835
  /**
3703
3836
  * Creates an object representation of this proto.
@@ -4236,7 +4369,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4236
4369
  dataTierId: jspb.Message.getFieldWithDefault(msg, 18, ""),
4237
4370
  isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
4238
4371
  starCount: jspb.Message.getFieldWithDefault(msg, 20, 0),
4239
- notes: jspb.Message.getFieldWithDefault(msg, 21, "")
4372
+ notes: jspb.Message.getFieldWithDefault(msg, 21, ""),
4373
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
4240
4374
  };
4241
4375
  if (includeInstance) {
4242
4376
  obj.$jspbMessageInstance = msg;
@@ -4336,6 +4470,11 @@ proto.clarifai.api.App.deserializeBinaryFromReader = function (msg, reader) {
4336
4470
  var value = /** @type {string} */ (reader.readString());
4337
4471
  msg.setNotes(value);
4338
4472
  break;
4473
+ case 22:
4474
+ var value = new proto.clarifai.api.Image;
4475
+ reader.readMessage(value, proto.clarifai.api.Image.deserializeBinaryFromReader);
4476
+ msg.setImage(value);
4477
+ break;
4339
4478
  default:
4340
4479
  reader.skipField();
4341
4480
  break;
@@ -4425,6 +4564,10 @@ proto.clarifai.api.App.serializeBinaryToWriter = function (message, writer) {
4425
4564
  if (f.length > 0) {
4426
4565
  writer.writeString(21, f);
4427
4566
  }
4567
+ f = message.getImage();
4568
+ if (f != null) {
4569
+ writer.writeMessage(22, f, proto.clarifai.api.Image.serializeBinaryToWriter);
4570
+ }
4428
4571
  };
4429
4572
  /**
4430
4573
  * optional string id = 1;
@@ -4706,6 +4849,34 @@ proto.clarifai.api.App.prototype.getNotes = function () {
4706
4849
  proto.clarifai.api.App.prototype.setNotes = function (value) {
4707
4850
  return jspb.Message.setProto3StringField(this, 21, value);
4708
4851
  };
4852
+ /**
4853
+ * optional Image image = 22;
4854
+ * @return {?proto.clarifai.api.Image}
4855
+ */
4856
+ proto.clarifai.api.App.prototype.getImage = function () {
4857
+ return /** @type{?proto.clarifai.api.Image} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 22));
4858
+ };
4859
+ /**
4860
+ * @param {?proto.clarifai.api.Image|undefined} value
4861
+ * @return {!proto.clarifai.api.App} returns this
4862
+ */
4863
+ proto.clarifai.api.App.prototype.setImage = function (value) {
4864
+ return jspb.Message.setWrapperField(this, 22, value);
4865
+ };
4866
+ /**
4867
+ * Clears the message field making it undefined.
4868
+ * @return {!proto.clarifai.api.App} returns this
4869
+ */
4870
+ proto.clarifai.api.App.prototype.clearImage = function () {
4871
+ return this.setImage(undefined);
4872
+ };
4873
+ /**
4874
+ * Returns whether this field is set.
4875
+ * @return {boolean}
4876
+ */
4877
+ proto.clarifai.api.App.prototype.hasImage = function () {
4878
+ return jspb.Message.getField(this, 22) != null;
4879
+ };
4709
4880
  if (jspb.Message.GENERATE_TO_OBJECT) {
4710
4881
  /**
4711
4882
  * Creates an object representation of this proto.
@@ -19891,9 +20062,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
19891
20062
  internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
19892
20063
  modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(), proto.clarifai.api.ModelTypeField.toObject, includeInstance),
19893
20064
  requiresSequentialFrames: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
19894
- evaluable: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
19895
20065
  expectedInputLayersList: jspb.Message.toObjectList(msg.getExpectedInputLayersList(), proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
19896
- expectedOutputLayersList: jspb.Message.toObjectList(msg.getExpectedOutputLayersList(), proto.clarifai.api.ModelLayerInfo.toObject, includeInstance)
20066
+ expectedOutputLayersList: jspb.Message.toObjectList(msg.getExpectedOutputLayersList(), proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
20067
+ evaluationType: jspb.Message.getFieldWithDefault(msg, 18, 0)
19897
20068
  };
19898
20069
  if (includeInstance) {
19899
20070
  obj.$jspbMessageInstance = msg;
@@ -19966,10 +20137,6 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function (msg, reader
19966
20137
  var value = /** @type {boolean} */ (reader.readBool());
19967
20138
  msg.setRequiresSequentialFrames(value);
19968
20139
  break;
19969
- case 13:
19970
- var value = /** @type {boolean} */ (reader.readBool());
19971
- msg.setEvaluable(value);
19972
- break;
19973
20140
  case 16:
19974
20141
  var value = new proto.clarifai.api.ModelLayerInfo;
19975
20142
  reader.readMessage(value, proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader);
@@ -19980,6 +20147,10 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function (msg, reader
19980
20147
  reader.readMessage(value, proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader);
19981
20148
  msg.addExpectedOutputLayers(value);
19982
20149
  break;
20150
+ case 18:
20151
+ var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum());
20152
+ msg.setEvaluationType(value);
20153
+ break;
19983
20154
  default:
19984
20155
  reader.skipField();
19985
20156
  break;
@@ -20045,10 +20216,6 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function (message, writer
20045
20216
  if (f) {
20046
20217
  writer.writeBool(12, f);
20047
20218
  }
20048
- f = message.getEvaluable();
20049
- if (f) {
20050
- writer.writeBool(13, f);
20051
- }
20052
20219
  f = message.getExpectedInputLayersList();
20053
20220
  if (f.length > 0) {
20054
20221
  writer.writeRepeatedMessage(16, f, proto.clarifai.api.ModelLayerInfo.serializeBinaryToWriter);
@@ -20057,6 +20224,10 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function (message, writer
20057
20224
  if (f.length > 0) {
20058
20225
  writer.writeRepeatedMessage(17, f, proto.clarifai.api.ModelLayerInfo.serializeBinaryToWriter);
20059
20226
  }
20227
+ f = message.getEvaluationType();
20228
+ if (f !== 0.0) {
20229
+ writer.writeEnum(18, f);
20230
+ }
20060
20231
  };
20061
20232
  /**
20062
20233
  * optional string id = 1;
@@ -20243,20 +20414,6 @@ proto.clarifai.api.ModelType.prototype.getRequiresSequentialFrames = function ()
20243
20414
  proto.clarifai.api.ModelType.prototype.setRequiresSequentialFrames = function (value) {
20244
20415
  return jspb.Message.setProto3BooleanField(this, 12, value);
20245
20416
  };
20246
- /**
20247
- * optional bool evaluable = 13;
20248
- * @return {boolean}
20249
- */
20250
- proto.clarifai.api.ModelType.prototype.getEvaluable = function () {
20251
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
20252
- };
20253
- /**
20254
- * @param {boolean} value
20255
- * @return {!proto.clarifai.api.ModelType} returns this
20256
- */
20257
- proto.clarifai.api.ModelType.prototype.setEvaluable = function (value) {
20258
- return jspb.Message.setProto3BooleanField(this, 13, value);
20259
- };
20260
20417
  /**
20261
20418
  * repeated ModelLayerInfo expected_input_layers = 16;
20262
20419
  * @return {!Array<!proto.clarifai.api.ModelLayerInfo>}
@@ -20315,6 +20472,20 @@ proto.clarifai.api.ModelType.prototype.addExpectedOutputLayers = function (opt_v
20315
20472
  proto.clarifai.api.ModelType.prototype.clearExpectedOutputLayersList = function () {
20316
20473
  return this.setExpectedOutputLayersList([]);
20317
20474
  };
20475
+ /**
20476
+ * optional EvaluationType evaluation_type = 18;
20477
+ * @return {!proto.clarifai.api.EvaluationType}
20478
+ */
20479
+ proto.clarifai.api.ModelType.prototype.getEvaluationType = function () {
20480
+ return /** @type {!proto.clarifai.api.EvaluationType} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
20481
+ };
20482
+ /**
20483
+ * @param {!proto.clarifai.api.EvaluationType} value
20484
+ * @return {!proto.clarifai.api.ModelType} returns this
20485
+ */
20486
+ proto.clarifai.api.ModelType.prototype.setEvaluationType = function (value) {
20487
+ return jspb.Message.setProto3EnumField(this, 18, value);
20488
+ };
20318
20489
  /**
20319
20490
  * List of repeated fields within this message type.
20320
20491
  * @private {!Array<number>}
@@ -21284,7 +21455,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
21284
21455
  aliasesList: jspb.Message.toObjectList(msg.getAliasesList(), proto.clarifai.api.ModelTypeEnumOptionAlias.toObject, includeInstance),
21285
21456
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
21286
21457
  modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(), proto.clarifai.api.ModelTypeField.toObject, includeInstance),
21287
- internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
21458
+ internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
21459
+ recommended: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
21288
21460
  };
21289
21461
  if (includeInstance) {
21290
21462
  obj.$jspbMessageInstance = msg;
@@ -21338,6 +21510,10 @@ proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader = function (m
21338
21510
  var value = /** @type {boolean} */ (reader.readBool());
21339
21511
  msg.setInternalOnly(value);
21340
21512
  break;
21513
+ case 6:
21514
+ var value = /** @type {boolean} */ (reader.readBool());
21515
+ msg.setRecommended(value);
21516
+ break;
21341
21517
  default:
21342
21518
  reader.skipField();
21343
21519
  break;
@@ -21383,6 +21559,10 @@ proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter = function (messa
21383
21559
  if (f) {
21384
21560
  writer.writeBool(4, f);
21385
21561
  }
21562
+ f = message.getRecommended();
21563
+ if (f) {
21564
+ writer.writeBool(6, f);
21565
+ }
21386
21566
  };
21387
21567
  /**
21388
21568
  * optional string id = 1;
@@ -21484,6 +21664,20 @@ proto.clarifai.api.ModelTypeEnumOption.prototype.getInternalOnly = function () {
21484
21664
  proto.clarifai.api.ModelTypeEnumOption.prototype.setInternalOnly = function (value) {
21485
21665
  return jspb.Message.setProto3BooleanField(this, 4, value);
21486
21666
  };
21667
+ /**
21668
+ * optional bool recommended = 6;
21669
+ * @return {boolean}
21670
+ */
21671
+ proto.clarifai.api.ModelTypeEnumOption.prototype.getRecommended = function () {
21672
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
21673
+ };
21674
+ /**
21675
+ * @param {boolean} value
21676
+ * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this
21677
+ */
21678
+ proto.clarifai.api.ModelTypeEnumOption.prototype.setRecommended = function (value) {
21679
+ return jspb.Message.setProto3BooleanField(this, 6, value);
21680
+ };
21487
21681
  if (jspb.Message.GENERATE_TO_OBJECT) {
21488
21682
  /**
21489
21683
  * Creates an object representation of this proto.
@@ -21786,7 +21980,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
21786
21980
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
21787
21981
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
21788
21982
  license: jspb.Message.getFieldWithDefault(msg, 17, ""),
21789
- datasetVersion: (f = msg.getDatasetVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f)
21983
+ datasetVersion: (f = msg.getDatasetVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f),
21984
+ outputInfo: (f = msg.getOutputInfo()) && proto.clarifai.api.OutputInfo.toObject(includeInstance, f),
21985
+ inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
21986
+ trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
21987
+ importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f)
21790
21988
  };
21791
21989
  if (includeInstance) {
21792
21990
  obj.$jspbMessageInstance = msg;
@@ -21891,6 +22089,26 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function (msg, rea
21891
22089
  reader.readMessage(value, proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader);
21892
22090
  msg.setDatasetVersion(value);
21893
22091
  break;
22092
+ case 19:
22093
+ var value = new proto.clarifai.api.OutputInfo;
22094
+ reader.readMessage(value, proto.clarifai.api.OutputInfo.deserializeBinaryFromReader);
22095
+ msg.setOutputInfo(value);
22096
+ break;
22097
+ case 20:
22098
+ var value = new proto.clarifai.api.InputInfo;
22099
+ reader.readMessage(value, proto.clarifai.api.InputInfo.deserializeBinaryFromReader);
22100
+ msg.setInputInfo(value);
22101
+ break;
22102
+ case 21:
22103
+ var value = new proto.clarifai.api.TrainInfo;
22104
+ reader.readMessage(value, proto.clarifai.api.TrainInfo.deserializeBinaryFromReader);
22105
+ msg.setTrainInfo(value);
22106
+ break;
22107
+ case 22:
22108
+ var value = new proto.clarifai.api.ImportInfo;
22109
+ reader.readMessage(value, proto.clarifai.api.ImportInfo.deserializeBinaryFromReader);
22110
+ msg.setImportInfo(value);
22111
+ break;
21894
22112
  default:
21895
22113
  reader.skipField();
21896
22114
  break;
@@ -21980,6 +22198,22 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function (message, wri
21980
22198
  if (f != null) {
21981
22199
  writer.writeMessage(18, f, proto.clarifai.api.DatasetVersion.serializeBinaryToWriter);
21982
22200
  }
22201
+ f = message.getOutputInfo();
22202
+ if (f != null) {
22203
+ writer.writeMessage(19, f, proto.clarifai.api.OutputInfo.serializeBinaryToWriter);
22204
+ }
22205
+ f = message.getInputInfo();
22206
+ if (f != null) {
22207
+ writer.writeMessage(20, f, proto.clarifai.api.InputInfo.serializeBinaryToWriter);
22208
+ }
22209
+ f = message.getTrainInfo();
22210
+ if (f != null) {
22211
+ writer.writeMessage(21, f, proto.clarifai.api.TrainInfo.serializeBinaryToWriter);
22212
+ }
22213
+ f = message.getImportInfo();
22214
+ if (f != null) {
22215
+ writer.writeMessage(22, f, proto.clarifai.api.ImportInfo.serializeBinaryToWriter);
22216
+ }
21983
22217
  };
21984
22218
  /**
21985
22219
  * optional string id = 1;
@@ -22331,6 +22565,118 @@ proto.clarifai.api.ModelVersion.prototype.clearDatasetVersion = function () {
22331
22565
  proto.clarifai.api.ModelVersion.prototype.hasDatasetVersion = function () {
22332
22566
  return jspb.Message.getField(this, 18) != null;
22333
22567
  };
22568
+ /**
22569
+ * optional OutputInfo output_info = 19;
22570
+ * @return {?proto.clarifai.api.OutputInfo}
22571
+ */
22572
+ proto.clarifai.api.ModelVersion.prototype.getOutputInfo = function () {
22573
+ return /** @type{?proto.clarifai.api.OutputInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OutputInfo, 19));
22574
+ };
22575
+ /**
22576
+ * @param {?proto.clarifai.api.OutputInfo|undefined} value
22577
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22578
+ */
22579
+ proto.clarifai.api.ModelVersion.prototype.setOutputInfo = function (value) {
22580
+ return jspb.Message.setWrapperField(this, 19, value);
22581
+ };
22582
+ /**
22583
+ * Clears the message field making it undefined.
22584
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22585
+ */
22586
+ proto.clarifai.api.ModelVersion.prototype.clearOutputInfo = function () {
22587
+ return this.setOutputInfo(undefined);
22588
+ };
22589
+ /**
22590
+ * Returns whether this field is set.
22591
+ * @return {boolean}
22592
+ */
22593
+ proto.clarifai.api.ModelVersion.prototype.hasOutputInfo = function () {
22594
+ return jspb.Message.getField(this, 19) != null;
22595
+ };
22596
+ /**
22597
+ * optional InputInfo input_info = 20;
22598
+ * @return {?proto.clarifai.api.InputInfo}
22599
+ */
22600
+ proto.clarifai.api.ModelVersion.prototype.getInputInfo = function () {
22601
+ return /** @type{?proto.clarifai.api.InputInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.InputInfo, 20));
22602
+ };
22603
+ /**
22604
+ * @param {?proto.clarifai.api.InputInfo|undefined} value
22605
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22606
+ */
22607
+ proto.clarifai.api.ModelVersion.prototype.setInputInfo = function (value) {
22608
+ return jspb.Message.setWrapperField(this, 20, value);
22609
+ };
22610
+ /**
22611
+ * Clears the message field making it undefined.
22612
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22613
+ */
22614
+ proto.clarifai.api.ModelVersion.prototype.clearInputInfo = function () {
22615
+ return this.setInputInfo(undefined);
22616
+ };
22617
+ /**
22618
+ * Returns whether this field is set.
22619
+ * @return {boolean}
22620
+ */
22621
+ proto.clarifai.api.ModelVersion.prototype.hasInputInfo = function () {
22622
+ return jspb.Message.getField(this, 20) != null;
22623
+ };
22624
+ /**
22625
+ * optional TrainInfo train_info = 21;
22626
+ * @return {?proto.clarifai.api.TrainInfo}
22627
+ */
22628
+ proto.clarifai.api.ModelVersion.prototype.getTrainInfo = function () {
22629
+ return /** @type{?proto.clarifai.api.TrainInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TrainInfo, 21));
22630
+ };
22631
+ /**
22632
+ * @param {?proto.clarifai.api.TrainInfo|undefined} value
22633
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22634
+ */
22635
+ proto.clarifai.api.ModelVersion.prototype.setTrainInfo = function (value) {
22636
+ return jspb.Message.setWrapperField(this, 21, value);
22637
+ };
22638
+ /**
22639
+ * Clears the message field making it undefined.
22640
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22641
+ */
22642
+ proto.clarifai.api.ModelVersion.prototype.clearTrainInfo = function () {
22643
+ return this.setTrainInfo(undefined);
22644
+ };
22645
+ /**
22646
+ * Returns whether this field is set.
22647
+ * @return {boolean}
22648
+ */
22649
+ proto.clarifai.api.ModelVersion.prototype.hasTrainInfo = function () {
22650
+ return jspb.Message.getField(this, 21) != null;
22651
+ };
22652
+ /**
22653
+ * optional ImportInfo import_info = 22;
22654
+ * @return {?proto.clarifai.api.ImportInfo}
22655
+ */
22656
+ proto.clarifai.api.ModelVersion.prototype.getImportInfo = function () {
22657
+ return /** @type{?proto.clarifai.api.ImportInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ImportInfo, 22));
22658
+ };
22659
+ /**
22660
+ * @param {?proto.clarifai.api.ImportInfo|undefined} value
22661
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22662
+ */
22663
+ proto.clarifai.api.ModelVersion.prototype.setImportInfo = function (value) {
22664
+ return jspb.Message.setWrapperField(this, 22, value);
22665
+ };
22666
+ /**
22667
+ * Clears the message field making it undefined.
22668
+ * @return {!proto.clarifai.api.ModelVersion} returns this
22669
+ */
22670
+ proto.clarifai.api.ModelVersion.prototype.clearImportInfo = function () {
22671
+ return this.setImportInfo(undefined);
22672
+ };
22673
+ /**
22674
+ * Returns whether this field is set.
22675
+ * @return {boolean}
22676
+ */
22677
+ proto.clarifai.api.ModelVersion.prototype.hasImportInfo = function () {
22678
+ return jspb.Message.getField(this, 22) != null;
22679
+ };
22334
22680
  if (jspb.Message.GENERATE_TO_OBJECT) {
22335
22681
  /**
22336
22682
  * Creates an object representation of this proto.
@@ -39367,7 +39713,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
39367
39713
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
39368
39714
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
39369
39715
  userId: jspb.Message.getFieldWithDefault(msg, 9, ""),
39370
- appId: jspb.Message.getFieldWithDefault(msg, 10, "")
39716
+ appId: jspb.Message.getFieldWithDefault(msg, 10, ""),
39717
+ moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f)
39371
39718
  };
39372
39719
  if (includeInstance) {
39373
39720
  obj.$jspbMessageInstance = msg;
@@ -39435,6 +39782,11 @@ proto.clarifai.api.Module.deserializeBinaryFromReader = function (msg, reader) {
39435
39782
  var value = /** @type {string} */ (reader.readString());
39436
39783
  msg.setAppId(value);
39437
39784
  break;
39785
+ case 11:
39786
+ var value = new proto.clarifai.api.ModuleVersion;
39787
+ reader.readMessage(value, proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader);
39788
+ msg.setModuleVersion(value);
39789
+ break;
39438
39790
  default:
39439
39791
  reader.skipField();
39440
39792
  break;
@@ -39492,6 +39844,10 @@ proto.clarifai.api.Module.serializeBinaryToWriter = function (message, writer) {
39492
39844
  if (f.length > 0) {
39493
39845
  writer.writeString(10, f);
39494
39846
  }
39847
+ f = message.getModuleVersion();
39848
+ if (f != null) {
39849
+ writer.writeMessage(11, f, proto.clarifai.api.ModuleVersion.serializeBinaryToWriter);
39850
+ }
39495
39851
  };
39496
39852
  /**
39497
39853
  * optional string id = 1;
@@ -39661,6 +40017,34 @@ proto.clarifai.api.Module.prototype.getAppId = function () {
39661
40017
  proto.clarifai.api.Module.prototype.setAppId = function (value) {
39662
40018
  return jspb.Message.setProto3StringField(this, 10, value);
39663
40019
  };
40020
+ /**
40021
+ * optional ModuleVersion module_version = 11;
40022
+ * @return {?proto.clarifai.api.ModuleVersion}
40023
+ */
40024
+ proto.clarifai.api.Module.prototype.getModuleVersion = function () {
40025
+ return /** @type{?proto.clarifai.api.ModuleVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ModuleVersion, 11));
40026
+ };
40027
+ /**
40028
+ * @param {?proto.clarifai.api.ModuleVersion|undefined} value
40029
+ * @return {!proto.clarifai.api.Module} returns this
40030
+ */
40031
+ proto.clarifai.api.Module.prototype.setModuleVersion = function (value) {
40032
+ return jspb.Message.setWrapperField(this, 11, value);
40033
+ };
40034
+ /**
40035
+ * Clears the message field making it undefined.
40036
+ * @return {!proto.clarifai.api.Module} returns this
40037
+ */
40038
+ proto.clarifai.api.Module.prototype.clearModuleVersion = function () {
40039
+ return this.setModuleVersion(undefined);
40040
+ };
40041
+ /**
40042
+ * Returns whether this field is set.
40043
+ * @return {boolean}
40044
+ */
40045
+ proto.clarifai.api.Module.prototype.hasModuleVersion = function () {
40046
+ return jspb.Message.getField(this, 11) != null;
40047
+ };
39664
40048
  if (jspb.Message.GENERATE_TO_OBJECT) {
39665
40049
  /**
39666
40050
  * Creates an object representation of this proto.
@@ -41948,7 +42332,7 @@ proto.clarifai.api.AddConcepts.prototype.clearConceptsList = function () {
41948
42332
  * @private {!Array<number>}
41949
42333
  * @const
41950
42334
  */
41951
- proto.clarifai.api.DeleteConcepts.repeatedFields_ = [1];
42335
+ proto.clarifai.api.DeleteConcepts.repeatedFields_ = [1, 2];
41952
42336
  if (jspb.Message.GENERATE_TO_OBJECT) {
41953
42337
  /**
41954
42338
  * Creates an object representation of this proto.
@@ -41976,7 +42360,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
41976
42360
  */
41977
42361
  proto.clarifai.api.DeleteConcepts.toObject = function (includeInstance, msg) {
41978
42362
  var f, obj = {
41979
- conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.Concept.toObject, includeInstance)
42363
+ conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.Concept.toObject, includeInstance),
42364
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
41980
42365
  };
41981
42366
  if (includeInstance) {
41982
42367
  obj.$jspbMessageInstance = msg;
@@ -42013,6 +42398,10 @@ proto.clarifai.api.DeleteConcepts.deserializeBinaryFromReader = function (msg, r
42013
42398
  reader.readMessage(value, proto.clarifai.api.Concept.deserializeBinaryFromReader);
42014
42399
  msg.addConcepts(value);
42015
42400
  break;
42401
+ case 2:
42402
+ var value = /** @type {string} */ (reader.readString());
42403
+ msg.addUserIds(value);
42404
+ break;
42016
42405
  default:
42017
42406
  reader.skipField();
42018
42407
  break;
@@ -42042,6 +42431,10 @@ proto.clarifai.api.DeleteConcepts.serializeBinaryToWriter = function (message, w
42042
42431
  if (f.length > 0) {
42043
42432
  writer.writeRepeatedMessage(1, f, proto.clarifai.api.Concept.serializeBinaryToWriter);
42044
42433
  }
42434
+ f = message.getUserIdsList();
42435
+ if (f.length > 0) {
42436
+ writer.writeRepeatedString(2, f);
42437
+ }
42045
42438
  };
42046
42439
  /**
42047
42440
  * repeated Concept concepts = 1;
@@ -42072,6 +42465,35 @@ proto.clarifai.api.DeleteConcepts.prototype.addConcepts = function (opt_value, o
42072
42465
  proto.clarifai.api.DeleteConcepts.prototype.clearConceptsList = function () {
42073
42466
  return this.setConceptsList([]);
42074
42467
  };
42468
+ /**
42469
+ * repeated string user_ids = 2;
42470
+ * @return {!Array<string>}
42471
+ */
42472
+ proto.clarifai.api.DeleteConcepts.prototype.getUserIdsList = function () {
42473
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
42474
+ };
42475
+ /**
42476
+ * @param {!Array<string>} value
42477
+ * @return {!proto.clarifai.api.DeleteConcepts} returns this
42478
+ */
42479
+ proto.clarifai.api.DeleteConcepts.prototype.setUserIdsList = function (value) {
42480
+ return jspb.Message.setField(this, 2, value || []);
42481
+ };
42482
+ /**
42483
+ * @param {string} value
42484
+ * @param {number=} opt_index
42485
+ * @return {!proto.clarifai.api.DeleteConcepts} returns this
42486
+ */
42487
+ proto.clarifai.api.DeleteConcepts.prototype.addUserIds = function (value, opt_index) {
42488
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
42489
+ };
42490
+ /**
42491
+ * Clears the list making it empty but non-null.
42492
+ * @return {!proto.clarifai.api.DeleteConcepts} returns this
42493
+ */
42494
+ proto.clarifai.api.DeleteConcepts.prototype.clearUserIdsList = function () {
42495
+ return this.setUserIdsList([]);
42496
+ };
42075
42497
  if (jspb.Message.GENERATE_TO_OBJECT) {
42076
42498
  /**
42077
42499
  * Creates an object representation of this proto.
@@ -42521,6 +42943,12 @@ proto.clarifai.api.DeleteGeo.prototype.serializeBinary = function () {
42521
42943
  proto.clarifai.api.DeleteGeo.serializeBinaryToWriter = function (message, writer) {
42522
42944
  var f = undefined;
42523
42945
  };
42946
+ /**
42947
+ * List of repeated fields within this message type.
42948
+ * @private {!Array<number>}
42949
+ * @const
42950
+ */
42951
+ proto.clarifai.api.InputsAddJob.repeatedFields_ = [10];
42524
42952
  if (jspb.Message.GENERATE_TO_OBJECT) {
42525
42953
  /**
42526
42954
  * Creates an object representation of this proto.
@@ -42554,7 +42982,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
42554
42982
  appPat: jspb.Message.getFieldWithDefault(msg, 4, ""),
42555
42983
  progress: (f = msg.getProgress()) && proto.clarifai.api.InputsAddJobProgress.toObject(includeInstance, f),
42556
42984
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
42557
- modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
42985
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
42986
+ extractionJobsList: jspb.Message.toObjectList(msg.getExtractionJobsList(), proto.clarifai.api.InputsExtractionJob.toObject, includeInstance)
42558
42987
  };
42559
42988
  if (includeInstance) {
42560
42989
  obj.$jspbMessageInstance = msg;
@@ -42617,6 +43046,11 @@ proto.clarifai.api.InputsAddJob.deserializeBinaryFromReader = function (msg, rea
42617
43046
  reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
42618
43047
  msg.setModifiedAt(value);
42619
43048
  break;
43049
+ case 10:
43050
+ var value = new proto.clarifai.api.InputsExtractionJob;
43051
+ reader.readMessage(value, proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader);
43052
+ msg.addExtractionJobs(value);
43053
+ break;
42620
43054
  default:
42621
43055
  reader.skipField();
42622
43056
  break;
@@ -42670,6 +43104,10 @@ proto.clarifai.api.InputsAddJob.serializeBinaryToWriter = function (message, wri
42670
43104
  if (f != null) {
42671
43105
  writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
42672
43106
  }
43107
+ f = message.getExtractionJobsList();
43108
+ if (f.length > 0) {
43109
+ writer.writeRepeatedMessage(10, f, proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter);
43110
+ }
42673
43111
  };
42674
43112
  /**
42675
43113
  * optional string id = 1;
@@ -42811,6 +43249,35 @@ proto.clarifai.api.InputsAddJob.prototype.clearModifiedAt = function () {
42811
43249
  proto.clarifai.api.InputsAddJob.prototype.hasModifiedAt = function () {
42812
43250
  return jspb.Message.getField(this, 9) != null;
42813
43251
  };
43252
+ /**
43253
+ * repeated InputsExtractionJob extraction_jobs = 10;
43254
+ * @return {!Array<!proto.clarifai.api.InputsExtractionJob>}
43255
+ */
43256
+ proto.clarifai.api.InputsAddJob.prototype.getExtractionJobsList = function () {
43257
+ return /** @type{!Array<!proto.clarifai.api.InputsExtractionJob>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.InputsExtractionJob, 10));
43258
+ };
43259
+ /**
43260
+ * @param {!Array<!proto.clarifai.api.InputsExtractionJob>} value
43261
+ * @return {!proto.clarifai.api.InputsAddJob} returns this
43262
+ */
43263
+ proto.clarifai.api.InputsAddJob.prototype.setExtractionJobsList = function (value) {
43264
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
43265
+ };
43266
+ /**
43267
+ * @param {!proto.clarifai.api.InputsExtractionJob=} opt_value
43268
+ * @param {number=} opt_index
43269
+ * @return {!proto.clarifai.api.InputsExtractionJob}
43270
+ */
43271
+ proto.clarifai.api.InputsAddJob.prototype.addExtractionJobs = function (opt_value, opt_index) {
43272
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.clarifai.api.InputsExtractionJob, opt_index);
43273
+ };
43274
+ /**
43275
+ * Clears the list making it empty but non-null.
43276
+ * @return {!proto.clarifai.api.InputsAddJob} returns this
43277
+ */
43278
+ proto.clarifai.api.InputsAddJob.prototype.clearExtractionJobsList = function () {
43279
+ return this.setExtractionJobsList([]);
43280
+ };
42814
43281
  if (jspb.Message.GENERATE_TO_OBJECT) {
42815
43282
  /**
42816
43283
  * Creates an object representation of this proto.
@@ -43486,6 +43953,1145 @@ proto.clarifai.api.UploadContentPart.prototype.getData_asU8 = function () {
43486
43953
  proto.clarifai.api.UploadContentPart.prototype.setData = function (value) {
43487
43954
  return jspb.Message.setProto3BytesField(this, 3, value);
43488
43955
  };
43956
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43957
+ /**
43958
+ * Creates an object representation of this proto.
43959
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43960
+ * Optional fields that are not set will be set to undefined.
43961
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43962
+ * For the list of reserved names please see:
43963
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43964
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43965
+ * JSPB instance for transitional soy proto support:
43966
+ * http://goto/soy-param-migration
43967
+ * @return {!Object}
43968
+ */
43969
+ proto.clarifai.api.InputsExtractionJob.prototype.toObject = function (opt_includeInstance) {
43970
+ return proto.clarifai.api.InputsExtractionJob.toObject(opt_includeInstance, this);
43971
+ };
43972
+ /**
43973
+ * Static version of the {@see toObject} method.
43974
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43975
+ * the JSPB instance for transitional soy proto support:
43976
+ * http://goto/soy-param-migration
43977
+ * @param {!proto.clarifai.api.InputsExtractionJob} msg The msg instance to transform.
43978
+ * @return {!Object}
43979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43980
+ */
43981
+ proto.clarifai.api.InputsExtractionJob.toObject = function (includeInstance, msg) {
43982
+ var f, obj = {
43983
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
43984
+ id: jspb.Message.getFieldWithDefault(msg, 2, ""),
43985
+ url: jspb.Message.getFieldWithDefault(msg, 3, ""),
43986
+ progress: (f = msg.getProgress()) && proto.clarifai.api.InputsExtractionJobProgress.toObject(includeInstance, f),
43987
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
43988
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
43989
+ };
43990
+ if (includeInstance) {
43991
+ obj.$jspbMessageInstance = msg;
43992
+ }
43993
+ return obj;
43994
+ };
43995
+ }
43996
+ /**
43997
+ * Deserializes binary data (in protobuf wire format).
43998
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
43999
+ * @return {!proto.clarifai.api.InputsExtractionJob}
44000
+ */
44001
+ proto.clarifai.api.InputsExtractionJob.deserializeBinary = function (bytes) {
44002
+ var reader = new jspb.BinaryReader(bytes);
44003
+ var msg = new proto.clarifai.api.InputsExtractionJob;
44004
+ return proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader(msg, reader);
44005
+ };
44006
+ /**
44007
+ * Deserializes binary data (in protobuf wire format) from the
44008
+ * given reader into the given message object.
44009
+ * @param {!proto.clarifai.api.InputsExtractionJob} msg The message object to deserialize into.
44010
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44011
+ * @return {!proto.clarifai.api.InputsExtractionJob}
44012
+ */
44013
+ proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader = function (msg, reader) {
44014
+ while (reader.nextField()) {
44015
+ if (reader.isEndGroup()) {
44016
+ break;
44017
+ }
44018
+ var field = reader.getFieldNumber();
44019
+ switch (field) {
44020
+ case 1:
44021
+ var value = new proto_clarifai_api_status_status_pb.Status;
44022
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
44023
+ msg.setStatus(value);
44024
+ break;
44025
+ case 2:
44026
+ var value = /** @type {string} */ (reader.readString());
44027
+ msg.setId(value);
44028
+ break;
44029
+ case 3:
44030
+ var value = /** @type {string} */ (reader.readString());
44031
+ msg.setUrl(value);
44032
+ break;
44033
+ case 4:
44034
+ var value = new proto.clarifai.api.InputsExtractionJobProgress;
44035
+ reader.readMessage(value, proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader);
44036
+ msg.setProgress(value);
44037
+ break;
44038
+ case 5:
44039
+ var value = new google_protobuf_timestamp_pb.Timestamp;
44040
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
44041
+ msg.setCreatedAt(value);
44042
+ break;
44043
+ case 6:
44044
+ var value = new google_protobuf_timestamp_pb.Timestamp;
44045
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
44046
+ msg.setModifiedAt(value);
44047
+ break;
44048
+ default:
44049
+ reader.skipField();
44050
+ break;
44051
+ }
44052
+ }
44053
+ return msg;
44054
+ };
44055
+ /**
44056
+ * Serializes the message to binary data (in protobuf wire format).
44057
+ * @return {!Uint8Array}
44058
+ */
44059
+ proto.clarifai.api.InputsExtractionJob.prototype.serializeBinary = function () {
44060
+ var writer = new jspb.BinaryWriter();
44061
+ proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter(this, writer);
44062
+ return writer.getResultBuffer();
44063
+ };
44064
+ /**
44065
+ * Serializes the given message to binary data (in protobuf wire
44066
+ * format), writing to the given BinaryWriter.
44067
+ * @param {!proto.clarifai.api.InputsExtractionJob} message
44068
+ * @param {!jspb.BinaryWriter} writer
44069
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44070
+ */
44071
+ proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter = function (message, writer) {
44072
+ var f = undefined;
44073
+ f = message.getStatus();
44074
+ if (f != null) {
44075
+ writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
44076
+ }
44077
+ f = message.getId();
44078
+ if (f.length > 0) {
44079
+ writer.writeString(2, f);
44080
+ }
44081
+ f = message.getUrl();
44082
+ if (f.length > 0) {
44083
+ writer.writeString(3, f);
44084
+ }
44085
+ f = message.getProgress();
44086
+ if (f != null) {
44087
+ writer.writeMessage(4, f, proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter);
44088
+ }
44089
+ f = message.getCreatedAt();
44090
+ if (f != null) {
44091
+ writer.writeMessage(5, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
44092
+ }
44093
+ f = message.getModifiedAt();
44094
+ if (f != null) {
44095
+ writer.writeMessage(6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
44096
+ }
44097
+ };
44098
+ /**
44099
+ * optional status.Status status = 1;
44100
+ * @return {?proto.clarifai.api.status.Status}
44101
+ */
44102
+ proto.clarifai.api.InputsExtractionJob.prototype.getStatus = function () {
44103
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
44104
+ };
44105
+ /**
44106
+ * @param {?proto.clarifai.api.status.Status|undefined} value
44107
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44108
+ */
44109
+ proto.clarifai.api.InputsExtractionJob.prototype.setStatus = function (value) {
44110
+ return jspb.Message.setWrapperField(this, 1, value);
44111
+ };
44112
+ /**
44113
+ * Clears the message field making it undefined.
44114
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44115
+ */
44116
+ proto.clarifai.api.InputsExtractionJob.prototype.clearStatus = function () {
44117
+ return this.setStatus(undefined);
44118
+ };
44119
+ /**
44120
+ * Returns whether this field is set.
44121
+ * @return {boolean}
44122
+ */
44123
+ proto.clarifai.api.InputsExtractionJob.prototype.hasStatus = function () {
44124
+ return jspb.Message.getField(this, 1) != null;
44125
+ };
44126
+ /**
44127
+ * optional string id = 2;
44128
+ * @return {string}
44129
+ */
44130
+ proto.clarifai.api.InputsExtractionJob.prototype.getId = function () {
44131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
44132
+ };
44133
+ /**
44134
+ * @param {string} value
44135
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44136
+ */
44137
+ proto.clarifai.api.InputsExtractionJob.prototype.setId = function (value) {
44138
+ return jspb.Message.setProto3StringField(this, 2, value);
44139
+ };
44140
+ /**
44141
+ * optional string url = 3;
44142
+ * @return {string}
44143
+ */
44144
+ proto.clarifai.api.InputsExtractionJob.prototype.getUrl = function () {
44145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
44146
+ };
44147
+ /**
44148
+ * @param {string} value
44149
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44150
+ */
44151
+ proto.clarifai.api.InputsExtractionJob.prototype.setUrl = function (value) {
44152
+ return jspb.Message.setProto3StringField(this, 3, value);
44153
+ };
44154
+ /**
44155
+ * optional InputsExtractionJobProgress progress = 4;
44156
+ * @return {?proto.clarifai.api.InputsExtractionJobProgress}
44157
+ */
44158
+ proto.clarifai.api.InputsExtractionJob.prototype.getProgress = function () {
44159
+ return /** @type{?proto.clarifai.api.InputsExtractionJobProgress} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.InputsExtractionJobProgress, 4));
44160
+ };
44161
+ /**
44162
+ * @param {?proto.clarifai.api.InputsExtractionJobProgress|undefined} value
44163
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44164
+ */
44165
+ proto.clarifai.api.InputsExtractionJob.prototype.setProgress = function (value) {
44166
+ return jspb.Message.setWrapperField(this, 4, value);
44167
+ };
44168
+ /**
44169
+ * Clears the message field making it undefined.
44170
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44171
+ */
44172
+ proto.clarifai.api.InputsExtractionJob.prototype.clearProgress = function () {
44173
+ return this.setProgress(undefined);
44174
+ };
44175
+ /**
44176
+ * Returns whether this field is set.
44177
+ * @return {boolean}
44178
+ */
44179
+ proto.clarifai.api.InputsExtractionJob.prototype.hasProgress = function () {
44180
+ return jspb.Message.getField(this, 4) != null;
44181
+ };
44182
+ /**
44183
+ * optional google.protobuf.Timestamp created_at = 5;
44184
+ * @return {?proto.google.protobuf.Timestamp}
44185
+ */
44186
+ proto.clarifai.api.InputsExtractionJob.prototype.getCreatedAt = function () {
44187
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
44188
+ };
44189
+ /**
44190
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
44191
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44192
+ */
44193
+ proto.clarifai.api.InputsExtractionJob.prototype.setCreatedAt = function (value) {
44194
+ return jspb.Message.setWrapperField(this, 5, value);
44195
+ };
44196
+ /**
44197
+ * Clears the message field making it undefined.
44198
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44199
+ */
44200
+ proto.clarifai.api.InputsExtractionJob.prototype.clearCreatedAt = function () {
44201
+ return this.setCreatedAt(undefined);
44202
+ };
44203
+ /**
44204
+ * Returns whether this field is set.
44205
+ * @return {boolean}
44206
+ */
44207
+ proto.clarifai.api.InputsExtractionJob.prototype.hasCreatedAt = function () {
44208
+ return jspb.Message.getField(this, 5) != null;
44209
+ };
44210
+ /**
44211
+ * optional google.protobuf.Timestamp modified_at = 6;
44212
+ * @return {?proto.google.protobuf.Timestamp}
44213
+ */
44214
+ proto.clarifai.api.InputsExtractionJob.prototype.getModifiedAt = function () {
44215
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
44216
+ };
44217
+ /**
44218
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
44219
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44220
+ */
44221
+ proto.clarifai.api.InputsExtractionJob.prototype.setModifiedAt = function (value) {
44222
+ return jspb.Message.setWrapperField(this, 6, value);
44223
+ };
44224
+ /**
44225
+ * Clears the message field making it undefined.
44226
+ * @return {!proto.clarifai.api.InputsExtractionJob} returns this
44227
+ */
44228
+ proto.clarifai.api.InputsExtractionJob.prototype.clearModifiedAt = function () {
44229
+ return this.setModifiedAt(undefined);
44230
+ };
44231
+ /**
44232
+ * Returns whether this field is set.
44233
+ * @return {boolean}
44234
+ */
44235
+ proto.clarifai.api.InputsExtractionJob.prototype.hasModifiedAt = function () {
44236
+ return jspb.Message.getField(this, 6) != null;
44237
+ };
44238
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44239
+ /**
44240
+ * Creates an object representation of this proto.
44241
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44242
+ * Optional fields that are not set will be set to undefined.
44243
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44244
+ * For the list of reserved names please see:
44245
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44246
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44247
+ * JSPB instance for transitional soy proto support:
44248
+ * http://goto/soy-param-migration
44249
+ * @return {!Object}
44250
+ */
44251
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.toObject = function (opt_includeInstance) {
44252
+ return proto.clarifai.api.InputsExtractionJobProgress.toObject(opt_includeInstance, this);
44253
+ };
44254
+ /**
44255
+ * Static version of the {@see toObject} method.
44256
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44257
+ * the JSPB instance for transitional soy proto support:
44258
+ * http://goto/soy-param-migration
44259
+ * @param {!proto.clarifai.api.InputsExtractionJobProgress} msg The msg instance to transform.
44260
+ * @return {!Object}
44261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44262
+ */
44263
+ proto.clarifai.api.InputsExtractionJobProgress.toObject = function (includeInstance, msg) {
44264
+ var f, obj = {
44265
+ readObjectsCount: jspb.Message.getFieldWithDefault(msg, 1, 0),
44266
+ audioInputsCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
44267
+ imageInputsCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
44268
+ videoInputsCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
44269
+ textInputsCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
44270
+ };
44271
+ if (includeInstance) {
44272
+ obj.$jspbMessageInstance = msg;
44273
+ }
44274
+ return obj;
44275
+ };
44276
+ }
44277
+ /**
44278
+ * Deserializes binary data (in protobuf wire format).
44279
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44280
+ * @return {!proto.clarifai.api.InputsExtractionJobProgress}
44281
+ */
44282
+ proto.clarifai.api.InputsExtractionJobProgress.deserializeBinary = function (bytes) {
44283
+ var reader = new jspb.BinaryReader(bytes);
44284
+ var msg = new proto.clarifai.api.InputsExtractionJobProgress;
44285
+ return proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader(msg, reader);
44286
+ };
44287
+ /**
44288
+ * Deserializes binary data (in protobuf wire format) from the
44289
+ * given reader into the given message object.
44290
+ * @param {!proto.clarifai.api.InputsExtractionJobProgress} msg The message object to deserialize into.
44291
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44292
+ * @return {!proto.clarifai.api.InputsExtractionJobProgress}
44293
+ */
44294
+ proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader = function (msg, reader) {
44295
+ while (reader.nextField()) {
44296
+ if (reader.isEndGroup()) {
44297
+ break;
44298
+ }
44299
+ var field = reader.getFieldNumber();
44300
+ switch (field) {
44301
+ case 1:
44302
+ var value = /** @type {number} */ (reader.readUint64());
44303
+ msg.setReadObjectsCount(value);
44304
+ break;
44305
+ case 2:
44306
+ var value = /** @type {number} */ (reader.readUint64());
44307
+ msg.setAudioInputsCount(value);
44308
+ break;
44309
+ case 3:
44310
+ var value = /** @type {number} */ (reader.readUint64());
44311
+ msg.setImageInputsCount(value);
44312
+ break;
44313
+ case 4:
44314
+ var value = /** @type {number} */ (reader.readUint64());
44315
+ msg.setVideoInputsCount(value);
44316
+ break;
44317
+ case 5:
44318
+ var value = /** @type {number} */ (reader.readUint64());
44319
+ msg.setTextInputsCount(value);
44320
+ break;
44321
+ default:
44322
+ reader.skipField();
44323
+ break;
44324
+ }
44325
+ }
44326
+ return msg;
44327
+ };
44328
+ /**
44329
+ * Serializes the message to binary data (in protobuf wire format).
44330
+ * @return {!Uint8Array}
44331
+ */
44332
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.serializeBinary = function () {
44333
+ var writer = new jspb.BinaryWriter();
44334
+ proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter(this, writer);
44335
+ return writer.getResultBuffer();
44336
+ };
44337
+ /**
44338
+ * Serializes the given message to binary data (in protobuf wire
44339
+ * format), writing to the given BinaryWriter.
44340
+ * @param {!proto.clarifai.api.InputsExtractionJobProgress} message
44341
+ * @param {!jspb.BinaryWriter} writer
44342
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44343
+ */
44344
+ proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter = function (message, writer) {
44345
+ var f = undefined;
44346
+ f = message.getReadObjectsCount();
44347
+ if (f !== 0) {
44348
+ writer.writeUint64(1, f);
44349
+ }
44350
+ f = message.getAudioInputsCount();
44351
+ if (f !== 0) {
44352
+ writer.writeUint64(2, f);
44353
+ }
44354
+ f = message.getImageInputsCount();
44355
+ if (f !== 0) {
44356
+ writer.writeUint64(3, f);
44357
+ }
44358
+ f = message.getVideoInputsCount();
44359
+ if (f !== 0) {
44360
+ writer.writeUint64(4, f);
44361
+ }
44362
+ f = message.getTextInputsCount();
44363
+ if (f !== 0) {
44364
+ writer.writeUint64(5, f);
44365
+ }
44366
+ };
44367
+ /**
44368
+ * optional uint64 read_objects_count = 1;
44369
+ * @return {number}
44370
+ */
44371
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.getReadObjectsCount = function () {
44372
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
44373
+ };
44374
+ /**
44375
+ * @param {number} value
44376
+ * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
44377
+ */
44378
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.setReadObjectsCount = function (value) {
44379
+ return jspb.Message.setProto3IntField(this, 1, value);
44380
+ };
44381
+ /**
44382
+ * optional uint64 audio_inputs_count = 2;
44383
+ * @return {number}
44384
+ */
44385
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.getAudioInputsCount = function () {
44386
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
44387
+ };
44388
+ /**
44389
+ * @param {number} value
44390
+ * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
44391
+ */
44392
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.setAudioInputsCount = function (value) {
44393
+ return jspb.Message.setProto3IntField(this, 2, value);
44394
+ };
44395
+ /**
44396
+ * optional uint64 image_inputs_count = 3;
44397
+ * @return {number}
44398
+ */
44399
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.getImageInputsCount = function () {
44400
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
44401
+ };
44402
+ /**
44403
+ * @param {number} value
44404
+ * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
44405
+ */
44406
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.setImageInputsCount = function (value) {
44407
+ return jspb.Message.setProto3IntField(this, 3, value);
44408
+ };
44409
+ /**
44410
+ * optional uint64 video_inputs_count = 4;
44411
+ * @return {number}
44412
+ */
44413
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.getVideoInputsCount = function () {
44414
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
44415
+ };
44416
+ /**
44417
+ * @param {number} value
44418
+ * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
44419
+ */
44420
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.setVideoInputsCount = function (value) {
44421
+ return jspb.Message.setProto3IntField(this, 4, value);
44422
+ };
44423
+ /**
44424
+ * optional uint64 text_inputs_count = 5;
44425
+ * @return {number}
44426
+ */
44427
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.getTextInputsCount = function () {
44428
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
44429
+ };
44430
+ /**
44431
+ * @param {number} value
44432
+ * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
44433
+ */
44434
+ proto.clarifai.api.InputsExtractionJobProgress.prototype.setTextInputsCount = function (value) {
44435
+ return jspb.Message.setProto3IntField(this, 5, value);
44436
+ };
44437
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44438
+ /**
44439
+ * Creates an object representation of this proto.
44440
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44441
+ * Optional fields that are not set will be set to undefined.
44442
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44443
+ * For the list of reserved names please see:
44444
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44445
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44446
+ * JSPB instance for transitional soy proto support:
44447
+ * http://goto/soy-param-migration
44448
+ * @return {!Object}
44449
+ */
44450
+ proto.clarifai.api.InputsDataSource.prototype.toObject = function (opt_includeInstance) {
44451
+ return proto.clarifai.api.InputsDataSource.toObject(opt_includeInstance, this);
44452
+ };
44453
+ /**
44454
+ * Static version of the {@see toObject} method.
44455
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44456
+ * the JSPB instance for transitional soy proto support:
44457
+ * http://goto/soy-param-migration
44458
+ * @param {!proto.clarifai.api.InputsDataSource} msg The msg instance to transform.
44459
+ * @return {!Object}
44460
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44461
+ */
44462
+ proto.clarifai.api.InputsDataSource.toObject = function (includeInstance, msg) {
44463
+ var f, obj = {
44464
+ inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""),
44465
+ url: (f = msg.getUrl()) && proto.clarifai.api.DataSourceURL.toObject(includeInstance, f)
44466
+ };
44467
+ if (includeInstance) {
44468
+ obj.$jspbMessageInstance = msg;
44469
+ }
44470
+ return obj;
44471
+ };
44472
+ }
44473
+ /**
44474
+ * Deserializes binary data (in protobuf wire format).
44475
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44476
+ * @return {!proto.clarifai.api.InputsDataSource}
44477
+ */
44478
+ proto.clarifai.api.InputsDataSource.deserializeBinary = function (bytes) {
44479
+ var reader = new jspb.BinaryReader(bytes);
44480
+ var msg = new proto.clarifai.api.InputsDataSource;
44481
+ return proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader(msg, reader);
44482
+ };
44483
+ /**
44484
+ * Deserializes binary data (in protobuf wire format) from the
44485
+ * given reader into the given message object.
44486
+ * @param {!proto.clarifai.api.InputsDataSource} msg The message object to deserialize into.
44487
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44488
+ * @return {!proto.clarifai.api.InputsDataSource}
44489
+ */
44490
+ proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader = function (msg, reader) {
44491
+ while (reader.nextField()) {
44492
+ if (reader.isEndGroup()) {
44493
+ break;
44494
+ }
44495
+ var field = reader.getFieldNumber();
44496
+ switch (field) {
44497
+ case 1:
44498
+ var value = /** @type {string} */ (reader.readString());
44499
+ msg.setInputsAddJobId(value);
44500
+ break;
44501
+ case 2:
44502
+ var value = new proto.clarifai.api.DataSourceURL;
44503
+ reader.readMessage(value, proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader);
44504
+ msg.setUrl(value);
44505
+ break;
44506
+ default:
44507
+ reader.skipField();
44508
+ break;
44509
+ }
44510
+ }
44511
+ return msg;
44512
+ };
44513
+ /**
44514
+ * Serializes the message to binary data (in protobuf wire format).
44515
+ * @return {!Uint8Array}
44516
+ */
44517
+ proto.clarifai.api.InputsDataSource.prototype.serializeBinary = function () {
44518
+ var writer = new jspb.BinaryWriter();
44519
+ proto.clarifai.api.InputsDataSource.serializeBinaryToWriter(this, writer);
44520
+ return writer.getResultBuffer();
44521
+ };
44522
+ /**
44523
+ * Serializes the given message to binary data (in protobuf wire
44524
+ * format), writing to the given BinaryWriter.
44525
+ * @param {!proto.clarifai.api.InputsDataSource} message
44526
+ * @param {!jspb.BinaryWriter} writer
44527
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44528
+ */
44529
+ proto.clarifai.api.InputsDataSource.serializeBinaryToWriter = function (message, writer) {
44530
+ var f = undefined;
44531
+ f = message.getInputsAddJobId();
44532
+ if (f.length > 0) {
44533
+ writer.writeString(1, f);
44534
+ }
44535
+ f = message.getUrl();
44536
+ if (f != null) {
44537
+ writer.writeMessage(2, f, proto.clarifai.api.DataSourceURL.serializeBinaryToWriter);
44538
+ }
44539
+ };
44540
+ /**
44541
+ * optional string inputs_add_job_id = 1;
44542
+ * @return {string}
44543
+ */
44544
+ proto.clarifai.api.InputsDataSource.prototype.getInputsAddJobId = function () {
44545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
44546
+ };
44547
+ /**
44548
+ * @param {string} value
44549
+ * @return {!proto.clarifai.api.InputsDataSource} returns this
44550
+ */
44551
+ proto.clarifai.api.InputsDataSource.prototype.setInputsAddJobId = function (value) {
44552
+ return jspb.Message.setProto3StringField(this, 1, value);
44553
+ };
44554
+ /**
44555
+ * optional DataSourceURL url = 2;
44556
+ * @return {?proto.clarifai.api.DataSourceURL}
44557
+ */
44558
+ proto.clarifai.api.InputsDataSource.prototype.getUrl = function () {
44559
+ return /** @type{?proto.clarifai.api.DataSourceURL} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DataSourceURL, 2));
44560
+ };
44561
+ /**
44562
+ * @param {?proto.clarifai.api.DataSourceURL|undefined} value
44563
+ * @return {!proto.clarifai.api.InputsDataSource} returns this
44564
+ */
44565
+ proto.clarifai.api.InputsDataSource.prototype.setUrl = function (value) {
44566
+ return jspb.Message.setWrapperField(this, 2, value);
44567
+ };
44568
+ /**
44569
+ * Clears the message field making it undefined.
44570
+ * @return {!proto.clarifai.api.InputsDataSource} returns this
44571
+ */
44572
+ proto.clarifai.api.InputsDataSource.prototype.clearUrl = function () {
44573
+ return this.setUrl(undefined);
44574
+ };
44575
+ /**
44576
+ * Returns whether this field is set.
44577
+ * @return {boolean}
44578
+ */
44579
+ proto.clarifai.api.InputsDataSource.prototype.hasUrl = function () {
44580
+ return jspb.Message.getField(this, 2) != null;
44581
+ };
44582
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44583
+ /**
44584
+ * Creates an object representation of this proto.
44585
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44586
+ * Optional fields that are not set will be set to undefined.
44587
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44588
+ * For the list of reserved names please see:
44589
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44590
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44591
+ * JSPB instance for transitional soy proto support:
44592
+ * http://goto/soy-param-migration
44593
+ * @return {!Object}
44594
+ */
44595
+ proto.clarifai.api.DataSourceURL.prototype.toObject = function (opt_includeInstance) {
44596
+ return proto.clarifai.api.DataSourceURL.toObject(opt_includeInstance, this);
44597
+ };
44598
+ /**
44599
+ * Static version of the {@see toObject} method.
44600
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44601
+ * the JSPB instance for transitional soy proto support:
44602
+ * http://goto/soy-param-migration
44603
+ * @param {!proto.clarifai.api.DataSourceURL} msg The msg instance to transform.
44604
+ * @return {!Object}
44605
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44606
+ */
44607
+ proto.clarifai.api.DataSourceURL.toObject = function (includeInstance, msg) {
44608
+ var f, obj = {
44609
+ url: jspb.Message.getFieldWithDefault(msg, 1, ""),
44610
+ credentials: (f = msg.getCredentials()) && proto.clarifai.api.DataSourceCredentials.toObject(includeInstance, f)
44611
+ };
44612
+ if (includeInstance) {
44613
+ obj.$jspbMessageInstance = msg;
44614
+ }
44615
+ return obj;
44616
+ };
44617
+ }
44618
+ /**
44619
+ * Deserializes binary data (in protobuf wire format).
44620
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44621
+ * @return {!proto.clarifai.api.DataSourceURL}
44622
+ */
44623
+ proto.clarifai.api.DataSourceURL.deserializeBinary = function (bytes) {
44624
+ var reader = new jspb.BinaryReader(bytes);
44625
+ var msg = new proto.clarifai.api.DataSourceURL;
44626
+ return proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader(msg, reader);
44627
+ };
44628
+ /**
44629
+ * Deserializes binary data (in protobuf wire format) from the
44630
+ * given reader into the given message object.
44631
+ * @param {!proto.clarifai.api.DataSourceURL} msg The message object to deserialize into.
44632
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44633
+ * @return {!proto.clarifai.api.DataSourceURL}
44634
+ */
44635
+ proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader = function (msg, reader) {
44636
+ while (reader.nextField()) {
44637
+ if (reader.isEndGroup()) {
44638
+ break;
44639
+ }
44640
+ var field = reader.getFieldNumber();
44641
+ switch (field) {
44642
+ case 1:
44643
+ var value = /** @type {string} */ (reader.readString());
44644
+ msg.setUrl(value);
44645
+ break;
44646
+ case 2:
44647
+ var value = new proto.clarifai.api.DataSourceCredentials;
44648
+ reader.readMessage(value, proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader);
44649
+ msg.setCredentials(value);
44650
+ break;
44651
+ default:
44652
+ reader.skipField();
44653
+ break;
44654
+ }
44655
+ }
44656
+ return msg;
44657
+ };
44658
+ /**
44659
+ * Serializes the message to binary data (in protobuf wire format).
44660
+ * @return {!Uint8Array}
44661
+ */
44662
+ proto.clarifai.api.DataSourceURL.prototype.serializeBinary = function () {
44663
+ var writer = new jspb.BinaryWriter();
44664
+ proto.clarifai.api.DataSourceURL.serializeBinaryToWriter(this, writer);
44665
+ return writer.getResultBuffer();
44666
+ };
44667
+ /**
44668
+ * Serializes the given message to binary data (in protobuf wire
44669
+ * format), writing to the given BinaryWriter.
44670
+ * @param {!proto.clarifai.api.DataSourceURL} message
44671
+ * @param {!jspb.BinaryWriter} writer
44672
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44673
+ */
44674
+ proto.clarifai.api.DataSourceURL.serializeBinaryToWriter = function (message, writer) {
44675
+ var f = undefined;
44676
+ f = message.getUrl();
44677
+ if (f.length > 0) {
44678
+ writer.writeString(1, f);
44679
+ }
44680
+ f = message.getCredentials();
44681
+ if (f != null) {
44682
+ writer.writeMessage(2, f, proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter);
44683
+ }
44684
+ };
44685
+ /**
44686
+ * optional string url = 1;
44687
+ * @return {string}
44688
+ */
44689
+ proto.clarifai.api.DataSourceURL.prototype.getUrl = function () {
44690
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
44691
+ };
44692
+ /**
44693
+ * @param {string} value
44694
+ * @return {!proto.clarifai.api.DataSourceURL} returns this
44695
+ */
44696
+ proto.clarifai.api.DataSourceURL.prototype.setUrl = function (value) {
44697
+ return jspb.Message.setProto3StringField(this, 1, value);
44698
+ };
44699
+ /**
44700
+ * optional DataSourceCredentials credentials = 2;
44701
+ * @return {?proto.clarifai.api.DataSourceCredentials}
44702
+ */
44703
+ proto.clarifai.api.DataSourceURL.prototype.getCredentials = function () {
44704
+ return /** @type{?proto.clarifai.api.DataSourceCredentials} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DataSourceCredentials, 2));
44705
+ };
44706
+ /**
44707
+ * @param {?proto.clarifai.api.DataSourceCredentials|undefined} value
44708
+ * @return {!proto.clarifai.api.DataSourceURL} returns this
44709
+ */
44710
+ proto.clarifai.api.DataSourceURL.prototype.setCredentials = function (value) {
44711
+ return jspb.Message.setWrapperField(this, 2, value);
44712
+ };
44713
+ /**
44714
+ * Clears the message field making it undefined.
44715
+ * @return {!proto.clarifai.api.DataSourceURL} returns this
44716
+ */
44717
+ proto.clarifai.api.DataSourceURL.prototype.clearCredentials = function () {
44718
+ return this.setCredentials(undefined);
44719
+ };
44720
+ /**
44721
+ * Returns whether this field is set.
44722
+ * @return {boolean}
44723
+ */
44724
+ proto.clarifai.api.DataSourceURL.prototype.hasCredentials = function () {
44725
+ return jspb.Message.getField(this, 2) != null;
44726
+ };
44727
+ /**
44728
+ * Oneof group definitions for this message. Each group defines the field
44729
+ * numbers belonging to that group. When of these fields' value is set, all
44730
+ * other fields in the group are cleared. During deserialization, if multiple
44731
+ * fields are encountered for a group, only the last value seen will be kept.
44732
+ * @private {!Array<!Array<number>>}
44733
+ * @const
44734
+ */
44735
+ proto.clarifai.api.DataSourceCredentials.oneofGroups_ = [[1, 2, 3]];
44736
+ /**
44737
+ * @enum {number}
44738
+ */
44739
+ proto.clarifai.api.DataSourceCredentials.CredentialsCase = {
44740
+ CREDENTIALS_NOT_SET: 0,
44741
+ S3_CREDS: 1,
44742
+ GCP_CREDS: 2,
44743
+ AZURE_BLOB_CREDS: 3
44744
+ };
44745
+ /**
44746
+ * @return {proto.clarifai.api.DataSourceCredentials.CredentialsCase}
44747
+ */
44748
+ proto.clarifai.api.DataSourceCredentials.prototype.getCredentialsCase = function () {
44749
+ return /** @type {proto.clarifai.api.DataSourceCredentials.CredentialsCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0]));
44750
+ };
44751
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44752
+ /**
44753
+ * Creates an object representation of this proto.
44754
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44755
+ * Optional fields that are not set will be set to undefined.
44756
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44757
+ * For the list of reserved names please see:
44758
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44759
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44760
+ * JSPB instance for transitional soy proto support:
44761
+ * http://goto/soy-param-migration
44762
+ * @return {!Object}
44763
+ */
44764
+ proto.clarifai.api.DataSourceCredentials.prototype.toObject = function (opt_includeInstance) {
44765
+ return proto.clarifai.api.DataSourceCredentials.toObject(opt_includeInstance, this);
44766
+ };
44767
+ /**
44768
+ * Static version of the {@see toObject} method.
44769
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44770
+ * the JSPB instance for transitional soy proto support:
44771
+ * http://goto/soy-param-migration
44772
+ * @param {!proto.clarifai.api.DataSourceCredentials} msg The msg instance to transform.
44773
+ * @return {!Object}
44774
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44775
+ */
44776
+ proto.clarifai.api.DataSourceCredentials.toObject = function (includeInstance, msg) {
44777
+ var f, obj = {
44778
+ s3Creds: (f = msg.getS3Creds()) && proto.clarifai.api.AWSCreds.toObject(includeInstance, f),
44779
+ gcpCreds: msg.getGcpCreds_asB64(),
44780
+ azureBlobCreds: jspb.Message.getFieldWithDefault(msg, 3, "")
44781
+ };
44782
+ if (includeInstance) {
44783
+ obj.$jspbMessageInstance = msg;
44784
+ }
44785
+ return obj;
44786
+ };
44787
+ }
44788
+ /**
44789
+ * Deserializes binary data (in protobuf wire format).
44790
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
44791
+ * @return {!proto.clarifai.api.DataSourceCredentials}
44792
+ */
44793
+ proto.clarifai.api.DataSourceCredentials.deserializeBinary = function (bytes) {
44794
+ var reader = new jspb.BinaryReader(bytes);
44795
+ var msg = new proto.clarifai.api.DataSourceCredentials;
44796
+ return proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader(msg, reader);
44797
+ };
44798
+ /**
44799
+ * Deserializes binary data (in protobuf wire format) from the
44800
+ * given reader into the given message object.
44801
+ * @param {!proto.clarifai.api.DataSourceCredentials} msg The message object to deserialize into.
44802
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
44803
+ * @return {!proto.clarifai.api.DataSourceCredentials}
44804
+ */
44805
+ proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader = function (msg, reader) {
44806
+ while (reader.nextField()) {
44807
+ if (reader.isEndGroup()) {
44808
+ break;
44809
+ }
44810
+ var field = reader.getFieldNumber();
44811
+ switch (field) {
44812
+ case 1:
44813
+ var value = new proto.clarifai.api.AWSCreds;
44814
+ reader.readMessage(value, proto.clarifai.api.AWSCreds.deserializeBinaryFromReader);
44815
+ msg.setS3Creds(value);
44816
+ break;
44817
+ case 2:
44818
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
44819
+ msg.setGcpCreds(value);
44820
+ break;
44821
+ case 3:
44822
+ var value = /** @type {string} */ (reader.readString());
44823
+ msg.setAzureBlobCreds(value);
44824
+ break;
44825
+ default:
44826
+ reader.skipField();
44827
+ break;
44828
+ }
44829
+ }
44830
+ return msg;
44831
+ };
44832
+ /**
44833
+ * Serializes the message to binary data (in protobuf wire format).
44834
+ * @return {!Uint8Array}
44835
+ */
44836
+ proto.clarifai.api.DataSourceCredentials.prototype.serializeBinary = function () {
44837
+ var writer = new jspb.BinaryWriter();
44838
+ proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter(this, writer);
44839
+ return writer.getResultBuffer();
44840
+ };
44841
+ /**
44842
+ * Serializes the given message to binary data (in protobuf wire
44843
+ * format), writing to the given BinaryWriter.
44844
+ * @param {!proto.clarifai.api.DataSourceCredentials} message
44845
+ * @param {!jspb.BinaryWriter} writer
44846
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44847
+ */
44848
+ proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter = function (message, writer) {
44849
+ var f = undefined;
44850
+ f = message.getS3Creds();
44851
+ if (f != null) {
44852
+ writer.writeMessage(1, f, proto.clarifai.api.AWSCreds.serializeBinaryToWriter);
44853
+ }
44854
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
44855
+ if (f != null) {
44856
+ writer.writeBytes(2, f);
44857
+ }
44858
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
44859
+ if (f != null) {
44860
+ writer.writeString(3, f);
44861
+ }
44862
+ };
44863
+ /**
44864
+ * optional AWSCreds s3_creds = 1;
44865
+ * @return {?proto.clarifai.api.AWSCreds}
44866
+ */
44867
+ proto.clarifai.api.DataSourceCredentials.prototype.getS3Creds = function () {
44868
+ return /** @type{?proto.clarifai.api.AWSCreds} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AWSCreds, 1));
44869
+ };
44870
+ /**
44871
+ * @param {?proto.clarifai.api.AWSCreds|undefined} value
44872
+ * @return {!proto.clarifai.api.DataSourceCredentials} returns this
44873
+ */
44874
+ proto.clarifai.api.DataSourceCredentials.prototype.setS3Creds = function (value) {
44875
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value);
44876
+ };
44877
+ /**
44878
+ * Clears the message field making it undefined.
44879
+ * @return {!proto.clarifai.api.DataSourceCredentials} returns this
44880
+ */
44881
+ proto.clarifai.api.DataSourceCredentials.prototype.clearS3Creds = function () {
44882
+ return this.setS3Creds(undefined);
44883
+ };
44884
+ /**
44885
+ * Returns whether this field is set.
44886
+ * @return {boolean}
44887
+ */
44888
+ proto.clarifai.api.DataSourceCredentials.prototype.hasS3Creds = function () {
44889
+ return jspb.Message.getField(this, 1) != null;
44890
+ };
44891
+ /**
44892
+ * optional bytes gcp_creds = 2;
44893
+ * @return {string}
44894
+ */
44895
+ proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds = function () {
44896
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
44897
+ };
44898
+ /**
44899
+ * optional bytes gcp_creds = 2;
44900
+ * This is a type-conversion wrapper around `getGcpCreds()`
44901
+ * @return {string}
44902
+ */
44903
+ proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds_asB64 = function () {
44904
+ return /** @type {string} */ (jspb.Message.bytesAsB64(this.getGcpCreds()));
44905
+ };
44906
+ /**
44907
+ * optional bytes gcp_creds = 2;
44908
+ * Note that Uint8Array is not supported on all browsers.
44909
+ * @see http://caniuse.com/Uint8Array
44910
+ * This is a type-conversion wrapper around `getGcpCreds()`
44911
+ * @return {!Uint8Array}
44912
+ */
44913
+ proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds_asU8 = function () {
44914
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getGcpCreds()));
44915
+ };
44916
+ /**
44917
+ * @param {!(string|Uint8Array)} value
44918
+ * @return {!proto.clarifai.api.DataSourceCredentials} returns this
44919
+ */
44920
+ proto.clarifai.api.DataSourceCredentials.prototype.setGcpCreds = function (value) {
44921
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value);
44922
+ };
44923
+ /**
44924
+ * Clears the field making it undefined.
44925
+ * @return {!proto.clarifai.api.DataSourceCredentials} returns this
44926
+ */
44927
+ proto.clarifai.api.DataSourceCredentials.prototype.clearGcpCreds = function () {
44928
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], undefined);
44929
+ };
44930
+ /**
44931
+ * Returns whether this field is set.
44932
+ * @return {boolean}
44933
+ */
44934
+ proto.clarifai.api.DataSourceCredentials.prototype.hasGcpCreds = function () {
44935
+ return jspb.Message.getField(this, 2) != null;
44936
+ };
44937
+ /**
44938
+ * optional string azure_blob_creds = 3;
44939
+ * @return {string}
44940
+ */
44941
+ proto.clarifai.api.DataSourceCredentials.prototype.getAzureBlobCreds = function () {
44942
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
44943
+ };
44944
+ /**
44945
+ * @param {string} value
44946
+ * @return {!proto.clarifai.api.DataSourceCredentials} returns this
44947
+ */
44948
+ proto.clarifai.api.DataSourceCredentials.prototype.setAzureBlobCreds = function (value) {
44949
+ return jspb.Message.setOneofField(this, 3, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value);
44950
+ };
44951
+ /**
44952
+ * Clears the field making it undefined.
44953
+ * @return {!proto.clarifai.api.DataSourceCredentials} returns this
44954
+ */
44955
+ proto.clarifai.api.DataSourceCredentials.prototype.clearAzureBlobCreds = function () {
44956
+ return jspb.Message.setOneofField(this, 3, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], undefined);
44957
+ };
44958
+ /**
44959
+ * Returns whether this field is set.
44960
+ * @return {boolean}
44961
+ */
44962
+ proto.clarifai.api.DataSourceCredentials.prototype.hasAzureBlobCreds = function () {
44963
+ return jspb.Message.getField(this, 3) != null;
44964
+ };
44965
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44966
+ /**
44967
+ * Creates an object representation of this proto.
44968
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
44969
+ * Optional fields that are not set will be set to undefined.
44970
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
44971
+ * For the list of reserved names please see:
44972
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
44973
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
44974
+ * JSPB instance for transitional soy proto support:
44975
+ * http://goto/soy-param-migration
44976
+ * @return {!Object}
44977
+ */
44978
+ proto.clarifai.api.AWSCreds.prototype.toObject = function (opt_includeInstance) {
44979
+ return proto.clarifai.api.AWSCreds.toObject(opt_includeInstance, this);
44980
+ };
44981
+ /**
44982
+ * Static version of the {@see toObject} method.
44983
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
44984
+ * the JSPB instance for transitional soy proto support:
44985
+ * http://goto/soy-param-migration
44986
+ * @param {!proto.clarifai.api.AWSCreds} msg The msg instance to transform.
44987
+ * @return {!Object}
44988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
44989
+ */
44990
+ proto.clarifai.api.AWSCreds.toObject = function (includeInstance, msg) {
44991
+ var f, obj = {
44992
+ creds: jspb.Message.getFieldWithDefault(msg, 1, ""),
44993
+ region: jspb.Message.getFieldWithDefault(msg, 2, "")
44994
+ };
44995
+ if (includeInstance) {
44996
+ obj.$jspbMessageInstance = msg;
44997
+ }
44998
+ return obj;
44999
+ };
45000
+ }
45001
+ /**
45002
+ * Deserializes binary data (in protobuf wire format).
45003
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
45004
+ * @return {!proto.clarifai.api.AWSCreds}
45005
+ */
45006
+ proto.clarifai.api.AWSCreds.deserializeBinary = function (bytes) {
45007
+ var reader = new jspb.BinaryReader(bytes);
45008
+ var msg = new proto.clarifai.api.AWSCreds;
45009
+ return proto.clarifai.api.AWSCreds.deserializeBinaryFromReader(msg, reader);
45010
+ };
45011
+ /**
45012
+ * Deserializes binary data (in protobuf wire format) from the
45013
+ * given reader into the given message object.
45014
+ * @param {!proto.clarifai.api.AWSCreds} msg The message object to deserialize into.
45015
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
45016
+ * @return {!proto.clarifai.api.AWSCreds}
45017
+ */
45018
+ proto.clarifai.api.AWSCreds.deserializeBinaryFromReader = function (msg, reader) {
45019
+ while (reader.nextField()) {
45020
+ if (reader.isEndGroup()) {
45021
+ break;
45022
+ }
45023
+ var field = reader.getFieldNumber();
45024
+ switch (field) {
45025
+ case 1:
45026
+ var value = /** @type {string} */ (reader.readString());
45027
+ msg.setCreds(value);
45028
+ break;
45029
+ case 2:
45030
+ var value = /** @type {string} */ (reader.readString());
45031
+ msg.setRegion(value);
45032
+ break;
45033
+ default:
45034
+ reader.skipField();
45035
+ break;
45036
+ }
45037
+ }
45038
+ return msg;
45039
+ };
45040
+ /**
45041
+ * Serializes the message to binary data (in protobuf wire format).
45042
+ * @return {!Uint8Array}
45043
+ */
45044
+ proto.clarifai.api.AWSCreds.prototype.serializeBinary = function () {
45045
+ var writer = new jspb.BinaryWriter();
45046
+ proto.clarifai.api.AWSCreds.serializeBinaryToWriter(this, writer);
45047
+ return writer.getResultBuffer();
45048
+ };
45049
+ /**
45050
+ * Serializes the given message to binary data (in protobuf wire
45051
+ * format), writing to the given BinaryWriter.
45052
+ * @param {!proto.clarifai.api.AWSCreds} message
45053
+ * @param {!jspb.BinaryWriter} writer
45054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
45055
+ */
45056
+ proto.clarifai.api.AWSCreds.serializeBinaryToWriter = function (message, writer) {
45057
+ var f = undefined;
45058
+ f = message.getCreds();
45059
+ if (f.length > 0) {
45060
+ writer.writeString(1, f);
45061
+ }
45062
+ f = message.getRegion();
45063
+ if (f.length > 0) {
45064
+ writer.writeString(2, f);
45065
+ }
45066
+ };
45067
+ /**
45068
+ * optional string creds = 1;
45069
+ * @return {string}
45070
+ */
45071
+ proto.clarifai.api.AWSCreds.prototype.getCreds = function () {
45072
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
45073
+ };
45074
+ /**
45075
+ * @param {string} value
45076
+ * @return {!proto.clarifai.api.AWSCreds} returns this
45077
+ */
45078
+ proto.clarifai.api.AWSCreds.prototype.setCreds = function (value) {
45079
+ return jspb.Message.setProto3StringField(this, 1, value);
45080
+ };
45081
+ /**
45082
+ * optional string region = 2;
45083
+ * @return {string}
45084
+ */
45085
+ proto.clarifai.api.AWSCreds.prototype.getRegion = function () {
45086
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
45087
+ };
45088
+ /**
45089
+ * @param {string} value
45090
+ * @return {!proto.clarifai.api.AWSCreds} returns this
45091
+ */
45092
+ proto.clarifai.api.AWSCreds.prototype.setRegion = function (value) {
45093
+ return jspb.Message.setProto3StringField(this, 2, value);
45094
+ };
43489
45095
  /**
43490
45096
  * @enum {number}
43491
45097
  */
@@ -43553,8 +45159,12 @@ proto.clarifai.api.ValueComparator = {
43553
45159
  * @enum {number}
43554
45160
  */
43555
45161
  proto.clarifai.api.EvaluationType = {
43556
- CLASSIFICATION: 0,
43557
- DETECTION: 1
45162
+ UNDEFINED: 0,
45163
+ CLASSIFICATION: 1,
45164
+ DETECTION: 2,
45165
+ SEGMENTATION: 3,
45166
+ CLUSTERING: 4,
45167
+ TRACKER: 5
43558
45168
  };
43559
45169
  /**
43560
45170
  * @enum {number}