clarifai-web-grpc 10.9.4 → 10.10.1
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 +1016 -224
- 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 +1016 -224
- 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 +183 -40
- package/proto/clarifai/api/resources_pb.js +1270 -268
- 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
|
@@ -51,6 +51,7 @@ goog.exportSymbol('proto.clarifai.api.AnnotationFilter', null, global);
|
|
|
51
51
|
goog.exportSymbol('proto.clarifai.api.AnnotationFilterConfig', null, global);
|
|
52
52
|
goog.exportSymbol('proto.clarifai.api.AnnotationSearchMetrics', null, global);
|
|
53
53
|
goog.exportSymbol('proto.clarifai.api.App', null, global);
|
|
54
|
+
goog.exportSymbol('proto.clarifai.api.App.EmbeddingsStorage', null, global);
|
|
54
55
|
goog.exportSymbol('proto.clarifai.api.AppCopyProgress', null, global);
|
|
55
56
|
goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
|
|
56
57
|
goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
|
|
@@ -79,6 +80,8 @@ goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
|
|
|
79
80
|
goog.exportSymbol('proto.clarifai.api.Collector', null, global);
|
|
80
81
|
goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
|
|
81
82
|
goog.exportSymbol('proto.clarifai.api.Color', null, global);
|
|
83
|
+
goog.exportSymbol('proto.clarifai.api.CommitmentValue', null, global);
|
|
84
|
+
goog.exportSymbol('proto.clarifai.api.CommitmentValue.CommitmentType', null, global);
|
|
82
85
|
goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
|
|
83
86
|
goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
|
|
84
87
|
goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
@@ -223,6 +226,7 @@ goog.exportSymbol('proto.clarifai.api.ROC', null, global);
|
|
|
223
226
|
goog.exportSymbol('proto.clarifai.api.Rank', null, global);
|
|
224
227
|
goog.exportSymbol('proto.clarifai.api.Region', null, global);
|
|
225
228
|
goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
|
|
229
|
+
goog.exportSymbol('proto.clarifai.api.Role', null, global);
|
|
226
230
|
goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
|
|
227
231
|
goog.exportSymbol('proto.clarifai.api.Runner', null, global);
|
|
228
232
|
goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
|
|
@@ -264,6 +268,7 @@ goog.exportSymbol('proto.clarifai.api.TaskWorker.TaskWorkerStrategy', null, glob
|
|
|
264
268
|
goog.exportSymbol('proto.clarifai.api.TaskWorker.WorkerType', null, global);
|
|
265
269
|
goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo', null, global);
|
|
266
270
|
goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy', null, global);
|
|
271
|
+
goog.exportSymbol('proto.clarifai.api.Team', null, global);
|
|
267
272
|
goog.exportSymbol('proto.clarifai.api.Text', null, global);
|
|
268
273
|
goog.exportSymbol('proto.clarifai.api.TextInfo', null, global);
|
|
269
274
|
goog.exportSymbol('proto.clarifai.api.ThresholdRange', null, global);
|
|
@@ -275,7 +280,6 @@ goog.exportSymbol('proto.clarifai.api.Track', null, global);
|
|
|
275
280
|
goog.exportSymbol('proto.clarifai.api.TrackerMetrics', null, global);
|
|
276
281
|
goog.exportSymbol('proto.clarifai.api.TrainInfo', null, global);
|
|
277
282
|
goog.exportSymbol('proto.clarifai.api.TrainStats', null, global);
|
|
278
|
-
goog.exportSymbol('proto.clarifai.api.TrendingMetric', null, global);
|
|
279
283
|
goog.exportSymbol('proto.clarifai.api.TritonCondaEnvInfo', null, global);
|
|
280
284
|
goog.exportSymbol('proto.clarifai.api.Upload', null, global);
|
|
281
285
|
goog.exportSymbol('proto.clarifai.api.UploadContentPart', null, global);
|
|
@@ -2886,6 +2890,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2886
2890
|
*/
|
|
2887
2891
|
proto.clarifai.api.PasswordViolations.displayName = 'proto.clarifai.api.PasswordViolations';
|
|
2888
2892
|
}
|
|
2893
|
+
/**
|
|
2894
|
+
* Generated by JsPbCodeGenerator.
|
|
2895
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2896
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2897
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2898
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2899
|
+
* valid.
|
|
2900
|
+
* @extends {jspb.Message}
|
|
2901
|
+
* @constructor
|
|
2902
|
+
*/
|
|
2903
|
+
proto.clarifai.api.CommitmentValue = function(opt_data) {
|
|
2904
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2905
|
+
};
|
|
2906
|
+
goog.inherits(proto.clarifai.api.CommitmentValue, jspb.Message);
|
|
2907
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2908
|
+
/**
|
|
2909
|
+
* @public
|
|
2910
|
+
* @override
|
|
2911
|
+
*/
|
|
2912
|
+
proto.clarifai.api.CommitmentValue.displayName = 'proto.clarifai.api.CommitmentValue';
|
|
2913
|
+
}
|
|
2889
2914
|
/**
|
|
2890
2915
|
* Generated by JsPbCodeGenerator.
|
|
2891
2916
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3516,6 +3541,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3516
3541
|
*/
|
|
3517
3542
|
proto.clarifai.api.TaskInputSourceMetrics.displayName = 'proto.clarifai.api.TaskInputSourceMetrics';
|
|
3518
3543
|
}
|
|
3544
|
+
/**
|
|
3545
|
+
* Generated by JsPbCodeGenerator.
|
|
3546
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3547
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3548
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3549
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3550
|
+
* valid.
|
|
3551
|
+
* @extends {jspb.Message}
|
|
3552
|
+
* @constructor
|
|
3553
|
+
*/
|
|
3554
|
+
proto.clarifai.api.Role = function(opt_data) {
|
|
3555
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Role.repeatedFields_, null);
|
|
3556
|
+
};
|
|
3557
|
+
goog.inherits(proto.clarifai.api.Role, jspb.Message);
|
|
3558
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3559
|
+
/**
|
|
3560
|
+
* @public
|
|
3561
|
+
* @override
|
|
3562
|
+
*/
|
|
3563
|
+
proto.clarifai.api.Role.displayName = 'proto.clarifai.api.Role';
|
|
3564
|
+
}
|
|
3565
|
+
/**
|
|
3566
|
+
* Generated by JsPbCodeGenerator.
|
|
3567
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3568
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3569
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3570
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3571
|
+
* valid.
|
|
3572
|
+
* @extends {jspb.Message}
|
|
3573
|
+
* @constructor
|
|
3574
|
+
*/
|
|
3575
|
+
proto.clarifai.api.Team = function(opt_data) {
|
|
3576
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3577
|
+
};
|
|
3578
|
+
goog.inherits(proto.clarifai.api.Team, jspb.Message);
|
|
3579
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3580
|
+
/**
|
|
3581
|
+
* @public
|
|
3582
|
+
* @override
|
|
3583
|
+
*/
|
|
3584
|
+
proto.clarifai.api.Team.displayName = 'proto.clarifai.api.Team';
|
|
3585
|
+
}
|
|
3519
3586
|
/**
|
|
3520
3587
|
* Generated by JsPbCodeGenerator.
|
|
3521
3588
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3726,27 +3793,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3726
3793
|
*/
|
|
3727
3794
|
proto.clarifai.api.Visibility.displayName = 'proto.clarifai.api.Visibility';
|
|
3728
3795
|
}
|
|
3729
|
-
/**
|
|
3730
|
-
* Generated by JsPbCodeGenerator.
|
|
3731
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3732
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
3733
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
3734
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
3735
|
-
* valid.
|
|
3736
|
-
* @extends {jspb.Message}
|
|
3737
|
-
* @constructor
|
|
3738
|
-
*/
|
|
3739
|
-
proto.clarifai.api.TrendingMetric = function(opt_data) {
|
|
3740
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3741
|
-
};
|
|
3742
|
-
goog.inherits(proto.clarifai.api.TrendingMetric, jspb.Message);
|
|
3743
|
-
if (goog.DEBUG && !COMPILED) {
|
|
3744
|
-
/**
|
|
3745
|
-
* @public
|
|
3746
|
-
* @override
|
|
3747
|
-
*/
|
|
3748
|
-
proto.clarifai.api.TrendingMetric.displayName = 'proto.clarifai.api.TrendingMetric';
|
|
3749
|
-
}
|
|
3750
3796
|
/**
|
|
3751
3797
|
* Generated by JsPbCodeGenerator.
|
|
3752
3798
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -5888,7 +5934,8 @@ proto.clarifai.api.App.toObject = function(includeInstance, msg) {
|
|
|
5888
5934
|
notes: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
5889
5935
|
image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
|
|
5890
5936
|
isTemplate: (f = msg.getIsTemplate()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
|
|
5891
|
-
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.AppExtraInfo.toObject(includeInstance, f)
|
|
5937
|
+
extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.AppExtraInfo.toObject(includeInstance, f),
|
|
5938
|
+
embeddingsStorage: jspb.Message.getFieldWithDefault(msg, 26, 0)
|
|
5892
5939
|
};
|
|
5893
5940
|
|
|
5894
5941
|
if (includeInstance) {
|
|
@@ -6013,6 +6060,10 @@ proto.clarifai.api.App.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6013
6060
|
reader.readMessage(value,proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader);
|
|
6014
6061
|
msg.setExtraInfo(value);
|
|
6015
6062
|
break;
|
|
6063
|
+
case 26:
|
|
6064
|
+
var value = /** @type {!proto.clarifai.api.App.EmbeddingsStorage} */ (reader.readEnum());
|
|
6065
|
+
msg.setEmbeddingsStorage(value);
|
|
6066
|
+
break;
|
|
6016
6067
|
default:
|
|
6017
6068
|
reader.skipField();
|
|
6018
6069
|
break;
|
|
@@ -6190,9 +6241,25 @@ proto.clarifai.api.App.serializeBinaryToWriter = function(message, writer) {
|
|
|
6190
6241
|
proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter
|
|
6191
6242
|
);
|
|
6192
6243
|
}
|
|
6244
|
+
f = message.getEmbeddingsStorage();
|
|
6245
|
+
if (f !== 0.0) {
|
|
6246
|
+
writer.writeEnum(
|
|
6247
|
+
26,
|
|
6248
|
+
f
|
|
6249
|
+
);
|
|
6250
|
+
}
|
|
6193
6251
|
};
|
|
6194
6252
|
|
|
6195
6253
|
|
|
6254
|
+
/**
|
|
6255
|
+
* @enum {number}
|
|
6256
|
+
*/
|
|
6257
|
+
proto.clarifai.api.App.EmbeddingsStorage = {
|
|
6258
|
+
EMBEDDING_STORAGE_NOT_SET: 0,
|
|
6259
|
+
POSTGRES: 1,
|
|
6260
|
+
QDRANT: 2
|
|
6261
|
+
};
|
|
6262
|
+
|
|
6196
6263
|
/**
|
|
6197
6264
|
* optional string id = 1;
|
|
6198
6265
|
* @return {string}
|
|
@@ -6705,6 +6772,24 @@ proto.clarifai.api.App.prototype.hasExtraInfo = function() {
|
|
|
6705
6772
|
};
|
|
6706
6773
|
|
|
6707
6774
|
|
|
6775
|
+
/**
|
|
6776
|
+
* optional EmbeddingsStorage embeddings_storage = 26;
|
|
6777
|
+
* @return {!proto.clarifai.api.App.EmbeddingsStorage}
|
|
6778
|
+
*/
|
|
6779
|
+
proto.clarifai.api.App.prototype.getEmbeddingsStorage = function() {
|
|
6780
|
+
return /** @type {!proto.clarifai.api.App.EmbeddingsStorage} */ (jspb.Message.getFieldWithDefault(this, 26, 0));
|
|
6781
|
+
};
|
|
6782
|
+
|
|
6783
|
+
|
|
6784
|
+
/**
|
|
6785
|
+
* @param {!proto.clarifai.api.App.EmbeddingsStorage} value
|
|
6786
|
+
* @return {!proto.clarifai.api.App} returns this
|
|
6787
|
+
*/
|
|
6788
|
+
proto.clarifai.api.App.prototype.setEmbeddingsStorage = function(value) {
|
|
6789
|
+
return jspb.Message.setProto3EnumField(this, 26, value);
|
|
6790
|
+
};
|
|
6791
|
+
|
|
6792
|
+
|
|
6708
6793
|
|
|
6709
6794
|
|
|
6710
6795
|
|
|
@@ -11875,7 +11960,8 @@ proto.clarifai.api.ConceptQuery.toObject = function(includeInstance, msg) {
|
|
|
11875
11960
|
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11876
11961
|
useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
11877
11962
|
model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
|
|
11878
|
-
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
|
|
11963
|
+
workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
|
|
11964
|
+
ignoreAppConcepts: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
11879
11965
|
};
|
|
11880
11966
|
|
|
11881
11967
|
if (includeInstance) {
|
|
@@ -11940,6 +12026,10 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function(msg, read
|
|
|
11940
12026
|
reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
|
|
11941
12027
|
msg.setWorkflow(value);
|
|
11942
12028
|
break;
|
|
12029
|
+
case 7:
|
|
12030
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
12031
|
+
msg.setIgnoreAppConcepts(value);
|
|
12032
|
+
break;
|
|
11943
12033
|
default:
|
|
11944
12034
|
reader.skipField();
|
|
11945
12035
|
break;
|
|
@@ -12013,6 +12103,13 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function(message, writ
|
|
|
12013
12103
|
proto.clarifai.api.Workflow.serializeBinaryToWriter
|
|
12014
12104
|
);
|
|
12015
12105
|
}
|
|
12106
|
+
f = message.getIgnoreAppConcepts();
|
|
12107
|
+
if (f) {
|
|
12108
|
+
writer.writeBool(
|
|
12109
|
+
7,
|
|
12110
|
+
f
|
|
12111
|
+
);
|
|
12112
|
+
}
|
|
12016
12113
|
};
|
|
12017
12114
|
|
|
12018
12115
|
|
|
@@ -12181,6 +12278,24 @@ proto.clarifai.api.ConceptQuery.prototype.hasWorkflow = function() {
|
|
|
12181
12278
|
};
|
|
12182
12279
|
|
|
12183
12280
|
|
|
12281
|
+
/**
|
|
12282
|
+
* optional bool ignore_app_concepts = 7;
|
|
12283
|
+
* @return {boolean}
|
|
12284
|
+
*/
|
|
12285
|
+
proto.clarifai.api.ConceptQuery.prototype.getIgnoreAppConcepts = function() {
|
|
12286
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
12287
|
+
};
|
|
12288
|
+
|
|
12289
|
+
|
|
12290
|
+
/**
|
|
12291
|
+
* @param {boolean} value
|
|
12292
|
+
* @return {!proto.clarifai.api.ConceptQuery} returns this
|
|
12293
|
+
*/
|
|
12294
|
+
proto.clarifai.api.ConceptQuery.prototype.setIgnoreAppConcepts = function(value) {
|
|
12295
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
12296
|
+
};
|
|
12297
|
+
|
|
12298
|
+
|
|
12184
12299
|
|
|
12185
12300
|
|
|
12186
12301
|
|
|
@@ -42993,7 +43108,8 @@ proto.clarifai.api.UserDetail.toObject = function(includeInstance, msg) {
|
|
|
42993
43108
|
twoFactorAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
42994
43109
|
teamsCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
42995
43110
|
country: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
42996
|
-
state: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
43111
|
+
state: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
43112
|
+
commitmentValue: (f = msg.getCommitmentValue()) && proto.clarifai.api.CommitmentValue.toObject(includeInstance, f)
|
|
42997
43113
|
};
|
|
42998
43114
|
|
|
42999
43115
|
if (includeInstance) {
|
|
@@ -43084,6 +43200,11 @@ proto.clarifai.api.UserDetail.deserializeBinaryFromReader = function(msg, reader
|
|
|
43084
43200
|
var value = /** @type {string} */ (reader.readString());
|
|
43085
43201
|
msg.setState(value);
|
|
43086
43202
|
break;
|
|
43203
|
+
case 14:
|
|
43204
|
+
var value = new proto.clarifai.api.CommitmentValue;
|
|
43205
|
+
reader.readMessage(value,proto.clarifai.api.CommitmentValue.deserializeBinaryFromReader);
|
|
43206
|
+
msg.setCommitmentValue(value);
|
|
43207
|
+
break;
|
|
43087
43208
|
default:
|
|
43088
43209
|
reader.skipField();
|
|
43089
43210
|
break;
|
|
@@ -43203,6 +43324,14 @@ proto.clarifai.api.UserDetail.serializeBinaryToWriter = function(message, writer
|
|
|
43203
43324
|
f
|
|
43204
43325
|
);
|
|
43205
43326
|
}
|
|
43327
|
+
f = message.getCommitmentValue();
|
|
43328
|
+
if (f != null) {
|
|
43329
|
+
writer.writeMessage(
|
|
43330
|
+
14,
|
|
43331
|
+
f,
|
|
43332
|
+
proto.clarifai.api.CommitmentValue.serializeBinaryToWriter
|
|
43333
|
+
);
|
|
43334
|
+
}
|
|
43206
43335
|
};
|
|
43207
43336
|
|
|
43208
43337
|
|
|
@@ -43537,6 +43666,43 @@ proto.clarifai.api.UserDetail.prototype.setState = function(value) {
|
|
|
43537
43666
|
};
|
|
43538
43667
|
|
|
43539
43668
|
|
|
43669
|
+
/**
|
|
43670
|
+
* optional CommitmentValue commitment_value = 14;
|
|
43671
|
+
* @return {?proto.clarifai.api.CommitmentValue}
|
|
43672
|
+
*/
|
|
43673
|
+
proto.clarifai.api.UserDetail.prototype.getCommitmentValue = function() {
|
|
43674
|
+
return /** @type{?proto.clarifai.api.CommitmentValue} */ (
|
|
43675
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.CommitmentValue, 14));
|
|
43676
|
+
};
|
|
43677
|
+
|
|
43678
|
+
|
|
43679
|
+
/**
|
|
43680
|
+
* @param {?proto.clarifai.api.CommitmentValue|undefined} value
|
|
43681
|
+
* @return {!proto.clarifai.api.UserDetail} returns this
|
|
43682
|
+
*/
|
|
43683
|
+
proto.clarifai.api.UserDetail.prototype.setCommitmentValue = function(value) {
|
|
43684
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
43685
|
+
};
|
|
43686
|
+
|
|
43687
|
+
|
|
43688
|
+
/**
|
|
43689
|
+
* Clears the message field making it undefined.
|
|
43690
|
+
* @return {!proto.clarifai.api.UserDetail} returns this
|
|
43691
|
+
*/
|
|
43692
|
+
proto.clarifai.api.UserDetail.prototype.clearCommitmentValue = function() {
|
|
43693
|
+
return this.setCommitmentValue(undefined);
|
|
43694
|
+
};
|
|
43695
|
+
|
|
43696
|
+
|
|
43697
|
+
/**
|
|
43698
|
+
* Returns whether this field is set.
|
|
43699
|
+
* @return {boolean}
|
|
43700
|
+
*/
|
|
43701
|
+
proto.clarifai.api.UserDetail.prototype.hasCommitmentValue = function() {
|
|
43702
|
+
return jspb.Message.getField(this, 14) != null;
|
|
43703
|
+
};
|
|
43704
|
+
|
|
43705
|
+
|
|
43540
43706
|
|
|
43541
43707
|
|
|
43542
43708
|
|
|
@@ -44380,6 +44546,175 @@ proto.clarifai.api.PasswordViolations.prototype.setPasswordLifespan = function(v
|
|
|
44380
44546
|
|
|
44381
44547
|
|
|
44382
44548
|
|
|
44549
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44550
|
+
/**
|
|
44551
|
+
* Creates an object representation of this proto.
|
|
44552
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44553
|
+
* Optional fields that are not set will be set to undefined.
|
|
44554
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44555
|
+
* For the list of reserved names please see:
|
|
44556
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44557
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44558
|
+
* JSPB instance for transitional soy proto support:
|
|
44559
|
+
* http://goto/soy-param-migration
|
|
44560
|
+
* @return {!Object}
|
|
44561
|
+
*/
|
|
44562
|
+
proto.clarifai.api.CommitmentValue.prototype.toObject = function(opt_includeInstance) {
|
|
44563
|
+
return proto.clarifai.api.CommitmentValue.toObject(opt_includeInstance, this);
|
|
44564
|
+
};
|
|
44565
|
+
|
|
44566
|
+
|
|
44567
|
+
/**
|
|
44568
|
+
* Static version of the {@see toObject} method.
|
|
44569
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44570
|
+
* the JSPB instance for transitional soy proto support:
|
|
44571
|
+
* http://goto/soy-param-migration
|
|
44572
|
+
* @param {!proto.clarifai.api.CommitmentValue} msg The msg instance to transform.
|
|
44573
|
+
* @return {!Object}
|
|
44574
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44575
|
+
*/
|
|
44576
|
+
proto.clarifai.api.CommitmentValue.toObject = function(includeInstance, msg) {
|
|
44577
|
+
var f, obj = {
|
|
44578
|
+
value: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44579
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
44580
|
+
};
|
|
44581
|
+
|
|
44582
|
+
if (includeInstance) {
|
|
44583
|
+
obj.$jspbMessageInstance = msg;
|
|
44584
|
+
}
|
|
44585
|
+
return obj;
|
|
44586
|
+
};
|
|
44587
|
+
}
|
|
44588
|
+
|
|
44589
|
+
|
|
44590
|
+
/**
|
|
44591
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44592
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
44593
|
+
* @return {!proto.clarifai.api.CommitmentValue}
|
|
44594
|
+
*/
|
|
44595
|
+
proto.clarifai.api.CommitmentValue.deserializeBinary = function(bytes) {
|
|
44596
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44597
|
+
var msg = new proto.clarifai.api.CommitmentValue;
|
|
44598
|
+
return proto.clarifai.api.CommitmentValue.deserializeBinaryFromReader(msg, reader);
|
|
44599
|
+
};
|
|
44600
|
+
|
|
44601
|
+
|
|
44602
|
+
/**
|
|
44603
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44604
|
+
* given reader into the given message object.
|
|
44605
|
+
* @param {!proto.clarifai.api.CommitmentValue} msg The message object to deserialize into.
|
|
44606
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44607
|
+
* @return {!proto.clarifai.api.CommitmentValue}
|
|
44608
|
+
*/
|
|
44609
|
+
proto.clarifai.api.CommitmentValue.deserializeBinaryFromReader = function(msg, reader) {
|
|
44610
|
+
while (reader.nextField()) {
|
|
44611
|
+
if (reader.isEndGroup()) {
|
|
44612
|
+
break;
|
|
44613
|
+
}
|
|
44614
|
+
var field = reader.getFieldNumber();
|
|
44615
|
+
switch (field) {
|
|
44616
|
+
case 1:
|
|
44617
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
44618
|
+
msg.setValue(value);
|
|
44619
|
+
break;
|
|
44620
|
+
case 2:
|
|
44621
|
+
var value = /** @type {!proto.clarifai.api.CommitmentValue.CommitmentType} */ (reader.readEnum());
|
|
44622
|
+
msg.setType(value);
|
|
44623
|
+
break;
|
|
44624
|
+
default:
|
|
44625
|
+
reader.skipField();
|
|
44626
|
+
break;
|
|
44627
|
+
}
|
|
44628
|
+
}
|
|
44629
|
+
return msg;
|
|
44630
|
+
};
|
|
44631
|
+
|
|
44632
|
+
|
|
44633
|
+
/**
|
|
44634
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44635
|
+
* @return {!Uint8Array}
|
|
44636
|
+
*/
|
|
44637
|
+
proto.clarifai.api.CommitmentValue.prototype.serializeBinary = function() {
|
|
44638
|
+
var writer = new jspb.BinaryWriter();
|
|
44639
|
+
proto.clarifai.api.CommitmentValue.serializeBinaryToWriter(this, writer);
|
|
44640
|
+
return writer.getResultBuffer();
|
|
44641
|
+
};
|
|
44642
|
+
|
|
44643
|
+
|
|
44644
|
+
/**
|
|
44645
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44646
|
+
* format), writing to the given BinaryWriter.
|
|
44647
|
+
* @param {!proto.clarifai.api.CommitmentValue} message
|
|
44648
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44649
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44650
|
+
*/
|
|
44651
|
+
proto.clarifai.api.CommitmentValue.serializeBinaryToWriter = function(message, writer) {
|
|
44652
|
+
var f = undefined;
|
|
44653
|
+
f = message.getValue();
|
|
44654
|
+
if (f !== 0) {
|
|
44655
|
+
writer.writeInt32(
|
|
44656
|
+
1,
|
|
44657
|
+
f
|
|
44658
|
+
);
|
|
44659
|
+
}
|
|
44660
|
+
f = message.getType();
|
|
44661
|
+
if (f !== 0.0) {
|
|
44662
|
+
writer.writeEnum(
|
|
44663
|
+
2,
|
|
44664
|
+
f
|
|
44665
|
+
);
|
|
44666
|
+
}
|
|
44667
|
+
};
|
|
44668
|
+
|
|
44669
|
+
|
|
44670
|
+
/**
|
|
44671
|
+
* @enum {number}
|
|
44672
|
+
*/
|
|
44673
|
+
proto.clarifai.api.CommitmentValue.CommitmentType = {
|
|
44674
|
+
TYPE_NOT_SET: 0,
|
|
44675
|
+
MONTHLY: 1,
|
|
44676
|
+
ANNUAL: 2
|
|
44677
|
+
};
|
|
44678
|
+
|
|
44679
|
+
/**
|
|
44680
|
+
* optional int32 value = 1;
|
|
44681
|
+
* @return {number}
|
|
44682
|
+
*/
|
|
44683
|
+
proto.clarifai.api.CommitmentValue.prototype.getValue = function() {
|
|
44684
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44685
|
+
};
|
|
44686
|
+
|
|
44687
|
+
|
|
44688
|
+
/**
|
|
44689
|
+
* @param {number} value
|
|
44690
|
+
* @return {!proto.clarifai.api.CommitmentValue} returns this
|
|
44691
|
+
*/
|
|
44692
|
+
proto.clarifai.api.CommitmentValue.prototype.setValue = function(value) {
|
|
44693
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44694
|
+
};
|
|
44695
|
+
|
|
44696
|
+
|
|
44697
|
+
/**
|
|
44698
|
+
* optional CommitmentType type = 2;
|
|
44699
|
+
* @return {!proto.clarifai.api.CommitmentValue.CommitmentType}
|
|
44700
|
+
*/
|
|
44701
|
+
proto.clarifai.api.CommitmentValue.prototype.getType = function() {
|
|
44702
|
+
return /** @type {!proto.clarifai.api.CommitmentValue.CommitmentType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44703
|
+
};
|
|
44704
|
+
|
|
44705
|
+
|
|
44706
|
+
/**
|
|
44707
|
+
* @param {!proto.clarifai.api.CommitmentValue.CommitmentType} value
|
|
44708
|
+
* @return {!proto.clarifai.api.CommitmentValue} returns this
|
|
44709
|
+
*/
|
|
44710
|
+
proto.clarifai.api.CommitmentValue.prototype.setType = function(value) {
|
|
44711
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
44712
|
+
};
|
|
44713
|
+
|
|
44714
|
+
|
|
44715
|
+
|
|
44716
|
+
|
|
44717
|
+
|
|
44383
44718
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44384
44719
|
/**
|
|
44385
44720
|
* Creates an object representation of this proto.
|
|
@@ -48970,7 +49305,8 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
|
|
|
48970
49305
|
proto.clarifai.api.TaskConcept.toObject, includeInstance),
|
|
48971
49306
|
deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
|
|
48972
49307
|
metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f),
|
|
48973
|
-
priority: jspb.Message.getFieldWithDefault(msg, 23, 0)
|
|
49308
|
+
priority: jspb.Message.getFieldWithDefault(msg, 23, 0),
|
|
49309
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
48974
49310
|
};
|
|
48975
49311
|
|
|
48976
49312
|
if (includeInstance) {
|
|
@@ -49106,6 +49442,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
49106
49442
|
var value = /** @type {!proto.clarifai.api.Task.TaskPriority} */ (reader.readEnum());
|
|
49107
49443
|
msg.setPriority(value);
|
|
49108
49444
|
break;
|
|
49445
|
+
case 24:
|
|
49446
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
49447
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
49448
|
+
msg.setMetadata(value);
|
|
49449
|
+
break;
|
|
49109
49450
|
default:
|
|
49110
49451
|
reader.skipField();
|
|
49111
49452
|
break;
|
|
@@ -49300,6 +49641,14 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
|
|
|
49300
49641
|
f
|
|
49301
49642
|
);
|
|
49302
49643
|
}
|
|
49644
|
+
f = message.getMetadata();
|
|
49645
|
+
if (f != null) {
|
|
49646
|
+
writer.writeMessage(
|
|
49647
|
+
24,
|
|
49648
|
+
f,
|
|
49649
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
49650
|
+
);
|
|
49651
|
+
}
|
|
49303
49652
|
};
|
|
49304
49653
|
|
|
49305
49654
|
|
|
@@ -49948,6 +50297,43 @@ proto.clarifai.api.Task.prototype.setPriority = function(value) {
|
|
|
49948
50297
|
};
|
|
49949
50298
|
|
|
49950
50299
|
|
|
50300
|
+
/**
|
|
50301
|
+
* optional google.protobuf.Struct metadata = 24;
|
|
50302
|
+
* @return {?proto.google.protobuf.Struct}
|
|
50303
|
+
*/
|
|
50304
|
+
proto.clarifai.api.Task.prototype.getMetadata = function() {
|
|
50305
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
50306
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 24));
|
|
50307
|
+
};
|
|
50308
|
+
|
|
50309
|
+
|
|
50310
|
+
/**
|
|
50311
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
50312
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
50313
|
+
*/
|
|
50314
|
+
proto.clarifai.api.Task.prototype.setMetadata = function(value) {
|
|
50315
|
+
return jspb.Message.setWrapperField(this, 24, value);
|
|
50316
|
+
};
|
|
50317
|
+
|
|
50318
|
+
|
|
50319
|
+
/**
|
|
50320
|
+
* Clears the message field making it undefined.
|
|
50321
|
+
* @return {!proto.clarifai.api.Task} returns this
|
|
50322
|
+
*/
|
|
50323
|
+
proto.clarifai.api.Task.prototype.clearMetadata = function() {
|
|
50324
|
+
return this.setMetadata(undefined);
|
|
50325
|
+
};
|
|
50326
|
+
|
|
50327
|
+
|
|
50328
|
+
/**
|
|
50329
|
+
* Returns whether this field is set.
|
|
50330
|
+
* @return {boolean}
|
|
50331
|
+
*/
|
|
50332
|
+
proto.clarifai.api.Task.prototype.hasMetadata = function() {
|
|
50333
|
+
return jspb.Message.getField(this, 24) != null;
|
|
50334
|
+
};
|
|
50335
|
+
|
|
50336
|
+
|
|
49951
50337
|
|
|
49952
50338
|
/**
|
|
49953
50339
|
* List of repeated fields within this message type.
|
|
@@ -53881,6 +54267,725 @@ proto.clarifai.api.TaskInputSourceMetrics.prototype.setInputsCountEstimated = fu
|
|
|
53881
54267
|
|
|
53882
54268
|
|
|
53883
54269
|
|
|
54270
|
+
/**
|
|
54271
|
+
* List of repeated fields within this message type.
|
|
54272
|
+
* @private {!Array<number>}
|
|
54273
|
+
* @const
|
|
54274
|
+
*/
|
|
54275
|
+
proto.clarifai.api.Role.repeatedFields_ = [6,7];
|
|
54276
|
+
|
|
54277
|
+
|
|
54278
|
+
|
|
54279
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54280
|
+
/**
|
|
54281
|
+
* Creates an object representation of this proto.
|
|
54282
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54283
|
+
* Optional fields that are not set will be set to undefined.
|
|
54284
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54285
|
+
* For the list of reserved names please see:
|
|
54286
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
54287
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
54288
|
+
* JSPB instance for transitional soy proto support:
|
|
54289
|
+
* http://goto/soy-param-migration
|
|
54290
|
+
* @return {!Object}
|
|
54291
|
+
*/
|
|
54292
|
+
proto.clarifai.api.Role.prototype.toObject = function(opt_includeInstance) {
|
|
54293
|
+
return proto.clarifai.api.Role.toObject(opt_includeInstance, this);
|
|
54294
|
+
};
|
|
54295
|
+
|
|
54296
|
+
|
|
54297
|
+
/**
|
|
54298
|
+
* Static version of the {@see toObject} method.
|
|
54299
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54300
|
+
* the JSPB instance for transitional soy proto support:
|
|
54301
|
+
* http://goto/soy-param-migration
|
|
54302
|
+
* @param {!proto.clarifai.api.Role} msg The msg instance to transform.
|
|
54303
|
+
* @return {!Object}
|
|
54304
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54305
|
+
*/
|
|
54306
|
+
proto.clarifai.api.Role.toObject = function(includeInstance, msg) {
|
|
54307
|
+
var f, obj = {
|
|
54308
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
54309
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54310
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54311
|
+
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
54312
|
+
description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
54313
|
+
scopesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
54314
|
+
endpointsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
54315
|
+
type: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
54316
|
+
};
|
|
54317
|
+
|
|
54318
|
+
if (includeInstance) {
|
|
54319
|
+
obj.$jspbMessageInstance = msg;
|
|
54320
|
+
}
|
|
54321
|
+
return obj;
|
|
54322
|
+
};
|
|
54323
|
+
}
|
|
54324
|
+
|
|
54325
|
+
|
|
54326
|
+
/**
|
|
54327
|
+
* Deserializes binary data (in protobuf wire format).
|
|
54328
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54329
|
+
* @return {!proto.clarifai.api.Role}
|
|
54330
|
+
*/
|
|
54331
|
+
proto.clarifai.api.Role.deserializeBinary = function(bytes) {
|
|
54332
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
54333
|
+
var msg = new proto.clarifai.api.Role;
|
|
54334
|
+
return proto.clarifai.api.Role.deserializeBinaryFromReader(msg, reader);
|
|
54335
|
+
};
|
|
54336
|
+
|
|
54337
|
+
|
|
54338
|
+
/**
|
|
54339
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
54340
|
+
* given reader into the given message object.
|
|
54341
|
+
* @param {!proto.clarifai.api.Role} msg The message object to deserialize into.
|
|
54342
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54343
|
+
* @return {!proto.clarifai.api.Role}
|
|
54344
|
+
*/
|
|
54345
|
+
proto.clarifai.api.Role.deserializeBinaryFromReader = function(msg, reader) {
|
|
54346
|
+
while (reader.nextField()) {
|
|
54347
|
+
if (reader.isEndGroup()) {
|
|
54348
|
+
break;
|
|
54349
|
+
}
|
|
54350
|
+
var field = reader.getFieldNumber();
|
|
54351
|
+
switch (field) {
|
|
54352
|
+
case 1:
|
|
54353
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54354
|
+
msg.setId(value);
|
|
54355
|
+
break;
|
|
54356
|
+
case 2:
|
|
54357
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54358
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54359
|
+
msg.setCreatedAt(value);
|
|
54360
|
+
break;
|
|
54361
|
+
case 3:
|
|
54362
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54363
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54364
|
+
msg.setModifiedAt(value);
|
|
54365
|
+
break;
|
|
54366
|
+
case 4:
|
|
54367
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54368
|
+
msg.setName(value);
|
|
54369
|
+
break;
|
|
54370
|
+
case 5:
|
|
54371
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54372
|
+
msg.setDescription(value);
|
|
54373
|
+
break;
|
|
54374
|
+
case 6:
|
|
54375
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54376
|
+
msg.addScopes(value);
|
|
54377
|
+
break;
|
|
54378
|
+
case 7:
|
|
54379
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54380
|
+
msg.addEndpoints(value);
|
|
54381
|
+
break;
|
|
54382
|
+
case 8:
|
|
54383
|
+
var value = /** @type {!proto.clarifai.api.RoleType} */ (reader.readEnum());
|
|
54384
|
+
msg.setType(value);
|
|
54385
|
+
break;
|
|
54386
|
+
default:
|
|
54387
|
+
reader.skipField();
|
|
54388
|
+
break;
|
|
54389
|
+
}
|
|
54390
|
+
}
|
|
54391
|
+
return msg;
|
|
54392
|
+
};
|
|
54393
|
+
|
|
54394
|
+
|
|
54395
|
+
/**
|
|
54396
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
54397
|
+
* @return {!Uint8Array}
|
|
54398
|
+
*/
|
|
54399
|
+
proto.clarifai.api.Role.prototype.serializeBinary = function() {
|
|
54400
|
+
var writer = new jspb.BinaryWriter();
|
|
54401
|
+
proto.clarifai.api.Role.serializeBinaryToWriter(this, writer);
|
|
54402
|
+
return writer.getResultBuffer();
|
|
54403
|
+
};
|
|
54404
|
+
|
|
54405
|
+
|
|
54406
|
+
/**
|
|
54407
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
54408
|
+
* format), writing to the given BinaryWriter.
|
|
54409
|
+
* @param {!proto.clarifai.api.Role} message
|
|
54410
|
+
* @param {!jspb.BinaryWriter} writer
|
|
54411
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54412
|
+
*/
|
|
54413
|
+
proto.clarifai.api.Role.serializeBinaryToWriter = function(message, writer) {
|
|
54414
|
+
var f = undefined;
|
|
54415
|
+
f = message.getId();
|
|
54416
|
+
if (f.length > 0) {
|
|
54417
|
+
writer.writeString(
|
|
54418
|
+
1,
|
|
54419
|
+
f
|
|
54420
|
+
);
|
|
54421
|
+
}
|
|
54422
|
+
f = message.getCreatedAt();
|
|
54423
|
+
if (f != null) {
|
|
54424
|
+
writer.writeMessage(
|
|
54425
|
+
2,
|
|
54426
|
+
f,
|
|
54427
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54428
|
+
);
|
|
54429
|
+
}
|
|
54430
|
+
f = message.getModifiedAt();
|
|
54431
|
+
if (f != null) {
|
|
54432
|
+
writer.writeMessage(
|
|
54433
|
+
3,
|
|
54434
|
+
f,
|
|
54435
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54436
|
+
);
|
|
54437
|
+
}
|
|
54438
|
+
f = message.getName();
|
|
54439
|
+
if (f.length > 0) {
|
|
54440
|
+
writer.writeString(
|
|
54441
|
+
4,
|
|
54442
|
+
f
|
|
54443
|
+
);
|
|
54444
|
+
}
|
|
54445
|
+
f = message.getDescription();
|
|
54446
|
+
if (f.length > 0) {
|
|
54447
|
+
writer.writeString(
|
|
54448
|
+
5,
|
|
54449
|
+
f
|
|
54450
|
+
);
|
|
54451
|
+
}
|
|
54452
|
+
f = message.getScopesList();
|
|
54453
|
+
if (f.length > 0) {
|
|
54454
|
+
writer.writeRepeatedString(
|
|
54455
|
+
6,
|
|
54456
|
+
f
|
|
54457
|
+
);
|
|
54458
|
+
}
|
|
54459
|
+
f = message.getEndpointsList();
|
|
54460
|
+
if (f.length > 0) {
|
|
54461
|
+
writer.writeRepeatedString(
|
|
54462
|
+
7,
|
|
54463
|
+
f
|
|
54464
|
+
);
|
|
54465
|
+
}
|
|
54466
|
+
f = message.getType();
|
|
54467
|
+
if (f !== 0.0) {
|
|
54468
|
+
writer.writeEnum(
|
|
54469
|
+
8,
|
|
54470
|
+
f
|
|
54471
|
+
);
|
|
54472
|
+
}
|
|
54473
|
+
};
|
|
54474
|
+
|
|
54475
|
+
|
|
54476
|
+
/**
|
|
54477
|
+
* optional string id = 1;
|
|
54478
|
+
* @return {string}
|
|
54479
|
+
*/
|
|
54480
|
+
proto.clarifai.api.Role.prototype.getId = function() {
|
|
54481
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
54482
|
+
};
|
|
54483
|
+
|
|
54484
|
+
|
|
54485
|
+
/**
|
|
54486
|
+
* @param {string} value
|
|
54487
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54488
|
+
*/
|
|
54489
|
+
proto.clarifai.api.Role.prototype.setId = function(value) {
|
|
54490
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
54491
|
+
};
|
|
54492
|
+
|
|
54493
|
+
|
|
54494
|
+
/**
|
|
54495
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
54496
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54497
|
+
*/
|
|
54498
|
+
proto.clarifai.api.Role.prototype.getCreatedAt = function() {
|
|
54499
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54500
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
54501
|
+
};
|
|
54502
|
+
|
|
54503
|
+
|
|
54504
|
+
/**
|
|
54505
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54506
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54507
|
+
*/
|
|
54508
|
+
proto.clarifai.api.Role.prototype.setCreatedAt = function(value) {
|
|
54509
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
54510
|
+
};
|
|
54511
|
+
|
|
54512
|
+
|
|
54513
|
+
/**
|
|
54514
|
+
* Clears the message field making it undefined.
|
|
54515
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54516
|
+
*/
|
|
54517
|
+
proto.clarifai.api.Role.prototype.clearCreatedAt = function() {
|
|
54518
|
+
return this.setCreatedAt(undefined);
|
|
54519
|
+
};
|
|
54520
|
+
|
|
54521
|
+
|
|
54522
|
+
/**
|
|
54523
|
+
* Returns whether this field is set.
|
|
54524
|
+
* @return {boolean}
|
|
54525
|
+
*/
|
|
54526
|
+
proto.clarifai.api.Role.prototype.hasCreatedAt = function() {
|
|
54527
|
+
return jspb.Message.getField(this, 2) != null;
|
|
54528
|
+
};
|
|
54529
|
+
|
|
54530
|
+
|
|
54531
|
+
/**
|
|
54532
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
54533
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54534
|
+
*/
|
|
54535
|
+
proto.clarifai.api.Role.prototype.getModifiedAt = function() {
|
|
54536
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54537
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
54538
|
+
};
|
|
54539
|
+
|
|
54540
|
+
|
|
54541
|
+
/**
|
|
54542
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54543
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54544
|
+
*/
|
|
54545
|
+
proto.clarifai.api.Role.prototype.setModifiedAt = function(value) {
|
|
54546
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
54547
|
+
};
|
|
54548
|
+
|
|
54549
|
+
|
|
54550
|
+
/**
|
|
54551
|
+
* Clears the message field making it undefined.
|
|
54552
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54553
|
+
*/
|
|
54554
|
+
proto.clarifai.api.Role.prototype.clearModifiedAt = function() {
|
|
54555
|
+
return this.setModifiedAt(undefined);
|
|
54556
|
+
};
|
|
54557
|
+
|
|
54558
|
+
|
|
54559
|
+
/**
|
|
54560
|
+
* Returns whether this field is set.
|
|
54561
|
+
* @return {boolean}
|
|
54562
|
+
*/
|
|
54563
|
+
proto.clarifai.api.Role.prototype.hasModifiedAt = function() {
|
|
54564
|
+
return jspb.Message.getField(this, 3) != null;
|
|
54565
|
+
};
|
|
54566
|
+
|
|
54567
|
+
|
|
54568
|
+
/**
|
|
54569
|
+
* optional string name = 4;
|
|
54570
|
+
* @return {string}
|
|
54571
|
+
*/
|
|
54572
|
+
proto.clarifai.api.Role.prototype.getName = function() {
|
|
54573
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
54574
|
+
};
|
|
54575
|
+
|
|
54576
|
+
|
|
54577
|
+
/**
|
|
54578
|
+
* @param {string} value
|
|
54579
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54580
|
+
*/
|
|
54581
|
+
proto.clarifai.api.Role.prototype.setName = function(value) {
|
|
54582
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
54583
|
+
};
|
|
54584
|
+
|
|
54585
|
+
|
|
54586
|
+
/**
|
|
54587
|
+
* optional string description = 5;
|
|
54588
|
+
* @return {string}
|
|
54589
|
+
*/
|
|
54590
|
+
proto.clarifai.api.Role.prototype.getDescription = function() {
|
|
54591
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
54592
|
+
};
|
|
54593
|
+
|
|
54594
|
+
|
|
54595
|
+
/**
|
|
54596
|
+
* @param {string} value
|
|
54597
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54598
|
+
*/
|
|
54599
|
+
proto.clarifai.api.Role.prototype.setDescription = function(value) {
|
|
54600
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
54601
|
+
};
|
|
54602
|
+
|
|
54603
|
+
|
|
54604
|
+
/**
|
|
54605
|
+
* repeated string scopes = 6;
|
|
54606
|
+
* @return {!Array<string>}
|
|
54607
|
+
*/
|
|
54608
|
+
proto.clarifai.api.Role.prototype.getScopesList = function() {
|
|
54609
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
54610
|
+
};
|
|
54611
|
+
|
|
54612
|
+
|
|
54613
|
+
/**
|
|
54614
|
+
* @param {!Array<string>} value
|
|
54615
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54616
|
+
*/
|
|
54617
|
+
proto.clarifai.api.Role.prototype.setScopesList = function(value) {
|
|
54618
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
54619
|
+
};
|
|
54620
|
+
|
|
54621
|
+
|
|
54622
|
+
/**
|
|
54623
|
+
* @param {string} value
|
|
54624
|
+
* @param {number=} opt_index
|
|
54625
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54626
|
+
*/
|
|
54627
|
+
proto.clarifai.api.Role.prototype.addScopes = function(value, opt_index) {
|
|
54628
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
54629
|
+
};
|
|
54630
|
+
|
|
54631
|
+
|
|
54632
|
+
/**
|
|
54633
|
+
* Clears the list making it empty but non-null.
|
|
54634
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54635
|
+
*/
|
|
54636
|
+
proto.clarifai.api.Role.prototype.clearScopesList = function() {
|
|
54637
|
+
return this.setScopesList([]);
|
|
54638
|
+
};
|
|
54639
|
+
|
|
54640
|
+
|
|
54641
|
+
/**
|
|
54642
|
+
* repeated string endpoints = 7;
|
|
54643
|
+
* @return {!Array<string>}
|
|
54644
|
+
*/
|
|
54645
|
+
proto.clarifai.api.Role.prototype.getEndpointsList = function() {
|
|
54646
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
54647
|
+
};
|
|
54648
|
+
|
|
54649
|
+
|
|
54650
|
+
/**
|
|
54651
|
+
* @param {!Array<string>} value
|
|
54652
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54653
|
+
*/
|
|
54654
|
+
proto.clarifai.api.Role.prototype.setEndpointsList = function(value) {
|
|
54655
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
54656
|
+
};
|
|
54657
|
+
|
|
54658
|
+
|
|
54659
|
+
/**
|
|
54660
|
+
* @param {string} value
|
|
54661
|
+
* @param {number=} opt_index
|
|
54662
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54663
|
+
*/
|
|
54664
|
+
proto.clarifai.api.Role.prototype.addEndpoints = function(value, opt_index) {
|
|
54665
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
54666
|
+
};
|
|
54667
|
+
|
|
54668
|
+
|
|
54669
|
+
/**
|
|
54670
|
+
* Clears the list making it empty but non-null.
|
|
54671
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54672
|
+
*/
|
|
54673
|
+
proto.clarifai.api.Role.prototype.clearEndpointsList = function() {
|
|
54674
|
+
return this.setEndpointsList([]);
|
|
54675
|
+
};
|
|
54676
|
+
|
|
54677
|
+
|
|
54678
|
+
/**
|
|
54679
|
+
* optional RoleType type = 8;
|
|
54680
|
+
* @return {!proto.clarifai.api.RoleType}
|
|
54681
|
+
*/
|
|
54682
|
+
proto.clarifai.api.Role.prototype.getType = function() {
|
|
54683
|
+
return /** @type {!proto.clarifai.api.RoleType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
54684
|
+
};
|
|
54685
|
+
|
|
54686
|
+
|
|
54687
|
+
/**
|
|
54688
|
+
* @param {!proto.clarifai.api.RoleType} value
|
|
54689
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54690
|
+
*/
|
|
54691
|
+
proto.clarifai.api.Role.prototype.setType = function(value) {
|
|
54692
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
54693
|
+
};
|
|
54694
|
+
|
|
54695
|
+
|
|
54696
|
+
|
|
54697
|
+
|
|
54698
|
+
|
|
54699
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54700
|
+
/**
|
|
54701
|
+
* Creates an object representation of this proto.
|
|
54702
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54703
|
+
* Optional fields that are not set will be set to undefined.
|
|
54704
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54705
|
+
* For the list of reserved names please see:
|
|
54706
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
54707
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
54708
|
+
* JSPB instance for transitional soy proto support:
|
|
54709
|
+
* http://goto/soy-param-migration
|
|
54710
|
+
* @return {!Object}
|
|
54711
|
+
*/
|
|
54712
|
+
proto.clarifai.api.Team.prototype.toObject = function(opt_includeInstance) {
|
|
54713
|
+
return proto.clarifai.api.Team.toObject(opt_includeInstance, this);
|
|
54714
|
+
};
|
|
54715
|
+
|
|
54716
|
+
|
|
54717
|
+
/**
|
|
54718
|
+
* Static version of the {@see toObject} method.
|
|
54719
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54720
|
+
* the JSPB instance for transitional soy proto support:
|
|
54721
|
+
* http://goto/soy-param-migration
|
|
54722
|
+
* @param {!proto.clarifai.api.Team} msg The msg instance to transform.
|
|
54723
|
+
* @return {!Object}
|
|
54724
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54725
|
+
*/
|
|
54726
|
+
proto.clarifai.api.Team.toObject = function(includeInstance, msg) {
|
|
54727
|
+
var f, obj = {
|
|
54728
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
54729
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54730
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54731
|
+
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
54732
|
+
defaultRoleId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
54733
|
+
};
|
|
54734
|
+
|
|
54735
|
+
if (includeInstance) {
|
|
54736
|
+
obj.$jspbMessageInstance = msg;
|
|
54737
|
+
}
|
|
54738
|
+
return obj;
|
|
54739
|
+
};
|
|
54740
|
+
}
|
|
54741
|
+
|
|
54742
|
+
|
|
54743
|
+
/**
|
|
54744
|
+
* Deserializes binary data (in protobuf wire format).
|
|
54745
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54746
|
+
* @return {!proto.clarifai.api.Team}
|
|
54747
|
+
*/
|
|
54748
|
+
proto.clarifai.api.Team.deserializeBinary = function(bytes) {
|
|
54749
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
54750
|
+
var msg = new proto.clarifai.api.Team;
|
|
54751
|
+
return proto.clarifai.api.Team.deserializeBinaryFromReader(msg, reader);
|
|
54752
|
+
};
|
|
54753
|
+
|
|
54754
|
+
|
|
54755
|
+
/**
|
|
54756
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
54757
|
+
* given reader into the given message object.
|
|
54758
|
+
* @param {!proto.clarifai.api.Team} msg The message object to deserialize into.
|
|
54759
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54760
|
+
* @return {!proto.clarifai.api.Team}
|
|
54761
|
+
*/
|
|
54762
|
+
proto.clarifai.api.Team.deserializeBinaryFromReader = function(msg, reader) {
|
|
54763
|
+
while (reader.nextField()) {
|
|
54764
|
+
if (reader.isEndGroup()) {
|
|
54765
|
+
break;
|
|
54766
|
+
}
|
|
54767
|
+
var field = reader.getFieldNumber();
|
|
54768
|
+
switch (field) {
|
|
54769
|
+
case 1:
|
|
54770
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54771
|
+
msg.setId(value);
|
|
54772
|
+
break;
|
|
54773
|
+
case 2:
|
|
54774
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54775
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54776
|
+
msg.setCreatedAt(value);
|
|
54777
|
+
break;
|
|
54778
|
+
case 3:
|
|
54779
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54780
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54781
|
+
msg.setModifiedAt(value);
|
|
54782
|
+
break;
|
|
54783
|
+
case 4:
|
|
54784
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54785
|
+
msg.setName(value);
|
|
54786
|
+
break;
|
|
54787
|
+
case 5:
|
|
54788
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54789
|
+
msg.setDefaultRoleId(value);
|
|
54790
|
+
break;
|
|
54791
|
+
default:
|
|
54792
|
+
reader.skipField();
|
|
54793
|
+
break;
|
|
54794
|
+
}
|
|
54795
|
+
}
|
|
54796
|
+
return msg;
|
|
54797
|
+
};
|
|
54798
|
+
|
|
54799
|
+
|
|
54800
|
+
/**
|
|
54801
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
54802
|
+
* @return {!Uint8Array}
|
|
54803
|
+
*/
|
|
54804
|
+
proto.clarifai.api.Team.prototype.serializeBinary = function() {
|
|
54805
|
+
var writer = new jspb.BinaryWriter();
|
|
54806
|
+
proto.clarifai.api.Team.serializeBinaryToWriter(this, writer);
|
|
54807
|
+
return writer.getResultBuffer();
|
|
54808
|
+
};
|
|
54809
|
+
|
|
54810
|
+
|
|
54811
|
+
/**
|
|
54812
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
54813
|
+
* format), writing to the given BinaryWriter.
|
|
54814
|
+
* @param {!proto.clarifai.api.Team} message
|
|
54815
|
+
* @param {!jspb.BinaryWriter} writer
|
|
54816
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54817
|
+
*/
|
|
54818
|
+
proto.clarifai.api.Team.serializeBinaryToWriter = function(message, writer) {
|
|
54819
|
+
var f = undefined;
|
|
54820
|
+
f = message.getId();
|
|
54821
|
+
if (f.length > 0) {
|
|
54822
|
+
writer.writeString(
|
|
54823
|
+
1,
|
|
54824
|
+
f
|
|
54825
|
+
);
|
|
54826
|
+
}
|
|
54827
|
+
f = message.getCreatedAt();
|
|
54828
|
+
if (f != null) {
|
|
54829
|
+
writer.writeMessage(
|
|
54830
|
+
2,
|
|
54831
|
+
f,
|
|
54832
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54833
|
+
);
|
|
54834
|
+
}
|
|
54835
|
+
f = message.getModifiedAt();
|
|
54836
|
+
if (f != null) {
|
|
54837
|
+
writer.writeMessage(
|
|
54838
|
+
3,
|
|
54839
|
+
f,
|
|
54840
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54841
|
+
);
|
|
54842
|
+
}
|
|
54843
|
+
f = message.getName();
|
|
54844
|
+
if (f.length > 0) {
|
|
54845
|
+
writer.writeString(
|
|
54846
|
+
4,
|
|
54847
|
+
f
|
|
54848
|
+
);
|
|
54849
|
+
}
|
|
54850
|
+
f = message.getDefaultRoleId();
|
|
54851
|
+
if (f.length > 0) {
|
|
54852
|
+
writer.writeString(
|
|
54853
|
+
5,
|
|
54854
|
+
f
|
|
54855
|
+
);
|
|
54856
|
+
}
|
|
54857
|
+
};
|
|
54858
|
+
|
|
54859
|
+
|
|
54860
|
+
/**
|
|
54861
|
+
* optional string id = 1;
|
|
54862
|
+
* @return {string}
|
|
54863
|
+
*/
|
|
54864
|
+
proto.clarifai.api.Team.prototype.getId = function() {
|
|
54865
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
54866
|
+
};
|
|
54867
|
+
|
|
54868
|
+
|
|
54869
|
+
/**
|
|
54870
|
+
* @param {string} value
|
|
54871
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54872
|
+
*/
|
|
54873
|
+
proto.clarifai.api.Team.prototype.setId = function(value) {
|
|
54874
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
54875
|
+
};
|
|
54876
|
+
|
|
54877
|
+
|
|
54878
|
+
/**
|
|
54879
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
54880
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54881
|
+
*/
|
|
54882
|
+
proto.clarifai.api.Team.prototype.getCreatedAt = function() {
|
|
54883
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54884
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
54885
|
+
};
|
|
54886
|
+
|
|
54887
|
+
|
|
54888
|
+
/**
|
|
54889
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54890
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54891
|
+
*/
|
|
54892
|
+
proto.clarifai.api.Team.prototype.setCreatedAt = function(value) {
|
|
54893
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
54894
|
+
};
|
|
54895
|
+
|
|
54896
|
+
|
|
54897
|
+
/**
|
|
54898
|
+
* Clears the message field making it undefined.
|
|
54899
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54900
|
+
*/
|
|
54901
|
+
proto.clarifai.api.Team.prototype.clearCreatedAt = function() {
|
|
54902
|
+
return this.setCreatedAt(undefined);
|
|
54903
|
+
};
|
|
54904
|
+
|
|
54905
|
+
|
|
54906
|
+
/**
|
|
54907
|
+
* Returns whether this field is set.
|
|
54908
|
+
* @return {boolean}
|
|
54909
|
+
*/
|
|
54910
|
+
proto.clarifai.api.Team.prototype.hasCreatedAt = function() {
|
|
54911
|
+
return jspb.Message.getField(this, 2) != null;
|
|
54912
|
+
};
|
|
54913
|
+
|
|
54914
|
+
|
|
54915
|
+
/**
|
|
54916
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
54917
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54918
|
+
*/
|
|
54919
|
+
proto.clarifai.api.Team.prototype.getModifiedAt = function() {
|
|
54920
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54921
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
54922
|
+
};
|
|
54923
|
+
|
|
54924
|
+
|
|
54925
|
+
/**
|
|
54926
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54927
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54928
|
+
*/
|
|
54929
|
+
proto.clarifai.api.Team.prototype.setModifiedAt = function(value) {
|
|
54930
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
54931
|
+
};
|
|
54932
|
+
|
|
54933
|
+
|
|
54934
|
+
/**
|
|
54935
|
+
* Clears the message field making it undefined.
|
|
54936
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54937
|
+
*/
|
|
54938
|
+
proto.clarifai.api.Team.prototype.clearModifiedAt = function() {
|
|
54939
|
+
return this.setModifiedAt(undefined);
|
|
54940
|
+
};
|
|
54941
|
+
|
|
54942
|
+
|
|
54943
|
+
/**
|
|
54944
|
+
* Returns whether this field is set.
|
|
54945
|
+
* @return {boolean}
|
|
54946
|
+
*/
|
|
54947
|
+
proto.clarifai.api.Team.prototype.hasModifiedAt = function() {
|
|
54948
|
+
return jspb.Message.getField(this, 3) != null;
|
|
54949
|
+
};
|
|
54950
|
+
|
|
54951
|
+
|
|
54952
|
+
/**
|
|
54953
|
+
* optional string name = 4;
|
|
54954
|
+
* @return {string}
|
|
54955
|
+
*/
|
|
54956
|
+
proto.clarifai.api.Team.prototype.getName = function() {
|
|
54957
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
54958
|
+
};
|
|
54959
|
+
|
|
54960
|
+
|
|
54961
|
+
/**
|
|
54962
|
+
* @param {string} value
|
|
54963
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54964
|
+
*/
|
|
54965
|
+
proto.clarifai.api.Team.prototype.setName = function(value) {
|
|
54966
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
54967
|
+
};
|
|
54968
|
+
|
|
54969
|
+
|
|
54970
|
+
/**
|
|
54971
|
+
* optional string default_role_id = 5;
|
|
54972
|
+
* @return {string}
|
|
54973
|
+
*/
|
|
54974
|
+
proto.clarifai.api.Team.prototype.getDefaultRoleId = function() {
|
|
54975
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
54976
|
+
};
|
|
54977
|
+
|
|
54978
|
+
|
|
54979
|
+
/**
|
|
54980
|
+
* @param {string} value
|
|
54981
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54982
|
+
*/
|
|
54983
|
+
proto.clarifai.api.Team.prototype.setDefaultRoleId = function(value) {
|
|
54984
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
54985
|
+
};
|
|
54986
|
+
|
|
54987
|
+
|
|
54988
|
+
|
|
53884
54989
|
|
|
53885
54990
|
|
|
53886
54991
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -56315,226 +57420,6 @@ proto.clarifai.api.Visibility.prototype.setGettable = function(value) {
|
|
|
56315
57420
|
|
|
56316
57421
|
|
|
56317
57422
|
|
|
56318
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56319
|
-
/**
|
|
56320
|
-
* Creates an object representation of this proto.
|
|
56321
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
56322
|
-
* Optional fields that are not set will be set to undefined.
|
|
56323
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
56324
|
-
* For the list of reserved names please see:
|
|
56325
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
56326
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
56327
|
-
* JSPB instance for transitional soy proto support:
|
|
56328
|
-
* http://goto/soy-param-migration
|
|
56329
|
-
* @return {!Object}
|
|
56330
|
-
*/
|
|
56331
|
-
proto.clarifai.api.TrendingMetric.prototype.toObject = function(opt_includeInstance) {
|
|
56332
|
-
return proto.clarifai.api.TrendingMetric.toObject(opt_includeInstance, this);
|
|
56333
|
-
};
|
|
56334
|
-
|
|
56335
|
-
|
|
56336
|
-
/**
|
|
56337
|
-
* Static version of the {@see toObject} method.
|
|
56338
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
56339
|
-
* the JSPB instance for transitional soy proto support:
|
|
56340
|
-
* http://goto/soy-param-migration
|
|
56341
|
-
* @param {!proto.clarifai.api.TrendingMetric} msg The msg instance to transform.
|
|
56342
|
-
* @return {!Object}
|
|
56343
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56344
|
-
*/
|
|
56345
|
-
proto.clarifai.api.TrendingMetric.toObject = function(includeInstance, msg) {
|
|
56346
|
-
var f, obj = {
|
|
56347
|
-
userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
56348
|
-
appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
56349
|
-
objectId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
56350
|
-
viewCount: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
56351
|
-
};
|
|
56352
|
-
|
|
56353
|
-
if (includeInstance) {
|
|
56354
|
-
obj.$jspbMessageInstance = msg;
|
|
56355
|
-
}
|
|
56356
|
-
return obj;
|
|
56357
|
-
};
|
|
56358
|
-
}
|
|
56359
|
-
|
|
56360
|
-
|
|
56361
|
-
/**
|
|
56362
|
-
* Deserializes binary data (in protobuf wire format).
|
|
56363
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
56364
|
-
* @return {!proto.clarifai.api.TrendingMetric}
|
|
56365
|
-
*/
|
|
56366
|
-
proto.clarifai.api.TrendingMetric.deserializeBinary = function(bytes) {
|
|
56367
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
56368
|
-
var msg = new proto.clarifai.api.TrendingMetric;
|
|
56369
|
-
return proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader(msg, reader);
|
|
56370
|
-
};
|
|
56371
|
-
|
|
56372
|
-
|
|
56373
|
-
/**
|
|
56374
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
56375
|
-
* given reader into the given message object.
|
|
56376
|
-
* @param {!proto.clarifai.api.TrendingMetric} msg The message object to deserialize into.
|
|
56377
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
56378
|
-
* @return {!proto.clarifai.api.TrendingMetric}
|
|
56379
|
-
*/
|
|
56380
|
-
proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function(msg, reader) {
|
|
56381
|
-
while (reader.nextField()) {
|
|
56382
|
-
if (reader.isEndGroup()) {
|
|
56383
|
-
break;
|
|
56384
|
-
}
|
|
56385
|
-
var field = reader.getFieldNumber();
|
|
56386
|
-
switch (field) {
|
|
56387
|
-
case 1:
|
|
56388
|
-
var value = /** @type {string} */ (reader.readString());
|
|
56389
|
-
msg.setUserId(value);
|
|
56390
|
-
break;
|
|
56391
|
-
case 2:
|
|
56392
|
-
var value = /** @type {string} */ (reader.readString());
|
|
56393
|
-
msg.setAppId(value);
|
|
56394
|
-
break;
|
|
56395
|
-
case 3:
|
|
56396
|
-
var value = /** @type {string} */ (reader.readString());
|
|
56397
|
-
msg.setObjectId(value);
|
|
56398
|
-
break;
|
|
56399
|
-
case 4:
|
|
56400
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
56401
|
-
msg.setViewCount(value);
|
|
56402
|
-
break;
|
|
56403
|
-
default:
|
|
56404
|
-
reader.skipField();
|
|
56405
|
-
break;
|
|
56406
|
-
}
|
|
56407
|
-
}
|
|
56408
|
-
return msg;
|
|
56409
|
-
};
|
|
56410
|
-
|
|
56411
|
-
|
|
56412
|
-
/**
|
|
56413
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
56414
|
-
* @return {!Uint8Array}
|
|
56415
|
-
*/
|
|
56416
|
-
proto.clarifai.api.TrendingMetric.prototype.serializeBinary = function() {
|
|
56417
|
-
var writer = new jspb.BinaryWriter();
|
|
56418
|
-
proto.clarifai.api.TrendingMetric.serializeBinaryToWriter(this, writer);
|
|
56419
|
-
return writer.getResultBuffer();
|
|
56420
|
-
};
|
|
56421
|
-
|
|
56422
|
-
|
|
56423
|
-
/**
|
|
56424
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
56425
|
-
* format), writing to the given BinaryWriter.
|
|
56426
|
-
* @param {!proto.clarifai.api.TrendingMetric} message
|
|
56427
|
-
* @param {!jspb.BinaryWriter} writer
|
|
56428
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56429
|
-
*/
|
|
56430
|
-
proto.clarifai.api.TrendingMetric.serializeBinaryToWriter = function(message, writer) {
|
|
56431
|
-
var f = undefined;
|
|
56432
|
-
f = message.getUserId();
|
|
56433
|
-
if (f.length > 0) {
|
|
56434
|
-
writer.writeString(
|
|
56435
|
-
1,
|
|
56436
|
-
f
|
|
56437
|
-
);
|
|
56438
|
-
}
|
|
56439
|
-
f = message.getAppId();
|
|
56440
|
-
if (f.length > 0) {
|
|
56441
|
-
writer.writeString(
|
|
56442
|
-
2,
|
|
56443
|
-
f
|
|
56444
|
-
);
|
|
56445
|
-
}
|
|
56446
|
-
f = message.getObjectId();
|
|
56447
|
-
if (f.length > 0) {
|
|
56448
|
-
writer.writeString(
|
|
56449
|
-
3,
|
|
56450
|
-
f
|
|
56451
|
-
);
|
|
56452
|
-
}
|
|
56453
|
-
f = message.getViewCount();
|
|
56454
|
-
if (f !== 0) {
|
|
56455
|
-
writer.writeUint64(
|
|
56456
|
-
4,
|
|
56457
|
-
f
|
|
56458
|
-
);
|
|
56459
|
-
}
|
|
56460
|
-
};
|
|
56461
|
-
|
|
56462
|
-
|
|
56463
|
-
/**
|
|
56464
|
-
* optional string user_id = 1;
|
|
56465
|
-
* @return {string}
|
|
56466
|
-
*/
|
|
56467
|
-
proto.clarifai.api.TrendingMetric.prototype.getUserId = function() {
|
|
56468
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
56469
|
-
};
|
|
56470
|
-
|
|
56471
|
-
|
|
56472
|
-
/**
|
|
56473
|
-
* @param {string} value
|
|
56474
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
56475
|
-
*/
|
|
56476
|
-
proto.clarifai.api.TrendingMetric.prototype.setUserId = function(value) {
|
|
56477
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
56478
|
-
};
|
|
56479
|
-
|
|
56480
|
-
|
|
56481
|
-
/**
|
|
56482
|
-
* optional string app_id = 2;
|
|
56483
|
-
* @return {string}
|
|
56484
|
-
*/
|
|
56485
|
-
proto.clarifai.api.TrendingMetric.prototype.getAppId = function() {
|
|
56486
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
56487
|
-
};
|
|
56488
|
-
|
|
56489
|
-
|
|
56490
|
-
/**
|
|
56491
|
-
* @param {string} value
|
|
56492
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
56493
|
-
*/
|
|
56494
|
-
proto.clarifai.api.TrendingMetric.prototype.setAppId = function(value) {
|
|
56495
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
56496
|
-
};
|
|
56497
|
-
|
|
56498
|
-
|
|
56499
|
-
/**
|
|
56500
|
-
* optional string object_id = 3;
|
|
56501
|
-
* @return {string}
|
|
56502
|
-
*/
|
|
56503
|
-
proto.clarifai.api.TrendingMetric.prototype.getObjectId = function() {
|
|
56504
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
56505
|
-
};
|
|
56506
|
-
|
|
56507
|
-
|
|
56508
|
-
/**
|
|
56509
|
-
* @param {string} value
|
|
56510
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
56511
|
-
*/
|
|
56512
|
-
proto.clarifai.api.TrendingMetric.prototype.setObjectId = function(value) {
|
|
56513
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
56514
|
-
};
|
|
56515
|
-
|
|
56516
|
-
|
|
56517
|
-
/**
|
|
56518
|
-
* optional uint64 view_count = 4;
|
|
56519
|
-
* @return {number}
|
|
56520
|
-
*/
|
|
56521
|
-
proto.clarifai.api.TrendingMetric.prototype.getViewCount = function() {
|
|
56522
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
56523
|
-
};
|
|
56524
|
-
|
|
56525
|
-
|
|
56526
|
-
/**
|
|
56527
|
-
* @param {number} value
|
|
56528
|
-
* @return {!proto.clarifai.api.TrendingMetric} returns this
|
|
56529
|
-
*/
|
|
56530
|
-
proto.clarifai.api.TrendingMetric.prototype.setViewCount = function(value) {
|
|
56531
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
56532
|
-
};
|
|
56533
|
-
|
|
56534
|
-
|
|
56535
|
-
|
|
56536
|
-
|
|
56537
|
-
|
|
56538
57423
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56539
57424
|
/**
|
|
56540
57425
|
* Creates an object representation of this proto.
|
|
@@ -68899,7 +69784,7 @@ proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
|
|
|
68899
69784
|
trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
68900
69785
|
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
68901
69786
|
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
68902
|
-
|
|
69787
|
+
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
68903
69788
|
};
|
|
68904
69789
|
|
|
68905
69790
|
if (includeInstance) {
|
|
@@ -68956,9 +69841,9 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, r
|
|
|
68956
69841
|
var value = /** @type {number} */ (reader.readUint32());
|
|
68957
69842
|
msg.setScaleUpDelaySeconds(value);
|
|
68958
69843
|
break;
|
|
68959
|
-
case
|
|
69844
|
+
case 7:
|
|
68960
69845
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
68961
|
-
msg.
|
|
69846
|
+
msg.setDisablePacking(value);
|
|
68962
69847
|
break;
|
|
68963
69848
|
default:
|
|
68964
69849
|
reader.skipField();
|
|
@@ -69024,10 +69909,10 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, w
|
|
|
69024
69909
|
f
|
|
69025
69910
|
);
|
|
69026
69911
|
}
|
|
69027
|
-
f = message.
|
|
69912
|
+
f = message.getDisablePacking();
|
|
69028
69913
|
if (f) {
|
|
69029
69914
|
writer.writeBool(
|
|
69030
|
-
|
|
69915
|
+
7,
|
|
69031
69916
|
f
|
|
69032
69917
|
);
|
|
69033
69918
|
}
|
|
@@ -69125,11 +70010,11 @@ proto.clarifai.api.AutoscaleConfig.prototype.setScaleUpDelaySeconds = function(v
|
|
|
69125
70010
|
|
|
69126
70011
|
|
|
69127
70012
|
/**
|
|
69128
|
-
* optional bool
|
|
70013
|
+
* optional bool disable_packing = 7;
|
|
69129
70014
|
* @return {boolean}
|
|
69130
70015
|
*/
|
|
69131
|
-
proto.clarifai.api.AutoscaleConfig.prototype.
|
|
69132
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this,
|
|
70016
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getDisablePacking = function() {
|
|
70017
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
69133
70018
|
};
|
|
69134
70019
|
|
|
69135
70020
|
|
|
@@ -69137,8 +70022,8 @@ proto.clarifai.api.AutoscaleConfig.prototype.getEnablePacking = function() {
|
|
|
69137
70022
|
* @param {boolean} value
|
|
69138
70023
|
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
69139
70024
|
*/
|
|
69140
|
-
proto.clarifai.api.AutoscaleConfig.prototype.
|
|
69141
|
-
return jspb.Message.setProto3BooleanField(this,
|
|
70025
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function(value) {
|
|
70026
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
69142
70027
|
};
|
|
69143
70028
|
|
|
69144
70029
|
|
|
@@ -70186,14 +71071,16 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
|
|
|
70186
71071
|
* @private {!Array<!Array<number>>}
|
|
70187
71072
|
* @const
|
|
70188
71073
|
*/
|
|
70189
|
-
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1]];
|
|
71074
|
+
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1,2,3]];
|
|
70190
71075
|
|
|
70191
71076
|
/**
|
|
70192
71077
|
* @enum {number}
|
|
70193
71078
|
*/
|
|
70194
71079
|
proto.clarifai.api.AuditLogTarget.TargetCase = {
|
|
70195
71080
|
TARGET_NOT_SET: 0,
|
|
70196
|
-
|
|
71081
|
+
USER: 1,
|
|
71082
|
+
ROLE: 2,
|
|
71083
|
+
TEAM: 3
|
|
70197
71084
|
};
|
|
70198
71085
|
|
|
70199
71086
|
/**
|
|
@@ -70234,7 +71121,9 @@ proto.clarifai.api.AuditLogTarget.prototype.toObject = function(opt_includeInsta
|
|
|
70234
71121
|
*/
|
|
70235
71122
|
proto.clarifai.api.AuditLogTarget.toObject = function(includeInstance, msg) {
|
|
70236
71123
|
var f, obj = {
|
|
70237
|
-
|
|
71124
|
+
user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
|
|
71125
|
+
role: (f = msg.getRole()) && proto.clarifai.api.Role.toObject(includeInstance, f),
|
|
71126
|
+
team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f)
|
|
70238
71127
|
};
|
|
70239
71128
|
|
|
70240
71129
|
if (includeInstance) {
|
|
@@ -70274,7 +71163,17 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function(msg, re
|
|
|
70274
71163
|
case 1:
|
|
70275
71164
|
var value = new proto.clarifai.api.User;
|
|
70276
71165
|
reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
70277
|
-
msg.
|
|
71166
|
+
msg.setUser(value);
|
|
71167
|
+
break;
|
|
71168
|
+
case 2:
|
|
71169
|
+
var value = new proto.clarifai.api.Role;
|
|
71170
|
+
reader.readMessage(value,proto.clarifai.api.Role.deserializeBinaryFromReader);
|
|
71171
|
+
msg.setRole(value);
|
|
71172
|
+
break;
|
|
71173
|
+
case 3:
|
|
71174
|
+
var value = new proto.clarifai.api.Team;
|
|
71175
|
+
reader.readMessage(value,proto.clarifai.api.Team.deserializeBinaryFromReader);
|
|
71176
|
+
msg.setTeam(value);
|
|
70278
71177
|
break;
|
|
70279
71178
|
default:
|
|
70280
71179
|
reader.skipField();
|
|
@@ -70305,7 +71204,7 @@ proto.clarifai.api.AuditLogTarget.prototype.serializeBinary = function() {
|
|
|
70305
71204
|
*/
|
|
70306
71205
|
proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, writer) {
|
|
70307
71206
|
var f = undefined;
|
|
70308
|
-
f = message.
|
|
71207
|
+
f = message.getUser();
|
|
70309
71208
|
if (f != null) {
|
|
70310
71209
|
writer.writeMessage(
|
|
70311
71210
|
1,
|
|
@@ -70313,14 +71212,30 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, wr
|
|
|
70313
71212
|
proto.clarifai.api.User.serializeBinaryToWriter
|
|
70314
71213
|
);
|
|
70315
71214
|
}
|
|
71215
|
+
f = message.getRole();
|
|
71216
|
+
if (f != null) {
|
|
71217
|
+
writer.writeMessage(
|
|
71218
|
+
2,
|
|
71219
|
+
f,
|
|
71220
|
+
proto.clarifai.api.Role.serializeBinaryToWriter
|
|
71221
|
+
);
|
|
71222
|
+
}
|
|
71223
|
+
f = message.getTeam();
|
|
71224
|
+
if (f != null) {
|
|
71225
|
+
writer.writeMessage(
|
|
71226
|
+
3,
|
|
71227
|
+
f,
|
|
71228
|
+
proto.clarifai.api.Team.serializeBinaryToWriter
|
|
71229
|
+
);
|
|
71230
|
+
}
|
|
70316
71231
|
};
|
|
70317
71232
|
|
|
70318
71233
|
|
|
70319
71234
|
/**
|
|
70320
|
-
* optional User
|
|
71235
|
+
* optional User user = 1;
|
|
70321
71236
|
* @return {?proto.clarifai.api.User}
|
|
70322
71237
|
*/
|
|
70323
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
71238
|
+
proto.clarifai.api.AuditLogTarget.prototype.getUser = function() {
|
|
70324
71239
|
return /** @type{?proto.clarifai.api.User} */ (
|
|
70325
71240
|
jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
|
|
70326
71241
|
};
|
|
@@ -70330,7 +71245,7 @@ proto.clarifai.api.AuditLogTarget.prototype.getMember = function() {
|
|
|
70330
71245
|
* @param {?proto.clarifai.api.User|undefined} value
|
|
70331
71246
|
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
70332
71247
|
*/
|
|
70333
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
71248
|
+
proto.clarifai.api.AuditLogTarget.prototype.setUser = function(value) {
|
|
70334
71249
|
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
70335
71250
|
};
|
|
70336
71251
|
|
|
@@ -70339,8 +71254,8 @@ proto.clarifai.api.AuditLogTarget.prototype.setMember = function(value) {
|
|
|
70339
71254
|
* Clears the message field making it undefined.
|
|
70340
71255
|
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
70341
71256
|
*/
|
|
70342
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
70343
|
-
return this.
|
|
71257
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearUser = function() {
|
|
71258
|
+
return this.setUser(undefined);
|
|
70344
71259
|
};
|
|
70345
71260
|
|
|
70346
71261
|
|
|
@@ -70348,11 +71263,85 @@ proto.clarifai.api.AuditLogTarget.prototype.clearMember = function() {
|
|
|
70348
71263
|
* Returns whether this field is set.
|
|
70349
71264
|
* @return {boolean}
|
|
70350
71265
|
*/
|
|
70351
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
71266
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasUser = function() {
|
|
70352
71267
|
return jspb.Message.getField(this, 1) != null;
|
|
70353
71268
|
};
|
|
70354
71269
|
|
|
70355
71270
|
|
|
71271
|
+
/**
|
|
71272
|
+
* optional Role role = 2;
|
|
71273
|
+
* @return {?proto.clarifai.api.Role}
|
|
71274
|
+
*/
|
|
71275
|
+
proto.clarifai.api.AuditLogTarget.prototype.getRole = function() {
|
|
71276
|
+
return /** @type{?proto.clarifai.api.Role} */ (
|
|
71277
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Role, 2));
|
|
71278
|
+
};
|
|
71279
|
+
|
|
71280
|
+
|
|
71281
|
+
/**
|
|
71282
|
+
* @param {?proto.clarifai.api.Role|undefined} value
|
|
71283
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71284
|
+
*/
|
|
71285
|
+
proto.clarifai.api.AuditLogTarget.prototype.setRole = function(value) {
|
|
71286
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
71287
|
+
};
|
|
71288
|
+
|
|
71289
|
+
|
|
71290
|
+
/**
|
|
71291
|
+
* Clears the message field making it undefined.
|
|
71292
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71293
|
+
*/
|
|
71294
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearRole = function() {
|
|
71295
|
+
return this.setRole(undefined);
|
|
71296
|
+
};
|
|
71297
|
+
|
|
71298
|
+
|
|
71299
|
+
/**
|
|
71300
|
+
* Returns whether this field is set.
|
|
71301
|
+
* @return {boolean}
|
|
71302
|
+
*/
|
|
71303
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasRole = function() {
|
|
71304
|
+
return jspb.Message.getField(this, 2) != null;
|
|
71305
|
+
};
|
|
71306
|
+
|
|
71307
|
+
|
|
71308
|
+
/**
|
|
71309
|
+
* optional Team team = 3;
|
|
71310
|
+
* @return {?proto.clarifai.api.Team}
|
|
71311
|
+
*/
|
|
71312
|
+
proto.clarifai.api.AuditLogTarget.prototype.getTeam = function() {
|
|
71313
|
+
return /** @type{?proto.clarifai.api.Team} */ (
|
|
71314
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Team, 3));
|
|
71315
|
+
};
|
|
71316
|
+
|
|
71317
|
+
|
|
71318
|
+
/**
|
|
71319
|
+
* @param {?proto.clarifai.api.Team|undefined} value
|
|
71320
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71321
|
+
*/
|
|
71322
|
+
proto.clarifai.api.AuditLogTarget.prototype.setTeam = function(value) {
|
|
71323
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
71324
|
+
};
|
|
71325
|
+
|
|
71326
|
+
|
|
71327
|
+
/**
|
|
71328
|
+
* Clears the message field making it undefined.
|
|
71329
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71330
|
+
*/
|
|
71331
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearTeam = function() {
|
|
71332
|
+
return this.setTeam(undefined);
|
|
71333
|
+
};
|
|
71334
|
+
|
|
71335
|
+
|
|
71336
|
+
/**
|
|
71337
|
+
* Returns whether this field is set.
|
|
71338
|
+
* @return {boolean}
|
|
71339
|
+
*/
|
|
71340
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasTeam = function() {
|
|
71341
|
+
return jspb.Message.getField(this, 3) != null;
|
|
71342
|
+
};
|
|
71343
|
+
|
|
71344
|
+
|
|
70356
71345
|
|
|
70357
71346
|
/**
|
|
70358
71347
|
* List of repeated fields within this message type.
|
|
@@ -72032,7 +73021,20 @@ proto.clarifai.api.RunnerMethodType = {
|
|
|
72032
73021
|
*/
|
|
72033
73022
|
proto.clarifai.api.EventType = {
|
|
72034
73023
|
EVENT_TYPE_NOT_SET: 0,
|
|
72035
|
-
|
|
73024
|
+
ORGANIZATION_MEMBER_ADD: 100,
|
|
73025
|
+
ORGANIZATION_MEMBER_CHANGE: 101,
|
|
73026
|
+
ORGANIZATION_MEMBER_REMOVE: 102,
|
|
73027
|
+
ORGANIZATION_MEMBER_INVITATION_CREATE: 103,
|
|
73028
|
+
ORGANIZATION_MEMBER_INVITATION_CANCEL: 104,
|
|
73029
|
+
ORGANIZATION_MEMBER_INVITATION_ACCEPT: 105,
|
|
73030
|
+
ORGANIZATION_MEMBER_INVITATION_DECLINE: 106,
|
|
73031
|
+
ORGANIZATION_TEAM_CREATE: 107,
|
|
73032
|
+
ORGANIZATION_TEAM_UPDATE: 108,
|
|
73033
|
+
ORGANIZATION_TEAM_DELETE: 109,
|
|
73034
|
+
ORGANIZATION_TEAM_MEMBER_ADD: 110,
|
|
73035
|
+
ORGANIZATION_TEAM_MEMBER_REMOVE: 111,
|
|
73036
|
+
ORGANIZATION_TEAM_APP_ADD: 112,
|
|
73037
|
+
ORGANIZATION_TEAM_APP_REMOVE: 113
|
|
72036
73038
|
};
|
|
72037
73039
|
|
|
72038
73040
|
goog.object.extend(exports, proto.clarifai.api);
|