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.
- package/CHANGELOG.md +4 -9
- package/README.md +15 -18
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +1644 -34
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1034 -48
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -21
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/resources_pb.js +1644 -34
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1034 -48
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -21
- package/dist/esm/proto/clarifai/api/status/status_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +6 -15
- package/package.json +2 -2
- package/package.json-E +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +251 -6
- package/proto/clarifai/api/resources_pb.js +2246 -230
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +36 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +183 -0
- package/proto/clarifai/api/service_pb.d.ts +150 -8
- package/proto/clarifai/api/service_pb.js +1278 -62
- package/proto/clarifai/api/status/status_code_pb.d.ts +2 -6
- package/proto/clarifai/api/status/status_code_pb.js +9 -13
- package/proto/clarifai/api/status/status_pb.js +7 -7
- package/proto/clarifai/api/utils/extensions_pb.js +7 -7
- package/proto/clarifai/api/utils/matrix_pb.js +7 -7
- package/proto/clarifai/api/utils/test_proto_pb.js +7 -7
- package/proto/clarifai/auth/scope/scope_pb.js +7 -7
- package/proto/clarifai/auth/types/types_pb.js +7 -7
- package/proto/clarifai/auth/util/extension_pb.js +7 -7
|
@@ -37,6 +37,7 @@ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrapp
|
|
|
37
37
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
38
38
|
goog.exportSymbol('proto.clarifai.api.APIEventType', null, global);
|
|
39
39
|
goog.exportSymbol('proto.clarifai.api.APIPostModelOutputsCollectorSource', null, global);
|
|
40
|
+
goog.exportSymbol('proto.clarifai.api.AWSCreds', null, global);
|
|
40
41
|
goog.exportSymbol('proto.clarifai.api.AddConcepts', null, global);
|
|
41
42
|
goog.exportSymbol('proto.clarifai.api.AddMetadata', null, global);
|
|
42
43
|
goog.exportSymbol('proto.clarifai.api.AiAssistParameters', null, global);
|
|
@@ -74,6 +75,9 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
|
|
|
74
75
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
|
|
75
76
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
|
|
76
77
|
goog.exportSymbol('proto.clarifai.api.Data', null, global);
|
|
78
|
+
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
|
|
79
|
+
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
|
|
80
|
+
goog.exportSymbol('proto.clarifai.api.DataSourceURL', null, global);
|
|
77
81
|
goog.exportSymbol('proto.clarifai.api.DataType', null, global);
|
|
78
82
|
goog.exportSymbol('proto.clarifai.api.Dataset', null, global);
|
|
79
83
|
goog.exportSymbol('proto.clarifai.api.DatasetInput', null, global);
|
|
@@ -118,6 +122,9 @@ goog.exportSymbol('proto.clarifai.api.InputIDs', null, global);
|
|
|
118
122
|
goog.exportSymbol('proto.clarifai.api.InputInfo', null, global);
|
|
119
123
|
goog.exportSymbol('proto.clarifai.api.InputsAddJob', null, global);
|
|
120
124
|
goog.exportSymbol('proto.clarifai.api.InputsAddJobProgress', null, global);
|
|
125
|
+
goog.exportSymbol('proto.clarifai.api.InputsDataSource', null, global);
|
|
126
|
+
goog.exportSymbol('proto.clarifai.api.InputsExtractionJob', null, global);
|
|
127
|
+
goog.exportSymbol('proto.clarifai.api.InputsExtractionJobProgress', null, global);
|
|
121
128
|
goog.exportSymbol('proto.clarifai.api.InstalledModuleVersion', null, global);
|
|
122
129
|
goog.exportSymbol('proto.clarifai.api.Key', null, global);
|
|
123
130
|
goog.exportSymbol('proto.clarifai.api.KeypointEdge', null, global);
|
|
@@ -3618,7 +3625,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3618
3625
|
* @constructor
|
|
3619
3626
|
*/
|
|
3620
3627
|
proto.clarifai.api.InputsAddJob = function(opt_data) {
|
|
3621
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
3628
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputsAddJob.repeatedFields_, null);
|
|
3622
3629
|
};
|
|
3623
3630
|
goog.inherits(proto.clarifai.api.InputsAddJob, jspb.Message);
|
|
3624
3631
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -3691,6 +3698,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3691
3698
|
*/
|
|
3692
3699
|
proto.clarifai.api.UploadContentPart.displayName = 'proto.clarifai.api.UploadContentPart';
|
|
3693
3700
|
}
|
|
3701
|
+
/**
|
|
3702
|
+
* Generated by JsPbCodeGenerator.
|
|
3703
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3704
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3705
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3706
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3707
|
+
* valid.
|
|
3708
|
+
* @extends {jspb.Message}
|
|
3709
|
+
* @constructor
|
|
3710
|
+
*/
|
|
3711
|
+
proto.clarifai.api.InputsExtractionJob = function(opt_data) {
|
|
3712
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3713
|
+
};
|
|
3714
|
+
goog.inherits(proto.clarifai.api.InputsExtractionJob, jspb.Message);
|
|
3715
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3716
|
+
/**
|
|
3717
|
+
* @public
|
|
3718
|
+
* @override
|
|
3719
|
+
*/
|
|
3720
|
+
proto.clarifai.api.InputsExtractionJob.displayName = 'proto.clarifai.api.InputsExtractionJob';
|
|
3721
|
+
}
|
|
3722
|
+
/**
|
|
3723
|
+
* Generated by JsPbCodeGenerator.
|
|
3724
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3725
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3726
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3727
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3728
|
+
* valid.
|
|
3729
|
+
* @extends {jspb.Message}
|
|
3730
|
+
* @constructor
|
|
3731
|
+
*/
|
|
3732
|
+
proto.clarifai.api.InputsExtractionJobProgress = function(opt_data) {
|
|
3733
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3734
|
+
};
|
|
3735
|
+
goog.inherits(proto.clarifai.api.InputsExtractionJobProgress, jspb.Message);
|
|
3736
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3737
|
+
/**
|
|
3738
|
+
* @public
|
|
3739
|
+
* @override
|
|
3740
|
+
*/
|
|
3741
|
+
proto.clarifai.api.InputsExtractionJobProgress.displayName = 'proto.clarifai.api.InputsExtractionJobProgress';
|
|
3742
|
+
}
|
|
3743
|
+
/**
|
|
3744
|
+
* Generated by JsPbCodeGenerator.
|
|
3745
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3746
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3747
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3748
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3749
|
+
* valid.
|
|
3750
|
+
* @extends {jspb.Message}
|
|
3751
|
+
* @constructor
|
|
3752
|
+
*/
|
|
3753
|
+
proto.clarifai.api.InputsDataSource = function(opt_data) {
|
|
3754
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3755
|
+
};
|
|
3756
|
+
goog.inherits(proto.clarifai.api.InputsDataSource, jspb.Message);
|
|
3757
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3758
|
+
/**
|
|
3759
|
+
* @public
|
|
3760
|
+
* @override
|
|
3761
|
+
*/
|
|
3762
|
+
proto.clarifai.api.InputsDataSource.displayName = 'proto.clarifai.api.InputsDataSource';
|
|
3763
|
+
}
|
|
3764
|
+
/**
|
|
3765
|
+
* Generated by JsPbCodeGenerator.
|
|
3766
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3767
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3768
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3769
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3770
|
+
* valid.
|
|
3771
|
+
* @extends {jspb.Message}
|
|
3772
|
+
* @constructor
|
|
3773
|
+
*/
|
|
3774
|
+
proto.clarifai.api.DataSourceURL = function(opt_data) {
|
|
3775
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3776
|
+
};
|
|
3777
|
+
goog.inherits(proto.clarifai.api.DataSourceURL, jspb.Message);
|
|
3778
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3779
|
+
/**
|
|
3780
|
+
* @public
|
|
3781
|
+
* @override
|
|
3782
|
+
*/
|
|
3783
|
+
proto.clarifai.api.DataSourceURL.displayName = 'proto.clarifai.api.DataSourceURL';
|
|
3784
|
+
}
|
|
3785
|
+
/**
|
|
3786
|
+
* Generated by JsPbCodeGenerator.
|
|
3787
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3788
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3789
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3790
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3791
|
+
* valid.
|
|
3792
|
+
* @extends {jspb.Message}
|
|
3793
|
+
* @constructor
|
|
3794
|
+
*/
|
|
3795
|
+
proto.clarifai.api.DataSourceCredentials = function(opt_data) {
|
|
3796
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.DataSourceCredentials.oneofGroups_);
|
|
3797
|
+
};
|
|
3798
|
+
goog.inherits(proto.clarifai.api.DataSourceCredentials, jspb.Message);
|
|
3799
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3800
|
+
/**
|
|
3801
|
+
* @public
|
|
3802
|
+
* @override
|
|
3803
|
+
*/
|
|
3804
|
+
proto.clarifai.api.DataSourceCredentials.displayName = 'proto.clarifai.api.DataSourceCredentials';
|
|
3805
|
+
}
|
|
3806
|
+
/**
|
|
3807
|
+
* Generated by JsPbCodeGenerator.
|
|
3808
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3809
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3810
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3811
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3812
|
+
* valid.
|
|
3813
|
+
* @extends {jspb.Message}
|
|
3814
|
+
* @constructor
|
|
3815
|
+
*/
|
|
3816
|
+
proto.clarifai.api.AWSCreds = function(opt_data) {
|
|
3817
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3818
|
+
};
|
|
3819
|
+
goog.inherits(proto.clarifai.api.AWSCreds, jspb.Message);
|
|
3820
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3821
|
+
/**
|
|
3822
|
+
* @public
|
|
3823
|
+
* @override
|
|
3824
|
+
*/
|
|
3825
|
+
proto.clarifai.api.AWSCreds.displayName = 'proto.clarifai.api.AWSCreds';
|
|
3826
|
+
}
|
|
3694
3827
|
|
|
3695
3828
|
|
|
3696
3829
|
|
|
@@ -4384,7 +4517,8 @@ proto.clarifai.api.App.toObject = function(includeInstance, msg) {
|
|
|
4384
4517
|
dataTierId: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
4385
4518
|
isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
|
|
4386
4519
|
starCount: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
4387
|
-
notes: jspb.Message.getFieldWithDefault(msg, 21, "")
|
|
4520
|
+
notes: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
4521
|
+
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
|
|
4388
4522
|
};
|
|
4389
4523
|
|
|
4390
4524
|
if (includeInstance) {
|
|
@@ -4489,6 +4623,11 @@ proto.clarifai.api.App.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
4489
4623
|
var value = /** @type {string} */ (reader.readString());
|
|
4490
4624
|
msg.setNotes(value);
|
|
4491
4625
|
break;
|
|
4626
|
+
case 22:
|
|
4627
|
+
var value = new proto.clarifai.api.Image;
|
|
4628
|
+
reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
4629
|
+
msg.setImage(value);
|
|
4630
|
+
break;
|
|
4492
4631
|
default:
|
|
4493
4632
|
reader.skipField();
|
|
4494
4633
|
break;
|
|
@@ -4634,6 +4773,14 @@ proto.clarifai.api.App.serializeBinaryToWriter = function(message, writer) {
|
|
|
4634
4773
|
f
|
|
4635
4774
|
);
|
|
4636
4775
|
}
|
|
4776
|
+
f = message.getImage();
|
|
4777
|
+
if (f != null) {
|
|
4778
|
+
writer.writeMessage(
|
|
4779
|
+
22,
|
|
4780
|
+
f,
|
|
4781
|
+
proto.clarifai.api.Image.serializeBinaryToWriter
|
|
4782
|
+
);
|
|
4783
|
+
}
|
|
4637
4784
|
};
|
|
4638
4785
|
|
|
4639
4786
|
|
|
@@ -5001,6 +5148,43 @@ proto.clarifai.api.App.prototype.setNotes = function(value) {
|
|
|
5001
5148
|
};
|
|
5002
5149
|
|
|
5003
5150
|
|
|
5151
|
+
/**
|
|
5152
|
+
* optional Image image = 22;
|
|
5153
|
+
* @return {?proto.clarifai.api.Image}
|
|
5154
|
+
*/
|
|
5155
|
+
proto.clarifai.api.App.prototype.getImage = function() {
|
|
5156
|
+
return /** @type{?proto.clarifai.api.Image} */ (
|
|
5157
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 22));
|
|
5158
|
+
};
|
|
5159
|
+
|
|
5160
|
+
|
|
5161
|
+
/**
|
|
5162
|
+
* @param {?proto.clarifai.api.Image|undefined} value
|
|
5163
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
5164
|
+
*/
|
|
5165
|
+
proto.clarifai.api.App.prototype.setImage = function(value) {
|
|
5166
|
+
return jspb.Message.setWrapperField(this, 22, value);
|
|
5167
|
+
};
|
|
5168
|
+
|
|
5169
|
+
|
|
5170
|
+
/**
|
|
5171
|
+
* Clears the message field making it undefined.
|
|
5172
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
5173
|
+
*/
|
|
5174
|
+
proto.clarifai.api.App.prototype.clearImage = function() {
|
|
5175
|
+
return this.setImage(undefined);
|
|
5176
|
+
};
|
|
5177
|
+
|
|
5178
|
+
|
|
5179
|
+
/**
|
|
5180
|
+
* Returns whether this field is set.
|
|
5181
|
+
* @return {boolean}
|
|
5182
|
+
*/
|
|
5183
|
+
proto.clarifai.api.App.prototype.hasImage = function() {
|
|
5184
|
+
return jspb.Message.getField(this, 22) != null;
|
|
5185
|
+
};
|
|
5186
|
+
|
|
5187
|
+
|
|
5004
5188
|
|
|
5005
5189
|
|
|
5006
5190
|
|
|
@@ -24374,11 +24558,11 @@ proto.clarifai.api.ModelType.toObject = function(includeInstance, msg) {
|
|
|
24374
24558
|
modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(),
|
|
24375
24559
|
proto.clarifai.api.ModelTypeField.toObject, includeInstance),
|
|
24376
24560
|
requiresSequentialFrames: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
24377
|
-
evaluable: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
|
|
24378
24561
|
expectedInputLayersList: jspb.Message.toObjectList(msg.getExpectedInputLayersList(),
|
|
24379
24562
|
proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
|
|
24380
24563
|
expectedOutputLayersList: jspb.Message.toObjectList(msg.getExpectedOutputLayersList(),
|
|
24381
|
-
proto.clarifai.api.ModelLayerInfo.toObject, includeInstance)
|
|
24564
|
+
proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
|
|
24565
|
+
evaluationType: jspb.Message.getFieldWithDefault(msg, 18, 0)
|
|
24382
24566
|
};
|
|
24383
24567
|
|
|
24384
24568
|
if (includeInstance) {
|
|
@@ -24456,10 +24640,6 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function(msg, reader)
|
|
|
24456
24640
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
24457
24641
|
msg.setRequiresSequentialFrames(value);
|
|
24458
24642
|
break;
|
|
24459
|
-
case 13:
|
|
24460
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
24461
|
-
msg.setEvaluable(value);
|
|
24462
|
-
break;
|
|
24463
24643
|
case 16:
|
|
24464
24644
|
var value = new proto.clarifai.api.ModelLayerInfo;
|
|
24465
24645
|
reader.readMessage(value,proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader);
|
|
@@ -24470,6 +24650,10 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function(msg, reader)
|
|
|
24470
24650
|
reader.readMessage(value,proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader);
|
|
24471
24651
|
msg.addExpectedOutputLayers(value);
|
|
24472
24652
|
break;
|
|
24653
|
+
case 18:
|
|
24654
|
+
var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum());
|
|
24655
|
+
msg.setEvaluationType(value);
|
|
24656
|
+
break;
|
|
24473
24657
|
default:
|
|
24474
24658
|
reader.skipField();
|
|
24475
24659
|
break;
|
|
@@ -24570,13 +24754,6 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function(message, writer)
|
|
|
24570
24754
|
f
|
|
24571
24755
|
);
|
|
24572
24756
|
}
|
|
24573
|
-
f = message.getEvaluable();
|
|
24574
|
-
if (f) {
|
|
24575
|
-
writer.writeBool(
|
|
24576
|
-
13,
|
|
24577
|
-
f
|
|
24578
|
-
);
|
|
24579
|
-
}
|
|
24580
24757
|
f = message.getExpectedInputLayersList();
|
|
24581
24758
|
if (f.length > 0) {
|
|
24582
24759
|
writer.writeRepeatedMessage(
|
|
@@ -24593,6 +24770,13 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function(message, writer)
|
|
|
24593
24770
|
proto.clarifai.api.ModelLayerInfo.serializeBinaryToWriter
|
|
24594
24771
|
);
|
|
24595
24772
|
}
|
|
24773
|
+
f = message.getEvaluationType();
|
|
24774
|
+
if (f !== 0.0) {
|
|
24775
|
+
writer.writeEnum(
|
|
24776
|
+
18,
|
|
24777
|
+
f
|
|
24778
|
+
);
|
|
24779
|
+
}
|
|
24596
24780
|
};
|
|
24597
24781
|
|
|
24598
24782
|
|
|
@@ -24834,24 +25018,6 @@ proto.clarifai.api.ModelType.prototype.setRequiresSequentialFrames = function(va
|
|
|
24834
25018
|
};
|
|
24835
25019
|
|
|
24836
25020
|
|
|
24837
|
-
/**
|
|
24838
|
-
* optional bool evaluable = 13;
|
|
24839
|
-
* @return {boolean}
|
|
24840
|
-
*/
|
|
24841
|
-
proto.clarifai.api.ModelType.prototype.getEvaluable = function() {
|
|
24842
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
|
|
24843
|
-
};
|
|
24844
|
-
|
|
24845
|
-
|
|
24846
|
-
/**
|
|
24847
|
-
* @param {boolean} value
|
|
24848
|
-
* @return {!proto.clarifai.api.ModelType} returns this
|
|
24849
|
-
*/
|
|
24850
|
-
proto.clarifai.api.ModelType.prototype.setEvaluable = function(value) {
|
|
24851
|
-
return jspb.Message.setProto3BooleanField(this, 13, value);
|
|
24852
|
-
};
|
|
24853
|
-
|
|
24854
|
-
|
|
24855
25021
|
/**
|
|
24856
25022
|
* repeated ModelLayerInfo expected_input_layers = 16;
|
|
24857
25023
|
* @return {!Array<!proto.clarifai.api.ModelLayerInfo>}
|
|
@@ -24928,6 +25094,24 @@ proto.clarifai.api.ModelType.prototype.clearExpectedOutputLayersList = function(
|
|
|
24928
25094
|
};
|
|
24929
25095
|
|
|
24930
25096
|
|
|
25097
|
+
/**
|
|
25098
|
+
* optional EvaluationType evaluation_type = 18;
|
|
25099
|
+
* @return {!proto.clarifai.api.EvaluationType}
|
|
25100
|
+
*/
|
|
25101
|
+
proto.clarifai.api.ModelType.prototype.getEvaluationType = function() {
|
|
25102
|
+
return /** @type {!proto.clarifai.api.EvaluationType} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
|
|
25103
|
+
};
|
|
25104
|
+
|
|
25105
|
+
|
|
25106
|
+
/**
|
|
25107
|
+
* @param {!proto.clarifai.api.EvaluationType} value
|
|
25108
|
+
* @return {!proto.clarifai.api.ModelType} returns this
|
|
25109
|
+
*/
|
|
25110
|
+
proto.clarifai.api.ModelType.prototype.setEvaluationType = function(value) {
|
|
25111
|
+
return jspb.Message.setProto3EnumField(this, 18, value);
|
|
25112
|
+
};
|
|
25113
|
+
|
|
25114
|
+
|
|
24931
25115
|
|
|
24932
25116
|
/**
|
|
24933
25117
|
* List of repeated fields within this message type.
|
|
@@ -26147,7 +26331,8 @@ proto.clarifai.api.ModelTypeEnumOption.toObject = function(includeInstance, msg)
|
|
|
26147
26331
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
26148
26332
|
modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(),
|
|
26149
26333
|
proto.clarifai.api.ModelTypeField.toObject, includeInstance),
|
|
26150
|
-
internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
26334
|
+
internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
26335
|
+
recommended: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
26151
26336
|
};
|
|
26152
26337
|
|
|
26153
26338
|
if (includeInstance) {
|
|
@@ -26206,6 +26391,10 @@ proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader = function(ms
|
|
|
26206
26391
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
26207
26392
|
msg.setInternalOnly(value);
|
|
26208
26393
|
break;
|
|
26394
|
+
case 6:
|
|
26395
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
26396
|
+
msg.setRecommended(value);
|
|
26397
|
+
break;
|
|
26209
26398
|
default:
|
|
26210
26399
|
reader.skipField();
|
|
26211
26400
|
break;
|
|
@@ -26272,6 +26461,13 @@ proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter = function(messag
|
|
|
26272
26461
|
f
|
|
26273
26462
|
);
|
|
26274
26463
|
}
|
|
26464
|
+
f = message.getRecommended();
|
|
26465
|
+
if (f) {
|
|
26466
|
+
writer.writeBool(
|
|
26467
|
+
6,
|
|
26468
|
+
f
|
|
26469
|
+
);
|
|
26470
|
+
}
|
|
26275
26471
|
};
|
|
26276
26472
|
|
|
26277
26473
|
|
|
@@ -26405,6 +26601,24 @@ proto.clarifai.api.ModelTypeEnumOption.prototype.setInternalOnly = function(valu
|
|
|
26405
26601
|
};
|
|
26406
26602
|
|
|
26407
26603
|
|
|
26604
|
+
/**
|
|
26605
|
+
* optional bool recommended = 6;
|
|
26606
|
+
* @return {boolean}
|
|
26607
|
+
*/
|
|
26608
|
+
proto.clarifai.api.ModelTypeEnumOption.prototype.getRecommended = function() {
|
|
26609
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
26610
|
+
};
|
|
26611
|
+
|
|
26612
|
+
|
|
26613
|
+
/**
|
|
26614
|
+
* @param {boolean} value
|
|
26615
|
+
* @return {!proto.clarifai.api.ModelTypeEnumOption} returns this
|
|
26616
|
+
*/
|
|
26617
|
+
proto.clarifai.api.ModelTypeEnumOption.prototype.setRecommended = function(value) {
|
|
26618
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
26619
|
+
};
|
|
26620
|
+
|
|
26621
|
+
|
|
26408
26622
|
|
|
26409
26623
|
|
|
26410
26624
|
|
|
@@ -26772,7 +26986,11 @@ proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) {
|
|
|
26772
26986
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
26773
26987
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
26774
26988
|
license: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
26775
|
-
datasetVersion: (f = msg.getDatasetVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f)
|
|
26989
|
+
datasetVersion: (f = msg.getDatasetVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f),
|
|
26990
|
+
outputInfo: (f = msg.getOutputInfo()) && proto.clarifai.api.OutputInfo.toObject(includeInstance, f),
|
|
26991
|
+
inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
|
|
26992
|
+
trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
|
|
26993
|
+
importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f)
|
|
26776
26994
|
};
|
|
26777
26995
|
|
|
26778
26996
|
if (includeInstance) {
|
|
@@ -26882,6 +27100,26 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read
|
|
|
26882
27100
|
reader.readMessage(value,proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader);
|
|
26883
27101
|
msg.setDatasetVersion(value);
|
|
26884
27102
|
break;
|
|
27103
|
+
case 19:
|
|
27104
|
+
var value = new proto.clarifai.api.OutputInfo;
|
|
27105
|
+
reader.readMessage(value,proto.clarifai.api.OutputInfo.deserializeBinaryFromReader);
|
|
27106
|
+
msg.setOutputInfo(value);
|
|
27107
|
+
break;
|
|
27108
|
+
case 20:
|
|
27109
|
+
var value = new proto.clarifai.api.InputInfo;
|
|
27110
|
+
reader.readMessage(value,proto.clarifai.api.InputInfo.deserializeBinaryFromReader);
|
|
27111
|
+
msg.setInputInfo(value);
|
|
27112
|
+
break;
|
|
27113
|
+
case 21:
|
|
27114
|
+
var value = new proto.clarifai.api.TrainInfo;
|
|
27115
|
+
reader.readMessage(value,proto.clarifai.api.TrainInfo.deserializeBinaryFromReader);
|
|
27116
|
+
msg.setTrainInfo(value);
|
|
27117
|
+
break;
|
|
27118
|
+
case 22:
|
|
27119
|
+
var value = new proto.clarifai.api.ImportInfo;
|
|
27120
|
+
reader.readMessage(value,proto.clarifai.api.ImportInfo.deserializeBinaryFromReader);
|
|
27121
|
+
msg.setImportInfo(value);
|
|
27122
|
+
break;
|
|
26885
27123
|
default:
|
|
26886
27124
|
reader.skipField();
|
|
26887
27125
|
break;
|
|
@@ -27032,6 +27270,38 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writ
|
|
|
27032
27270
|
proto.clarifai.api.DatasetVersion.serializeBinaryToWriter
|
|
27033
27271
|
);
|
|
27034
27272
|
}
|
|
27273
|
+
f = message.getOutputInfo();
|
|
27274
|
+
if (f != null) {
|
|
27275
|
+
writer.writeMessage(
|
|
27276
|
+
19,
|
|
27277
|
+
f,
|
|
27278
|
+
proto.clarifai.api.OutputInfo.serializeBinaryToWriter
|
|
27279
|
+
);
|
|
27280
|
+
}
|
|
27281
|
+
f = message.getInputInfo();
|
|
27282
|
+
if (f != null) {
|
|
27283
|
+
writer.writeMessage(
|
|
27284
|
+
20,
|
|
27285
|
+
f,
|
|
27286
|
+
proto.clarifai.api.InputInfo.serializeBinaryToWriter
|
|
27287
|
+
);
|
|
27288
|
+
}
|
|
27289
|
+
f = message.getTrainInfo();
|
|
27290
|
+
if (f != null) {
|
|
27291
|
+
writer.writeMessage(
|
|
27292
|
+
21,
|
|
27293
|
+
f,
|
|
27294
|
+
proto.clarifai.api.TrainInfo.serializeBinaryToWriter
|
|
27295
|
+
);
|
|
27296
|
+
}
|
|
27297
|
+
f = message.getImportInfo();
|
|
27298
|
+
if (f != null) {
|
|
27299
|
+
writer.writeMessage(
|
|
27300
|
+
22,
|
|
27301
|
+
f,
|
|
27302
|
+
proto.clarifai.api.ImportInfo.serializeBinaryToWriter
|
|
27303
|
+
);
|
|
27304
|
+
}
|
|
27035
27305
|
};
|
|
27036
27306
|
|
|
27037
27307
|
|
|
@@ -27494,6 +27764,154 @@ proto.clarifai.api.ModelVersion.prototype.hasDatasetVersion = function() {
|
|
|
27494
27764
|
};
|
|
27495
27765
|
|
|
27496
27766
|
|
|
27767
|
+
/**
|
|
27768
|
+
* optional OutputInfo output_info = 19;
|
|
27769
|
+
* @return {?proto.clarifai.api.OutputInfo}
|
|
27770
|
+
*/
|
|
27771
|
+
proto.clarifai.api.ModelVersion.prototype.getOutputInfo = function() {
|
|
27772
|
+
return /** @type{?proto.clarifai.api.OutputInfo} */ (
|
|
27773
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.OutputInfo, 19));
|
|
27774
|
+
};
|
|
27775
|
+
|
|
27776
|
+
|
|
27777
|
+
/**
|
|
27778
|
+
* @param {?proto.clarifai.api.OutputInfo|undefined} value
|
|
27779
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27780
|
+
*/
|
|
27781
|
+
proto.clarifai.api.ModelVersion.prototype.setOutputInfo = function(value) {
|
|
27782
|
+
return jspb.Message.setWrapperField(this, 19, value);
|
|
27783
|
+
};
|
|
27784
|
+
|
|
27785
|
+
|
|
27786
|
+
/**
|
|
27787
|
+
* Clears the message field making it undefined.
|
|
27788
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27789
|
+
*/
|
|
27790
|
+
proto.clarifai.api.ModelVersion.prototype.clearOutputInfo = function() {
|
|
27791
|
+
return this.setOutputInfo(undefined);
|
|
27792
|
+
};
|
|
27793
|
+
|
|
27794
|
+
|
|
27795
|
+
/**
|
|
27796
|
+
* Returns whether this field is set.
|
|
27797
|
+
* @return {boolean}
|
|
27798
|
+
*/
|
|
27799
|
+
proto.clarifai.api.ModelVersion.prototype.hasOutputInfo = function() {
|
|
27800
|
+
return jspb.Message.getField(this, 19) != null;
|
|
27801
|
+
};
|
|
27802
|
+
|
|
27803
|
+
|
|
27804
|
+
/**
|
|
27805
|
+
* optional InputInfo input_info = 20;
|
|
27806
|
+
* @return {?proto.clarifai.api.InputInfo}
|
|
27807
|
+
*/
|
|
27808
|
+
proto.clarifai.api.ModelVersion.prototype.getInputInfo = function() {
|
|
27809
|
+
return /** @type{?proto.clarifai.api.InputInfo} */ (
|
|
27810
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.InputInfo, 20));
|
|
27811
|
+
};
|
|
27812
|
+
|
|
27813
|
+
|
|
27814
|
+
/**
|
|
27815
|
+
* @param {?proto.clarifai.api.InputInfo|undefined} value
|
|
27816
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27817
|
+
*/
|
|
27818
|
+
proto.clarifai.api.ModelVersion.prototype.setInputInfo = function(value) {
|
|
27819
|
+
return jspb.Message.setWrapperField(this, 20, value);
|
|
27820
|
+
};
|
|
27821
|
+
|
|
27822
|
+
|
|
27823
|
+
/**
|
|
27824
|
+
* Clears the message field making it undefined.
|
|
27825
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27826
|
+
*/
|
|
27827
|
+
proto.clarifai.api.ModelVersion.prototype.clearInputInfo = function() {
|
|
27828
|
+
return this.setInputInfo(undefined);
|
|
27829
|
+
};
|
|
27830
|
+
|
|
27831
|
+
|
|
27832
|
+
/**
|
|
27833
|
+
* Returns whether this field is set.
|
|
27834
|
+
* @return {boolean}
|
|
27835
|
+
*/
|
|
27836
|
+
proto.clarifai.api.ModelVersion.prototype.hasInputInfo = function() {
|
|
27837
|
+
return jspb.Message.getField(this, 20) != null;
|
|
27838
|
+
};
|
|
27839
|
+
|
|
27840
|
+
|
|
27841
|
+
/**
|
|
27842
|
+
* optional TrainInfo train_info = 21;
|
|
27843
|
+
* @return {?proto.clarifai.api.TrainInfo}
|
|
27844
|
+
*/
|
|
27845
|
+
proto.clarifai.api.ModelVersion.prototype.getTrainInfo = function() {
|
|
27846
|
+
return /** @type{?proto.clarifai.api.TrainInfo} */ (
|
|
27847
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.TrainInfo, 21));
|
|
27848
|
+
};
|
|
27849
|
+
|
|
27850
|
+
|
|
27851
|
+
/**
|
|
27852
|
+
* @param {?proto.clarifai.api.TrainInfo|undefined} value
|
|
27853
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27854
|
+
*/
|
|
27855
|
+
proto.clarifai.api.ModelVersion.prototype.setTrainInfo = function(value) {
|
|
27856
|
+
return jspb.Message.setWrapperField(this, 21, value);
|
|
27857
|
+
};
|
|
27858
|
+
|
|
27859
|
+
|
|
27860
|
+
/**
|
|
27861
|
+
* Clears the message field making it undefined.
|
|
27862
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27863
|
+
*/
|
|
27864
|
+
proto.clarifai.api.ModelVersion.prototype.clearTrainInfo = function() {
|
|
27865
|
+
return this.setTrainInfo(undefined);
|
|
27866
|
+
};
|
|
27867
|
+
|
|
27868
|
+
|
|
27869
|
+
/**
|
|
27870
|
+
* Returns whether this field is set.
|
|
27871
|
+
* @return {boolean}
|
|
27872
|
+
*/
|
|
27873
|
+
proto.clarifai.api.ModelVersion.prototype.hasTrainInfo = function() {
|
|
27874
|
+
return jspb.Message.getField(this, 21) != null;
|
|
27875
|
+
};
|
|
27876
|
+
|
|
27877
|
+
|
|
27878
|
+
/**
|
|
27879
|
+
* optional ImportInfo import_info = 22;
|
|
27880
|
+
* @return {?proto.clarifai.api.ImportInfo}
|
|
27881
|
+
*/
|
|
27882
|
+
proto.clarifai.api.ModelVersion.prototype.getImportInfo = function() {
|
|
27883
|
+
return /** @type{?proto.clarifai.api.ImportInfo} */ (
|
|
27884
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ImportInfo, 22));
|
|
27885
|
+
};
|
|
27886
|
+
|
|
27887
|
+
|
|
27888
|
+
/**
|
|
27889
|
+
* @param {?proto.clarifai.api.ImportInfo|undefined} value
|
|
27890
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27891
|
+
*/
|
|
27892
|
+
proto.clarifai.api.ModelVersion.prototype.setImportInfo = function(value) {
|
|
27893
|
+
return jspb.Message.setWrapperField(this, 22, value);
|
|
27894
|
+
};
|
|
27895
|
+
|
|
27896
|
+
|
|
27897
|
+
/**
|
|
27898
|
+
* Clears the message field making it undefined.
|
|
27899
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
27900
|
+
*/
|
|
27901
|
+
proto.clarifai.api.ModelVersion.prototype.clearImportInfo = function() {
|
|
27902
|
+
return this.setImportInfo(undefined);
|
|
27903
|
+
};
|
|
27904
|
+
|
|
27905
|
+
|
|
27906
|
+
/**
|
|
27907
|
+
* Returns whether this field is set.
|
|
27908
|
+
* @return {boolean}
|
|
27909
|
+
*/
|
|
27910
|
+
proto.clarifai.api.ModelVersion.prototype.hasImportInfo = function() {
|
|
27911
|
+
return jspb.Message.getField(this, 22) != null;
|
|
27912
|
+
};
|
|
27913
|
+
|
|
27914
|
+
|
|
27497
27915
|
|
|
27498
27916
|
|
|
27499
27917
|
|
|
@@ -49182,7 +49600,8 @@ proto.clarifai.api.Module.toObject = function(includeInstance, msg) {
|
|
|
49182
49600
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
49183
49601
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
49184
49602
|
userId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
49185
|
-
appId: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
49603
|
+
appId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
49604
|
+
moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f)
|
|
49186
49605
|
};
|
|
49187
49606
|
|
|
49188
49607
|
if (includeInstance) {
|
|
@@ -49255,6 +49674,11 @@ proto.clarifai.api.Module.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
49255
49674
|
var value = /** @type {string} */ (reader.readString());
|
|
49256
49675
|
msg.setAppId(value);
|
|
49257
49676
|
break;
|
|
49677
|
+
case 11:
|
|
49678
|
+
var value = new proto.clarifai.api.ModuleVersion;
|
|
49679
|
+
reader.readMessage(value,proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader);
|
|
49680
|
+
msg.setModuleVersion(value);
|
|
49681
|
+
break;
|
|
49258
49682
|
default:
|
|
49259
49683
|
reader.skipField();
|
|
49260
49684
|
break;
|
|
@@ -49344,6 +49768,14 @@ proto.clarifai.api.Module.serializeBinaryToWriter = function(message, writer) {
|
|
|
49344
49768
|
f
|
|
49345
49769
|
);
|
|
49346
49770
|
}
|
|
49771
|
+
f = message.getModuleVersion();
|
|
49772
|
+
if (f != null) {
|
|
49773
|
+
writer.writeMessage(
|
|
49774
|
+
11,
|
|
49775
|
+
f,
|
|
49776
|
+
proto.clarifai.api.ModuleVersion.serializeBinaryToWriter
|
|
49777
|
+
);
|
|
49778
|
+
}
|
|
49347
49779
|
};
|
|
49348
49780
|
|
|
49349
49781
|
|
|
@@ -49567,6 +49999,43 @@ proto.clarifai.api.Module.prototype.setAppId = function(value) {
|
|
|
49567
49999
|
};
|
|
49568
50000
|
|
|
49569
50001
|
|
|
50002
|
+
/**
|
|
50003
|
+
* optional ModuleVersion module_version = 11;
|
|
50004
|
+
* @return {?proto.clarifai.api.ModuleVersion}
|
|
50005
|
+
*/
|
|
50006
|
+
proto.clarifai.api.Module.prototype.getModuleVersion = function() {
|
|
50007
|
+
return /** @type{?proto.clarifai.api.ModuleVersion} */ (
|
|
50008
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ModuleVersion, 11));
|
|
50009
|
+
};
|
|
50010
|
+
|
|
50011
|
+
|
|
50012
|
+
/**
|
|
50013
|
+
* @param {?proto.clarifai.api.ModuleVersion|undefined} value
|
|
50014
|
+
* @return {!proto.clarifai.api.Module} returns this
|
|
50015
|
+
*/
|
|
50016
|
+
proto.clarifai.api.Module.prototype.setModuleVersion = function(value) {
|
|
50017
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
50018
|
+
};
|
|
50019
|
+
|
|
50020
|
+
|
|
50021
|
+
/**
|
|
50022
|
+
* Clears the message field making it undefined.
|
|
50023
|
+
* @return {!proto.clarifai.api.Module} returns this
|
|
50024
|
+
*/
|
|
50025
|
+
proto.clarifai.api.Module.prototype.clearModuleVersion = function() {
|
|
50026
|
+
return this.setModuleVersion(undefined);
|
|
50027
|
+
};
|
|
50028
|
+
|
|
50029
|
+
|
|
50030
|
+
/**
|
|
50031
|
+
* Returns whether this field is set.
|
|
50032
|
+
* @return {boolean}
|
|
50033
|
+
*/
|
|
50034
|
+
proto.clarifai.api.Module.prototype.hasModuleVersion = function() {
|
|
50035
|
+
return jspb.Message.getField(this, 11) != null;
|
|
50036
|
+
};
|
|
50037
|
+
|
|
50038
|
+
|
|
49570
50039
|
|
|
49571
50040
|
|
|
49572
50041
|
|
|
@@ -52487,7 +52956,7 @@ proto.clarifai.api.AddConcepts.prototype.clearConceptsList = function() {
|
|
|
52487
52956
|
* @private {!Array<number>}
|
|
52488
52957
|
* @const
|
|
52489
52958
|
*/
|
|
52490
|
-
proto.clarifai.api.DeleteConcepts.repeatedFields_ = [1];
|
|
52959
|
+
proto.clarifai.api.DeleteConcepts.repeatedFields_ = [1,2];
|
|
52491
52960
|
|
|
52492
52961
|
|
|
52493
52962
|
|
|
@@ -52521,7 +52990,8 @@ proto.clarifai.api.DeleteConcepts.prototype.toObject = function(opt_includeInsta
|
|
|
52521
52990
|
proto.clarifai.api.DeleteConcepts.toObject = function(includeInstance, msg) {
|
|
52522
52991
|
var f, obj = {
|
|
52523
52992
|
conceptsList: jspb.Message.toObjectList(msg.getConceptsList(),
|
|
52524
|
-
proto.clarifai.api.Concept.toObject, includeInstance)
|
|
52993
|
+
proto.clarifai.api.Concept.toObject, includeInstance),
|
|
52994
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
52525
52995
|
};
|
|
52526
52996
|
|
|
52527
52997
|
if (includeInstance) {
|
|
@@ -52563,6 +53033,10 @@ proto.clarifai.api.DeleteConcepts.deserializeBinaryFromReader = function(msg, re
|
|
|
52563
53033
|
reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
|
|
52564
53034
|
msg.addConcepts(value);
|
|
52565
53035
|
break;
|
|
53036
|
+
case 2:
|
|
53037
|
+
var value = /** @type {string} */ (reader.readString());
|
|
53038
|
+
msg.addUserIds(value);
|
|
53039
|
+
break;
|
|
52566
53040
|
default:
|
|
52567
53041
|
reader.skipField();
|
|
52568
53042
|
break;
|
|
@@ -52600,6 +53074,13 @@ proto.clarifai.api.DeleteConcepts.serializeBinaryToWriter = function(message, wr
|
|
|
52600
53074
|
proto.clarifai.api.Concept.serializeBinaryToWriter
|
|
52601
53075
|
);
|
|
52602
53076
|
}
|
|
53077
|
+
f = message.getUserIdsList();
|
|
53078
|
+
if (f.length > 0) {
|
|
53079
|
+
writer.writeRepeatedString(
|
|
53080
|
+
2,
|
|
53081
|
+
f
|
|
53082
|
+
);
|
|
53083
|
+
}
|
|
52603
53084
|
};
|
|
52604
53085
|
|
|
52605
53086
|
|
|
@@ -52641,154 +53122,40 @@ proto.clarifai.api.DeleteConcepts.prototype.clearConceptsList = function() {
|
|
|
52641
53122
|
};
|
|
52642
53123
|
|
|
52643
53124
|
|
|
52644
|
-
|
|
52645
|
-
|
|
52646
|
-
|
|
52647
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52648
|
-
/**
|
|
52649
|
-
* Creates an object representation of this proto.
|
|
52650
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
52651
|
-
* Optional fields that are not set will be set to undefined.
|
|
52652
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
52653
|
-
* For the list of reserved names please see:
|
|
52654
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
52655
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
52656
|
-
* JSPB instance for transitional soy proto support:
|
|
52657
|
-
* http://goto/soy-param-migration
|
|
52658
|
-
* @return {!Object}
|
|
52659
|
-
*/
|
|
52660
|
-
proto.clarifai.api.AddMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
52661
|
-
return proto.clarifai.api.AddMetadata.toObject(opt_includeInstance, this);
|
|
52662
|
-
};
|
|
52663
|
-
|
|
52664
|
-
|
|
52665
53125
|
/**
|
|
52666
|
-
*
|
|
52667
|
-
* @
|
|
52668
|
-
* the JSPB instance for transitional soy proto support:
|
|
52669
|
-
* http://goto/soy-param-migration
|
|
52670
|
-
* @param {!proto.clarifai.api.AddMetadata} msg The msg instance to transform.
|
|
52671
|
-
* @return {!Object}
|
|
52672
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
52673
|
-
*/
|
|
52674
|
-
proto.clarifai.api.AddMetadata.toObject = function(includeInstance, msg) {
|
|
52675
|
-
var f, obj = {
|
|
52676
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
52677
|
-
};
|
|
52678
|
-
|
|
52679
|
-
if (includeInstance) {
|
|
52680
|
-
obj.$jspbMessageInstance = msg;
|
|
52681
|
-
}
|
|
52682
|
-
return obj;
|
|
52683
|
-
};
|
|
52684
|
-
}
|
|
52685
|
-
|
|
52686
|
-
|
|
52687
|
-
/**
|
|
52688
|
-
* Deserializes binary data (in protobuf wire format).
|
|
52689
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
52690
|
-
* @return {!proto.clarifai.api.AddMetadata}
|
|
52691
|
-
*/
|
|
52692
|
-
proto.clarifai.api.AddMetadata.deserializeBinary = function(bytes) {
|
|
52693
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
52694
|
-
var msg = new proto.clarifai.api.AddMetadata;
|
|
52695
|
-
return proto.clarifai.api.AddMetadata.deserializeBinaryFromReader(msg, reader);
|
|
52696
|
-
};
|
|
52697
|
-
|
|
52698
|
-
|
|
52699
|
-
/**
|
|
52700
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
52701
|
-
* given reader into the given message object.
|
|
52702
|
-
* @param {!proto.clarifai.api.AddMetadata} msg The message object to deserialize into.
|
|
52703
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
52704
|
-
* @return {!proto.clarifai.api.AddMetadata}
|
|
52705
|
-
*/
|
|
52706
|
-
proto.clarifai.api.AddMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
52707
|
-
while (reader.nextField()) {
|
|
52708
|
-
if (reader.isEndGroup()) {
|
|
52709
|
-
break;
|
|
52710
|
-
}
|
|
52711
|
-
var field = reader.getFieldNumber();
|
|
52712
|
-
switch (field) {
|
|
52713
|
-
case 1:
|
|
52714
|
-
var value = new google_protobuf_struct_pb.Struct;
|
|
52715
|
-
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
52716
|
-
msg.setMetadata(value);
|
|
52717
|
-
break;
|
|
52718
|
-
default:
|
|
52719
|
-
reader.skipField();
|
|
52720
|
-
break;
|
|
52721
|
-
}
|
|
52722
|
-
}
|
|
52723
|
-
return msg;
|
|
52724
|
-
};
|
|
52725
|
-
|
|
52726
|
-
|
|
52727
|
-
/**
|
|
52728
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
52729
|
-
* @return {!Uint8Array}
|
|
52730
|
-
*/
|
|
52731
|
-
proto.clarifai.api.AddMetadata.prototype.serializeBinary = function() {
|
|
52732
|
-
var writer = new jspb.BinaryWriter();
|
|
52733
|
-
proto.clarifai.api.AddMetadata.serializeBinaryToWriter(this, writer);
|
|
52734
|
-
return writer.getResultBuffer();
|
|
52735
|
-
};
|
|
52736
|
-
|
|
52737
|
-
|
|
52738
|
-
/**
|
|
52739
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
52740
|
-
* format), writing to the given BinaryWriter.
|
|
52741
|
-
* @param {!proto.clarifai.api.AddMetadata} message
|
|
52742
|
-
* @param {!jspb.BinaryWriter} writer
|
|
52743
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53126
|
+
* repeated string user_ids = 2;
|
|
53127
|
+
* @return {!Array<string>}
|
|
52744
53128
|
*/
|
|
52745
|
-
proto.clarifai.api.
|
|
52746
|
-
|
|
52747
|
-
f = message.getMetadata();
|
|
52748
|
-
if (f != null) {
|
|
52749
|
-
writer.writeMessage(
|
|
52750
|
-
1,
|
|
52751
|
-
f,
|
|
52752
|
-
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
52753
|
-
);
|
|
52754
|
-
}
|
|
53129
|
+
proto.clarifai.api.DeleteConcepts.prototype.getUserIdsList = function() {
|
|
53130
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
52755
53131
|
};
|
|
52756
53132
|
|
|
52757
53133
|
|
|
52758
53134
|
/**
|
|
52759
|
-
*
|
|
52760
|
-
* @return {
|
|
53135
|
+
* @param {!Array<string>} value
|
|
53136
|
+
* @return {!proto.clarifai.api.DeleteConcepts} returns this
|
|
52761
53137
|
*/
|
|
52762
|
-
proto.clarifai.api.
|
|
52763
|
-
return
|
|
52764
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
|
|
52765
|
-
};
|
|
52766
|
-
|
|
52767
|
-
|
|
52768
|
-
/**
|
|
52769
|
-
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
52770
|
-
* @return {!proto.clarifai.api.AddMetadata} returns this
|
|
52771
|
-
*/
|
|
52772
|
-
proto.clarifai.api.AddMetadata.prototype.setMetadata = function(value) {
|
|
52773
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
53138
|
+
proto.clarifai.api.DeleteConcepts.prototype.setUserIdsList = function(value) {
|
|
53139
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
52774
53140
|
};
|
|
52775
53141
|
|
|
52776
53142
|
|
|
52777
53143
|
/**
|
|
52778
|
-
*
|
|
52779
|
-
* @
|
|
53144
|
+
* @param {string} value
|
|
53145
|
+
* @param {number=} opt_index
|
|
53146
|
+
* @return {!proto.clarifai.api.DeleteConcepts} returns this
|
|
52780
53147
|
*/
|
|
52781
|
-
proto.clarifai.api.
|
|
52782
|
-
return
|
|
53148
|
+
proto.clarifai.api.DeleteConcepts.prototype.addUserIds = function(value, opt_index) {
|
|
53149
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
52783
53150
|
};
|
|
52784
53151
|
|
|
52785
53152
|
|
|
52786
53153
|
/**
|
|
52787
|
-
*
|
|
52788
|
-
* @return {
|
|
53154
|
+
* Clears the list making it empty but non-null.
|
|
53155
|
+
* @return {!proto.clarifai.api.DeleteConcepts} returns this
|
|
52789
53156
|
*/
|
|
52790
|
-
proto.clarifai.api.
|
|
52791
|
-
return
|
|
53157
|
+
proto.clarifai.api.DeleteConcepts.prototype.clearUserIdsList = function() {
|
|
53158
|
+
return this.setUserIdsList([]);
|
|
52792
53159
|
};
|
|
52793
53160
|
|
|
52794
53161
|
|
|
@@ -52808,8 +53175,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
52808
53175
|
* http://goto/soy-param-migration
|
|
52809
53176
|
* @return {!Object}
|
|
52810
53177
|
*/
|
|
52811
|
-
proto.clarifai.api.
|
|
52812
|
-
return proto.clarifai.api.
|
|
53178
|
+
proto.clarifai.api.AddMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
53179
|
+
return proto.clarifai.api.AddMetadata.toObject(opt_includeInstance, this);
|
|
52813
53180
|
};
|
|
52814
53181
|
|
|
52815
53182
|
|
|
@@ -52818,11 +53185,11 @@ proto.clarifai.api.DeleteMetadata.prototype.toObject = function(opt_includeInsta
|
|
|
52818
53185
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
52819
53186
|
* the JSPB instance for transitional soy proto support:
|
|
52820
53187
|
* http://goto/soy-param-migration
|
|
52821
|
-
* @param {!proto.clarifai.api.
|
|
53188
|
+
* @param {!proto.clarifai.api.AddMetadata} msg The msg instance to transform.
|
|
52822
53189
|
* @return {!Object}
|
|
52823
53190
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
52824
53191
|
*/
|
|
52825
|
-
proto.clarifai.api.
|
|
53192
|
+
proto.clarifai.api.AddMetadata.toObject = function(includeInstance, msg) {
|
|
52826
53193
|
var f, obj = {
|
|
52827
53194
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
52828
53195
|
};
|
|
@@ -52838,23 +53205,174 @@ proto.clarifai.api.DeleteMetadata.toObject = function(includeInstance, msg) {
|
|
|
52838
53205
|
/**
|
|
52839
53206
|
* Deserializes binary data (in protobuf wire format).
|
|
52840
53207
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
52841
|
-
* @return {!proto.clarifai.api.
|
|
53208
|
+
* @return {!proto.clarifai.api.AddMetadata}
|
|
52842
53209
|
*/
|
|
52843
|
-
proto.clarifai.api.
|
|
53210
|
+
proto.clarifai.api.AddMetadata.deserializeBinary = function(bytes) {
|
|
52844
53211
|
var reader = new jspb.BinaryReader(bytes);
|
|
52845
|
-
var msg = new proto.clarifai.api.
|
|
52846
|
-
return proto.clarifai.api.
|
|
53212
|
+
var msg = new proto.clarifai.api.AddMetadata;
|
|
53213
|
+
return proto.clarifai.api.AddMetadata.deserializeBinaryFromReader(msg, reader);
|
|
52847
53214
|
};
|
|
52848
53215
|
|
|
52849
53216
|
|
|
52850
53217
|
/**
|
|
52851
53218
|
* Deserializes binary data (in protobuf wire format) from the
|
|
52852
53219
|
* given reader into the given message object.
|
|
52853
|
-
* @param {!proto.clarifai.api.
|
|
53220
|
+
* @param {!proto.clarifai.api.AddMetadata} msg The message object to deserialize into.
|
|
52854
53221
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
52855
|
-
* @return {!proto.clarifai.api.
|
|
53222
|
+
* @return {!proto.clarifai.api.AddMetadata}
|
|
52856
53223
|
*/
|
|
52857
|
-
proto.clarifai.api.
|
|
53224
|
+
proto.clarifai.api.AddMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
53225
|
+
while (reader.nextField()) {
|
|
53226
|
+
if (reader.isEndGroup()) {
|
|
53227
|
+
break;
|
|
53228
|
+
}
|
|
53229
|
+
var field = reader.getFieldNumber();
|
|
53230
|
+
switch (field) {
|
|
53231
|
+
case 1:
|
|
53232
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
53233
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
53234
|
+
msg.setMetadata(value);
|
|
53235
|
+
break;
|
|
53236
|
+
default:
|
|
53237
|
+
reader.skipField();
|
|
53238
|
+
break;
|
|
53239
|
+
}
|
|
53240
|
+
}
|
|
53241
|
+
return msg;
|
|
53242
|
+
};
|
|
53243
|
+
|
|
53244
|
+
|
|
53245
|
+
/**
|
|
53246
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
53247
|
+
* @return {!Uint8Array}
|
|
53248
|
+
*/
|
|
53249
|
+
proto.clarifai.api.AddMetadata.prototype.serializeBinary = function() {
|
|
53250
|
+
var writer = new jspb.BinaryWriter();
|
|
53251
|
+
proto.clarifai.api.AddMetadata.serializeBinaryToWriter(this, writer);
|
|
53252
|
+
return writer.getResultBuffer();
|
|
53253
|
+
};
|
|
53254
|
+
|
|
53255
|
+
|
|
53256
|
+
/**
|
|
53257
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
53258
|
+
* format), writing to the given BinaryWriter.
|
|
53259
|
+
* @param {!proto.clarifai.api.AddMetadata} message
|
|
53260
|
+
* @param {!jspb.BinaryWriter} writer
|
|
53261
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53262
|
+
*/
|
|
53263
|
+
proto.clarifai.api.AddMetadata.serializeBinaryToWriter = function(message, writer) {
|
|
53264
|
+
var f = undefined;
|
|
53265
|
+
f = message.getMetadata();
|
|
53266
|
+
if (f != null) {
|
|
53267
|
+
writer.writeMessage(
|
|
53268
|
+
1,
|
|
53269
|
+
f,
|
|
53270
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
53271
|
+
);
|
|
53272
|
+
}
|
|
53273
|
+
};
|
|
53274
|
+
|
|
53275
|
+
|
|
53276
|
+
/**
|
|
53277
|
+
* optional google.protobuf.Struct metadata = 1;
|
|
53278
|
+
* @return {?proto.google.protobuf.Struct}
|
|
53279
|
+
*/
|
|
53280
|
+
proto.clarifai.api.AddMetadata.prototype.getMetadata = function() {
|
|
53281
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
53282
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
|
|
53283
|
+
};
|
|
53284
|
+
|
|
53285
|
+
|
|
53286
|
+
/**
|
|
53287
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
53288
|
+
* @return {!proto.clarifai.api.AddMetadata} returns this
|
|
53289
|
+
*/
|
|
53290
|
+
proto.clarifai.api.AddMetadata.prototype.setMetadata = function(value) {
|
|
53291
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
53292
|
+
};
|
|
53293
|
+
|
|
53294
|
+
|
|
53295
|
+
/**
|
|
53296
|
+
* Clears the message field making it undefined.
|
|
53297
|
+
* @return {!proto.clarifai.api.AddMetadata} returns this
|
|
53298
|
+
*/
|
|
53299
|
+
proto.clarifai.api.AddMetadata.prototype.clearMetadata = function() {
|
|
53300
|
+
return this.setMetadata(undefined);
|
|
53301
|
+
};
|
|
53302
|
+
|
|
53303
|
+
|
|
53304
|
+
/**
|
|
53305
|
+
* Returns whether this field is set.
|
|
53306
|
+
* @return {boolean}
|
|
53307
|
+
*/
|
|
53308
|
+
proto.clarifai.api.AddMetadata.prototype.hasMetadata = function() {
|
|
53309
|
+
return jspb.Message.getField(this, 1) != null;
|
|
53310
|
+
};
|
|
53311
|
+
|
|
53312
|
+
|
|
53313
|
+
|
|
53314
|
+
|
|
53315
|
+
|
|
53316
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53317
|
+
/**
|
|
53318
|
+
* Creates an object representation of this proto.
|
|
53319
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53320
|
+
* Optional fields that are not set will be set to undefined.
|
|
53321
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
53322
|
+
* For the list of reserved names please see:
|
|
53323
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
53324
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
53325
|
+
* JSPB instance for transitional soy proto support:
|
|
53326
|
+
* http://goto/soy-param-migration
|
|
53327
|
+
* @return {!Object}
|
|
53328
|
+
*/
|
|
53329
|
+
proto.clarifai.api.DeleteMetadata.prototype.toObject = function(opt_includeInstance) {
|
|
53330
|
+
return proto.clarifai.api.DeleteMetadata.toObject(opt_includeInstance, this);
|
|
53331
|
+
};
|
|
53332
|
+
|
|
53333
|
+
|
|
53334
|
+
/**
|
|
53335
|
+
* Static version of the {@see toObject} method.
|
|
53336
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
53337
|
+
* the JSPB instance for transitional soy proto support:
|
|
53338
|
+
* http://goto/soy-param-migration
|
|
53339
|
+
* @param {!proto.clarifai.api.DeleteMetadata} msg The msg instance to transform.
|
|
53340
|
+
* @return {!Object}
|
|
53341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
53342
|
+
*/
|
|
53343
|
+
proto.clarifai.api.DeleteMetadata.toObject = function(includeInstance, msg) {
|
|
53344
|
+
var f, obj = {
|
|
53345
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
53346
|
+
};
|
|
53347
|
+
|
|
53348
|
+
if (includeInstance) {
|
|
53349
|
+
obj.$jspbMessageInstance = msg;
|
|
53350
|
+
}
|
|
53351
|
+
return obj;
|
|
53352
|
+
};
|
|
53353
|
+
}
|
|
53354
|
+
|
|
53355
|
+
|
|
53356
|
+
/**
|
|
53357
|
+
* Deserializes binary data (in protobuf wire format).
|
|
53358
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
53359
|
+
* @return {!proto.clarifai.api.DeleteMetadata}
|
|
53360
|
+
*/
|
|
53361
|
+
proto.clarifai.api.DeleteMetadata.deserializeBinary = function(bytes) {
|
|
53362
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
53363
|
+
var msg = new proto.clarifai.api.DeleteMetadata;
|
|
53364
|
+
return proto.clarifai.api.DeleteMetadata.deserializeBinaryFromReader(msg, reader);
|
|
53365
|
+
};
|
|
53366
|
+
|
|
53367
|
+
|
|
53368
|
+
/**
|
|
53369
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
53370
|
+
* given reader into the given message object.
|
|
53371
|
+
* @param {!proto.clarifai.api.DeleteMetadata} msg The message object to deserialize into.
|
|
53372
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
53373
|
+
* @return {!proto.clarifai.api.DeleteMetadata}
|
|
53374
|
+
*/
|
|
53375
|
+
proto.clarifai.api.DeleteMetadata.deserializeBinaryFromReader = function(msg, reader) {
|
|
52858
53376
|
while (reader.nextField()) {
|
|
52859
53377
|
if (reader.isEndGroup()) {
|
|
52860
53378
|
break;
|
|
@@ -53196,6 +53714,13 @@ proto.clarifai.api.DeleteGeo.serializeBinaryToWriter = function(message, writer)
|
|
|
53196
53714
|
|
|
53197
53715
|
|
|
53198
53716
|
|
|
53717
|
+
/**
|
|
53718
|
+
* List of repeated fields within this message type.
|
|
53719
|
+
* @private {!Array<number>}
|
|
53720
|
+
* @const
|
|
53721
|
+
*/
|
|
53722
|
+
proto.clarifai.api.InputsAddJob.repeatedFields_ = [10];
|
|
53723
|
+
|
|
53199
53724
|
|
|
53200
53725
|
|
|
53201
53726
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -53233,7 +53758,9 @@ proto.clarifai.api.InputsAddJob.toObject = function(includeInstance, msg) {
|
|
|
53233
53758
|
appPat: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
53234
53759
|
progress: (f = msg.getProgress()) && proto.clarifai.api.InputsAddJobProgress.toObject(includeInstance, f),
|
|
53235
53760
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53236
|
-
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
53761
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53762
|
+
extractionJobsList: jspb.Message.toObjectList(msg.getExtractionJobsList(),
|
|
53763
|
+
proto.clarifai.api.InputsExtractionJob.toObject, includeInstance)
|
|
53237
53764
|
};
|
|
53238
53765
|
|
|
53239
53766
|
if (includeInstance) {
|
|
@@ -53301,6 +53828,11 @@ proto.clarifai.api.InputsAddJob.deserializeBinaryFromReader = function(msg, read
|
|
|
53301
53828
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
53302
53829
|
msg.setModifiedAt(value);
|
|
53303
53830
|
break;
|
|
53831
|
+
case 10:
|
|
53832
|
+
var value = new proto.clarifai.api.InputsExtractionJob;
|
|
53833
|
+
reader.readMessage(value,proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader);
|
|
53834
|
+
msg.addExtractionJobs(value);
|
|
53835
|
+
break;
|
|
53304
53836
|
default:
|
|
53305
53837
|
reader.skipField();
|
|
53306
53838
|
break;
|
|
@@ -53382,6 +53914,14 @@ proto.clarifai.api.InputsAddJob.serializeBinaryToWriter = function(message, writ
|
|
|
53382
53914
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
53383
53915
|
);
|
|
53384
53916
|
}
|
|
53917
|
+
f = message.getExtractionJobsList();
|
|
53918
|
+
if (f.length > 0) {
|
|
53919
|
+
writer.writeRepeatedMessage(
|
|
53920
|
+
10,
|
|
53921
|
+
f,
|
|
53922
|
+
proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter
|
|
53923
|
+
);
|
|
53924
|
+
}
|
|
53385
53925
|
};
|
|
53386
53926
|
|
|
53387
53927
|
|
|
@@ -53568,6 +54108,44 @@ proto.clarifai.api.InputsAddJob.prototype.hasModifiedAt = function() {
|
|
|
53568
54108
|
};
|
|
53569
54109
|
|
|
53570
54110
|
|
|
54111
|
+
/**
|
|
54112
|
+
* repeated InputsExtractionJob extraction_jobs = 10;
|
|
54113
|
+
* @return {!Array<!proto.clarifai.api.InputsExtractionJob>}
|
|
54114
|
+
*/
|
|
54115
|
+
proto.clarifai.api.InputsAddJob.prototype.getExtractionJobsList = function() {
|
|
54116
|
+
return /** @type{!Array<!proto.clarifai.api.InputsExtractionJob>} */ (
|
|
54117
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.InputsExtractionJob, 10));
|
|
54118
|
+
};
|
|
54119
|
+
|
|
54120
|
+
|
|
54121
|
+
/**
|
|
54122
|
+
* @param {!Array<!proto.clarifai.api.InputsExtractionJob>} value
|
|
54123
|
+
* @return {!proto.clarifai.api.InputsAddJob} returns this
|
|
54124
|
+
*/
|
|
54125
|
+
proto.clarifai.api.InputsAddJob.prototype.setExtractionJobsList = function(value) {
|
|
54126
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
54127
|
+
};
|
|
54128
|
+
|
|
54129
|
+
|
|
54130
|
+
/**
|
|
54131
|
+
* @param {!proto.clarifai.api.InputsExtractionJob=} opt_value
|
|
54132
|
+
* @param {number=} opt_index
|
|
54133
|
+
* @return {!proto.clarifai.api.InputsExtractionJob}
|
|
54134
|
+
*/
|
|
54135
|
+
proto.clarifai.api.InputsAddJob.prototype.addExtractionJobs = function(opt_value, opt_index) {
|
|
54136
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.clarifai.api.InputsExtractionJob, opt_index);
|
|
54137
|
+
};
|
|
54138
|
+
|
|
54139
|
+
|
|
54140
|
+
/**
|
|
54141
|
+
* Clears the list making it empty but non-null.
|
|
54142
|
+
* @return {!proto.clarifai.api.InputsAddJob} returns this
|
|
54143
|
+
*/
|
|
54144
|
+
proto.clarifai.api.InputsAddJob.prototype.clearExtractionJobsList = function() {
|
|
54145
|
+
return this.setExtractionJobsList([]);
|
|
54146
|
+
};
|
|
54147
|
+
|
|
54148
|
+
|
|
53571
54149
|
|
|
53572
54150
|
|
|
53573
54151
|
|
|
@@ -54426,81 +55004,1519 @@ proto.clarifai.api.UploadContentPart.prototype.setData = function(value) {
|
|
|
54426
55004
|
};
|
|
54427
55005
|
|
|
54428
55006
|
|
|
55007
|
+
|
|
55008
|
+
|
|
55009
|
+
|
|
55010
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54429
55011
|
/**
|
|
54430
|
-
*
|
|
55012
|
+
* Creates an object representation of this proto.
|
|
55013
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55014
|
+
* Optional fields that are not set will be set to undefined.
|
|
55015
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55016
|
+
* For the list of reserved names please see:
|
|
55017
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55018
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55019
|
+
* JSPB instance for transitional soy proto support:
|
|
55020
|
+
* http://goto/soy-param-migration
|
|
55021
|
+
* @return {!Object}
|
|
54431
55022
|
*/
|
|
54432
|
-
proto.clarifai.api.
|
|
54433
|
-
|
|
54434
|
-
INPUT_TYPE: 2,
|
|
54435
|
-
CONCEPT_ID: 10,
|
|
54436
|
-
CONCEPTS_COUNT: 11,
|
|
54437
|
-
BOUNDING_BOXES_COUNT: 20,
|
|
54438
|
-
POLYGONS_COUNT: 21,
|
|
54439
|
-
POINTS_COUNT: 22,
|
|
54440
|
-
MASKS_COUNT: 23,
|
|
54441
|
-
PIXELS_COUNT: 30,
|
|
54442
|
-
ASPECT_RATIO: 31
|
|
55023
|
+
proto.clarifai.api.InputsExtractionJob.prototype.toObject = function(opt_includeInstance) {
|
|
55024
|
+
return proto.clarifai.api.InputsExtractionJob.toObject(opt_includeInstance, this);
|
|
54443
55025
|
};
|
|
54444
55026
|
|
|
55027
|
+
|
|
54445
55028
|
/**
|
|
54446
|
-
* @
|
|
55029
|
+
* Static version of the {@see toObject} method.
|
|
55030
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55031
|
+
* the JSPB instance for transitional soy proto support:
|
|
55032
|
+
* http://goto/soy-param-migration
|
|
55033
|
+
* @param {!proto.clarifai.api.InputsExtractionJob} msg The msg instance to transform.
|
|
55034
|
+
* @return {!Object}
|
|
55035
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54447
55036
|
*/
|
|
54448
|
-
proto.clarifai.api.
|
|
54449
|
-
|
|
54450
|
-
|
|
54451
|
-
|
|
54452
|
-
|
|
55037
|
+
proto.clarifai.api.InputsExtractionJob.toObject = function(includeInstance, msg) {
|
|
55038
|
+
var f, obj = {
|
|
55039
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
55040
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
55041
|
+
url: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
55042
|
+
progress: (f = msg.getProgress()) && proto.clarifai.api.InputsExtractionJobProgress.toObject(includeInstance, f),
|
|
55043
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
55044
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
55045
|
+
};
|
|
55046
|
+
|
|
55047
|
+
if (includeInstance) {
|
|
55048
|
+
obj.$jspbMessageInstance = msg;
|
|
55049
|
+
}
|
|
55050
|
+
return obj;
|
|
54453
55051
|
};
|
|
55052
|
+
}
|
|
55053
|
+
|
|
54454
55054
|
|
|
54455
55055
|
/**
|
|
54456
|
-
*
|
|
55056
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55057
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55058
|
+
* @return {!proto.clarifai.api.InputsExtractionJob}
|
|
54457
55059
|
*/
|
|
54458
|
-
proto.clarifai.api.
|
|
54459
|
-
|
|
54460
|
-
|
|
54461
|
-
|
|
55060
|
+
proto.clarifai.api.InputsExtractionJob.deserializeBinary = function(bytes) {
|
|
55061
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55062
|
+
var msg = new proto.clarifai.api.InputsExtractionJob;
|
|
55063
|
+
return proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader(msg, reader);
|
|
54462
55064
|
};
|
|
54463
55065
|
|
|
55066
|
+
|
|
54464
55067
|
/**
|
|
54465
|
-
*
|
|
55068
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55069
|
+
* given reader into the given message object.
|
|
55070
|
+
* @param {!proto.clarifai.api.InputsExtractionJob} msg The message object to deserialize into.
|
|
55071
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55072
|
+
* @return {!proto.clarifai.api.InputsExtractionJob}
|
|
54466
55073
|
*/
|
|
54467
|
-
proto.clarifai.api.
|
|
54468
|
-
|
|
54469
|
-
|
|
54470
|
-
|
|
54471
|
-
|
|
55074
|
+
proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader = function(msg, reader) {
|
|
55075
|
+
while (reader.nextField()) {
|
|
55076
|
+
if (reader.isEndGroup()) {
|
|
55077
|
+
break;
|
|
55078
|
+
}
|
|
55079
|
+
var field = reader.getFieldNumber();
|
|
55080
|
+
switch (field) {
|
|
55081
|
+
case 1:
|
|
55082
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
55083
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
55084
|
+
msg.setStatus(value);
|
|
55085
|
+
break;
|
|
55086
|
+
case 2:
|
|
55087
|
+
var value = /** @type {string} */ (reader.readString());
|
|
55088
|
+
msg.setId(value);
|
|
55089
|
+
break;
|
|
55090
|
+
case 3:
|
|
55091
|
+
var value = /** @type {string} */ (reader.readString());
|
|
55092
|
+
msg.setUrl(value);
|
|
55093
|
+
break;
|
|
55094
|
+
case 4:
|
|
55095
|
+
var value = new proto.clarifai.api.InputsExtractionJobProgress;
|
|
55096
|
+
reader.readMessage(value,proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader);
|
|
55097
|
+
msg.setProgress(value);
|
|
55098
|
+
break;
|
|
55099
|
+
case 5:
|
|
55100
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
55101
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
55102
|
+
msg.setCreatedAt(value);
|
|
55103
|
+
break;
|
|
55104
|
+
case 6:
|
|
55105
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
55106
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
55107
|
+
msg.setModifiedAt(value);
|
|
55108
|
+
break;
|
|
55109
|
+
default:
|
|
55110
|
+
reader.skipField();
|
|
55111
|
+
break;
|
|
55112
|
+
}
|
|
55113
|
+
}
|
|
55114
|
+
return msg;
|
|
54472
55115
|
};
|
|
54473
55116
|
|
|
55117
|
+
|
|
54474
55118
|
/**
|
|
54475
|
-
*
|
|
55119
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55120
|
+
* @return {!Uint8Array}
|
|
54476
55121
|
*/
|
|
54477
|
-
proto.clarifai.api.
|
|
54478
|
-
|
|
54479
|
-
|
|
54480
|
-
|
|
54481
|
-
INT32: 3,
|
|
54482
|
-
INT64: 4,
|
|
54483
|
-
FP32: 5
|
|
55122
|
+
proto.clarifai.api.InputsExtractionJob.prototype.serializeBinary = function() {
|
|
55123
|
+
var writer = new jspb.BinaryWriter();
|
|
55124
|
+
proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter(this, writer);
|
|
55125
|
+
return writer.getResultBuffer();
|
|
54484
55126
|
};
|
|
54485
55127
|
|
|
55128
|
+
|
|
54486
55129
|
/**
|
|
54487
|
-
*
|
|
55130
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55131
|
+
* format), writing to the given BinaryWriter.
|
|
55132
|
+
* @param {!proto.clarifai.api.InputsExtractionJob} message
|
|
55133
|
+
* @param {!jspb.BinaryWriter} writer
|
|
55134
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54488
55135
|
*/
|
|
54489
|
-
proto.clarifai.api.
|
|
54490
|
-
|
|
54491
|
-
|
|
54492
|
-
|
|
54493
|
-
|
|
54494
|
-
|
|
54495
|
-
|
|
55136
|
+
proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter = function(message, writer) {
|
|
55137
|
+
var f = undefined;
|
|
55138
|
+
f = message.getStatus();
|
|
55139
|
+
if (f != null) {
|
|
55140
|
+
writer.writeMessage(
|
|
55141
|
+
1,
|
|
55142
|
+
f,
|
|
55143
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
55144
|
+
);
|
|
55145
|
+
}
|
|
55146
|
+
f = message.getId();
|
|
55147
|
+
if (f.length > 0) {
|
|
55148
|
+
writer.writeString(
|
|
55149
|
+
2,
|
|
55150
|
+
f
|
|
55151
|
+
);
|
|
55152
|
+
}
|
|
55153
|
+
f = message.getUrl();
|
|
55154
|
+
if (f.length > 0) {
|
|
55155
|
+
writer.writeString(
|
|
55156
|
+
3,
|
|
55157
|
+
f
|
|
55158
|
+
);
|
|
55159
|
+
}
|
|
55160
|
+
f = message.getProgress();
|
|
55161
|
+
if (f != null) {
|
|
55162
|
+
writer.writeMessage(
|
|
55163
|
+
4,
|
|
55164
|
+
f,
|
|
55165
|
+
proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter
|
|
55166
|
+
);
|
|
55167
|
+
}
|
|
55168
|
+
f = message.getCreatedAt();
|
|
55169
|
+
if (f != null) {
|
|
55170
|
+
writer.writeMessage(
|
|
55171
|
+
5,
|
|
55172
|
+
f,
|
|
55173
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
55174
|
+
);
|
|
55175
|
+
}
|
|
55176
|
+
f = message.getModifiedAt();
|
|
55177
|
+
if (f != null) {
|
|
55178
|
+
writer.writeMessage(
|
|
55179
|
+
6,
|
|
55180
|
+
f,
|
|
55181
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
55182
|
+
);
|
|
55183
|
+
}
|
|
54496
55184
|
};
|
|
54497
55185
|
|
|
55186
|
+
|
|
54498
55187
|
/**
|
|
54499
|
-
*
|
|
55188
|
+
* optional status.Status status = 1;
|
|
55189
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
54500
55190
|
*/
|
|
54501
|
-
proto.clarifai.api.
|
|
54502
|
-
|
|
54503
|
-
|
|
55191
|
+
proto.clarifai.api.InputsExtractionJob.prototype.getStatus = function() {
|
|
55192
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
55193
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
55194
|
+
};
|
|
55195
|
+
|
|
55196
|
+
|
|
55197
|
+
/**
|
|
55198
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
55199
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55200
|
+
*/
|
|
55201
|
+
proto.clarifai.api.InputsExtractionJob.prototype.setStatus = function(value) {
|
|
55202
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
55203
|
+
};
|
|
55204
|
+
|
|
55205
|
+
|
|
55206
|
+
/**
|
|
55207
|
+
* Clears the message field making it undefined.
|
|
55208
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55209
|
+
*/
|
|
55210
|
+
proto.clarifai.api.InputsExtractionJob.prototype.clearStatus = function() {
|
|
55211
|
+
return this.setStatus(undefined);
|
|
55212
|
+
};
|
|
55213
|
+
|
|
55214
|
+
|
|
55215
|
+
/**
|
|
55216
|
+
* Returns whether this field is set.
|
|
55217
|
+
* @return {boolean}
|
|
55218
|
+
*/
|
|
55219
|
+
proto.clarifai.api.InputsExtractionJob.prototype.hasStatus = function() {
|
|
55220
|
+
return jspb.Message.getField(this, 1) != null;
|
|
55221
|
+
};
|
|
55222
|
+
|
|
55223
|
+
|
|
55224
|
+
/**
|
|
55225
|
+
* optional string id = 2;
|
|
55226
|
+
* @return {string}
|
|
55227
|
+
*/
|
|
55228
|
+
proto.clarifai.api.InputsExtractionJob.prototype.getId = function() {
|
|
55229
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
55230
|
+
};
|
|
55231
|
+
|
|
55232
|
+
|
|
55233
|
+
/**
|
|
55234
|
+
* @param {string} value
|
|
55235
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55236
|
+
*/
|
|
55237
|
+
proto.clarifai.api.InputsExtractionJob.prototype.setId = function(value) {
|
|
55238
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
55239
|
+
};
|
|
55240
|
+
|
|
55241
|
+
|
|
55242
|
+
/**
|
|
55243
|
+
* optional string url = 3;
|
|
55244
|
+
* @return {string}
|
|
55245
|
+
*/
|
|
55246
|
+
proto.clarifai.api.InputsExtractionJob.prototype.getUrl = function() {
|
|
55247
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
55248
|
+
};
|
|
55249
|
+
|
|
55250
|
+
|
|
55251
|
+
/**
|
|
55252
|
+
* @param {string} value
|
|
55253
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55254
|
+
*/
|
|
55255
|
+
proto.clarifai.api.InputsExtractionJob.prototype.setUrl = function(value) {
|
|
55256
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
55257
|
+
};
|
|
55258
|
+
|
|
55259
|
+
|
|
55260
|
+
/**
|
|
55261
|
+
* optional InputsExtractionJobProgress progress = 4;
|
|
55262
|
+
* @return {?proto.clarifai.api.InputsExtractionJobProgress}
|
|
55263
|
+
*/
|
|
55264
|
+
proto.clarifai.api.InputsExtractionJob.prototype.getProgress = function() {
|
|
55265
|
+
return /** @type{?proto.clarifai.api.InputsExtractionJobProgress} */ (
|
|
55266
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.InputsExtractionJobProgress, 4));
|
|
55267
|
+
};
|
|
55268
|
+
|
|
55269
|
+
|
|
55270
|
+
/**
|
|
55271
|
+
* @param {?proto.clarifai.api.InputsExtractionJobProgress|undefined} value
|
|
55272
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55273
|
+
*/
|
|
55274
|
+
proto.clarifai.api.InputsExtractionJob.prototype.setProgress = function(value) {
|
|
55275
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
55276
|
+
};
|
|
55277
|
+
|
|
55278
|
+
|
|
55279
|
+
/**
|
|
55280
|
+
* Clears the message field making it undefined.
|
|
55281
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55282
|
+
*/
|
|
55283
|
+
proto.clarifai.api.InputsExtractionJob.prototype.clearProgress = function() {
|
|
55284
|
+
return this.setProgress(undefined);
|
|
55285
|
+
};
|
|
55286
|
+
|
|
55287
|
+
|
|
55288
|
+
/**
|
|
55289
|
+
* Returns whether this field is set.
|
|
55290
|
+
* @return {boolean}
|
|
55291
|
+
*/
|
|
55292
|
+
proto.clarifai.api.InputsExtractionJob.prototype.hasProgress = function() {
|
|
55293
|
+
return jspb.Message.getField(this, 4) != null;
|
|
55294
|
+
};
|
|
55295
|
+
|
|
55296
|
+
|
|
55297
|
+
/**
|
|
55298
|
+
* optional google.protobuf.Timestamp created_at = 5;
|
|
55299
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
55300
|
+
*/
|
|
55301
|
+
proto.clarifai.api.InputsExtractionJob.prototype.getCreatedAt = function() {
|
|
55302
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
55303
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
55304
|
+
};
|
|
55305
|
+
|
|
55306
|
+
|
|
55307
|
+
/**
|
|
55308
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
55309
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55310
|
+
*/
|
|
55311
|
+
proto.clarifai.api.InputsExtractionJob.prototype.setCreatedAt = function(value) {
|
|
55312
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
55313
|
+
};
|
|
55314
|
+
|
|
55315
|
+
|
|
55316
|
+
/**
|
|
55317
|
+
* Clears the message field making it undefined.
|
|
55318
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55319
|
+
*/
|
|
55320
|
+
proto.clarifai.api.InputsExtractionJob.prototype.clearCreatedAt = function() {
|
|
55321
|
+
return this.setCreatedAt(undefined);
|
|
55322
|
+
};
|
|
55323
|
+
|
|
55324
|
+
|
|
55325
|
+
/**
|
|
55326
|
+
* Returns whether this field is set.
|
|
55327
|
+
* @return {boolean}
|
|
55328
|
+
*/
|
|
55329
|
+
proto.clarifai.api.InputsExtractionJob.prototype.hasCreatedAt = function() {
|
|
55330
|
+
return jspb.Message.getField(this, 5) != null;
|
|
55331
|
+
};
|
|
55332
|
+
|
|
55333
|
+
|
|
55334
|
+
/**
|
|
55335
|
+
* optional google.protobuf.Timestamp modified_at = 6;
|
|
55336
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
55337
|
+
*/
|
|
55338
|
+
proto.clarifai.api.InputsExtractionJob.prototype.getModifiedAt = function() {
|
|
55339
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
55340
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
55341
|
+
};
|
|
55342
|
+
|
|
55343
|
+
|
|
55344
|
+
/**
|
|
55345
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
55346
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55347
|
+
*/
|
|
55348
|
+
proto.clarifai.api.InputsExtractionJob.prototype.setModifiedAt = function(value) {
|
|
55349
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
55350
|
+
};
|
|
55351
|
+
|
|
55352
|
+
|
|
55353
|
+
/**
|
|
55354
|
+
* Clears the message field making it undefined.
|
|
55355
|
+
* @return {!proto.clarifai.api.InputsExtractionJob} returns this
|
|
55356
|
+
*/
|
|
55357
|
+
proto.clarifai.api.InputsExtractionJob.prototype.clearModifiedAt = function() {
|
|
55358
|
+
return this.setModifiedAt(undefined);
|
|
55359
|
+
};
|
|
55360
|
+
|
|
55361
|
+
|
|
55362
|
+
/**
|
|
55363
|
+
* Returns whether this field is set.
|
|
55364
|
+
* @return {boolean}
|
|
55365
|
+
*/
|
|
55366
|
+
proto.clarifai.api.InputsExtractionJob.prototype.hasModifiedAt = function() {
|
|
55367
|
+
return jspb.Message.getField(this, 6) != null;
|
|
55368
|
+
};
|
|
55369
|
+
|
|
55370
|
+
|
|
55371
|
+
|
|
55372
|
+
|
|
55373
|
+
|
|
55374
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55375
|
+
/**
|
|
55376
|
+
* Creates an object representation of this proto.
|
|
55377
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55378
|
+
* Optional fields that are not set will be set to undefined.
|
|
55379
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55380
|
+
* For the list of reserved names please see:
|
|
55381
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55382
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55383
|
+
* JSPB instance for transitional soy proto support:
|
|
55384
|
+
* http://goto/soy-param-migration
|
|
55385
|
+
* @return {!Object}
|
|
55386
|
+
*/
|
|
55387
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.toObject = function(opt_includeInstance) {
|
|
55388
|
+
return proto.clarifai.api.InputsExtractionJobProgress.toObject(opt_includeInstance, this);
|
|
55389
|
+
};
|
|
55390
|
+
|
|
55391
|
+
|
|
55392
|
+
/**
|
|
55393
|
+
* Static version of the {@see toObject} method.
|
|
55394
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55395
|
+
* the JSPB instance for transitional soy proto support:
|
|
55396
|
+
* http://goto/soy-param-migration
|
|
55397
|
+
* @param {!proto.clarifai.api.InputsExtractionJobProgress} msg The msg instance to transform.
|
|
55398
|
+
* @return {!Object}
|
|
55399
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55400
|
+
*/
|
|
55401
|
+
proto.clarifai.api.InputsExtractionJobProgress.toObject = function(includeInstance, msg) {
|
|
55402
|
+
var f, obj = {
|
|
55403
|
+
readObjectsCount: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
55404
|
+
audioInputsCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
55405
|
+
imageInputsCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
55406
|
+
videoInputsCount: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
55407
|
+
textInputsCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
55408
|
+
};
|
|
55409
|
+
|
|
55410
|
+
if (includeInstance) {
|
|
55411
|
+
obj.$jspbMessageInstance = msg;
|
|
55412
|
+
}
|
|
55413
|
+
return obj;
|
|
55414
|
+
};
|
|
55415
|
+
}
|
|
55416
|
+
|
|
55417
|
+
|
|
55418
|
+
/**
|
|
55419
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55420
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55421
|
+
* @return {!proto.clarifai.api.InputsExtractionJobProgress}
|
|
55422
|
+
*/
|
|
55423
|
+
proto.clarifai.api.InputsExtractionJobProgress.deserializeBinary = function(bytes) {
|
|
55424
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55425
|
+
var msg = new proto.clarifai.api.InputsExtractionJobProgress;
|
|
55426
|
+
return proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader(msg, reader);
|
|
55427
|
+
};
|
|
55428
|
+
|
|
55429
|
+
|
|
55430
|
+
/**
|
|
55431
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55432
|
+
* given reader into the given message object.
|
|
55433
|
+
* @param {!proto.clarifai.api.InputsExtractionJobProgress} msg The message object to deserialize into.
|
|
55434
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55435
|
+
* @return {!proto.clarifai.api.InputsExtractionJobProgress}
|
|
55436
|
+
*/
|
|
55437
|
+
proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader = function(msg, reader) {
|
|
55438
|
+
while (reader.nextField()) {
|
|
55439
|
+
if (reader.isEndGroup()) {
|
|
55440
|
+
break;
|
|
55441
|
+
}
|
|
55442
|
+
var field = reader.getFieldNumber();
|
|
55443
|
+
switch (field) {
|
|
55444
|
+
case 1:
|
|
55445
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
55446
|
+
msg.setReadObjectsCount(value);
|
|
55447
|
+
break;
|
|
55448
|
+
case 2:
|
|
55449
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
55450
|
+
msg.setAudioInputsCount(value);
|
|
55451
|
+
break;
|
|
55452
|
+
case 3:
|
|
55453
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
55454
|
+
msg.setImageInputsCount(value);
|
|
55455
|
+
break;
|
|
55456
|
+
case 4:
|
|
55457
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
55458
|
+
msg.setVideoInputsCount(value);
|
|
55459
|
+
break;
|
|
55460
|
+
case 5:
|
|
55461
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
55462
|
+
msg.setTextInputsCount(value);
|
|
55463
|
+
break;
|
|
55464
|
+
default:
|
|
55465
|
+
reader.skipField();
|
|
55466
|
+
break;
|
|
55467
|
+
}
|
|
55468
|
+
}
|
|
55469
|
+
return msg;
|
|
55470
|
+
};
|
|
55471
|
+
|
|
55472
|
+
|
|
55473
|
+
/**
|
|
55474
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55475
|
+
* @return {!Uint8Array}
|
|
55476
|
+
*/
|
|
55477
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.serializeBinary = function() {
|
|
55478
|
+
var writer = new jspb.BinaryWriter();
|
|
55479
|
+
proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter(this, writer);
|
|
55480
|
+
return writer.getResultBuffer();
|
|
55481
|
+
};
|
|
55482
|
+
|
|
55483
|
+
|
|
55484
|
+
/**
|
|
55485
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55486
|
+
* format), writing to the given BinaryWriter.
|
|
55487
|
+
* @param {!proto.clarifai.api.InputsExtractionJobProgress} message
|
|
55488
|
+
* @param {!jspb.BinaryWriter} writer
|
|
55489
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55490
|
+
*/
|
|
55491
|
+
proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter = function(message, writer) {
|
|
55492
|
+
var f = undefined;
|
|
55493
|
+
f = message.getReadObjectsCount();
|
|
55494
|
+
if (f !== 0) {
|
|
55495
|
+
writer.writeUint64(
|
|
55496
|
+
1,
|
|
55497
|
+
f
|
|
55498
|
+
);
|
|
55499
|
+
}
|
|
55500
|
+
f = message.getAudioInputsCount();
|
|
55501
|
+
if (f !== 0) {
|
|
55502
|
+
writer.writeUint64(
|
|
55503
|
+
2,
|
|
55504
|
+
f
|
|
55505
|
+
);
|
|
55506
|
+
}
|
|
55507
|
+
f = message.getImageInputsCount();
|
|
55508
|
+
if (f !== 0) {
|
|
55509
|
+
writer.writeUint64(
|
|
55510
|
+
3,
|
|
55511
|
+
f
|
|
55512
|
+
);
|
|
55513
|
+
}
|
|
55514
|
+
f = message.getVideoInputsCount();
|
|
55515
|
+
if (f !== 0) {
|
|
55516
|
+
writer.writeUint64(
|
|
55517
|
+
4,
|
|
55518
|
+
f
|
|
55519
|
+
);
|
|
55520
|
+
}
|
|
55521
|
+
f = message.getTextInputsCount();
|
|
55522
|
+
if (f !== 0) {
|
|
55523
|
+
writer.writeUint64(
|
|
55524
|
+
5,
|
|
55525
|
+
f
|
|
55526
|
+
);
|
|
55527
|
+
}
|
|
55528
|
+
};
|
|
55529
|
+
|
|
55530
|
+
|
|
55531
|
+
/**
|
|
55532
|
+
* optional uint64 read_objects_count = 1;
|
|
55533
|
+
* @return {number}
|
|
55534
|
+
*/
|
|
55535
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.getReadObjectsCount = function() {
|
|
55536
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
55537
|
+
};
|
|
55538
|
+
|
|
55539
|
+
|
|
55540
|
+
/**
|
|
55541
|
+
* @param {number} value
|
|
55542
|
+
* @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
|
|
55543
|
+
*/
|
|
55544
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.setReadObjectsCount = function(value) {
|
|
55545
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
55546
|
+
};
|
|
55547
|
+
|
|
55548
|
+
|
|
55549
|
+
/**
|
|
55550
|
+
* optional uint64 audio_inputs_count = 2;
|
|
55551
|
+
* @return {number}
|
|
55552
|
+
*/
|
|
55553
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.getAudioInputsCount = function() {
|
|
55554
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
55555
|
+
};
|
|
55556
|
+
|
|
55557
|
+
|
|
55558
|
+
/**
|
|
55559
|
+
* @param {number} value
|
|
55560
|
+
* @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
|
|
55561
|
+
*/
|
|
55562
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.setAudioInputsCount = function(value) {
|
|
55563
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
55564
|
+
};
|
|
55565
|
+
|
|
55566
|
+
|
|
55567
|
+
/**
|
|
55568
|
+
* optional uint64 image_inputs_count = 3;
|
|
55569
|
+
* @return {number}
|
|
55570
|
+
*/
|
|
55571
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.getImageInputsCount = function() {
|
|
55572
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
55573
|
+
};
|
|
55574
|
+
|
|
55575
|
+
|
|
55576
|
+
/**
|
|
55577
|
+
* @param {number} value
|
|
55578
|
+
* @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
|
|
55579
|
+
*/
|
|
55580
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.setImageInputsCount = function(value) {
|
|
55581
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
55582
|
+
};
|
|
55583
|
+
|
|
55584
|
+
|
|
55585
|
+
/**
|
|
55586
|
+
* optional uint64 video_inputs_count = 4;
|
|
55587
|
+
* @return {number}
|
|
55588
|
+
*/
|
|
55589
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.getVideoInputsCount = function() {
|
|
55590
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
55591
|
+
};
|
|
55592
|
+
|
|
55593
|
+
|
|
55594
|
+
/**
|
|
55595
|
+
* @param {number} value
|
|
55596
|
+
* @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
|
|
55597
|
+
*/
|
|
55598
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.setVideoInputsCount = function(value) {
|
|
55599
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
55600
|
+
};
|
|
55601
|
+
|
|
55602
|
+
|
|
55603
|
+
/**
|
|
55604
|
+
* optional uint64 text_inputs_count = 5;
|
|
55605
|
+
* @return {number}
|
|
55606
|
+
*/
|
|
55607
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.getTextInputsCount = function() {
|
|
55608
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
55609
|
+
};
|
|
55610
|
+
|
|
55611
|
+
|
|
55612
|
+
/**
|
|
55613
|
+
* @param {number} value
|
|
55614
|
+
* @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this
|
|
55615
|
+
*/
|
|
55616
|
+
proto.clarifai.api.InputsExtractionJobProgress.prototype.setTextInputsCount = function(value) {
|
|
55617
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
55618
|
+
};
|
|
55619
|
+
|
|
55620
|
+
|
|
55621
|
+
|
|
55622
|
+
|
|
55623
|
+
|
|
55624
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55625
|
+
/**
|
|
55626
|
+
* Creates an object representation of this proto.
|
|
55627
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55628
|
+
* Optional fields that are not set will be set to undefined.
|
|
55629
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55630
|
+
* For the list of reserved names please see:
|
|
55631
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55632
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55633
|
+
* JSPB instance for transitional soy proto support:
|
|
55634
|
+
* http://goto/soy-param-migration
|
|
55635
|
+
* @return {!Object}
|
|
55636
|
+
*/
|
|
55637
|
+
proto.clarifai.api.InputsDataSource.prototype.toObject = function(opt_includeInstance) {
|
|
55638
|
+
return proto.clarifai.api.InputsDataSource.toObject(opt_includeInstance, this);
|
|
55639
|
+
};
|
|
55640
|
+
|
|
55641
|
+
|
|
55642
|
+
/**
|
|
55643
|
+
* Static version of the {@see toObject} method.
|
|
55644
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55645
|
+
* the JSPB instance for transitional soy proto support:
|
|
55646
|
+
* http://goto/soy-param-migration
|
|
55647
|
+
* @param {!proto.clarifai.api.InputsDataSource} msg The msg instance to transform.
|
|
55648
|
+
* @return {!Object}
|
|
55649
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55650
|
+
*/
|
|
55651
|
+
proto.clarifai.api.InputsDataSource.toObject = function(includeInstance, msg) {
|
|
55652
|
+
var f, obj = {
|
|
55653
|
+
inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
55654
|
+
url: (f = msg.getUrl()) && proto.clarifai.api.DataSourceURL.toObject(includeInstance, f)
|
|
55655
|
+
};
|
|
55656
|
+
|
|
55657
|
+
if (includeInstance) {
|
|
55658
|
+
obj.$jspbMessageInstance = msg;
|
|
55659
|
+
}
|
|
55660
|
+
return obj;
|
|
55661
|
+
};
|
|
55662
|
+
}
|
|
55663
|
+
|
|
55664
|
+
|
|
55665
|
+
/**
|
|
55666
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55667
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55668
|
+
* @return {!proto.clarifai.api.InputsDataSource}
|
|
55669
|
+
*/
|
|
55670
|
+
proto.clarifai.api.InputsDataSource.deserializeBinary = function(bytes) {
|
|
55671
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55672
|
+
var msg = new proto.clarifai.api.InputsDataSource;
|
|
55673
|
+
return proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader(msg, reader);
|
|
55674
|
+
};
|
|
55675
|
+
|
|
55676
|
+
|
|
55677
|
+
/**
|
|
55678
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55679
|
+
* given reader into the given message object.
|
|
55680
|
+
* @param {!proto.clarifai.api.InputsDataSource} msg The message object to deserialize into.
|
|
55681
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55682
|
+
* @return {!proto.clarifai.api.InputsDataSource}
|
|
55683
|
+
*/
|
|
55684
|
+
proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader = function(msg, reader) {
|
|
55685
|
+
while (reader.nextField()) {
|
|
55686
|
+
if (reader.isEndGroup()) {
|
|
55687
|
+
break;
|
|
55688
|
+
}
|
|
55689
|
+
var field = reader.getFieldNumber();
|
|
55690
|
+
switch (field) {
|
|
55691
|
+
case 1:
|
|
55692
|
+
var value = /** @type {string} */ (reader.readString());
|
|
55693
|
+
msg.setInputsAddJobId(value);
|
|
55694
|
+
break;
|
|
55695
|
+
case 2:
|
|
55696
|
+
var value = new proto.clarifai.api.DataSourceURL;
|
|
55697
|
+
reader.readMessage(value,proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader);
|
|
55698
|
+
msg.setUrl(value);
|
|
55699
|
+
break;
|
|
55700
|
+
default:
|
|
55701
|
+
reader.skipField();
|
|
55702
|
+
break;
|
|
55703
|
+
}
|
|
55704
|
+
}
|
|
55705
|
+
return msg;
|
|
55706
|
+
};
|
|
55707
|
+
|
|
55708
|
+
|
|
55709
|
+
/**
|
|
55710
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55711
|
+
* @return {!Uint8Array}
|
|
55712
|
+
*/
|
|
55713
|
+
proto.clarifai.api.InputsDataSource.prototype.serializeBinary = function() {
|
|
55714
|
+
var writer = new jspb.BinaryWriter();
|
|
55715
|
+
proto.clarifai.api.InputsDataSource.serializeBinaryToWriter(this, writer);
|
|
55716
|
+
return writer.getResultBuffer();
|
|
55717
|
+
};
|
|
55718
|
+
|
|
55719
|
+
|
|
55720
|
+
/**
|
|
55721
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55722
|
+
* format), writing to the given BinaryWriter.
|
|
55723
|
+
* @param {!proto.clarifai.api.InputsDataSource} message
|
|
55724
|
+
* @param {!jspb.BinaryWriter} writer
|
|
55725
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55726
|
+
*/
|
|
55727
|
+
proto.clarifai.api.InputsDataSource.serializeBinaryToWriter = function(message, writer) {
|
|
55728
|
+
var f = undefined;
|
|
55729
|
+
f = message.getInputsAddJobId();
|
|
55730
|
+
if (f.length > 0) {
|
|
55731
|
+
writer.writeString(
|
|
55732
|
+
1,
|
|
55733
|
+
f
|
|
55734
|
+
);
|
|
55735
|
+
}
|
|
55736
|
+
f = message.getUrl();
|
|
55737
|
+
if (f != null) {
|
|
55738
|
+
writer.writeMessage(
|
|
55739
|
+
2,
|
|
55740
|
+
f,
|
|
55741
|
+
proto.clarifai.api.DataSourceURL.serializeBinaryToWriter
|
|
55742
|
+
);
|
|
55743
|
+
}
|
|
55744
|
+
};
|
|
55745
|
+
|
|
55746
|
+
|
|
55747
|
+
/**
|
|
55748
|
+
* optional string inputs_add_job_id = 1;
|
|
55749
|
+
* @return {string}
|
|
55750
|
+
*/
|
|
55751
|
+
proto.clarifai.api.InputsDataSource.prototype.getInputsAddJobId = function() {
|
|
55752
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
55753
|
+
};
|
|
55754
|
+
|
|
55755
|
+
|
|
55756
|
+
/**
|
|
55757
|
+
* @param {string} value
|
|
55758
|
+
* @return {!proto.clarifai.api.InputsDataSource} returns this
|
|
55759
|
+
*/
|
|
55760
|
+
proto.clarifai.api.InputsDataSource.prototype.setInputsAddJobId = function(value) {
|
|
55761
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
55762
|
+
};
|
|
55763
|
+
|
|
55764
|
+
|
|
55765
|
+
/**
|
|
55766
|
+
* optional DataSourceURL url = 2;
|
|
55767
|
+
* @return {?proto.clarifai.api.DataSourceURL}
|
|
55768
|
+
*/
|
|
55769
|
+
proto.clarifai.api.InputsDataSource.prototype.getUrl = function() {
|
|
55770
|
+
return /** @type{?proto.clarifai.api.DataSourceURL} */ (
|
|
55771
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.DataSourceURL, 2));
|
|
55772
|
+
};
|
|
55773
|
+
|
|
55774
|
+
|
|
55775
|
+
/**
|
|
55776
|
+
* @param {?proto.clarifai.api.DataSourceURL|undefined} value
|
|
55777
|
+
* @return {!proto.clarifai.api.InputsDataSource} returns this
|
|
55778
|
+
*/
|
|
55779
|
+
proto.clarifai.api.InputsDataSource.prototype.setUrl = function(value) {
|
|
55780
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
55781
|
+
};
|
|
55782
|
+
|
|
55783
|
+
|
|
55784
|
+
/**
|
|
55785
|
+
* Clears the message field making it undefined.
|
|
55786
|
+
* @return {!proto.clarifai.api.InputsDataSource} returns this
|
|
55787
|
+
*/
|
|
55788
|
+
proto.clarifai.api.InputsDataSource.prototype.clearUrl = function() {
|
|
55789
|
+
return this.setUrl(undefined);
|
|
55790
|
+
};
|
|
55791
|
+
|
|
55792
|
+
|
|
55793
|
+
/**
|
|
55794
|
+
* Returns whether this field is set.
|
|
55795
|
+
* @return {boolean}
|
|
55796
|
+
*/
|
|
55797
|
+
proto.clarifai.api.InputsDataSource.prototype.hasUrl = function() {
|
|
55798
|
+
return jspb.Message.getField(this, 2) != null;
|
|
55799
|
+
};
|
|
55800
|
+
|
|
55801
|
+
|
|
55802
|
+
|
|
55803
|
+
|
|
55804
|
+
|
|
55805
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
55806
|
+
/**
|
|
55807
|
+
* Creates an object representation of this proto.
|
|
55808
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55809
|
+
* Optional fields that are not set will be set to undefined.
|
|
55810
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55811
|
+
* For the list of reserved names please see:
|
|
55812
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
55813
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
55814
|
+
* JSPB instance for transitional soy proto support:
|
|
55815
|
+
* http://goto/soy-param-migration
|
|
55816
|
+
* @return {!Object}
|
|
55817
|
+
*/
|
|
55818
|
+
proto.clarifai.api.DataSourceURL.prototype.toObject = function(opt_includeInstance) {
|
|
55819
|
+
return proto.clarifai.api.DataSourceURL.toObject(opt_includeInstance, this);
|
|
55820
|
+
};
|
|
55821
|
+
|
|
55822
|
+
|
|
55823
|
+
/**
|
|
55824
|
+
* Static version of the {@see toObject} method.
|
|
55825
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
55826
|
+
* the JSPB instance for transitional soy proto support:
|
|
55827
|
+
* http://goto/soy-param-migration
|
|
55828
|
+
* @param {!proto.clarifai.api.DataSourceURL} msg The msg instance to transform.
|
|
55829
|
+
* @return {!Object}
|
|
55830
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55831
|
+
*/
|
|
55832
|
+
proto.clarifai.api.DataSourceURL.toObject = function(includeInstance, msg) {
|
|
55833
|
+
var f, obj = {
|
|
55834
|
+
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
55835
|
+
credentials: (f = msg.getCredentials()) && proto.clarifai.api.DataSourceCredentials.toObject(includeInstance, f)
|
|
55836
|
+
};
|
|
55837
|
+
|
|
55838
|
+
if (includeInstance) {
|
|
55839
|
+
obj.$jspbMessageInstance = msg;
|
|
55840
|
+
}
|
|
55841
|
+
return obj;
|
|
55842
|
+
};
|
|
55843
|
+
}
|
|
55844
|
+
|
|
55845
|
+
|
|
55846
|
+
/**
|
|
55847
|
+
* Deserializes binary data (in protobuf wire format).
|
|
55848
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
55849
|
+
* @return {!proto.clarifai.api.DataSourceURL}
|
|
55850
|
+
*/
|
|
55851
|
+
proto.clarifai.api.DataSourceURL.deserializeBinary = function(bytes) {
|
|
55852
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
55853
|
+
var msg = new proto.clarifai.api.DataSourceURL;
|
|
55854
|
+
return proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader(msg, reader);
|
|
55855
|
+
};
|
|
55856
|
+
|
|
55857
|
+
|
|
55858
|
+
/**
|
|
55859
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
55860
|
+
* given reader into the given message object.
|
|
55861
|
+
* @param {!proto.clarifai.api.DataSourceURL} msg The message object to deserialize into.
|
|
55862
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
55863
|
+
* @return {!proto.clarifai.api.DataSourceURL}
|
|
55864
|
+
*/
|
|
55865
|
+
proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader = function(msg, reader) {
|
|
55866
|
+
while (reader.nextField()) {
|
|
55867
|
+
if (reader.isEndGroup()) {
|
|
55868
|
+
break;
|
|
55869
|
+
}
|
|
55870
|
+
var field = reader.getFieldNumber();
|
|
55871
|
+
switch (field) {
|
|
55872
|
+
case 1:
|
|
55873
|
+
var value = /** @type {string} */ (reader.readString());
|
|
55874
|
+
msg.setUrl(value);
|
|
55875
|
+
break;
|
|
55876
|
+
case 2:
|
|
55877
|
+
var value = new proto.clarifai.api.DataSourceCredentials;
|
|
55878
|
+
reader.readMessage(value,proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader);
|
|
55879
|
+
msg.setCredentials(value);
|
|
55880
|
+
break;
|
|
55881
|
+
default:
|
|
55882
|
+
reader.skipField();
|
|
55883
|
+
break;
|
|
55884
|
+
}
|
|
55885
|
+
}
|
|
55886
|
+
return msg;
|
|
55887
|
+
};
|
|
55888
|
+
|
|
55889
|
+
|
|
55890
|
+
/**
|
|
55891
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
55892
|
+
* @return {!Uint8Array}
|
|
55893
|
+
*/
|
|
55894
|
+
proto.clarifai.api.DataSourceURL.prototype.serializeBinary = function() {
|
|
55895
|
+
var writer = new jspb.BinaryWriter();
|
|
55896
|
+
proto.clarifai.api.DataSourceURL.serializeBinaryToWriter(this, writer);
|
|
55897
|
+
return writer.getResultBuffer();
|
|
55898
|
+
};
|
|
55899
|
+
|
|
55900
|
+
|
|
55901
|
+
/**
|
|
55902
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
55903
|
+
* format), writing to the given BinaryWriter.
|
|
55904
|
+
* @param {!proto.clarifai.api.DataSourceURL} message
|
|
55905
|
+
* @param {!jspb.BinaryWriter} writer
|
|
55906
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
55907
|
+
*/
|
|
55908
|
+
proto.clarifai.api.DataSourceURL.serializeBinaryToWriter = function(message, writer) {
|
|
55909
|
+
var f = undefined;
|
|
55910
|
+
f = message.getUrl();
|
|
55911
|
+
if (f.length > 0) {
|
|
55912
|
+
writer.writeString(
|
|
55913
|
+
1,
|
|
55914
|
+
f
|
|
55915
|
+
);
|
|
55916
|
+
}
|
|
55917
|
+
f = message.getCredentials();
|
|
55918
|
+
if (f != null) {
|
|
55919
|
+
writer.writeMessage(
|
|
55920
|
+
2,
|
|
55921
|
+
f,
|
|
55922
|
+
proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter
|
|
55923
|
+
);
|
|
55924
|
+
}
|
|
55925
|
+
};
|
|
55926
|
+
|
|
55927
|
+
|
|
55928
|
+
/**
|
|
55929
|
+
* optional string url = 1;
|
|
55930
|
+
* @return {string}
|
|
55931
|
+
*/
|
|
55932
|
+
proto.clarifai.api.DataSourceURL.prototype.getUrl = function() {
|
|
55933
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
55934
|
+
};
|
|
55935
|
+
|
|
55936
|
+
|
|
55937
|
+
/**
|
|
55938
|
+
* @param {string} value
|
|
55939
|
+
* @return {!proto.clarifai.api.DataSourceURL} returns this
|
|
55940
|
+
*/
|
|
55941
|
+
proto.clarifai.api.DataSourceURL.prototype.setUrl = function(value) {
|
|
55942
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
55943
|
+
};
|
|
55944
|
+
|
|
55945
|
+
|
|
55946
|
+
/**
|
|
55947
|
+
* optional DataSourceCredentials credentials = 2;
|
|
55948
|
+
* @return {?proto.clarifai.api.DataSourceCredentials}
|
|
55949
|
+
*/
|
|
55950
|
+
proto.clarifai.api.DataSourceURL.prototype.getCredentials = function() {
|
|
55951
|
+
return /** @type{?proto.clarifai.api.DataSourceCredentials} */ (
|
|
55952
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.DataSourceCredentials, 2));
|
|
55953
|
+
};
|
|
55954
|
+
|
|
55955
|
+
|
|
55956
|
+
/**
|
|
55957
|
+
* @param {?proto.clarifai.api.DataSourceCredentials|undefined} value
|
|
55958
|
+
* @return {!proto.clarifai.api.DataSourceURL} returns this
|
|
55959
|
+
*/
|
|
55960
|
+
proto.clarifai.api.DataSourceURL.prototype.setCredentials = function(value) {
|
|
55961
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
55962
|
+
};
|
|
55963
|
+
|
|
55964
|
+
|
|
55965
|
+
/**
|
|
55966
|
+
* Clears the message field making it undefined.
|
|
55967
|
+
* @return {!proto.clarifai.api.DataSourceURL} returns this
|
|
55968
|
+
*/
|
|
55969
|
+
proto.clarifai.api.DataSourceURL.prototype.clearCredentials = function() {
|
|
55970
|
+
return this.setCredentials(undefined);
|
|
55971
|
+
};
|
|
55972
|
+
|
|
55973
|
+
|
|
55974
|
+
/**
|
|
55975
|
+
* Returns whether this field is set.
|
|
55976
|
+
* @return {boolean}
|
|
55977
|
+
*/
|
|
55978
|
+
proto.clarifai.api.DataSourceURL.prototype.hasCredentials = function() {
|
|
55979
|
+
return jspb.Message.getField(this, 2) != null;
|
|
55980
|
+
};
|
|
55981
|
+
|
|
55982
|
+
|
|
55983
|
+
|
|
55984
|
+
/**
|
|
55985
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
55986
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
55987
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
55988
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
55989
|
+
* @private {!Array<!Array<number>>}
|
|
55990
|
+
* @const
|
|
55991
|
+
*/
|
|
55992
|
+
proto.clarifai.api.DataSourceCredentials.oneofGroups_ = [[1,2,3]];
|
|
55993
|
+
|
|
55994
|
+
/**
|
|
55995
|
+
* @enum {number}
|
|
55996
|
+
*/
|
|
55997
|
+
proto.clarifai.api.DataSourceCredentials.CredentialsCase = {
|
|
55998
|
+
CREDENTIALS_NOT_SET: 0,
|
|
55999
|
+
S3_CREDS: 1,
|
|
56000
|
+
GCP_CREDS: 2,
|
|
56001
|
+
AZURE_BLOB_CREDS: 3
|
|
56002
|
+
};
|
|
56003
|
+
|
|
56004
|
+
/**
|
|
56005
|
+
* @return {proto.clarifai.api.DataSourceCredentials.CredentialsCase}
|
|
56006
|
+
*/
|
|
56007
|
+
proto.clarifai.api.DataSourceCredentials.prototype.getCredentialsCase = function() {
|
|
56008
|
+
return /** @type {proto.clarifai.api.DataSourceCredentials.CredentialsCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0]));
|
|
56009
|
+
};
|
|
56010
|
+
|
|
56011
|
+
|
|
56012
|
+
|
|
56013
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56014
|
+
/**
|
|
56015
|
+
* Creates an object representation of this proto.
|
|
56016
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
56017
|
+
* Optional fields that are not set will be set to undefined.
|
|
56018
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
56019
|
+
* For the list of reserved names please see:
|
|
56020
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
56021
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
56022
|
+
* JSPB instance for transitional soy proto support:
|
|
56023
|
+
* http://goto/soy-param-migration
|
|
56024
|
+
* @return {!Object}
|
|
56025
|
+
*/
|
|
56026
|
+
proto.clarifai.api.DataSourceCredentials.prototype.toObject = function(opt_includeInstance) {
|
|
56027
|
+
return proto.clarifai.api.DataSourceCredentials.toObject(opt_includeInstance, this);
|
|
56028
|
+
};
|
|
56029
|
+
|
|
56030
|
+
|
|
56031
|
+
/**
|
|
56032
|
+
* Static version of the {@see toObject} method.
|
|
56033
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
56034
|
+
* the JSPB instance for transitional soy proto support:
|
|
56035
|
+
* http://goto/soy-param-migration
|
|
56036
|
+
* @param {!proto.clarifai.api.DataSourceCredentials} msg The msg instance to transform.
|
|
56037
|
+
* @return {!Object}
|
|
56038
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56039
|
+
*/
|
|
56040
|
+
proto.clarifai.api.DataSourceCredentials.toObject = function(includeInstance, msg) {
|
|
56041
|
+
var f, obj = {
|
|
56042
|
+
s3Creds: (f = msg.getS3Creds()) && proto.clarifai.api.AWSCreds.toObject(includeInstance, f),
|
|
56043
|
+
gcpCreds: msg.getGcpCreds_asB64(),
|
|
56044
|
+
azureBlobCreds: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
56045
|
+
};
|
|
56046
|
+
|
|
56047
|
+
if (includeInstance) {
|
|
56048
|
+
obj.$jspbMessageInstance = msg;
|
|
56049
|
+
}
|
|
56050
|
+
return obj;
|
|
56051
|
+
};
|
|
56052
|
+
}
|
|
56053
|
+
|
|
56054
|
+
|
|
56055
|
+
/**
|
|
56056
|
+
* Deserializes binary data (in protobuf wire format).
|
|
56057
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
56058
|
+
* @return {!proto.clarifai.api.DataSourceCredentials}
|
|
56059
|
+
*/
|
|
56060
|
+
proto.clarifai.api.DataSourceCredentials.deserializeBinary = function(bytes) {
|
|
56061
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
56062
|
+
var msg = new proto.clarifai.api.DataSourceCredentials;
|
|
56063
|
+
return proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader(msg, reader);
|
|
56064
|
+
};
|
|
56065
|
+
|
|
56066
|
+
|
|
56067
|
+
/**
|
|
56068
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
56069
|
+
* given reader into the given message object.
|
|
56070
|
+
* @param {!proto.clarifai.api.DataSourceCredentials} msg The message object to deserialize into.
|
|
56071
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
56072
|
+
* @return {!proto.clarifai.api.DataSourceCredentials}
|
|
56073
|
+
*/
|
|
56074
|
+
proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader = function(msg, reader) {
|
|
56075
|
+
while (reader.nextField()) {
|
|
56076
|
+
if (reader.isEndGroup()) {
|
|
56077
|
+
break;
|
|
56078
|
+
}
|
|
56079
|
+
var field = reader.getFieldNumber();
|
|
56080
|
+
switch (field) {
|
|
56081
|
+
case 1:
|
|
56082
|
+
var value = new proto.clarifai.api.AWSCreds;
|
|
56083
|
+
reader.readMessage(value,proto.clarifai.api.AWSCreds.deserializeBinaryFromReader);
|
|
56084
|
+
msg.setS3Creds(value);
|
|
56085
|
+
break;
|
|
56086
|
+
case 2:
|
|
56087
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
56088
|
+
msg.setGcpCreds(value);
|
|
56089
|
+
break;
|
|
56090
|
+
case 3:
|
|
56091
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56092
|
+
msg.setAzureBlobCreds(value);
|
|
56093
|
+
break;
|
|
56094
|
+
default:
|
|
56095
|
+
reader.skipField();
|
|
56096
|
+
break;
|
|
56097
|
+
}
|
|
56098
|
+
}
|
|
56099
|
+
return msg;
|
|
56100
|
+
};
|
|
56101
|
+
|
|
56102
|
+
|
|
56103
|
+
/**
|
|
56104
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
56105
|
+
* @return {!Uint8Array}
|
|
56106
|
+
*/
|
|
56107
|
+
proto.clarifai.api.DataSourceCredentials.prototype.serializeBinary = function() {
|
|
56108
|
+
var writer = new jspb.BinaryWriter();
|
|
56109
|
+
proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter(this, writer);
|
|
56110
|
+
return writer.getResultBuffer();
|
|
56111
|
+
};
|
|
56112
|
+
|
|
56113
|
+
|
|
56114
|
+
/**
|
|
56115
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
56116
|
+
* format), writing to the given BinaryWriter.
|
|
56117
|
+
* @param {!proto.clarifai.api.DataSourceCredentials} message
|
|
56118
|
+
* @param {!jspb.BinaryWriter} writer
|
|
56119
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56120
|
+
*/
|
|
56121
|
+
proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter = function(message, writer) {
|
|
56122
|
+
var f = undefined;
|
|
56123
|
+
f = message.getS3Creds();
|
|
56124
|
+
if (f != null) {
|
|
56125
|
+
writer.writeMessage(
|
|
56126
|
+
1,
|
|
56127
|
+
f,
|
|
56128
|
+
proto.clarifai.api.AWSCreds.serializeBinaryToWriter
|
|
56129
|
+
);
|
|
56130
|
+
}
|
|
56131
|
+
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
|
|
56132
|
+
if (f != null) {
|
|
56133
|
+
writer.writeBytes(
|
|
56134
|
+
2,
|
|
56135
|
+
f
|
|
56136
|
+
);
|
|
56137
|
+
}
|
|
56138
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
56139
|
+
if (f != null) {
|
|
56140
|
+
writer.writeString(
|
|
56141
|
+
3,
|
|
56142
|
+
f
|
|
56143
|
+
);
|
|
56144
|
+
}
|
|
56145
|
+
};
|
|
56146
|
+
|
|
56147
|
+
|
|
56148
|
+
/**
|
|
56149
|
+
* optional AWSCreds s3_creds = 1;
|
|
56150
|
+
* @return {?proto.clarifai.api.AWSCreds}
|
|
56151
|
+
*/
|
|
56152
|
+
proto.clarifai.api.DataSourceCredentials.prototype.getS3Creds = function() {
|
|
56153
|
+
return /** @type{?proto.clarifai.api.AWSCreds} */ (
|
|
56154
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.AWSCreds, 1));
|
|
56155
|
+
};
|
|
56156
|
+
|
|
56157
|
+
|
|
56158
|
+
/**
|
|
56159
|
+
* @param {?proto.clarifai.api.AWSCreds|undefined} value
|
|
56160
|
+
* @return {!proto.clarifai.api.DataSourceCredentials} returns this
|
|
56161
|
+
*/
|
|
56162
|
+
proto.clarifai.api.DataSourceCredentials.prototype.setS3Creds = function(value) {
|
|
56163
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value);
|
|
56164
|
+
};
|
|
56165
|
+
|
|
56166
|
+
|
|
56167
|
+
/**
|
|
56168
|
+
* Clears the message field making it undefined.
|
|
56169
|
+
* @return {!proto.clarifai.api.DataSourceCredentials} returns this
|
|
56170
|
+
*/
|
|
56171
|
+
proto.clarifai.api.DataSourceCredentials.prototype.clearS3Creds = function() {
|
|
56172
|
+
return this.setS3Creds(undefined);
|
|
56173
|
+
};
|
|
56174
|
+
|
|
56175
|
+
|
|
56176
|
+
/**
|
|
56177
|
+
* Returns whether this field is set.
|
|
56178
|
+
* @return {boolean}
|
|
56179
|
+
*/
|
|
56180
|
+
proto.clarifai.api.DataSourceCredentials.prototype.hasS3Creds = function() {
|
|
56181
|
+
return jspb.Message.getField(this, 1) != null;
|
|
56182
|
+
};
|
|
56183
|
+
|
|
56184
|
+
|
|
56185
|
+
/**
|
|
56186
|
+
* optional bytes gcp_creds = 2;
|
|
56187
|
+
* @return {string}
|
|
56188
|
+
*/
|
|
56189
|
+
proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds = function() {
|
|
56190
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
56191
|
+
};
|
|
56192
|
+
|
|
56193
|
+
|
|
56194
|
+
/**
|
|
56195
|
+
* optional bytes gcp_creds = 2;
|
|
56196
|
+
* This is a type-conversion wrapper around `getGcpCreds()`
|
|
56197
|
+
* @return {string}
|
|
56198
|
+
*/
|
|
56199
|
+
proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds_asB64 = function() {
|
|
56200
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
56201
|
+
this.getGcpCreds()));
|
|
56202
|
+
};
|
|
56203
|
+
|
|
56204
|
+
|
|
56205
|
+
/**
|
|
56206
|
+
* optional bytes gcp_creds = 2;
|
|
56207
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
56208
|
+
* @see http://caniuse.com/Uint8Array
|
|
56209
|
+
* This is a type-conversion wrapper around `getGcpCreds()`
|
|
56210
|
+
* @return {!Uint8Array}
|
|
56211
|
+
*/
|
|
56212
|
+
proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds_asU8 = function() {
|
|
56213
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
56214
|
+
this.getGcpCreds()));
|
|
56215
|
+
};
|
|
56216
|
+
|
|
56217
|
+
|
|
56218
|
+
/**
|
|
56219
|
+
* @param {!(string|Uint8Array)} value
|
|
56220
|
+
* @return {!proto.clarifai.api.DataSourceCredentials} returns this
|
|
56221
|
+
*/
|
|
56222
|
+
proto.clarifai.api.DataSourceCredentials.prototype.setGcpCreds = function(value) {
|
|
56223
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value);
|
|
56224
|
+
};
|
|
56225
|
+
|
|
56226
|
+
|
|
56227
|
+
/**
|
|
56228
|
+
* Clears the field making it undefined.
|
|
56229
|
+
* @return {!proto.clarifai.api.DataSourceCredentials} returns this
|
|
56230
|
+
*/
|
|
56231
|
+
proto.clarifai.api.DataSourceCredentials.prototype.clearGcpCreds = function() {
|
|
56232
|
+
return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], undefined);
|
|
56233
|
+
};
|
|
56234
|
+
|
|
56235
|
+
|
|
56236
|
+
/**
|
|
56237
|
+
* Returns whether this field is set.
|
|
56238
|
+
* @return {boolean}
|
|
56239
|
+
*/
|
|
56240
|
+
proto.clarifai.api.DataSourceCredentials.prototype.hasGcpCreds = function() {
|
|
56241
|
+
return jspb.Message.getField(this, 2) != null;
|
|
56242
|
+
};
|
|
56243
|
+
|
|
56244
|
+
|
|
56245
|
+
/**
|
|
56246
|
+
* optional string azure_blob_creds = 3;
|
|
56247
|
+
* @return {string}
|
|
56248
|
+
*/
|
|
56249
|
+
proto.clarifai.api.DataSourceCredentials.prototype.getAzureBlobCreds = function() {
|
|
56250
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
56251
|
+
};
|
|
56252
|
+
|
|
56253
|
+
|
|
56254
|
+
/**
|
|
56255
|
+
* @param {string} value
|
|
56256
|
+
* @return {!proto.clarifai.api.DataSourceCredentials} returns this
|
|
56257
|
+
*/
|
|
56258
|
+
proto.clarifai.api.DataSourceCredentials.prototype.setAzureBlobCreds = function(value) {
|
|
56259
|
+
return jspb.Message.setOneofField(this, 3, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value);
|
|
56260
|
+
};
|
|
56261
|
+
|
|
56262
|
+
|
|
56263
|
+
/**
|
|
56264
|
+
* Clears the field making it undefined.
|
|
56265
|
+
* @return {!proto.clarifai.api.DataSourceCredentials} returns this
|
|
56266
|
+
*/
|
|
56267
|
+
proto.clarifai.api.DataSourceCredentials.prototype.clearAzureBlobCreds = function() {
|
|
56268
|
+
return jspb.Message.setOneofField(this, 3, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], undefined);
|
|
56269
|
+
};
|
|
56270
|
+
|
|
56271
|
+
|
|
56272
|
+
/**
|
|
56273
|
+
* Returns whether this field is set.
|
|
56274
|
+
* @return {boolean}
|
|
56275
|
+
*/
|
|
56276
|
+
proto.clarifai.api.DataSourceCredentials.prototype.hasAzureBlobCreds = function() {
|
|
56277
|
+
return jspb.Message.getField(this, 3) != null;
|
|
56278
|
+
};
|
|
56279
|
+
|
|
56280
|
+
|
|
56281
|
+
|
|
56282
|
+
|
|
56283
|
+
|
|
56284
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56285
|
+
/**
|
|
56286
|
+
* Creates an object representation of this proto.
|
|
56287
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
56288
|
+
* Optional fields that are not set will be set to undefined.
|
|
56289
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
56290
|
+
* For the list of reserved names please see:
|
|
56291
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
56292
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
56293
|
+
* JSPB instance for transitional soy proto support:
|
|
56294
|
+
* http://goto/soy-param-migration
|
|
56295
|
+
* @return {!Object}
|
|
56296
|
+
*/
|
|
56297
|
+
proto.clarifai.api.AWSCreds.prototype.toObject = function(opt_includeInstance) {
|
|
56298
|
+
return proto.clarifai.api.AWSCreds.toObject(opt_includeInstance, this);
|
|
56299
|
+
};
|
|
56300
|
+
|
|
56301
|
+
|
|
56302
|
+
/**
|
|
56303
|
+
* Static version of the {@see toObject} method.
|
|
56304
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
56305
|
+
* the JSPB instance for transitional soy proto support:
|
|
56306
|
+
* http://goto/soy-param-migration
|
|
56307
|
+
* @param {!proto.clarifai.api.AWSCreds} msg The msg instance to transform.
|
|
56308
|
+
* @return {!Object}
|
|
56309
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56310
|
+
*/
|
|
56311
|
+
proto.clarifai.api.AWSCreds.toObject = function(includeInstance, msg) {
|
|
56312
|
+
var f, obj = {
|
|
56313
|
+
creds: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
56314
|
+
region: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
56315
|
+
};
|
|
56316
|
+
|
|
56317
|
+
if (includeInstance) {
|
|
56318
|
+
obj.$jspbMessageInstance = msg;
|
|
56319
|
+
}
|
|
56320
|
+
return obj;
|
|
56321
|
+
};
|
|
56322
|
+
}
|
|
56323
|
+
|
|
56324
|
+
|
|
56325
|
+
/**
|
|
56326
|
+
* Deserializes binary data (in protobuf wire format).
|
|
56327
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
56328
|
+
* @return {!proto.clarifai.api.AWSCreds}
|
|
56329
|
+
*/
|
|
56330
|
+
proto.clarifai.api.AWSCreds.deserializeBinary = function(bytes) {
|
|
56331
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
56332
|
+
var msg = new proto.clarifai.api.AWSCreds;
|
|
56333
|
+
return proto.clarifai.api.AWSCreds.deserializeBinaryFromReader(msg, reader);
|
|
56334
|
+
};
|
|
56335
|
+
|
|
56336
|
+
|
|
56337
|
+
/**
|
|
56338
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
56339
|
+
* given reader into the given message object.
|
|
56340
|
+
* @param {!proto.clarifai.api.AWSCreds} msg The message object to deserialize into.
|
|
56341
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
56342
|
+
* @return {!proto.clarifai.api.AWSCreds}
|
|
56343
|
+
*/
|
|
56344
|
+
proto.clarifai.api.AWSCreds.deserializeBinaryFromReader = function(msg, reader) {
|
|
56345
|
+
while (reader.nextField()) {
|
|
56346
|
+
if (reader.isEndGroup()) {
|
|
56347
|
+
break;
|
|
56348
|
+
}
|
|
56349
|
+
var field = reader.getFieldNumber();
|
|
56350
|
+
switch (field) {
|
|
56351
|
+
case 1:
|
|
56352
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56353
|
+
msg.setCreds(value);
|
|
56354
|
+
break;
|
|
56355
|
+
case 2:
|
|
56356
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56357
|
+
msg.setRegion(value);
|
|
56358
|
+
break;
|
|
56359
|
+
default:
|
|
56360
|
+
reader.skipField();
|
|
56361
|
+
break;
|
|
56362
|
+
}
|
|
56363
|
+
}
|
|
56364
|
+
return msg;
|
|
56365
|
+
};
|
|
56366
|
+
|
|
56367
|
+
|
|
56368
|
+
/**
|
|
56369
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
56370
|
+
* @return {!Uint8Array}
|
|
56371
|
+
*/
|
|
56372
|
+
proto.clarifai.api.AWSCreds.prototype.serializeBinary = function() {
|
|
56373
|
+
var writer = new jspb.BinaryWriter();
|
|
56374
|
+
proto.clarifai.api.AWSCreds.serializeBinaryToWriter(this, writer);
|
|
56375
|
+
return writer.getResultBuffer();
|
|
56376
|
+
};
|
|
56377
|
+
|
|
56378
|
+
|
|
56379
|
+
/**
|
|
56380
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
56381
|
+
* format), writing to the given BinaryWriter.
|
|
56382
|
+
* @param {!proto.clarifai.api.AWSCreds} message
|
|
56383
|
+
* @param {!jspb.BinaryWriter} writer
|
|
56384
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56385
|
+
*/
|
|
56386
|
+
proto.clarifai.api.AWSCreds.serializeBinaryToWriter = function(message, writer) {
|
|
56387
|
+
var f = undefined;
|
|
56388
|
+
f = message.getCreds();
|
|
56389
|
+
if (f.length > 0) {
|
|
56390
|
+
writer.writeString(
|
|
56391
|
+
1,
|
|
56392
|
+
f
|
|
56393
|
+
);
|
|
56394
|
+
}
|
|
56395
|
+
f = message.getRegion();
|
|
56396
|
+
if (f.length > 0) {
|
|
56397
|
+
writer.writeString(
|
|
56398
|
+
2,
|
|
56399
|
+
f
|
|
56400
|
+
);
|
|
56401
|
+
}
|
|
56402
|
+
};
|
|
56403
|
+
|
|
56404
|
+
|
|
56405
|
+
/**
|
|
56406
|
+
* optional string creds = 1;
|
|
56407
|
+
* @return {string}
|
|
56408
|
+
*/
|
|
56409
|
+
proto.clarifai.api.AWSCreds.prototype.getCreds = function() {
|
|
56410
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
56411
|
+
};
|
|
56412
|
+
|
|
56413
|
+
|
|
56414
|
+
/**
|
|
56415
|
+
* @param {string} value
|
|
56416
|
+
* @return {!proto.clarifai.api.AWSCreds} returns this
|
|
56417
|
+
*/
|
|
56418
|
+
proto.clarifai.api.AWSCreds.prototype.setCreds = function(value) {
|
|
56419
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
56420
|
+
};
|
|
56421
|
+
|
|
56422
|
+
|
|
56423
|
+
/**
|
|
56424
|
+
* optional string region = 2;
|
|
56425
|
+
* @return {string}
|
|
56426
|
+
*/
|
|
56427
|
+
proto.clarifai.api.AWSCreds.prototype.getRegion = function() {
|
|
56428
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
56429
|
+
};
|
|
56430
|
+
|
|
56431
|
+
|
|
56432
|
+
/**
|
|
56433
|
+
* @param {string} value
|
|
56434
|
+
* @return {!proto.clarifai.api.AWSCreds} returns this
|
|
56435
|
+
*/
|
|
56436
|
+
proto.clarifai.api.AWSCreds.prototype.setRegion = function(value) {
|
|
56437
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
56438
|
+
};
|
|
56439
|
+
|
|
56440
|
+
|
|
56441
|
+
/**
|
|
56442
|
+
* @enum {number}
|
|
56443
|
+
*/
|
|
56444
|
+
proto.clarifai.api.DatasetVersionMetricsGroupType = {
|
|
56445
|
+
DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
|
|
56446
|
+
INPUT_TYPE: 2,
|
|
56447
|
+
CONCEPT_ID: 10,
|
|
56448
|
+
CONCEPTS_COUNT: 11,
|
|
56449
|
+
BOUNDING_BOXES_COUNT: 20,
|
|
56450
|
+
POLYGONS_COUNT: 21,
|
|
56451
|
+
POINTS_COUNT: 22,
|
|
56452
|
+
MASKS_COUNT: 23,
|
|
56453
|
+
PIXELS_COUNT: 30,
|
|
56454
|
+
ASPECT_RATIO: 31
|
|
56455
|
+
};
|
|
56456
|
+
|
|
56457
|
+
/**
|
|
56458
|
+
* @enum {number}
|
|
56459
|
+
*/
|
|
56460
|
+
proto.clarifai.api.DatasetVersionExportFormat = {
|
|
56461
|
+
DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0,
|
|
56462
|
+
CLARIFAI_DATA_PROTOBUF: 1,
|
|
56463
|
+
CLARIFAI_DATA_JSON: 3,
|
|
56464
|
+
COCO: 2
|
|
56465
|
+
};
|
|
56466
|
+
|
|
56467
|
+
/**
|
|
56468
|
+
* @enum {number}
|
|
56469
|
+
*/
|
|
56470
|
+
proto.clarifai.api.ExpirationAction = {
|
|
56471
|
+
EXPIRATION_ACTION_NOT_SET: 0,
|
|
56472
|
+
DELAY: 1,
|
|
56473
|
+
EXPIRY: 2
|
|
56474
|
+
};
|
|
56475
|
+
|
|
56476
|
+
/**
|
|
56477
|
+
* @enum {number}
|
|
56478
|
+
*/
|
|
56479
|
+
proto.clarifai.api.LicenseScope = {
|
|
56480
|
+
LICENSE_SCOPE_NOT_SET: 0,
|
|
56481
|
+
PREDICT: 1,
|
|
56482
|
+
TRAIN: 2,
|
|
56483
|
+
SEARCH: 3
|
|
56484
|
+
};
|
|
56485
|
+
|
|
56486
|
+
/**
|
|
56487
|
+
* @enum {number}
|
|
56488
|
+
*/
|
|
56489
|
+
proto.clarifai.api.DataType = {
|
|
56490
|
+
UNDEFINED: 0,
|
|
56491
|
+
STRING: 1,
|
|
56492
|
+
UINT8: 2,
|
|
56493
|
+
INT32: 3,
|
|
56494
|
+
INT64: 4,
|
|
56495
|
+
FP32: 5
|
|
56496
|
+
};
|
|
56497
|
+
|
|
56498
|
+
/**
|
|
56499
|
+
* @enum {number}
|
|
56500
|
+
*/
|
|
56501
|
+
proto.clarifai.api.ValueComparator = {
|
|
56502
|
+
CONCEPT_THRESHOLD_NOT_SET: 0,
|
|
56503
|
+
GREATER_THAN: 1,
|
|
56504
|
+
GREATER_THAN_OR_EQUAL: 2,
|
|
56505
|
+
LESS_THAN: 3,
|
|
56506
|
+
LESS_THAN_OR_EQUAL: 4,
|
|
56507
|
+
EQUAL: 5
|
|
56508
|
+
};
|
|
56509
|
+
|
|
56510
|
+
/**
|
|
56511
|
+
* @enum {number}
|
|
56512
|
+
*/
|
|
56513
|
+
proto.clarifai.api.EvaluationType = {
|
|
56514
|
+
UNDEFINED: 0,
|
|
56515
|
+
CLASSIFICATION: 1,
|
|
56516
|
+
DETECTION: 2,
|
|
56517
|
+
SEGMENTATION: 3,
|
|
56518
|
+
CLUSTERING: 4,
|
|
56519
|
+
TRACKER: 5
|
|
54504
56520
|
};
|
|
54505
56521
|
|
|
54506
56522
|
/**
|