clarifai-web-grpc 10.9.4 → 10.10.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/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +977 -223
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +0 -84
- package/dist/cjs/proto/clarifai/api/service_pb.js +64 -595
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +977 -223
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +0 -84
- package/dist/esm/proto/clarifai/api/service_pb.js +64 -595
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +177 -40
- package/proto/clarifai/api/resources_pb.js +1218 -267
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +0 -24
- package/proto/clarifai/api/service_grpc_web_pb.js +0 -122
- package/proto/clarifai/api/service_pb.d.ts +9 -86
- package/proto/clarifai/api/service_pb.js +82 -732
- package/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/proto/clarifai/api/status/status_code_pb.js +1 -0
|
@@ -49,6 +49,7 @@ goog.exportSymbol('proto.clarifai.api.AnnotationFilter', null, global);
|
|
|
49
49
|
goog.exportSymbol('proto.clarifai.api.AnnotationFilterConfig', null, global);
|
|
50
50
|
goog.exportSymbol('proto.clarifai.api.AnnotationSearchMetrics', null, global);
|
|
51
51
|
goog.exportSymbol('proto.clarifai.api.App', null, global);
|
|
52
|
+
goog.exportSymbol('proto.clarifai.api.App.EmbeddingsStorage', null, global);
|
|
52
53
|
goog.exportSymbol('proto.clarifai.api.AppCopyProgress', null, global);
|
|
53
54
|
goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
|
|
54
55
|
goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
|
|
@@ -77,6 +78,8 @@ goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
|
|
|
77
78
|
goog.exportSymbol('proto.clarifai.api.Collector', null, global);
|
|
78
79
|
goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
|
|
79
80
|
goog.exportSymbol('proto.clarifai.api.Color', null, global);
|
|
81
|
+
goog.exportSymbol('proto.clarifai.api.CommitmentValue', null, global);
|
|
82
|
+
goog.exportSymbol('proto.clarifai.api.CommitmentValue.CommitmentType', null, global);
|
|
80
83
|
goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
|
|
81
84
|
goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
|
|
82
85
|
goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
@@ -221,6 +224,7 @@ goog.exportSymbol('proto.clarifai.api.ROC', null, global);
|
|
|
221
224
|
goog.exportSymbol('proto.clarifai.api.Rank', null, global);
|
|
222
225
|
goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
223
226
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
227
|
+
goog.exportSymbol('proto.clarifai.api.Role', null, global);
|
|
224
228
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
225
229
|
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
226
230
|
goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
|
|
@@ -262,6 +266,7 @@ goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, glob
|
|
|
262
266
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.WorkerType', null, global);
|
|
263
267
|
goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo', null, global);
|
|
264
268
|
goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy', null, global);
|
|
269
|
+
goog.exportSymbol('proto.clarifai.api.Team', null, global);
|
|
265
270
|
goog.exportSymbol('proto.clarifai.api.Text', null, global);
|
|
266
271
|
goog.exportSymbol('proto.clarifai.api.TextInfo', null, global);
|
|
267
272
|
goog.exportSymbol('proto.clarifai.api.ThresholdRange', null, global);
|
|
@@ -273,7 +278,6 @@ goog.exportSymbol('proto.clarifai.api.Track', null, global);
|
|
|
273
278
|
goog.exportSymbol('proto.clarifai.api.TrackerMetrics', null, global);
|
|
274
279
|
goog.exportSymbol('proto.clarifai.api.TrainInfo', null, global);
|
|
275
280
|
goog.exportSymbol('proto.clarifai.api.TrainStats', null, global);
|
|
276
|
-
goog.exportSymbol('proto.clarifai.api.TrendingMetric', null, global);
|
|
277
281
|
goog.exportSymbol('proto.clarifai.api.TritonCondaEnvInfo', null, global);
|
|
278
282
|
goog.exportSymbol('proto.clarifai.api.Upload', null, global);
|
|
279
283
|
goog.exportSymbol('proto.clarifai.api.UploadContentPart', null, global);
|
|
@@ -2884,6 +2888,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2884
2888
|
*/
|
|
2885
2889
|
proto.clarifai.api.PasswordViolations.displayName = 'proto.clarifai.api.PasswordViolations';
|
|
2886
2890
|
}
|
|
2891
|
+
/**
|
|
2892
|
+
* Generated by JsPbCodeGenerator.
|
|
2893
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2894
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2895
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2896
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2897
|
+
* valid.
|
|
2898
|
+
* @extends {jspb.Message}
|
|
2899
|
+
* @constructor
|
|
2900
|
+
*/
|
|
2901
|
+
proto.clarifai.api.CommitmentValue = function (opt_data) {
|
|
2902
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2903
|
+
};
|
|
2904
|
+
goog.inherits(proto.clarifai.api.CommitmentValue, jspb.Message);
|
|
2905
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2906
|
+
/**
|
|
2907
|
+
* @public
|
|
2908
|
+
* @override
|
|
2909
|
+
*/
|
|
2910
|
+
proto.clarifai.api.CommitmentValue.displayName = 'proto.clarifai.api.CommitmentValue';
|
|
2911
|
+
}
|
|
2887
2912
|
/**
|
|
2888
2913
|
* Generated by JsPbCodeGenerator.
|
|
2889
2914
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3514,6 +3539,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3514
3539
|
*/
|
|
3515
3540
|
proto.clarifai.api.TaskInputSourceMetrics.displayName = 'proto.clarifai.api.TaskInputSourceMetrics';
|
|
3516
3541
|
}
|
|
3542
|
+
/**
|
|
3543
|
+
* Generated by JsPbCodeGenerator.
|
|
3544
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3545
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3546
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3547
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3548
|
+
* valid.
|
|
3549
|
+
* @extends {jspb.Message}
|
|
3550
|
+
* @constructor
|
|
3551
|
+
*/
|
|
3552
|
+
proto.clarifai.api.Role = function (opt_data) {
|
|
3553
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Role.repeatedFields_, null);
|
|
3554
|
+
};
|
|
3555
|
+
goog.inherits(proto.clarifai.api.Role, jspb.Message);
|
|
3556
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3557
|
+
/**
|
|
3558
|
+
* @public
|
|
3559
|
+
* @override
|
|
3560
|
+
*/
|
|
3561
|
+
proto.clarifai.api.Role.displayName = 'proto.clarifai.api.Role';
|
|
3562
|
+
}
|
|
3563
|
+
/**
|
|
3564
|
+
* Generated by JsPbCodeGenerator.
|
|
3565
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3566
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3567
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3568
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3569
|
+
* valid.
|
|
3570
|
+
* @extends {jspb.Message}
|
|
3571
|
+
* @constructor
|
|
3572
|
+
*/
|
|
3573
|
+
proto.clarifai.api.Team = function (opt_data) {
|
|
3574
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3575
|
+
};
|
|
3576
|
+
goog.inherits(proto.clarifai.api.Team, jspb.Message);
|
|
3577
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3578
|
+
/**
|
|
3579
|
+
* @public
|
|
3580
|
+
* @override
|
|
3581
|
+
*/
|
|
3582
|
+
proto.clarifai.api.Team.displayName = 'proto.clarifai.api.Team';
|
|
3583
|
+
}
|
|
3517
3584
|
/**
|
|
3518
3585
|
* Generated by JsPbCodeGenerator.
|
|
3519
3586
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3724,27 +3791,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3724
3791
|
*/
|
|
3725
3792
|
proto.clarifai.api.Visibility.displayName = 'proto.clarifai.api.Visibility';
|
|
3726
3793
|
}
|
|
3727
|
-
/**
|
|
3728
|
-
* Generated by JsPbCodeGenerator.
|
|
3729
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3730
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
3731
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
3732
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
3733
|
-
* valid.
|
|
3734
|
-
* @extends {jspb.Message}
|
|
3735
|
-
* @constructor
|
|
3736
|
-
*/
|
|
3737
|
-
proto.clarifai.api.TrendingMetric = function (opt_data) {
|
|
3738
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3739
|
-
};
|
|
3740
|
-
goog.inherits(proto.clarifai.api.TrendingMetric, jspb.Message);
|
|
3741
|
-
if (goog.DEBUG && !COMPILED) {
|
|
3742
|
-
/**
|
|
3743
|
-
* @public
|
|
3744
|
-
* @override
|
|
3745
|
-
*/
|
|
3746
|
-
proto.clarifai.api.TrendingMetric.displayName = 'proto.clarifai.api.TrendingMetric';
|
|
3747
|
-
}
|
|
3748
3794
|
/**
|
|
3749
3795
|
* Generated by JsPbCodeGenerator.
|
|
3750
3796
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5660,7 +5706,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5660
5706
|
notes: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
5661
5707
|
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
|
|
5662
5708
|
isTemplate: (f = msg.getIsTemplate()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
|
|
5663
|
-
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.AppExtraInfo.toObject(includeInstance, f)
|
|
5709
|
+
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.AppExtraInfo.toObject(includeInstance, f),
|
|
5710
|
+
embeddingsStorage: jspb.Message.getFieldWithDefault(msg, 26, 0)
|
|
5664
5711
|
};
|
|
5665
5712
|
if (includeInstance) {
|
|
5666
5713
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5780,6 +5827,10 @@ proto.clarifai.api.App.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
5780
5827
|
reader.readMessage(value, proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader);
|
|
5781
5828
|
msg.setExtraInfo(value);
|
|
5782
5829
|
break;
|
|
5830
|
+
case 26:
|
|
5831
|
+
var value = /** @type {!proto.clarifai.api.App.EmbeddingsStorage} */ (reader.readEnum());
|
|
5832
|
+
msg.setEmbeddingsStorage(value);
|
|
5833
|
+
break;
|
|
5783
5834
|
default:
|
|
5784
5835
|
reader.skipField();
|
|
5785
5836
|
break;
|
|
@@ -5885,6 +5936,18 @@ proto.clarifai.api.App.serializeBinaryToWriter = function (message, writer) {
|
|
|
5885
5936
|
if (f != null) {
|
|
5886
5937
|
writer.writeMessage(24, f, proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter);
|
|
5887
5938
|
}
|
|
5939
|
+
f = message.getEmbeddingsStorage();
|
|
5940
|
+
if (f !== 0.0) {
|
|
5941
|
+
writer.writeEnum(26, f);
|
|
5942
|
+
}
|
|
5943
|
+
};
|
|
5944
|
+
/**
|
|
5945
|
+
* @enum {number}
|
|
5946
|
+
*/
|
|
5947
|
+
proto.clarifai.api.App.EmbeddingsStorage = {
|
|
5948
|
+
EMBEDDING_STORAGE_NOT_SET: 0,
|
|
5949
|
+
POSTGRES: 1,
|
|
5950
|
+
QDRANT: 2
|
|
5888
5951
|
};
|
|
5889
5952
|
/**
|
|
5890
5953
|
* optional string id = 1;
|
|
@@ -6278,6 +6341,20 @@ proto.clarifai.api.App.prototype.clearExtraInfo = function () {
|
|
|
6278
6341
|
proto.clarifai.api.App.prototype.hasExtraInfo = function () {
|
|
6279
6342
|
return jspb.Message.getField(this, 24) != null;
|
|
6280
6343
|
};
|
|
6344
|
+
/**
|
|
6345
|
+
* optional EmbeddingsStorage embeddings_storage = 26;
|
|
6346
|
+
* @return {!proto.clarifai.api.App.EmbeddingsStorage}
|
|
6347
|
+
*/
|
|
6348
|
+
proto.clarifai.api.App.prototype.getEmbeddingsStorage = function () {
|
|
6349
|
+
return /** @type {!proto.clarifai.api.App.EmbeddingsStorage} */ (jspb.Message.getFieldWithDefault(this, 26, 0));
|
|
6350
|
+
};
|
|
6351
|
+
/**
|
|
6352
|
+
* @param {!proto.clarifai.api.App.EmbeddingsStorage} value
|
|
6353
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
6354
|
+
*/
|
|
6355
|
+
proto.clarifai.api.App.prototype.setEmbeddingsStorage = function (value) {
|
|
6356
|
+
return jspb.Message.setProto3EnumField(this, 26, value);
|
|
6357
|
+
};
|
|
6281
6358
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6282
6359
|
/**
|
|
6283
6360
|
* Creates an object representation of this proto.
|
|
@@ -10369,7 +10446,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
10369
10446
|
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10370
10447
|
useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
10371
10448
|
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
10372
|
-
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
|
|
10449
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
10450
|
+
ignoreAppConcepts: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
10373
10451
|
};
|
|
10374
10452
|
if (includeInstance) {
|
|
10375
10453
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10429,6 +10507,10 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function (msg, rea
|
|
|
10429
10507
|
reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
10430
10508
|
msg.setWorkflow(value);
|
|
10431
10509
|
break;
|
|
10510
|
+
case 7:
|
|
10511
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
10512
|
+
msg.setIgnoreAppConcepts(value);
|
|
10513
|
+
break;
|
|
10432
10514
|
default:
|
|
10433
10515
|
reader.skipField();
|
|
10434
10516
|
break;
|
|
@@ -10478,6 +10560,10 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function (message, wri
|
|
|
10478
10560
|
if (f != null) {
|
|
10479
10561
|
writer.writeMessage(6, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
|
|
10480
10562
|
}
|
|
10563
|
+
f = message.getIgnoreAppConcepts();
|
|
10564
|
+
if (f) {
|
|
10565
|
+
writer.writeBool(7, f);
|
|
10566
|
+
}
|
|
10481
10567
|
};
|
|
10482
10568
|
/**
|
|
10483
10569
|
* optional string name = 1;
|
|
@@ -10606,6 +10692,20 @@ proto.clarifai.api.ConceptQuery.prototype.clearWorkflow = function () {
|
|
|
10606
10692
|
proto.clarifai.api.ConceptQuery.prototype.hasWorkflow = function () {
|
|
10607
10693
|
return jspb.Message.getField(this, 6) != null;
|
|
10608
10694
|
};
|
|
10695
|
+
/**
|
|
10696
|
+
* optional bool ignore_app_concepts = 7;
|
|
10697
|
+
* @return {boolean}
|
|
10698
|
+
*/
|
|
10699
|
+
proto.clarifai.api.ConceptQuery.prototype.getIgnoreAppConcepts = function () {
|
|
10700
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
10701
|
+
};
|
|
10702
|
+
/**
|
|
10703
|
+
* @param {boolean} value
|
|
10704
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
10705
|
+
*/
|
|
10706
|
+
proto.clarifai.api.ConceptQuery.prototype.setIgnoreAppConcepts = function (value) {
|
|
10707
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
10708
|
+
};
|
|
10609
10709
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10610
10710
|
/**
|
|
10611
10711
|
* Creates an object representation of this proto.
|
|
@@ -34709,7 +34809,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
34709
34809
|
twoFactorAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
34710
34810
|
teamsCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
34711
34811
|
country: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
34712
|
-
state: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
34812
|
+
state: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
34813
|
+
commitmentValue: (f = msg.getCommitmentValue()) && proto.clarifai.api.CommitmentValue.toObject(includeInstance, f)
|
|
34713
34814
|
};
|
|
34714
34815
|
if (includeInstance) {
|
|
34715
34816
|
obj.$jspbMessageInstance = msg;
|
|
@@ -34795,6 +34896,11 @@ proto.clarifai.api.UserDetail.deserializeBinaryFromReader = function (msg, reade
|
|
|
34795
34896
|
var value = /** @type {string} */ (reader.readString());
|
|
34796
34897
|
msg.setState(value);
|
|
34797
34898
|
break;
|
|
34899
|
+
case 14:
|
|
34900
|
+
var value = new proto.clarifai.api.CommitmentValue;
|
|
34901
|
+
reader.readMessage(value, proto.clarifai.api.CommitmentValue.deserializeBinaryFromReader);
|
|
34902
|
+
msg.setCommitmentValue(value);
|
|
34903
|
+
break;
|
|
34798
34904
|
default:
|
|
34799
34905
|
reader.skipField();
|
|
34800
34906
|
break;
|
|
@@ -34868,6 +34974,10 @@ proto.clarifai.api.UserDetail.serializeBinaryToWriter = function (message, write
|
|
|
34868
34974
|
if (f.length > 0) {
|
|
34869
34975
|
writer.writeString(12, f);
|
|
34870
34976
|
}
|
|
34977
|
+
f = message.getCommitmentValue();
|
|
34978
|
+
if (f != null) {
|
|
34979
|
+
writer.writeMessage(14, f, proto.clarifai.api.CommitmentValue.serializeBinaryToWriter);
|
|
34980
|
+
}
|
|
34871
34981
|
};
|
|
34872
34982
|
/**
|
|
34873
34983
|
* optional string primary_email = 1;
|
|
@@ -35122,6 +35232,34 @@ proto.clarifai.api.UserDetail.prototype.getState = function () {
|
|
|
35122
35232
|
proto.clarifai.api.UserDetail.prototype.setState = function (value) {
|
|
35123
35233
|
return jspb.Message.setProto3StringField(this, 12, value);
|
|
35124
35234
|
};
|
|
35235
|
+
/**
|
|
35236
|
+
* optional CommitmentValue commitment_value = 14;
|
|
35237
|
+
* @return {?proto.clarifai.api.CommitmentValue}
|
|
35238
|
+
*/
|
|
35239
|
+
proto.clarifai.api.UserDetail.prototype.getCommitmentValue = function () {
|
|
35240
|
+
return /** @type{?proto.clarifai.api.CommitmentValue} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.CommitmentValue, 14));
|
|
35241
|
+
};
|
|
35242
|
+
/**
|
|
35243
|
+
* @param {?proto.clarifai.api.CommitmentValue|undefined} value
|
|
35244
|
+
* @return {!proto.clarifai.api.UserDetail} returns this
|
|
35245
|
+
*/
|
|
35246
|
+
proto.clarifai.api.UserDetail.prototype.setCommitmentValue = function (value) {
|
|
35247
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
35248
|
+
};
|
|
35249
|
+
/**
|
|
35250
|
+
* Clears the message field making it undefined.
|
|
35251
|
+
* @return {!proto.clarifai.api.UserDetail} returns this
|
|
35252
|
+
*/
|
|
35253
|
+
proto.clarifai.api.UserDetail.prototype.clearCommitmentValue = function () {
|
|
35254
|
+
return this.setCommitmentValue(undefined);
|
|
35255
|
+
};
|
|
35256
|
+
/**
|
|
35257
|
+
* Returns whether this field is set.
|
|
35258
|
+
* @return {boolean}
|
|
35259
|
+
*/
|
|
35260
|
+
proto.clarifai.api.UserDetail.prototype.hasCommitmentValue = function () {
|
|
35261
|
+
return jspb.Message.getField(this, 14) != null;
|
|
35262
|
+
};
|
|
35125
35263
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35126
35264
|
/**
|
|
35127
35265
|
* Creates an object representation of this proto.
|
|
@@ -35788,6 +35926,144 @@ proto.clarifai.api.PasswordViolations.prototype.getPasswordLifespan = function (
|
|
|
35788
35926
|
proto.clarifai.api.PasswordViolations.prototype.setPasswordLifespan = function (value) {
|
|
35789
35927
|
return jspb.Message.setProto3BooleanField(this, 14, value);
|
|
35790
35928
|
};
|
|
35929
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35930
|
+
/**
|
|
35931
|
+
* Creates an object representation of this proto.
|
|
35932
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
35933
|
+
* Optional fields that are not set will be set to undefined.
|
|
35934
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
35935
|
+
* For the list of reserved names please see:
|
|
35936
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
35937
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
35938
|
+
* JSPB instance for transitional soy proto support:
|
|
35939
|
+
* http://goto/soy-param-migration
|
|
35940
|
+
* @return {!Object}
|
|
35941
|
+
*/
|
|
35942
|
+
proto.clarifai.api.CommitmentValue.prototype.toObject = function (opt_includeInstance) {
|
|
35943
|
+
return proto.clarifai.api.CommitmentValue.toObject(opt_includeInstance, this);
|
|
35944
|
+
};
|
|
35945
|
+
/**
|
|
35946
|
+
* Static version of the {@see toObject} method.
|
|
35947
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
35948
|
+
* the JSPB instance for transitional soy proto support:
|
|
35949
|
+
* http://goto/soy-param-migration
|
|
35950
|
+
* @param {!proto.clarifai.api.CommitmentValue} msg The msg instance to transform.
|
|
35951
|
+
* @return {!Object}
|
|
35952
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35953
|
+
*/
|
|
35954
|
+
proto.clarifai.api.CommitmentValue.toObject = function (includeInstance, msg) {
|
|
35955
|
+
var f, obj = {
|
|
35956
|
+
value: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
35957
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
35958
|
+
};
|
|
35959
|
+
if (includeInstance) {
|
|
35960
|
+
obj.$jspbMessageInstance = msg;
|
|
35961
|
+
}
|
|
35962
|
+
return obj;
|
|
35963
|
+
};
|
|
35964
|
+
}
|
|
35965
|
+
/**
|
|
35966
|
+
* Deserializes binary data (in protobuf wire format).
|
|
35967
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
35968
|
+
* @return {!proto.clarifai.api.CommitmentValue}
|
|
35969
|
+
*/
|
|
35970
|
+
proto.clarifai.api.CommitmentValue.deserializeBinary = function (bytes) {
|
|
35971
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
35972
|
+
var msg = new proto.clarifai.api.CommitmentValue;
|
|
35973
|
+
return proto.clarifai.api.CommitmentValue.deserializeBinaryFromReader(msg, reader);
|
|
35974
|
+
};
|
|
35975
|
+
/**
|
|
35976
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
35977
|
+
* given reader into the given message object.
|
|
35978
|
+
* @param {!proto.clarifai.api.CommitmentValue} msg The message object to deserialize into.
|
|
35979
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
35980
|
+
* @return {!proto.clarifai.api.CommitmentValue}
|
|
35981
|
+
*/
|
|
35982
|
+
proto.clarifai.api.CommitmentValue.deserializeBinaryFromReader = function (msg, reader) {
|
|
35983
|
+
while (reader.nextField()) {
|
|
35984
|
+
if (reader.isEndGroup()) {
|
|
35985
|
+
break;
|
|
35986
|
+
}
|
|
35987
|
+
var field = reader.getFieldNumber();
|
|
35988
|
+
switch (field) {
|
|
35989
|
+
case 1:
|
|
35990
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
35991
|
+
msg.setValue(value);
|
|
35992
|
+
break;
|
|
35993
|
+
case 2:
|
|
35994
|
+
var value = /** @type {!proto.clarifai.api.CommitmentValue.CommitmentType} */ (reader.readEnum());
|
|
35995
|
+
msg.setType(value);
|
|
35996
|
+
break;
|
|
35997
|
+
default:
|
|
35998
|
+
reader.skipField();
|
|
35999
|
+
break;
|
|
36000
|
+
}
|
|
36001
|
+
}
|
|
36002
|
+
return msg;
|
|
36003
|
+
};
|
|
36004
|
+
/**
|
|
36005
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
36006
|
+
* @return {!Uint8Array}
|
|
36007
|
+
*/
|
|
36008
|
+
proto.clarifai.api.CommitmentValue.prototype.serializeBinary = function () {
|
|
36009
|
+
var writer = new jspb.BinaryWriter();
|
|
36010
|
+
proto.clarifai.api.CommitmentValue.serializeBinaryToWriter(this, writer);
|
|
36011
|
+
return writer.getResultBuffer();
|
|
36012
|
+
};
|
|
36013
|
+
/**
|
|
36014
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
36015
|
+
* format), writing to the given BinaryWriter.
|
|
36016
|
+
* @param {!proto.clarifai.api.CommitmentValue} message
|
|
36017
|
+
* @param {!jspb.BinaryWriter} writer
|
|
36018
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36019
|
+
*/
|
|
36020
|
+
proto.clarifai.api.CommitmentValue.serializeBinaryToWriter = function (message, writer) {
|
|
36021
|
+
var f = undefined;
|
|
36022
|
+
f = message.getValue();
|
|
36023
|
+
if (f !== 0) {
|
|
36024
|
+
writer.writeInt32(1, f);
|
|
36025
|
+
}
|
|
36026
|
+
f = message.getType();
|
|
36027
|
+
if (f !== 0.0) {
|
|
36028
|
+
writer.writeEnum(2, f);
|
|
36029
|
+
}
|
|
36030
|
+
};
|
|
36031
|
+
/**
|
|
36032
|
+
* @enum {number}
|
|
36033
|
+
*/
|
|
36034
|
+
proto.clarifai.api.CommitmentValue.CommitmentType = {
|
|
36035
|
+
TYPE_NOT_SET: 0,
|
|
36036
|
+
MONTHLY: 1,
|
|
36037
|
+
ANNUAL: 2
|
|
36038
|
+
};
|
|
36039
|
+
/**
|
|
36040
|
+
* optional int32 value = 1;
|
|
36041
|
+
* @return {number}
|
|
36042
|
+
*/
|
|
36043
|
+
proto.clarifai.api.CommitmentValue.prototype.getValue = function () {
|
|
36044
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
36045
|
+
};
|
|
36046
|
+
/**
|
|
36047
|
+
* @param {number} value
|
|
36048
|
+
* @return {!proto.clarifai.api.CommitmentValue} returns this
|
|
36049
|
+
*/
|
|
36050
|
+
proto.clarifai.api.CommitmentValue.prototype.setValue = function (value) {
|
|
36051
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
36052
|
+
};
|
|
36053
|
+
/**
|
|
36054
|
+
* optional CommitmentType type = 2;
|
|
36055
|
+
* @return {!proto.clarifai.api.CommitmentValue.CommitmentType}
|
|
36056
|
+
*/
|
|
36057
|
+
proto.clarifai.api.CommitmentValue.prototype.getType = function () {
|
|
36058
|
+
return /** @type {!proto.clarifai.api.CommitmentValue.CommitmentType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
36059
|
+
};
|
|
36060
|
+
/**
|
|
36061
|
+
* @param {!proto.clarifai.api.CommitmentValue.CommitmentType} value
|
|
36062
|
+
* @return {!proto.clarifai.api.CommitmentValue} returns this
|
|
36063
|
+
*/
|
|
36064
|
+
proto.clarifai.api.CommitmentValue.prototype.setType = function (value) {
|
|
36065
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
36066
|
+
};
|
|
35791
36067
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35792
36068
|
/**
|
|
35793
36069
|
* Creates an object representation of this proto.
|
|
@@ -43240,6 +43516,569 @@ proto.clarifai.api.TaskInputSourceMetrics.prototype.getInputsCountEstimated = fu
|
|
|
43240
43516
|
proto.clarifai.api.TaskInputSourceMetrics.prototype.setInputsCountEstimated = function (value) {
|
|
43241
43517
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
43242
43518
|
};
|
|
43519
|
+
/**
|
|
43520
|
+
* List of repeated fields within this message type.
|
|
43521
|
+
* @private {!Array<number>}
|
|
43522
|
+
* @const
|
|
43523
|
+
*/
|
|
43524
|
+
proto.clarifai.api.Role.repeatedFields_ = [6, 7];
|
|
43525
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43526
|
+
/**
|
|
43527
|
+
* Creates an object representation of this proto.
|
|
43528
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43529
|
+
* Optional fields that are not set will be set to undefined.
|
|
43530
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43531
|
+
* For the list of reserved names please see:
|
|
43532
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43533
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43534
|
+
* JSPB instance for transitional soy proto support:
|
|
43535
|
+
* http://goto/soy-param-migration
|
|
43536
|
+
* @return {!Object}
|
|
43537
|
+
*/
|
|
43538
|
+
proto.clarifai.api.Role.prototype.toObject = function (opt_includeInstance) {
|
|
43539
|
+
return proto.clarifai.api.Role.toObject(opt_includeInstance, this);
|
|
43540
|
+
};
|
|
43541
|
+
/**
|
|
43542
|
+
* Static version of the {@see toObject} method.
|
|
43543
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43544
|
+
* the JSPB instance for transitional soy proto support:
|
|
43545
|
+
* http://goto/soy-param-migration
|
|
43546
|
+
* @param {!proto.clarifai.api.Role} msg The msg instance to transform.
|
|
43547
|
+
* @return {!Object}
|
|
43548
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43549
|
+
*/
|
|
43550
|
+
proto.clarifai.api.Role.toObject = function (includeInstance, msg) {
|
|
43551
|
+
var f, obj = {
|
|
43552
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
43553
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
43554
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
43555
|
+
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
43556
|
+
description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
43557
|
+
scopesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
43558
|
+
endpointsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
43559
|
+
type: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
43560
|
+
};
|
|
43561
|
+
if (includeInstance) {
|
|
43562
|
+
obj.$jspbMessageInstance = msg;
|
|
43563
|
+
}
|
|
43564
|
+
return obj;
|
|
43565
|
+
};
|
|
43566
|
+
}
|
|
43567
|
+
/**
|
|
43568
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43569
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43570
|
+
* @return {!proto.clarifai.api.Role}
|
|
43571
|
+
*/
|
|
43572
|
+
proto.clarifai.api.Role.deserializeBinary = function (bytes) {
|
|
43573
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43574
|
+
var msg = new proto.clarifai.api.Role;
|
|
43575
|
+
return proto.clarifai.api.Role.deserializeBinaryFromReader(msg, reader);
|
|
43576
|
+
};
|
|
43577
|
+
/**
|
|
43578
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43579
|
+
* given reader into the given message object.
|
|
43580
|
+
* @param {!proto.clarifai.api.Role} msg The message object to deserialize into.
|
|
43581
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43582
|
+
* @return {!proto.clarifai.api.Role}
|
|
43583
|
+
*/
|
|
43584
|
+
proto.clarifai.api.Role.deserializeBinaryFromReader = function (msg, reader) {
|
|
43585
|
+
while (reader.nextField()) {
|
|
43586
|
+
if (reader.isEndGroup()) {
|
|
43587
|
+
break;
|
|
43588
|
+
}
|
|
43589
|
+
var field = reader.getFieldNumber();
|
|
43590
|
+
switch (field) {
|
|
43591
|
+
case 1:
|
|
43592
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43593
|
+
msg.setId(value);
|
|
43594
|
+
break;
|
|
43595
|
+
case 2:
|
|
43596
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
43597
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
43598
|
+
msg.setCreatedAt(value);
|
|
43599
|
+
break;
|
|
43600
|
+
case 3:
|
|
43601
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
43602
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
43603
|
+
msg.setModifiedAt(value);
|
|
43604
|
+
break;
|
|
43605
|
+
case 4:
|
|
43606
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43607
|
+
msg.setName(value);
|
|
43608
|
+
break;
|
|
43609
|
+
case 5:
|
|
43610
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43611
|
+
msg.setDescription(value);
|
|
43612
|
+
break;
|
|
43613
|
+
case 6:
|
|
43614
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43615
|
+
msg.addScopes(value);
|
|
43616
|
+
break;
|
|
43617
|
+
case 7:
|
|
43618
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43619
|
+
msg.addEndpoints(value);
|
|
43620
|
+
break;
|
|
43621
|
+
case 8:
|
|
43622
|
+
var value = /** @type {!proto.clarifai.api.RoleType} */ (reader.readEnum());
|
|
43623
|
+
msg.setType(value);
|
|
43624
|
+
break;
|
|
43625
|
+
default:
|
|
43626
|
+
reader.skipField();
|
|
43627
|
+
break;
|
|
43628
|
+
}
|
|
43629
|
+
}
|
|
43630
|
+
return msg;
|
|
43631
|
+
};
|
|
43632
|
+
/**
|
|
43633
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43634
|
+
* @return {!Uint8Array}
|
|
43635
|
+
*/
|
|
43636
|
+
proto.clarifai.api.Role.prototype.serializeBinary = function () {
|
|
43637
|
+
var writer = new jspb.BinaryWriter();
|
|
43638
|
+
proto.clarifai.api.Role.serializeBinaryToWriter(this, writer);
|
|
43639
|
+
return writer.getResultBuffer();
|
|
43640
|
+
};
|
|
43641
|
+
/**
|
|
43642
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43643
|
+
* format), writing to the given BinaryWriter.
|
|
43644
|
+
* @param {!proto.clarifai.api.Role} message
|
|
43645
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43646
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43647
|
+
*/
|
|
43648
|
+
proto.clarifai.api.Role.serializeBinaryToWriter = function (message, writer) {
|
|
43649
|
+
var f = undefined;
|
|
43650
|
+
f = message.getId();
|
|
43651
|
+
if (f.length > 0) {
|
|
43652
|
+
writer.writeString(1, f);
|
|
43653
|
+
}
|
|
43654
|
+
f = message.getCreatedAt();
|
|
43655
|
+
if (f != null) {
|
|
43656
|
+
writer.writeMessage(2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
43657
|
+
}
|
|
43658
|
+
f = message.getModifiedAt();
|
|
43659
|
+
if (f != null) {
|
|
43660
|
+
writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
43661
|
+
}
|
|
43662
|
+
f = message.getName();
|
|
43663
|
+
if (f.length > 0) {
|
|
43664
|
+
writer.writeString(4, f);
|
|
43665
|
+
}
|
|
43666
|
+
f = message.getDescription();
|
|
43667
|
+
if (f.length > 0) {
|
|
43668
|
+
writer.writeString(5, f);
|
|
43669
|
+
}
|
|
43670
|
+
f = message.getScopesList();
|
|
43671
|
+
if (f.length > 0) {
|
|
43672
|
+
writer.writeRepeatedString(6, f);
|
|
43673
|
+
}
|
|
43674
|
+
f = message.getEndpointsList();
|
|
43675
|
+
if (f.length > 0) {
|
|
43676
|
+
writer.writeRepeatedString(7, f);
|
|
43677
|
+
}
|
|
43678
|
+
f = message.getType();
|
|
43679
|
+
if (f !== 0.0) {
|
|
43680
|
+
writer.writeEnum(8, f);
|
|
43681
|
+
}
|
|
43682
|
+
};
|
|
43683
|
+
/**
|
|
43684
|
+
* optional string id = 1;
|
|
43685
|
+
* @return {string}
|
|
43686
|
+
*/
|
|
43687
|
+
proto.clarifai.api.Role.prototype.getId = function () {
|
|
43688
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
43689
|
+
};
|
|
43690
|
+
/**
|
|
43691
|
+
* @param {string} value
|
|
43692
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43693
|
+
*/
|
|
43694
|
+
proto.clarifai.api.Role.prototype.setId = function (value) {
|
|
43695
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
43696
|
+
};
|
|
43697
|
+
/**
|
|
43698
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
43699
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
43700
|
+
*/
|
|
43701
|
+
proto.clarifai.api.Role.prototype.getCreatedAt = function () {
|
|
43702
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
43703
|
+
};
|
|
43704
|
+
/**
|
|
43705
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
43706
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43707
|
+
*/
|
|
43708
|
+
proto.clarifai.api.Role.prototype.setCreatedAt = function (value) {
|
|
43709
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
43710
|
+
};
|
|
43711
|
+
/**
|
|
43712
|
+
* Clears the message field making it undefined.
|
|
43713
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43714
|
+
*/
|
|
43715
|
+
proto.clarifai.api.Role.prototype.clearCreatedAt = function () {
|
|
43716
|
+
return this.setCreatedAt(undefined);
|
|
43717
|
+
};
|
|
43718
|
+
/**
|
|
43719
|
+
* Returns whether this field is set.
|
|
43720
|
+
* @return {boolean}
|
|
43721
|
+
*/
|
|
43722
|
+
proto.clarifai.api.Role.prototype.hasCreatedAt = function () {
|
|
43723
|
+
return jspb.Message.getField(this, 2) != null;
|
|
43724
|
+
};
|
|
43725
|
+
/**
|
|
43726
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
43727
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
43728
|
+
*/
|
|
43729
|
+
proto.clarifai.api.Role.prototype.getModifiedAt = function () {
|
|
43730
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
43731
|
+
};
|
|
43732
|
+
/**
|
|
43733
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
43734
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43735
|
+
*/
|
|
43736
|
+
proto.clarifai.api.Role.prototype.setModifiedAt = function (value) {
|
|
43737
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
43738
|
+
};
|
|
43739
|
+
/**
|
|
43740
|
+
* Clears the message field making it undefined.
|
|
43741
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43742
|
+
*/
|
|
43743
|
+
proto.clarifai.api.Role.prototype.clearModifiedAt = function () {
|
|
43744
|
+
return this.setModifiedAt(undefined);
|
|
43745
|
+
};
|
|
43746
|
+
/**
|
|
43747
|
+
* Returns whether this field is set.
|
|
43748
|
+
* @return {boolean}
|
|
43749
|
+
*/
|
|
43750
|
+
proto.clarifai.api.Role.prototype.hasModifiedAt = function () {
|
|
43751
|
+
return jspb.Message.getField(this, 3) != null;
|
|
43752
|
+
};
|
|
43753
|
+
/**
|
|
43754
|
+
* optional string name = 4;
|
|
43755
|
+
* @return {string}
|
|
43756
|
+
*/
|
|
43757
|
+
proto.clarifai.api.Role.prototype.getName = function () {
|
|
43758
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
43759
|
+
};
|
|
43760
|
+
/**
|
|
43761
|
+
* @param {string} value
|
|
43762
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43763
|
+
*/
|
|
43764
|
+
proto.clarifai.api.Role.prototype.setName = function (value) {
|
|
43765
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
43766
|
+
};
|
|
43767
|
+
/**
|
|
43768
|
+
* optional string description = 5;
|
|
43769
|
+
* @return {string}
|
|
43770
|
+
*/
|
|
43771
|
+
proto.clarifai.api.Role.prototype.getDescription = function () {
|
|
43772
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
43773
|
+
};
|
|
43774
|
+
/**
|
|
43775
|
+
* @param {string} value
|
|
43776
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43777
|
+
*/
|
|
43778
|
+
proto.clarifai.api.Role.prototype.setDescription = function (value) {
|
|
43779
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
43780
|
+
};
|
|
43781
|
+
/**
|
|
43782
|
+
* repeated string scopes = 6;
|
|
43783
|
+
* @return {!Array<string>}
|
|
43784
|
+
*/
|
|
43785
|
+
proto.clarifai.api.Role.prototype.getScopesList = function () {
|
|
43786
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
43787
|
+
};
|
|
43788
|
+
/**
|
|
43789
|
+
* @param {!Array<string>} value
|
|
43790
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43791
|
+
*/
|
|
43792
|
+
proto.clarifai.api.Role.prototype.setScopesList = function (value) {
|
|
43793
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
43794
|
+
};
|
|
43795
|
+
/**
|
|
43796
|
+
* @param {string} value
|
|
43797
|
+
* @param {number=} opt_index
|
|
43798
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43799
|
+
*/
|
|
43800
|
+
proto.clarifai.api.Role.prototype.addScopes = function (value, opt_index) {
|
|
43801
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
43802
|
+
};
|
|
43803
|
+
/**
|
|
43804
|
+
* Clears the list making it empty but non-null.
|
|
43805
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43806
|
+
*/
|
|
43807
|
+
proto.clarifai.api.Role.prototype.clearScopesList = function () {
|
|
43808
|
+
return this.setScopesList([]);
|
|
43809
|
+
};
|
|
43810
|
+
/**
|
|
43811
|
+
* repeated string endpoints = 7;
|
|
43812
|
+
* @return {!Array<string>}
|
|
43813
|
+
*/
|
|
43814
|
+
proto.clarifai.api.Role.prototype.getEndpointsList = function () {
|
|
43815
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
43816
|
+
};
|
|
43817
|
+
/**
|
|
43818
|
+
* @param {!Array<string>} value
|
|
43819
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43820
|
+
*/
|
|
43821
|
+
proto.clarifai.api.Role.prototype.setEndpointsList = function (value) {
|
|
43822
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
43823
|
+
};
|
|
43824
|
+
/**
|
|
43825
|
+
* @param {string} value
|
|
43826
|
+
* @param {number=} opt_index
|
|
43827
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43828
|
+
*/
|
|
43829
|
+
proto.clarifai.api.Role.prototype.addEndpoints = function (value, opt_index) {
|
|
43830
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
43831
|
+
};
|
|
43832
|
+
/**
|
|
43833
|
+
* Clears the list making it empty but non-null.
|
|
43834
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43835
|
+
*/
|
|
43836
|
+
proto.clarifai.api.Role.prototype.clearEndpointsList = function () {
|
|
43837
|
+
return this.setEndpointsList([]);
|
|
43838
|
+
};
|
|
43839
|
+
/**
|
|
43840
|
+
* optional RoleType type = 8;
|
|
43841
|
+
* @return {!proto.clarifai.api.RoleType}
|
|
43842
|
+
*/
|
|
43843
|
+
proto.clarifai.api.Role.prototype.getType = function () {
|
|
43844
|
+
return /** @type {!proto.clarifai.api.RoleType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
43845
|
+
};
|
|
43846
|
+
/**
|
|
43847
|
+
* @param {!proto.clarifai.api.RoleType} value
|
|
43848
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
43849
|
+
*/
|
|
43850
|
+
proto.clarifai.api.Role.prototype.setType = function (value) {
|
|
43851
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
43852
|
+
};
|
|
43853
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43854
|
+
/**
|
|
43855
|
+
* Creates an object representation of this proto.
|
|
43856
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43857
|
+
* Optional fields that are not set will be set to undefined.
|
|
43858
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43859
|
+
* For the list of reserved names please see:
|
|
43860
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43861
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43862
|
+
* JSPB instance for transitional soy proto support:
|
|
43863
|
+
* http://goto/soy-param-migration
|
|
43864
|
+
* @return {!Object}
|
|
43865
|
+
*/
|
|
43866
|
+
proto.clarifai.api.Team.prototype.toObject = function (opt_includeInstance) {
|
|
43867
|
+
return proto.clarifai.api.Team.toObject(opt_includeInstance, this);
|
|
43868
|
+
};
|
|
43869
|
+
/**
|
|
43870
|
+
* Static version of the {@see toObject} method.
|
|
43871
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43872
|
+
* the JSPB instance for transitional soy proto support:
|
|
43873
|
+
* http://goto/soy-param-migration
|
|
43874
|
+
* @param {!proto.clarifai.api.Team} msg The msg instance to transform.
|
|
43875
|
+
* @return {!Object}
|
|
43876
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43877
|
+
*/
|
|
43878
|
+
proto.clarifai.api.Team.toObject = function (includeInstance, msg) {
|
|
43879
|
+
var f, obj = {
|
|
43880
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
43881
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
43882
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
43883
|
+
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
43884
|
+
defaultRoleId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
43885
|
+
};
|
|
43886
|
+
if (includeInstance) {
|
|
43887
|
+
obj.$jspbMessageInstance = msg;
|
|
43888
|
+
}
|
|
43889
|
+
return obj;
|
|
43890
|
+
};
|
|
43891
|
+
}
|
|
43892
|
+
/**
|
|
43893
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43894
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
43895
|
+
* @return {!proto.clarifai.api.Team}
|
|
43896
|
+
*/
|
|
43897
|
+
proto.clarifai.api.Team.deserializeBinary = function (bytes) {
|
|
43898
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43899
|
+
var msg = new proto.clarifai.api.Team;
|
|
43900
|
+
return proto.clarifai.api.Team.deserializeBinaryFromReader(msg, reader);
|
|
43901
|
+
};
|
|
43902
|
+
/**
|
|
43903
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43904
|
+
* given reader into the given message object.
|
|
43905
|
+
* @param {!proto.clarifai.api.Team} msg The message object to deserialize into.
|
|
43906
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43907
|
+
* @return {!proto.clarifai.api.Team}
|
|
43908
|
+
*/
|
|
43909
|
+
proto.clarifai.api.Team.deserializeBinaryFromReader = function (msg, reader) {
|
|
43910
|
+
while (reader.nextField()) {
|
|
43911
|
+
if (reader.isEndGroup()) {
|
|
43912
|
+
break;
|
|
43913
|
+
}
|
|
43914
|
+
var field = reader.getFieldNumber();
|
|
43915
|
+
switch (field) {
|
|
43916
|
+
case 1:
|
|
43917
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43918
|
+
msg.setId(value);
|
|
43919
|
+
break;
|
|
43920
|
+
case 2:
|
|
43921
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
43922
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
43923
|
+
msg.setCreatedAt(value);
|
|
43924
|
+
break;
|
|
43925
|
+
case 3:
|
|
43926
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
43927
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
43928
|
+
msg.setModifiedAt(value);
|
|
43929
|
+
break;
|
|
43930
|
+
case 4:
|
|
43931
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43932
|
+
msg.setName(value);
|
|
43933
|
+
break;
|
|
43934
|
+
case 5:
|
|
43935
|
+
var value = /** @type {string} */ (reader.readString());
|
|
43936
|
+
msg.setDefaultRoleId(value);
|
|
43937
|
+
break;
|
|
43938
|
+
default:
|
|
43939
|
+
reader.skipField();
|
|
43940
|
+
break;
|
|
43941
|
+
}
|
|
43942
|
+
}
|
|
43943
|
+
return msg;
|
|
43944
|
+
};
|
|
43945
|
+
/**
|
|
43946
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43947
|
+
* @return {!Uint8Array}
|
|
43948
|
+
*/
|
|
43949
|
+
proto.clarifai.api.Team.prototype.serializeBinary = function () {
|
|
43950
|
+
var writer = new jspb.BinaryWriter();
|
|
43951
|
+
proto.clarifai.api.Team.serializeBinaryToWriter(this, writer);
|
|
43952
|
+
return writer.getResultBuffer();
|
|
43953
|
+
};
|
|
43954
|
+
/**
|
|
43955
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43956
|
+
* format), writing to the given BinaryWriter.
|
|
43957
|
+
* @param {!proto.clarifai.api.Team} message
|
|
43958
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43959
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43960
|
+
*/
|
|
43961
|
+
proto.clarifai.api.Team.serializeBinaryToWriter = function (message, writer) {
|
|
43962
|
+
var f = undefined;
|
|
43963
|
+
f = message.getId();
|
|
43964
|
+
if (f.length > 0) {
|
|
43965
|
+
writer.writeString(1, f);
|
|
43966
|
+
}
|
|
43967
|
+
f = message.getCreatedAt();
|
|
43968
|
+
if (f != null) {
|
|
43969
|
+
writer.writeMessage(2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
43970
|
+
}
|
|
43971
|
+
f = message.getModifiedAt();
|
|
43972
|
+
if (f != null) {
|
|
43973
|
+
writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
43974
|
+
}
|
|
43975
|
+
f = message.getName();
|
|
43976
|
+
if (f.length > 0) {
|
|
43977
|
+
writer.writeString(4, f);
|
|
43978
|
+
}
|
|
43979
|
+
f = message.getDefaultRoleId();
|
|
43980
|
+
if (f.length > 0) {
|
|
43981
|
+
writer.writeString(5, f);
|
|
43982
|
+
}
|
|
43983
|
+
};
|
|
43984
|
+
/**
|
|
43985
|
+
* optional string id = 1;
|
|
43986
|
+
* @return {string}
|
|
43987
|
+
*/
|
|
43988
|
+
proto.clarifai.api.Team.prototype.getId = function () {
|
|
43989
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
43990
|
+
};
|
|
43991
|
+
/**
|
|
43992
|
+
* @param {string} value
|
|
43993
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
43994
|
+
*/
|
|
43995
|
+
proto.clarifai.api.Team.prototype.setId = function (value) {
|
|
43996
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
43997
|
+
};
|
|
43998
|
+
/**
|
|
43999
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
44000
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
44001
|
+
*/
|
|
44002
|
+
proto.clarifai.api.Team.prototype.getCreatedAt = function () {
|
|
44003
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
44004
|
+
};
|
|
44005
|
+
/**
|
|
44006
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
44007
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
44008
|
+
*/
|
|
44009
|
+
proto.clarifai.api.Team.prototype.setCreatedAt = function (value) {
|
|
44010
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
44011
|
+
};
|
|
44012
|
+
/**
|
|
44013
|
+
* Clears the message field making it undefined.
|
|
44014
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
44015
|
+
*/
|
|
44016
|
+
proto.clarifai.api.Team.prototype.clearCreatedAt = function () {
|
|
44017
|
+
return this.setCreatedAt(undefined);
|
|
44018
|
+
};
|
|
44019
|
+
/**
|
|
44020
|
+
* Returns whether this field is set.
|
|
44021
|
+
* @return {boolean}
|
|
44022
|
+
*/
|
|
44023
|
+
proto.clarifai.api.Team.prototype.hasCreatedAt = function () {
|
|
44024
|
+
return jspb.Message.getField(this, 2) != null;
|
|
44025
|
+
};
|
|
44026
|
+
/**
|
|
44027
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
44028
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
44029
|
+
*/
|
|
44030
|
+
proto.clarifai.api.Team.prototype.getModifiedAt = function () {
|
|
44031
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
44032
|
+
};
|
|
44033
|
+
/**
|
|
44034
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
44035
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
44036
|
+
*/
|
|
44037
|
+
proto.clarifai.api.Team.prototype.setModifiedAt = function (value) {
|
|
44038
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
44039
|
+
};
|
|
44040
|
+
/**
|
|
44041
|
+
* Clears the message field making it undefined.
|
|
44042
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
44043
|
+
*/
|
|
44044
|
+
proto.clarifai.api.Team.prototype.clearModifiedAt = function () {
|
|
44045
|
+
return this.setModifiedAt(undefined);
|
|
44046
|
+
};
|
|
44047
|
+
/**
|
|
44048
|
+
* Returns whether this field is set.
|
|
44049
|
+
* @return {boolean}
|
|
44050
|
+
*/
|
|
44051
|
+
proto.clarifai.api.Team.prototype.hasModifiedAt = function () {
|
|
44052
|
+
return jspb.Message.getField(this, 3) != null;
|
|
44053
|
+
};
|
|
44054
|
+
/**
|
|
44055
|
+
* optional string name = 4;
|
|
44056
|
+
* @return {string}
|
|
44057
|
+
*/
|
|
44058
|
+
proto.clarifai.api.Team.prototype.getName = function () {
|
|
44059
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
44060
|
+
};
|
|
44061
|
+
/**
|
|
44062
|
+
* @param {string} value
|
|
44063
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
44064
|
+
*/
|
|
44065
|
+
proto.clarifai.api.Team.prototype.setName = function (value) {
|
|
44066
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
44067
|
+
};
|
|
44068
|
+
/**
|
|
44069
|
+
* optional string default_role_id = 5;
|
|
44070
|
+
* @return {string}
|
|
44071
|
+
*/
|
|
44072
|
+
proto.clarifai.api.Team.prototype.getDefaultRoleId = function () {
|
|
44073
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
44074
|
+
};
|
|
44075
|
+
/**
|
|
44076
|
+
* @param {string} value
|
|
44077
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
44078
|
+
*/
|
|
44079
|
+
proto.clarifai.api.Team.prototype.setDefaultRoleId = function (value) {
|
|
44080
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
44081
|
+
};
|
|
43243
44082
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43244
44083
|
/**
|
|
43245
44084
|
* Creates an object representation of this proto.
|
|
@@ -45173,182 +46012,6 @@ proto.clarifai.api.Visibility.prototype.getGettable = function () {
|
|
|
45173
46012
|
proto.clarifai.api.Visibility.prototype.setGettable = function (value) {
|
|
45174
46013
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
45175
46014
|
};
|
|
45176
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45177
|
-
/**
|
|
45178
|
-
* Creates an object representation of this proto.
|
|
45179
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45180
|
-
* Optional fields that are not set will be set to undefined.
|
|
45181
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45182
|
-
* For the list of reserved names please see:
|
|
45183
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45184
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45185
|
-
* JSPB instance for transitional soy proto support:
|
|
45186
|
-
* http://goto/soy-param-migration
|
|
45187
|
-
* @return {!Object}
|
|
45188
|
-
*/
|
|
45189
|
-
proto.clarifai.api.TrendingMetric.prototype.toObject = function (opt_includeInstance) {
|
|
45190
|
-
return proto.clarifai.api.TrendingMetric.toObject(opt_includeInstance, this);
|
|
45191
|
-
};
|
|
45192
|
-
/**
|
|
45193
|
-
* Static version of the {@see toObject} method.
|
|
45194
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45195
|
-
* the JSPB instance for transitional soy proto support:
|
|
45196
|
-
* http://goto/soy-param-migration
|
|
45197
|
-
* @param {!proto.clarifai.api.TrendingMetric} msg The msg instance to transform.
|
|
45198
|
-
* @return {!Object}
|
|
45199
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45200
|
-
*/
|
|
45201
|
-
proto.clarifai.api.TrendingMetric.toObject = function (includeInstance, msg) {
|
|
45202
|
-
var f, obj = {
|
|
45203
|
-
userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
45204
|
-
appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
45205
|
-
objectId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
45206
|
-
viewCount: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
45207
|
-
};
|
|
45208
|
-
if (includeInstance) {
|
|
45209
|
-
obj.$jspbMessageInstance = msg;
|
|
45210
|
-
}
|
|
45211
|
-
return obj;
|
|
45212
|
-
};
|
|
45213
|
-
}
|
|
45214
|
-
/**
|
|
45215
|
-
* Deserializes binary data (in protobuf wire format).
|
|
45216
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
45217
|
-
* @return {!proto.clarifai.api.TrendingMetric}
|
|
45218
|
-
*/
|
|
45219
|
-
proto.clarifai.api.TrendingMetric.deserializeBinary = function (bytes) {
|
|
45220
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
45221
|
-
var msg = new proto.clarifai.api.TrendingMetric;
|
|
45222
|
-
return proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader(msg, reader);
|
|
45223
|
-
};
|
|
45224
|
-
/**
|
|
45225
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
45226
|
-
* given reader into the given message object.
|
|
45227
|
-
* @param {!proto.clarifai.api.TrendingMetric} msg The message object to deserialize into.
|
|
45228
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45229
|
-
* @return {!proto.clarifai.api.TrendingMetric}
|
|
45230
|
-
*/
|
|
45231
|
-
proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function (msg, reader) {
|
|
45232
|
-
while (reader.nextField()) {
|
|
45233
|
-
if (reader.isEndGroup()) {
|
|
45234
|
-
break;
|
|
45235
|
-
}
|
|
45236
|
-
var field = reader.getFieldNumber();
|
|
45237
|
-
switch (field) {
|
|
45238
|
-
case 1:
|
|
45239
|
-
var value = /** @type {string} */ (reader.readString());
|
|
45240
|
-
msg.setUserId(value);
|
|
45241
|
-
break;
|
|
45242
|
-
case 2:
|
|
45243
|
-
var value = /** @type {string} */ (reader.readString());
|
|
45244
|
-
msg.setAppId(value);
|
|
45245
|
-
break;
|
|
45246
|
-
case 3:
|
|
45247
|
-
var value = /** @type {string} */ (reader.readString());
|
|
45248
|
-
msg.setObjectId(value);
|
|
45249
|
-
break;
|
|
45250
|
-
case 4:
|
|
45251
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
45252
|
-
msg.setViewCount(value);
|
|
45253
|
-
break;
|
|
45254
|
-
default:
|
|
45255
|
-
reader.skipField();
|
|
45256
|
-
break;
|
|
45257
|
-
}
|
|
45258
|
-
}
|
|
45259
|
-
return msg;
|
|
45260
|
-
};
|
|
45261
|
-
/**
|
|
45262
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
45263
|
-
* @return {!Uint8Array}
|
|
45264
|
-
*/
|
|
45265
|
-
proto.clarifai.api.TrendingMetric.prototype.serializeBinary = function () {
|
|
45266
|
-
var writer = new jspb.BinaryWriter();
|
|
45267
|
-
proto.clarifai.api.TrendingMetric.serializeBinaryToWriter(this, writer);
|
|
45268
|
-
return writer.getResultBuffer();
|
|
45269
|
-
};
|
|
45270
|
-
/**
|
|
45271
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
45272
|
-
* format), writing to the given BinaryWriter.
|
|
45273
|
-
* @param {!proto.clarifai.api.TrendingMetric} message
|
|
45274
|
-
* @param {!jspb.BinaryWriter} writer
|
|
45275
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45276
|
-
*/
|
|
45277
|
-
proto.clarifai.api.TrendingMetric.serializeBinaryToWriter = function (message, writer) {
|
|
45278
|
-
var f = undefined;
|
|
45279
|
-
f = message.getUserId();
|
|
45280
|
-
if (f.length > 0) {
|
|
45281
|
-
writer.writeString(1, f);
|
|
45282
|
-
}
|
|
45283
|
-
f = message.getAppId();
|
|
45284
|
-
if (f.length > 0) {
|
|
45285
|
-
writer.writeString(2, f);
|
|
45286
|
-
}
|
|
45287
|
-
f = message.getObjectId();
|
|
45288
|
-
if (f.length > 0) {
|
|
45289
|
-
writer.writeString(3, f);
|
|
45290
|
-
}
|
|
45291
|
-
f = message.getViewCount();
|
|
45292
|
-
if (f !== 0) {
|
|
45293
|
-
writer.writeUint64(4, f);
|
|
45294
|
-
}
|
|
45295
|
-
};
|
|
45296
|
-
/**
|
|
45297
|
-
* optional string user_id = 1;
|
|
45298
|
-
* @return {string}
|
|
45299
|
-
*/
|
|
45300
|
-
proto.clarifai.api.TrendingMetric.prototype.getUserId = function () {
|
|
45301
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
45302
|
-
};
|
|
45303
|
-
/**
|
|
45304
|
-
* @param {string} value
|
|
45305
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
45306
|
-
*/
|
|
45307
|
-
proto.clarifai.api.TrendingMetric.prototype.setUserId = function (value) {
|
|
45308
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
45309
|
-
};
|
|
45310
|
-
/**
|
|
45311
|
-
* optional string app_id = 2;
|
|
45312
|
-
* @return {string}
|
|
45313
|
-
*/
|
|
45314
|
-
proto.clarifai.api.TrendingMetric.prototype.getAppId = function () {
|
|
45315
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
45316
|
-
};
|
|
45317
|
-
/**
|
|
45318
|
-
* @param {string} value
|
|
45319
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
45320
|
-
*/
|
|
45321
|
-
proto.clarifai.api.TrendingMetric.prototype.setAppId = function (value) {
|
|
45322
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
45323
|
-
};
|
|
45324
|
-
/**
|
|
45325
|
-
* optional string object_id = 3;
|
|
45326
|
-
* @return {string}
|
|
45327
|
-
*/
|
|
45328
|
-
proto.clarifai.api.TrendingMetric.prototype.getObjectId = function () {
|
|
45329
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
45330
|
-
};
|
|
45331
|
-
/**
|
|
45332
|
-
* @param {string} value
|
|
45333
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
45334
|
-
*/
|
|
45335
|
-
proto.clarifai.api.TrendingMetric.prototype.setObjectId = function (value) {
|
|
45336
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
45337
|
-
};
|
|
45338
|
-
/**
|
|
45339
|
-
* optional uint64 view_count = 4;
|
|
45340
|
-
* @return {number}
|
|
45341
|
-
*/
|
|
45342
|
-
proto.clarifai.api.TrendingMetric.prototype.getViewCount = function () {
|
|
45343
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
45344
|
-
};
|
|
45345
|
-
/**
|
|
45346
|
-
* @param {number} value
|
|
45347
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
45348
|
-
*/
|
|
45349
|
-
proto.clarifai.api.TrendingMetric.prototype.setViewCount = function (value) {
|
|
45350
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
45351
|
-
};
|
|
45352
46015
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45353
46016
|
/**
|
|
45354
46017
|
* Creates an object representation of this proto.
|
|
@@ -55085,7 +55748,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
55085
55748
|
trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
55086
55749
|
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
55087
55750
|
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
55088
|
-
|
|
55751
|
+
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
55089
55752
|
};
|
|
55090
55753
|
if (includeInstance) {
|
|
55091
55754
|
obj.$jspbMessageInstance = msg;
|
|
@@ -55137,9 +55800,9 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function (msg,
|
|
|
55137
55800
|
var value = /** @type {number} */ (reader.readUint32());
|
|
55138
55801
|
msg.setScaleUpDelaySeconds(value);
|
|
55139
55802
|
break;
|
|
55140
|
-
case
|
|
55803
|
+
case 7:
|
|
55141
55804
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
55142
|
-
msg.
|
|
55805
|
+
msg.setDisablePacking(value);
|
|
55143
55806
|
break;
|
|
55144
55807
|
default:
|
|
55145
55808
|
reader.skipField();
|
|
@@ -55186,9 +55849,9 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function (message,
|
|
|
55186
55849
|
if (f !== 0) {
|
|
55187
55850
|
writer.writeUint32(5, f);
|
|
55188
55851
|
}
|
|
55189
|
-
f = message.
|
|
55852
|
+
f = message.getDisablePacking();
|
|
55190
55853
|
if (f) {
|
|
55191
|
-
writer.writeBool(
|
|
55854
|
+
writer.writeBool(7, f);
|
|
55192
55855
|
}
|
|
55193
55856
|
};
|
|
55194
55857
|
/**
|
|
@@ -55262,18 +55925,18 @@ proto.clarifai.api.AutoscaleConfig.prototype.setScaleUpDelaySeconds = function (
|
|
|
55262
55925
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
55263
55926
|
};
|
|
55264
55927
|
/**
|
|
55265
|
-
* optional bool
|
|
55928
|
+
* optional bool disable_packing = 7;
|
|
55266
55929
|
* @return {boolean}
|
|
55267
55930
|
*/
|
|
55268
|
-
proto.clarifai.api.AutoscaleConfig.prototype.
|
|
55269
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this,
|
|
55931
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getDisablePacking = function () {
|
|
55932
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
55270
55933
|
};
|
|
55271
55934
|
/**
|
|
55272
55935
|
* @param {boolean} value
|
|
55273
55936
|
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
55274
55937
|
*/
|
|
55275
|
-
proto.clarifai.api.AutoscaleConfig.prototype.
|
|
55276
|
-
return jspb.Message.setProto3BooleanField(this,
|
|
55938
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function (value) {
|
|
55939
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
55277
55940
|
};
|
|
55278
55941
|
/**
|
|
55279
55942
|
* List of repeated fields within this message type.
|
|
@@ -56089,13 +56752,15 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function () {
|
|
|
56089
56752
|
* @private {!Array<!Array<number>>}
|
|
56090
56753
|
* @const
|
|
56091
56754
|
*/
|
|
56092
|
-
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1]];
|
|
56755
|
+
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3]];
|
|
56093
56756
|
/**
|
|
56094
56757
|
* @enum {number}
|
|
56095
56758
|
*/
|
|
56096
56759
|
proto.clarifai.api.AuditLogTarget.TargetCase = {
|
|
56097
56760
|
TARGET_NOT_SET: 0,
|
|
56098
|
-
|
|
56761
|
+
USER: 1,
|
|
56762
|
+
ROLE: 2,
|
|
56763
|
+
TEAM: 3
|
|
56099
56764
|
};
|
|
56100
56765
|
/**
|
|
56101
56766
|
* @return {proto.clarifai.api.AuditLogTarget.TargetCase}
|
|
@@ -56130,7 +56795,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
56130
56795
|
*/
|
|
56131
56796
|
proto.clarifai.api.AuditLogTarget.toObject = function (includeInstance, msg) {
|
|
56132
56797
|
var f, obj = {
|
|
56133
|
-
|
|
56798
|
+
user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
|
|
56799
|
+
role: (f = msg.getRole()) && proto.clarifai.api.Role.toObject(includeInstance, f),
|
|
56800
|
+
team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f)
|
|
56134
56801
|
};
|
|
56135
56802
|
if (includeInstance) {
|
|
56136
56803
|
obj.$jspbMessageInstance = msg;
|
|
@@ -56165,7 +56832,17 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function (msg, r
|
|
|
56165
56832
|
case 1:
|
|
56166
56833
|
var value = new proto.clarifai.api.User;
|
|
56167
56834
|
reader.readMessage(value, proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
56168
|
-
msg.
|
|
56835
|
+
msg.setUser(value);
|
|
56836
|
+
break;
|
|
56837
|
+
case 2:
|
|
56838
|
+
var value = new proto.clarifai.api.Role;
|
|
56839
|
+
reader.readMessage(value, proto.clarifai.api.Role.deserializeBinaryFromReader);
|
|
56840
|
+
msg.setRole(value);
|
|
56841
|
+
break;
|
|
56842
|
+
case 3:
|
|
56843
|
+
var value = new proto.clarifai.api.Team;
|
|
56844
|
+
reader.readMessage(value, proto.clarifai.api.Team.deserializeBinaryFromReader);
|
|
56845
|
+
msg.setTeam(value);
|
|
56169
56846
|
break;
|
|
56170
56847
|
default:
|
|
56171
56848
|
reader.skipField();
|
|
@@ -56192,39 +56869,103 @@ proto.clarifai.api.AuditLogTarget.prototype.serializeBinary = function () {
|
|
|
56192
56869
|
*/
|
|
56193
56870
|
proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function (message, writer) {
|
|
56194
56871
|
var f = undefined;
|
|
56195
|
-
f = message.
|
|
56872
|
+
f = message.getUser();
|
|
56196
56873
|
if (f != null) {
|
|
56197
56874
|
writer.writeMessage(1, f, proto.clarifai.api.User.serializeBinaryToWriter);
|
|
56198
56875
|
}
|
|
56876
|
+
f = message.getRole();
|
|
56877
|
+
if (f != null) {
|
|
56878
|
+
writer.writeMessage(2, f, proto.clarifai.api.Role.serializeBinaryToWriter);
|
|
56879
|
+
}
|
|
56880
|
+
f = message.getTeam();
|
|
56881
|
+
if (f != null) {
|
|
56882
|
+
writer.writeMessage(3, f, proto.clarifai.api.Team.serializeBinaryToWriter);
|
|
56883
|
+
}
|
|
56199
56884
|
};
|
|
56200
56885
|
/**
|
|
56201
|
-
* optional User
|
|
56886
|
+
* optional User user = 1;
|
|
56202
56887
|
* @return {?proto.clarifai.api.User}
|
|
56203
56888
|
*/
|
|
56204
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
56889
|
+
proto.clarifai.api.AuditLogTarget.prototype.getUser = function () {
|
|
56205
56890
|
return /** @type{?proto.clarifai.api.User} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
|
|
56206
56891
|
};
|
|
56207
56892
|
/**
|
|
56208
56893
|
* @param {?proto.clarifai.api.User|undefined} value
|
|
56209
56894
|
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
56210
56895
|
*/
|
|
56211
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
56896
|
+
proto.clarifai.api.AuditLogTarget.prototype.setUser = function (value) {
|
|
56212
56897
|
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
56213
56898
|
};
|
|
56214
56899
|
/**
|
|
56215
56900
|
* Clears the message field making it undefined.
|
|
56216
56901
|
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
56217
56902
|
*/
|
|
56218
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
56219
|
-
return this.
|
|
56903
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearUser = function () {
|
|
56904
|
+
return this.setUser(undefined);
|
|
56220
56905
|
};
|
|
56221
56906
|
/**
|
|
56222
56907
|
* Returns whether this field is set.
|
|
56223
56908
|
* @return {boolean}
|
|
56224
56909
|
*/
|
|
56225
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
56910
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasUser = function () {
|
|
56226
56911
|
return jspb.Message.getField(this, 1) != null;
|
|
56227
56912
|
};
|
|
56913
|
+
/**
|
|
56914
|
+
* optional Role role = 2;
|
|
56915
|
+
* @return {?proto.clarifai.api.Role}
|
|
56916
|
+
*/
|
|
56917
|
+
proto.clarifai.api.AuditLogTarget.prototype.getRole = function () {
|
|
56918
|
+
return /** @type{?proto.clarifai.api.Role} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Role, 2));
|
|
56919
|
+
};
|
|
56920
|
+
/**
|
|
56921
|
+
* @param {?proto.clarifai.api.Role|undefined} value
|
|
56922
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
56923
|
+
*/
|
|
56924
|
+
proto.clarifai.api.AuditLogTarget.prototype.setRole = function (value) {
|
|
56925
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
56926
|
+
};
|
|
56927
|
+
/**
|
|
56928
|
+
* Clears the message field making it undefined.
|
|
56929
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
56930
|
+
*/
|
|
56931
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearRole = function () {
|
|
56932
|
+
return this.setRole(undefined);
|
|
56933
|
+
};
|
|
56934
|
+
/**
|
|
56935
|
+
* Returns whether this field is set.
|
|
56936
|
+
* @return {boolean}
|
|
56937
|
+
*/
|
|
56938
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasRole = function () {
|
|
56939
|
+
return jspb.Message.getField(this, 2) != null;
|
|
56940
|
+
};
|
|
56941
|
+
/**
|
|
56942
|
+
* optional Team team = 3;
|
|
56943
|
+
* @return {?proto.clarifai.api.Team}
|
|
56944
|
+
*/
|
|
56945
|
+
proto.clarifai.api.AuditLogTarget.prototype.getTeam = function () {
|
|
56946
|
+
return /** @type{?proto.clarifai.api.Team} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Team, 3));
|
|
56947
|
+
};
|
|
56948
|
+
/**
|
|
56949
|
+
* @param {?proto.clarifai.api.Team|undefined} value
|
|
56950
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
56951
|
+
*/
|
|
56952
|
+
proto.clarifai.api.AuditLogTarget.prototype.setTeam = function (value) {
|
|
56953
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
56954
|
+
};
|
|
56955
|
+
/**
|
|
56956
|
+
* Clears the message field making it undefined.
|
|
56957
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
56958
|
+
*/
|
|
56959
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearTeam = function () {
|
|
56960
|
+
return this.setTeam(undefined);
|
|
56961
|
+
};
|
|
56962
|
+
/**
|
|
56963
|
+
* Returns whether this field is set.
|
|
56964
|
+
* @return {boolean}
|
|
56965
|
+
*/
|
|
56966
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasTeam = function () {
|
|
56967
|
+
return jspb.Message.getField(this, 3) != null;
|
|
56968
|
+
};
|
|
56228
56969
|
/**
|
|
56229
56970
|
* List of repeated fields within this message type.
|
|
56230
56971
|
* @private {!Array<number>}
|
|
@@ -57569,6 +58310,19 @@ proto.clarifai.api.RunnerMethodType = {
|
|
|
57569
58310
|
*/
|
|
57570
58311
|
proto.clarifai.api.EventType = {
|
|
57571
58312
|
EVENT_TYPE_NOT_SET: 0,
|
|
57572
|
-
|
|
58313
|
+
ORGANIZATION_MEMBER_ADD: 100,
|
|
58314
|
+
ORGANIZATION_MEMBER_CHANGE: 101,
|
|
58315
|
+
ORGANIZATION_MEMBER_REMOVE: 102,
|
|
58316
|
+
ORGANIZATION_MEMBER_INVITATION_CREATE: 103,
|
|
58317
|
+
ORGANIZATION_MEMBER_INVITATION_CANCEL: 104,
|
|
58318
|
+
ORGANIZATION_MEMBER_INVITATION_ACCEPT: 105,
|
|
58319
|
+
ORGANIZATION_MEMBER_INVITATION_DECLINE: 106,
|
|
58320
|
+
ORGANIZATION_TEAM_CREATE: 107,
|
|
58321
|
+
ORGANIZATION_TEAM_UPDATE: 108,
|
|
58322
|
+
ORGANIZATION_TEAM_DELETE: 109,
|
|
58323
|
+
ORGANIZATION_TEAM_MEMBER_ADD: 110,
|
|
58324
|
+
ORGANIZATION_TEAM_MEMBER_REMOVE: 111,
|
|
58325
|
+
ORGANIZATION_TEAM_APP_ADD: 112,
|
|
58326
|
+
ORGANIZATION_TEAM_APP_REMOVE: 113
|
|
57573
58327
|
};
|
|
57574
58328
|
goog.object.extend(exports, proto.clarifai.api);
|