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
|
@@ -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.
|
|
@@ -53881,6 +54216,725 @@ proto.clarifai.api.TaskInputSourceMetrics.prototype.setInputsCountEstimated = fu
|
|
|
53881
54216
|
|
|
53882
54217
|
|
|
53883
54218
|
|
|
54219
|
+
/**
|
|
54220
|
+
* List of repeated fields within this message type.
|
|
54221
|
+
* @private {!Array<number>}
|
|
54222
|
+
* @const
|
|
54223
|
+
*/
|
|
54224
|
+
proto.clarifai.api.Role.repeatedFields_ = [6,7];
|
|
54225
|
+
|
|
54226
|
+
|
|
54227
|
+
|
|
54228
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54229
|
+
/**
|
|
54230
|
+
* Creates an object representation of this proto.
|
|
54231
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54232
|
+
* Optional fields that are not set will be set to undefined.
|
|
54233
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54234
|
+
* For the list of reserved names please see:
|
|
54235
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
54236
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
54237
|
+
* JSPB instance for transitional soy proto support:
|
|
54238
|
+
* http://goto/soy-param-migration
|
|
54239
|
+
* @return {!Object}
|
|
54240
|
+
*/
|
|
54241
|
+
proto.clarifai.api.Role.prototype.toObject = function(opt_includeInstance) {
|
|
54242
|
+
return proto.clarifai.api.Role.toObject(opt_includeInstance, this);
|
|
54243
|
+
};
|
|
54244
|
+
|
|
54245
|
+
|
|
54246
|
+
/**
|
|
54247
|
+
* Static version of the {@see toObject} method.
|
|
54248
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54249
|
+
* the JSPB instance for transitional soy proto support:
|
|
54250
|
+
* http://goto/soy-param-migration
|
|
54251
|
+
* @param {!proto.clarifai.api.Role} msg The msg instance to transform.
|
|
54252
|
+
* @return {!Object}
|
|
54253
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54254
|
+
*/
|
|
54255
|
+
proto.clarifai.api.Role.toObject = function(includeInstance, msg) {
|
|
54256
|
+
var f, obj = {
|
|
54257
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
54258
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54259
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54260
|
+
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
54261
|
+
description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
54262
|
+
scopesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
54263
|
+
endpointsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
54264
|
+
type: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
54265
|
+
};
|
|
54266
|
+
|
|
54267
|
+
if (includeInstance) {
|
|
54268
|
+
obj.$jspbMessageInstance = msg;
|
|
54269
|
+
}
|
|
54270
|
+
return obj;
|
|
54271
|
+
};
|
|
54272
|
+
}
|
|
54273
|
+
|
|
54274
|
+
|
|
54275
|
+
/**
|
|
54276
|
+
* Deserializes binary data (in protobuf wire format).
|
|
54277
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54278
|
+
* @return {!proto.clarifai.api.Role}
|
|
54279
|
+
*/
|
|
54280
|
+
proto.clarifai.api.Role.deserializeBinary = function(bytes) {
|
|
54281
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
54282
|
+
var msg = new proto.clarifai.api.Role;
|
|
54283
|
+
return proto.clarifai.api.Role.deserializeBinaryFromReader(msg, reader);
|
|
54284
|
+
};
|
|
54285
|
+
|
|
54286
|
+
|
|
54287
|
+
/**
|
|
54288
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
54289
|
+
* given reader into the given message object.
|
|
54290
|
+
* @param {!proto.clarifai.api.Role} msg The message object to deserialize into.
|
|
54291
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54292
|
+
* @return {!proto.clarifai.api.Role}
|
|
54293
|
+
*/
|
|
54294
|
+
proto.clarifai.api.Role.deserializeBinaryFromReader = function(msg, reader) {
|
|
54295
|
+
while (reader.nextField()) {
|
|
54296
|
+
if (reader.isEndGroup()) {
|
|
54297
|
+
break;
|
|
54298
|
+
}
|
|
54299
|
+
var field = reader.getFieldNumber();
|
|
54300
|
+
switch (field) {
|
|
54301
|
+
case 1:
|
|
54302
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54303
|
+
msg.setId(value);
|
|
54304
|
+
break;
|
|
54305
|
+
case 2:
|
|
54306
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54307
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54308
|
+
msg.setCreatedAt(value);
|
|
54309
|
+
break;
|
|
54310
|
+
case 3:
|
|
54311
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54312
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54313
|
+
msg.setModifiedAt(value);
|
|
54314
|
+
break;
|
|
54315
|
+
case 4:
|
|
54316
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54317
|
+
msg.setName(value);
|
|
54318
|
+
break;
|
|
54319
|
+
case 5:
|
|
54320
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54321
|
+
msg.setDescription(value);
|
|
54322
|
+
break;
|
|
54323
|
+
case 6:
|
|
54324
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54325
|
+
msg.addScopes(value);
|
|
54326
|
+
break;
|
|
54327
|
+
case 7:
|
|
54328
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54329
|
+
msg.addEndpoints(value);
|
|
54330
|
+
break;
|
|
54331
|
+
case 8:
|
|
54332
|
+
var value = /** @type {!proto.clarifai.api.RoleType} */ (reader.readEnum());
|
|
54333
|
+
msg.setType(value);
|
|
54334
|
+
break;
|
|
54335
|
+
default:
|
|
54336
|
+
reader.skipField();
|
|
54337
|
+
break;
|
|
54338
|
+
}
|
|
54339
|
+
}
|
|
54340
|
+
return msg;
|
|
54341
|
+
};
|
|
54342
|
+
|
|
54343
|
+
|
|
54344
|
+
/**
|
|
54345
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
54346
|
+
* @return {!Uint8Array}
|
|
54347
|
+
*/
|
|
54348
|
+
proto.clarifai.api.Role.prototype.serializeBinary = function() {
|
|
54349
|
+
var writer = new jspb.BinaryWriter();
|
|
54350
|
+
proto.clarifai.api.Role.serializeBinaryToWriter(this, writer);
|
|
54351
|
+
return writer.getResultBuffer();
|
|
54352
|
+
};
|
|
54353
|
+
|
|
54354
|
+
|
|
54355
|
+
/**
|
|
54356
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
54357
|
+
* format), writing to the given BinaryWriter.
|
|
54358
|
+
* @param {!proto.clarifai.api.Role} message
|
|
54359
|
+
* @param {!jspb.BinaryWriter} writer
|
|
54360
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54361
|
+
*/
|
|
54362
|
+
proto.clarifai.api.Role.serializeBinaryToWriter = function(message, writer) {
|
|
54363
|
+
var f = undefined;
|
|
54364
|
+
f = message.getId();
|
|
54365
|
+
if (f.length > 0) {
|
|
54366
|
+
writer.writeString(
|
|
54367
|
+
1,
|
|
54368
|
+
f
|
|
54369
|
+
);
|
|
54370
|
+
}
|
|
54371
|
+
f = message.getCreatedAt();
|
|
54372
|
+
if (f != null) {
|
|
54373
|
+
writer.writeMessage(
|
|
54374
|
+
2,
|
|
54375
|
+
f,
|
|
54376
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54377
|
+
);
|
|
54378
|
+
}
|
|
54379
|
+
f = message.getModifiedAt();
|
|
54380
|
+
if (f != null) {
|
|
54381
|
+
writer.writeMessage(
|
|
54382
|
+
3,
|
|
54383
|
+
f,
|
|
54384
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54385
|
+
);
|
|
54386
|
+
}
|
|
54387
|
+
f = message.getName();
|
|
54388
|
+
if (f.length > 0) {
|
|
54389
|
+
writer.writeString(
|
|
54390
|
+
4,
|
|
54391
|
+
f
|
|
54392
|
+
);
|
|
54393
|
+
}
|
|
54394
|
+
f = message.getDescription();
|
|
54395
|
+
if (f.length > 0) {
|
|
54396
|
+
writer.writeString(
|
|
54397
|
+
5,
|
|
54398
|
+
f
|
|
54399
|
+
);
|
|
54400
|
+
}
|
|
54401
|
+
f = message.getScopesList();
|
|
54402
|
+
if (f.length > 0) {
|
|
54403
|
+
writer.writeRepeatedString(
|
|
54404
|
+
6,
|
|
54405
|
+
f
|
|
54406
|
+
);
|
|
54407
|
+
}
|
|
54408
|
+
f = message.getEndpointsList();
|
|
54409
|
+
if (f.length > 0) {
|
|
54410
|
+
writer.writeRepeatedString(
|
|
54411
|
+
7,
|
|
54412
|
+
f
|
|
54413
|
+
);
|
|
54414
|
+
}
|
|
54415
|
+
f = message.getType();
|
|
54416
|
+
if (f !== 0.0) {
|
|
54417
|
+
writer.writeEnum(
|
|
54418
|
+
8,
|
|
54419
|
+
f
|
|
54420
|
+
);
|
|
54421
|
+
}
|
|
54422
|
+
};
|
|
54423
|
+
|
|
54424
|
+
|
|
54425
|
+
/**
|
|
54426
|
+
* optional string id = 1;
|
|
54427
|
+
* @return {string}
|
|
54428
|
+
*/
|
|
54429
|
+
proto.clarifai.api.Role.prototype.getId = function() {
|
|
54430
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
54431
|
+
};
|
|
54432
|
+
|
|
54433
|
+
|
|
54434
|
+
/**
|
|
54435
|
+
* @param {string} value
|
|
54436
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54437
|
+
*/
|
|
54438
|
+
proto.clarifai.api.Role.prototype.setId = function(value) {
|
|
54439
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
54440
|
+
};
|
|
54441
|
+
|
|
54442
|
+
|
|
54443
|
+
/**
|
|
54444
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
54445
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54446
|
+
*/
|
|
54447
|
+
proto.clarifai.api.Role.prototype.getCreatedAt = function() {
|
|
54448
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54449
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
54450
|
+
};
|
|
54451
|
+
|
|
54452
|
+
|
|
54453
|
+
/**
|
|
54454
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54455
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54456
|
+
*/
|
|
54457
|
+
proto.clarifai.api.Role.prototype.setCreatedAt = function(value) {
|
|
54458
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
54459
|
+
};
|
|
54460
|
+
|
|
54461
|
+
|
|
54462
|
+
/**
|
|
54463
|
+
* Clears the message field making it undefined.
|
|
54464
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54465
|
+
*/
|
|
54466
|
+
proto.clarifai.api.Role.prototype.clearCreatedAt = function() {
|
|
54467
|
+
return this.setCreatedAt(undefined);
|
|
54468
|
+
};
|
|
54469
|
+
|
|
54470
|
+
|
|
54471
|
+
/**
|
|
54472
|
+
* Returns whether this field is set.
|
|
54473
|
+
* @return {boolean}
|
|
54474
|
+
*/
|
|
54475
|
+
proto.clarifai.api.Role.prototype.hasCreatedAt = function() {
|
|
54476
|
+
return jspb.Message.getField(this, 2) != null;
|
|
54477
|
+
};
|
|
54478
|
+
|
|
54479
|
+
|
|
54480
|
+
/**
|
|
54481
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
54482
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54483
|
+
*/
|
|
54484
|
+
proto.clarifai.api.Role.prototype.getModifiedAt = function() {
|
|
54485
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54486
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
54487
|
+
};
|
|
54488
|
+
|
|
54489
|
+
|
|
54490
|
+
/**
|
|
54491
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54492
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54493
|
+
*/
|
|
54494
|
+
proto.clarifai.api.Role.prototype.setModifiedAt = function(value) {
|
|
54495
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
54496
|
+
};
|
|
54497
|
+
|
|
54498
|
+
|
|
54499
|
+
/**
|
|
54500
|
+
* Clears the message field making it undefined.
|
|
54501
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54502
|
+
*/
|
|
54503
|
+
proto.clarifai.api.Role.prototype.clearModifiedAt = function() {
|
|
54504
|
+
return this.setModifiedAt(undefined);
|
|
54505
|
+
};
|
|
54506
|
+
|
|
54507
|
+
|
|
54508
|
+
/**
|
|
54509
|
+
* Returns whether this field is set.
|
|
54510
|
+
* @return {boolean}
|
|
54511
|
+
*/
|
|
54512
|
+
proto.clarifai.api.Role.prototype.hasModifiedAt = function() {
|
|
54513
|
+
return jspb.Message.getField(this, 3) != null;
|
|
54514
|
+
};
|
|
54515
|
+
|
|
54516
|
+
|
|
54517
|
+
/**
|
|
54518
|
+
* optional string name = 4;
|
|
54519
|
+
* @return {string}
|
|
54520
|
+
*/
|
|
54521
|
+
proto.clarifai.api.Role.prototype.getName = function() {
|
|
54522
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
54523
|
+
};
|
|
54524
|
+
|
|
54525
|
+
|
|
54526
|
+
/**
|
|
54527
|
+
* @param {string} value
|
|
54528
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54529
|
+
*/
|
|
54530
|
+
proto.clarifai.api.Role.prototype.setName = function(value) {
|
|
54531
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
54532
|
+
};
|
|
54533
|
+
|
|
54534
|
+
|
|
54535
|
+
/**
|
|
54536
|
+
* optional string description = 5;
|
|
54537
|
+
* @return {string}
|
|
54538
|
+
*/
|
|
54539
|
+
proto.clarifai.api.Role.prototype.getDescription = function() {
|
|
54540
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
54541
|
+
};
|
|
54542
|
+
|
|
54543
|
+
|
|
54544
|
+
/**
|
|
54545
|
+
* @param {string} value
|
|
54546
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54547
|
+
*/
|
|
54548
|
+
proto.clarifai.api.Role.prototype.setDescription = function(value) {
|
|
54549
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
54550
|
+
};
|
|
54551
|
+
|
|
54552
|
+
|
|
54553
|
+
/**
|
|
54554
|
+
* repeated string scopes = 6;
|
|
54555
|
+
* @return {!Array<string>}
|
|
54556
|
+
*/
|
|
54557
|
+
proto.clarifai.api.Role.prototype.getScopesList = function() {
|
|
54558
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
54559
|
+
};
|
|
54560
|
+
|
|
54561
|
+
|
|
54562
|
+
/**
|
|
54563
|
+
* @param {!Array<string>} value
|
|
54564
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54565
|
+
*/
|
|
54566
|
+
proto.clarifai.api.Role.prototype.setScopesList = function(value) {
|
|
54567
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
54568
|
+
};
|
|
54569
|
+
|
|
54570
|
+
|
|
54571
|
+
/**
|
|
54572
|
+
* @param {string} value
|
|
54573
|
+
* @param {number=} opt_index
|
|
54574
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54575
|
+
*/
|
|
54576
|
+
proto.clarifai.api.Role.prototype.addScopes = function(value, opt_index) {
|
|
54577
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
54578
|
+
};
|
|
54579
|
+
|
|
54580
|
+
|
|
54581
|
+
/**
|
|
54582
|
+
* Clears the list making it empty but non-null.
|
|
54583
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54584
|
+
*/
|
|
54585
|
+
proto.clarifai.api.Role.prototype.clearScopesList = function() {
|
|
54586
|
+
return this.setScopesList([]);
|
|
54587
|
+
};
|
|
54588
|
+
|
|
54589
|
+
|
|
54590
|
+
/**
|
|
54591
|
+
* repeated string endpoints = 7;
|
|
54592
|
+
* @return {!Array<string>}
|
|
54593
|
+
*/
|
|
54594
|
+
proto.clarifai.api.Role.prototype.getEndpointsList = function() {
|
|
54595
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
54596
|
+
};
|
|
54597
|
+
|
|
54598
|
+
|
|
54599
|
+
/**
|
|
54600
|
+
* @param {!Array<string>} value
|
|
54601
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54602
|
+
*/
|
|
54603
|
+
proto.clarifai.api.Role.prototype.setEndpointsList = function(value) {
|
|
54604
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
54605
|
+
};
|
|
54606
|
+
|
|
54607
|
+
|
|
54608
|
+
/**
|
|
54609
|
+
* @param {string} value
|
|
54610
|
+
* @param {number=} opt_index
|
|
54611
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54612
|
+
*/
|
|
54613
|
+
proto.clarifai.api.Role.prototype.addEndpoints = function(value, opt_index) {
|
|
54614
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
54615
|
+
};
|
|
54616
|
+
|
|
54617
|
+
|
|
54618
|
+
/**
|
|
54619
|
+
* Clears the list making it empty but non-null.
|
|
54620
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54621
|
+
*/
|
|
54622
|
+
proto.clarifai.api.Role.prototype.clearEndpointsList = function() {
|
|
54623
|
+
return this.setEndpointsList([]);
|
|
54624
|
+
};
|
|
54625
|
+
|
|
54626
|
+
|
|
54627
|
+
/**
|
|
54628
|
+
* optional RoleType type = 8;
|
|
54629
|
+
* @return {!proto.clarifai.api.RoleType}
|
|
54630
|
+
*/
|
|
54631
|
+
proto.clarifai.api.Role.prototype.getType = function() {
|
|
54632
|
+
return /** @type {!proto.clarifai.api.RoleType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
54633
|
+
};
|
|
54634
|
+
|
|
54635
|
+
|
|
54636
|
+
/**
|
|
54637
|
+
* @param {!proto.clarifai.api.RoleType} value
|
|
54638
|
+
* @return {!proto.clarifai.api.Role} returns this
|
|
54639
|
+
*/
|
|
54640
|
+
proto.clarifai.api.Role.prototype.setType = function(value) {
|
|
54641
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
54642
|
+
};
|
|
54643
|
+
|
|
54644
|
+
|
|
54645
|
+
|
|
54646
|
+
|
|
54647
|
+
|
|
54648
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
54649
|
+
/**
|
|
54650
|
+
* Creates an object representation of this proto.
|
|
54651
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54652
|
+
* Optional fields that are not set will be set to undefined.
|
|
54653
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54654
|
+
* For the list of reserved names please see:
|
|
54655
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
54656
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
54657
|
+
* JSPB instance for transitional soy proto support:
|
|
54658
|
+
* http://goto/soy-param-migration
|
|
54659
|
+
* @return {!Object}
|
|
54660
|
+
*/
|
|
54661
|
+
proto.clarifai.api.Team.prototype.toObject = function(opt_includeInstance) {
|
|
54662
|
+
return proto.clarifai.api.Team.toObject(opt_includeInstance, this);
|
|
54663
|
+
};
|
|
54664
|
+
|
|
54665
|
+
|
|
54666
|
+
/**
|
|
54667
|
+
* Static version of the {@see toObject} method.
|
|
54668
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
54669
|
+
* the JSPB instance for transitional soy proto support:
|
|
54670
|
+
* http://goto/soy-param-migration
|
|
54671
|
+
* @param {!proto.clarifai.api.Team} msg The msg instance to transform.
|
|
54672
|
+
* @return {!Object}
|
|
54673
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54674
|
+
*/
|
|
54675
|
+
proto.clarifai.api.Team.toObject = function(includeInstance, msg) {
|
|
54676
|
+
var f, obj = {
|
|
54677
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
54678
|
+
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54679
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54680
|
+
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
54681
|
+
defaultRoleId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
54682
|
+
};
|
|
54683
|
+
|
|
54684
|
+
if (includeInstance) {
|
|
54685
|
+
obj.$jspbMessageInstance = msg;
|
|
54686
|
+
}
|
|
54687
|
+
return obj;
|
|
54688
|
+
};
|
|
54689
|
+
}
|
|
54690
|
+
|
|
54691
|
+
|
|
54692
|
+
/**
|
|
54693
|
+
* Deserializes binary data (in protobuf wire format).
|
|
54694
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
54695
|
+
* @return {!proto.clarifai.api.Team}
|
|
54696
|
+
*/
|
|
54697
|
+
proto.clarifai.api.Team.deserializeBinary = function(bytes) {
|
|
54698
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
54699
|
+
var msg = new proto.clarifai.api.Team;
|
|
54700
|
+
return proto.clarifai.api.Team.deserializeBinaryFromReader(msg, reader);
|
|
54701
|
+
};
|
|
54702
|
+
|
|
54703
|
+
|
|
54704
|
+
/**
|
|
54705
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
54706
|
+
* given reader into the given message object.
|
|
54707
|
+
* @param {!proto.clarifai.api.Team} msg The message object to deserialize into.
|
|
54708
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
54709
|
+
* @return {!proto.clarifai.api.Team}
|
|
54710
|
+
*/
|
|
54711
|
+
proto.clarifai.api.Team.deserializeBinaryFromReader = function(msg, reader) {
|
|
54712
|
+
while (reader.nextField()) {
|
|
54713
|
+
if (reader.isEndGroup()) {
|
|
54714
|
+
break;
|
|
54715
|
+
}
|
|
54716
|
+
var field = reader.getFieldNumber();
|
|
54717
|
+
switch (field) {
|
|
54718
|
+
case 1:
|
|
54719
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54720
|
+
msg.setId(value);
|
|
54721
|
+
break;
|
|
54722
|
+
case 2:
|
|
54723
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54724
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54725
|
+
msg.setCreatedAt(value);
|
|
54726
|
+
break;
|
|
54727
|
+
case 3:
|
|
54728
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
54729
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54730
|
+
msg.setModifiedAt(value);
|
|
54731
|
+
break;
|
|
54732
|
+
case 4:
|
|
54733
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54734
|
+
msg.setName(value);
|
|
54735
|
+
break;
|
|
54736
|
+
case 5:
|
|
54737
|
+
var value = /** @type {string} */ (reader.readString());
|
|
54738
|
+
msg.setDefaultRoleId(value);
|
|
54739
|
+
break;
|
|
54740
|
+
default:
|
|
54741
|
+
reader.skipField();
|
|
54742
|
+
break;
|
|
54743
|
+
}
|
|
54744
|
+
}
|
|
54745
|
+
return msg;
|
|
54746
|
+
};
|
|
54747
|
+
|
|
54748
|
+
|
|
54749
|
+
/**
|
|
54750
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
54751
|
+
* @return {!Uint8Array}
|
|
54752
|
+
*/
|
|
54753
|
+
proto.clarifai.api.Team.prototype.serializeBinary = function() {
|
|
54754
|
+
var writer = new jspb.BinaryWriter();
|
|
54755
|
+
proto.clarifai.api.Team.serializeBinaryToWriter(this, writer);
|
|
54756
|
+
return writer.getResultBuffer();
|
|
54757
|
+
};
|
|
54758
|
+
|
|
54759
|
+
|
|
54760
|
+
/**
|
|
54761
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
54762
|
+
* format), writing to the given BinaryWriter.
|
|
54763
|
+
* @param {!proto.clarifai.api.Team} message
|
|
54764
|
+
* @param {!jspb.BinaryWriter} writer
|
|
54765
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
54766
|
+
*/
|
|
54767
|
+
proto.clarifai.api.Team.serializeBinaryToWriter = function(message, writer) {
|
|
54768
|
+
var f = undefined;
|
|
54769
|
+
f = message.getId();
|
|
54770
|
+
if (f.length > 0) {
|
|
54771
|
+
writer.writeString(
|
|
54772
|
+
1,
|
|
54773
|
+
f
|
|
54774
|
+
);
|
|
54775
|
+
}
|
|
54776
|
+
f = message.getCreatedAt();
|
|
54777
|
+
if (f != null) {
|
|
54778
|
+
writer.writeMessage(
|
|
54779
|
+
2,
|
|
54780
|
+
f,
|
|
54781
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54782
|
+
);
|
|
54783
|
+
}
|
|
54784
|
+
f = message.getModifiedAt();
|
|
54785
|
+
if (f != null) {
|
|
54786
|
+
writer.writeMessage(
|
|
54787
|
+
3,
|
|
54788
|
+
f,
|
|
54789
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
54790
|
+
);
|
|
54791
|
+
}
|
|
54792
|
+
f = message.getName();
|
|
54793
|
+
if (f.length > 0) {
|
|
54794
|
+
writer.writeString(
|
|
54795
|
+
4,
|
|
54796
|
+
f
|
|
54797
|
+
);
|
|
54798
|
+
}
|
|
54799
|
+
f = message.getDefaultRoleId();
|
|
54800
|
+
if (f.length > 0) {
|
|
54801
|
+
writer.writeString(
|
|
54802
|
+
5,
|
|
54803
|
+
f
|
|
54804
|
+
);
|
|
54805
|
+
}
|
|
54806
|
+
};
|
|
54807
|
+
|
|
54808
|
+
|
|
54809
|
+
/**
|
|
54810
|
+
* optional string id = 1;
|
|
54811
|
+
* @return {string}
|
|
54812
|
+
*/
|
|
54813
|
+
proto.clarifai.api.Team.prototype.getId = function() {
|
|
54814
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
54815
|
+
};
|
|
54816
|
+
|
|
54817
|
+
|
|
54818
|
+
/**
|
|
54819
|
+
* @param {string} value
|
|
54820
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54821
|
+
*/
|
|
54822
|
+
proto.clarifai.api.Team.prototype.setId = function(value) {
|
|
54823
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
54824
|
+
};
|
|
54825
|
+
|
|
54826
|
+
|
|
54827
|
+
/**
|
|
54828
|
+
* optional google.protobuf.Timestamp created_at = 2;
|
|
54829
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54830
|
+
*/
|
|
54831
|
+
proto.clarifai.api.Team.prototype.getCreatedAt = function() {
|
|
54832
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54833
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
54834
|
+
};
|
|
54835
|
+
|
|
54836
|
+
|
|
54837
|
+
/**
|
|
54838
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54839
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54840
|
+
*/
|
|
54841
|
+
proto.clarifai.api.Team.prototype.setCreatedAt = function(value) {
|
|
54842
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
54843
|
+
};
|
|
54844
|
+
|
|
54845
|
+
|
|
54846
|
+
/**
|
|
54847
|
+
* Clears the message field making it undefined.
|
|
54848
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54849
|
+
*/
|
|
54850
|
+
proto.clarifai.api.Team.prototype.clearCreatedAt = function() {
|
|
54851
|
+
return this.setCreatedAt(undefined);
|
|
54852
|
+
};
|
|
54853
|
+
|
|
54854
|
+
|
|
54855
|
+
/**
|
|
54856
|
+
* Returns whether this field is set.
|
|
54857
|
+
* @return {boolean}
|
|
54858
|
+
*/
|
|
54859
|
+
proto.clarifai.api.Team.prototype.hasCreatedAt = function() {
|
|
54860
|
+
return jspb.Message.getField(this, 2) != null;
|
|
54861
|
+
};
|
|
54862
|
+
|
|
54863
|
+
|
|
54864
|
+
/**
|
|
54865
|
+
* optional google.protobuf.Timestamp modified_at = 3;
|
|
54866
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
54867
|
+
*/
|
|
54868
|
+
proto.clarifai.api.Team.prototype.getModifiedAt = function() {
|
|
54869
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
54870
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
54871
|
+
};
|
|
54872
|
+
|
|
54873
|
+
|
|
54874
|
+
/**
|
|
54875
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
54876
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54877
|
+
*/
|
|
54878
|
+
proto.clarifai.api.Team.prototype.setModifiedAt = function(value) {
|
|
54879
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
54880
|
+
};
|
|
54881
|
+
|
|
54882
|
+
|
|
54883
|
+
/**
|
|
54884
|
+
* Clears the message field making it undefined.
|
|
54885
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54886
|
+
*/
|
|
54887
|
+
proto.clarifai.api.Team.prototype.clearModifiedAt = function() {
|
|
54888
|
+
return this.setModifiedAt(undefined);
|
|
54889
|
+
};
|
|
54890
|
+
|
|
54891
|
+
|
|
54892
|
+
/**
|
|
54893
|
+
* Returns whether this field is set.
|
|
54894
|
+
* @return {boolean}
|
|
54895
|
+
*/
|
|
54896
|
+
proto.clarifai.api.Team.prototype.hasModifiedAt = function() {
|
|
54897
|
+
return jspb.Message.getField(this, 3) != null;
|
|
54898
|
+
};
|
|
54899
|
+
|
|
54900
|
+
|
|
54901
|
+
/**
|
|
54902
|
+
* optional string name = 4;
|
|
54903
|
+
* @return {string}
|
|
54904
|
+
*/
|
|
54905
|
+
proto.clarifai.api.Team.prototype.getName = function() {
|
|
54906
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
54907
|
+
};
|
|
54908
|
+
|
|
54909
|
+
|
|
54910
|
+
/**
|
|
54911
|
+
* @param {string} value
|
|
54912
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54913
|
+
*/
|
|
54914
|
+
proto.clarifai.api.Team.prototype.setName = function(value) {
|
|
54915
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
54916
|
+
};
|
|
54917
|
+
|
|
54918
|
+
|
|
54919
|
+
/**
|
|
54920
|
+
* optional string default_role_id = 5;
|
|
54921
|
+
* @return {string}
|
|
54922
|
+
*/
|
|
54923
|
+
proto.clarifai.api.Team.prototype.getDefaultRoleId = function() {
|
|
54924
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
54925
|
+
};
|
|
54926
|
+
|
|
54927
|
+
|
|
54928
|
+
/**
|
|
54929
|
+
* @param {string} value
|
|
54930
|
+
* @return {!proto.clarifai.api.Team} returns this
|
|
54931
|
+
*/
|
|
54932
|
+
proto.clarifai.api.Team.prototype.setDefaultRoleId = function(value) {
|
|
54933
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
54934
|
+
};
|
|
54935
|
+
|
|
54936
|
+
|
|
54937
|
+
|
|
53884
54938
|
|
|
53885
54939
|
|
|
53886
54940
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -56315,226 +57369,6 @@ proto.clarifai.api.Visibility.prototype.setGettable = function(value) {
|
|
|
56315
57369
|
|
|
56316
57370
|
|
|
56317
57371
|
|
|
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
57372
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56539
57373
|
/**
|
|
56540
57374
|
* Creates an object representation of this proto.
|
|
@@ -68899,7 +69733,7 @@ proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
|
|
|
68899
69733
|
trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
68900
69734
|
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
68901
69735
|
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
68902
|
-
|
|
69736
|
+
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
68903
69737
|
};
|
|
68904
69738
|
|
|
68905
69739
|
if (includeInstance) {
|
|
@@ -68956,9 +69790,9 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, r
|
|
|
68956
69790
|
var value = /** @type {number} */ (reader.readUint32());
|
|
68957
69791
|
msg.setScaleUpDelaySeconds(value);
|
|
68958
69792
|
break;
|
|
68959
|
-
case
|
|
69793
|
+
case 7:
|
|
68960
69794
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
68961
|
-
msg.
|
|
69795
|
+
msg.setDisablePacking(value);
|
|
68962
69796
|
break;
|
|
68963
69797
|
default:
|
|
68964
69798
|
reader.skipField();
|
|
@@ -69024,10 +69858,10 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, w
|
|
|
69024
69858
|
f
|
|
69025
69859
|
);
|
|
69026
69860
|
}
|
|
69027
|
-
f = message.
|
|
69861
|
+
f = message.getDisablePacking();
|
|
69028
69862
|
if (f) {
|
|
69029
69863
|
writer.writeBool(
|
|
69030
|
-
|
|
69864
|
+
7,
|
|
69031
69865
|
f
|
|
69032
69866
|
);
|
|
69033
69867
|
}
|
|
@@ -69125,11 +69959,11 @@ proto.clarifai.api.AutoscaleConfig.prototype.setScaleUpDelaySeconds = function(v
|
|
|
69125
69959
|
|
|
69126
69960
|
|
|
69127
69961
|
/**
|
|
69128
|
-
* optional bool
|
|
69962
|
+
* optional bool disable_packing = 7;
|
|
69129
69963
|
* @return {boolean}
|
|
69130
69964
|
*/
|
|
69131
|
-
proto.clarifai.api.AutoscaleConfig.prototype.
|
|
69132
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this,
|
|
69965
|
+
proto.clarifai.api.AutoscaleConfig.prototype.getDisablePacking = function() {
|
|
69966
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
69133
69967
|
};
|
|
69134
69968
|
|
|
69135
69969
|
|
|
@@ -69137,8 +69971,8 @@ proto.clarifai.api.AutoscaleConfig.prototype.getEnablePacking = function() {
|
|
|
69137
69971
|
* @param {boolean} value
|
|
69138
69972
|
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
|
|
69139
69973
|
*/
|
|
69140
|
-
proto.clarifai.api.AutoscaleConfig.prototype.
|
|
69141
|
-
return jspb.Message.setProto3BooleanField(this,
|
|
69974
|
+
proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function(value) {
|
|
69975
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
69142
69976
|
};
|
|
69143
69977
|
|
|
69144
69978
|
|
|
@@ -70186,14 +71020,16 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
|
|
|
70186
71020
|
* @private {!Array<!Array<number>>}
|
|
70187
71021
|
* @const
|
|
70188
71022
|
*/
|
|
70189
|
-
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1]];
|
|
71023
|
+
proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1,2,3]];
|
|
70190
71024
|
|
|
70191
71025
|
/**
|
|
70192
71026
|
* @enum {number}
|
|
70193
71027
|
*/
|
|
70194
71028
|
proto.clarifai.api.AuditLogTarget.TargetCase = {
|
|
70195
71029
|
TARGET_NOT_SET: 0,
|
|
70196
|
-
|
|
71030
|
+
USER: 1,
|
|
71031
|
+
ROLE: 2,
|
|
71032
|
+
TEAM: 3
|
|
70197
71033
|
};
|
|
70198
71034
|
|
|
70199
71035
|
/**
|
|
@@ -70234,7 +71070,9 @@ proto.clarifai.api.AuditLogTarget.prototype.toObject = function(opt_includeInsta
|
|
|
70234
71070
|
*/
|
|
70235
71071
|
proto.clarifai.api.AuditLogTarget.toObject = function(includeInstance, msg) {
|
|
70236
71072
|
var f, obj = {
|
|
70237
|
-
|
|
71073
|
+
user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
|
|
71074
|
+
role: (f = msg.getRole()) && proto.clarifai.api.Role.toObject(includeInstance, f),
|
|
71075
|
+
team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f)
|
|
70238
71076
|
};
|
|
70239
71077
|
|
|
70240
71078
|
if (includeInstance) {
|
|
@@ -70274,7 +71112,17 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function(msg, re
|
|
|
70274
71112
|
case 1:
|
|
70275
71113
|
var value = new proto.clarifai.api.User;
|
|
70276
71114
|
reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
|
|
70277
|
-
msg.
|
|
71115
|
+
msg.setUser(value);
|
|
71116
|
+
break;
|
|
71117
|
+
case 2:
|
|
71118
|
+
var value = new proto.clarifai.api.Role;
|
|
71119
|
+
reader.readMessage(value,proto.clarifai.api.Role.deserializeBinaryFromReader);
|
|
71120
|
+
msg.setRole(value);
|
|
71121
|
+
break;
|
|
71122
|
+
case 3:
|
|
71123
|
+
var value = new proto.clarifai.api.Team;
|
|
71124
|
+
reader.readMessage(value,proto.clarifai.api.Team.deserializeBinaryFromReader);
|
|
71125
|
+
msg.setTeam(value);
|
|
70278
71126
|
break;
|
|
70279
71127
|
default:
|
|
70280
71128
|
reader.skipField();
|
|
@@ -70305,7 +71153,7 @@ proto.clarifai.api.AuditLogTarget.prototype.serializeBinary = function() {
|
|
|
70305
71153
|
*/
|
|
70306
71154
|
proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, writer) {
|
|
70307
71155
|
var f = undefined;
|
|
70308
|
-
f = message.
|
|
71156
|
+
f = message.getUser();
|
|
70309
71157
|
if (f != null) {
|
|
70310
71158
|
writer.writeMessage(
|
|
70311
71159
|
1,
|
|
@@ -70313,14 +71161,30 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, wr
|
|
|
70313
71161
|
proto.clarifai.api.User.serializeBinaryToWriter
|
|
70314
71162
|
);
|
|
70315
71163
|
}
|
|
71164
|
+
f = message.getRole();
|
|
71165
|
+
if (f != null) {
|
|
71166
|
+
writer.writeMessage(
|
|
71167
|
+
2,
|
|
71168
|
+
f,
|
|
71169
|
+
proto.clarifai.api.Role.serializeBinaryToWriter
|
|
71170
|
+
);
|
|
71171
|
+
}
|
|
71172
|
+
f = message.getTeam();
|
|
71173
|
+
if (f != null) {
|
|
71174
|
+
writer.writeMessage(
|
|
71175
|
+
3,
|
|
71176
|
+
f,
|
|
71177
|
+
proto.clarifai.api.Team.serializeBinaryToWriter
|
|
71178
|
+
);
|
|
71179
|
+
}
|
|
70316
71180
|
};
|
|
70317
71181
|
|
|
70318
71182
|
|
|
70319
71183
|
/**
|
|
70320
|
-
* optional User
|
|
71184
|
+
* optional User user = 1;
|
|
70321
71185
|
* @return {?proto.clarifai.api.User}
|
|
70322
71186
|
*/
|
|
70323
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
71187
|
+
proto.clarifai.api.AuditLogTarget.prototype.getUser = function() {
|
|
70324
71188
|
return /** @type{?proto.clarifai.api.User} */ (
|
|
70325
71189
|
jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
|
|
70326
71190
|
};
|
|
@@ -70330,7 +71194,7 @@ proto.clarifai.api.AuditLogTarget.prototype.getMember = function() {
|
|
|
70330
71194
|
* @param {?proto.clarifai.api.User|undefined} value
|
|
70331
71195
|
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
70332
71196
|
*/
|
|
70333
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
71197
|
+
proto.clarifai.api.AuditLogTarget.prototype.setUser = function(value) {
|
|
70334
71198
|
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
70335
71199
|
};
|
|
70336
71200
|
|
|
@@ -70339,8 +71203,8 @@ proto.clarifai.api.AuditLogTarget.prototype.setMember = function(value) {
|
|
|
70339
71203
|
* Clears the message field making it undefined.
|
|
70340
71204
|
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
70341
71205
|
*/
|
|
70342
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
70343
|
-
return this.
|
|
71206
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearUser = function() {
|
|
71207
|
+
return this.setUser(undefined);
|
|
70344
71208
|
};
|
|
70345
71209
|
|
|
70346
71210
|
|
|
@@ -70348,11 +71212,85 @@ proto.clarifai.api.AuditLogTarget.prototype.clearMember = function() {
|
|
|
70348
71212
|
* Returns whether this field is set.
|
|
70349
71213
|
* @return {boolean}
|
|
70350
71214
|
*/
|
|
70351
|
-
proto.clarifai.api.AuditLogTarget.prototype.
|
|
71215
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasUser = function() {
|
|
70352
71216
|
return jspb.Message.getField(this, 1) != null;
|
|
70353
71217
|
};
|
|
70354
71218
|
|
|
70355
71219
|
|
|
71220
|
+
/**
|
|
71221
|
+
* optional Role role = 2;
|
|
71222
|
+
* @return {?proto.clarifai.api.Role}
|
|
71223
|
+
*/
|
|
71224
|
+
proto.clarifai.api.AuditLogTarget.prototype.getRole = function() {
|
|
71225
|
+
return /** @type{?proto.clarifai.api.Role} */ (
|
|
71226
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Role, 2));
|
|
71227
|
+
};
|
|
71228
|
+
|
|
71229
|
+
|
|
71230
|
+
/**
|
|
71231
|
+
* @param {?proto.clarifai.api.Role|undefined} value
|
|
71232
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71233
|
+
*/
|
|
71234
|
+
proto.clarifai.api.AuditLogTarget.prototype.setRole = function(value) {
|
|
71235
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
71236
|
+
};
|
|
71237
|
+
|
|
71238
|
+
|
|
71239
|
+
/**
|
|
71240
|
+
* Clears the message field making it undefined.
|
|
71241
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71242
|
+
*/
|
|
71243
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearRole = function() {
|
|
71244
|
+
return this.setRole(undefined);
|
|
71245
|
+
};
|
|
71246
|
+
|
|
71247
|
+
|
|
71248
|
+
/**
|
|
71249
|
+
* Returns whether this field is set.
|
|
71250
|
+
* @return {boolean}
|
|
71251
|
+
*/
|
|
71252
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasRole = function() {
|
|
71253
|
+
return jspb.Message.getField(this, 2) != null;
|
|
71254
|
+
};
|
|
71255
|
+
|
|
71256
|
+
|
|
71257
|
+
/**
|
|
71258
|
+
* optional Team team = 3;
|
|
71259
|
+
* @return {?proto.clarifai.api.Team}
|
|
71260
|
+
*/
|
|
71261
|
+
proto.clarifai.api.AuditLogTarget.prototype.getTeam = function() {
|
|
71262
|
+
return /** @type{?proto.clarifai.api.Team} */ (
|
|
71263
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.Team, 3));
|
|
71264
|
+
};
|
|
71265
|
+
|
|
71266
|
+
|
|
71267
|
+
/**
|
|
71268
|
+
* @param {?proto.clarifai.api.Team|undefined} value
|
|
71269
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71270
|
+
*/
|
|
71271
|
+
proto.clarifai.api.AuditLogTarget.prototype.setTeam = function(value) {
|
|
71272
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
|
|
71273
|
+
};
|
|
71274
|
+
|
|
71275
|
+
|
|
71276
|
+
/**
|
|
71277
|
+
* Clears the message field making it undefined.
|
|
71278
|
+
* @return {!proto.clarifai.api.AuditLogTarget} returns this
|
|
71279
|
+
*/
|
|
71280
|
+
proto.clarifai.api.AuditLogTarget.prototype.clearTeam = function() {
|
|
71281
|
+
return this.setTeam(undefined);
|
|
71282
|
+
};
|
|
71283
|
+
|
|
71284
|
+
|
|
71285
|
+
/**
|
|
71286
|
+
* Returns whether this field is set.
|
|
71287
|
+
* @return {boolean}
|
|
71288
|
+
*/
|
|
71289
|
+
proto.clarifai.api.AuditLogTarget.prototype.hasTeam = function() {
|
|
71290
|
+
return jspb.Message.getField(this, 3) != null;
|
|
71291
|
+
};
|
|
71292
|
+
|
|
71293
|
+
|
|
70356
71294
|
|
|
70357
71295
|
/**
|
|
70358
71296
|
* List of repeated fields within this message type.
|
|
@@ -72032,7 +72970,20 @@ proto.clarifai.api.RunnerMethodType = {
|
|
|
72032
72970
|
*/
|
|
72033
72971
|
proto.clarifai.api.EventType = {
|
|
72034
72972
|
EVENT_TYPE_NOT_SET: 0,
|
|
72035
|
-
|
|
72973
|
+
ORGANIZATION_MEMBER_ADD: 100,
|
|
72974
|
+
ORGANIZATION_MEMBER_CHANGE: 101,
|
|
72975
|
+
ORGANIZATION_MEMBER_REMOVE: 102,
|
|
72976
|
+
ORGANIZATION_MEMBER_INVITATION_CREATE: 103,
|
|
72977
|
+
ORGANIZATION_MEMBER_INVITATION_CANCEL: 104,
|
|
72978
|
+
ORGANIZATION_MEMBER_INVITATION_ACCEPT: 105,
|
|
72979
|
+
ORGANIZATION_MEMBER_INVITATION_DECLINE: 106,
|
|
72980
|
+
ORGANIZATION_TEAM_CREATE: 107,
|
|
72981
|
+
ORGANIZATION_TEAM_UPDATE: 108,
|
|
72982
|
+
ORGANIZATION_TEAM_DELETE: 109,
|
|
72983
|
+
ORGANIZATION_TEAM_MEMBER_ADD: 110,
|
|
72984
|
+
ORGANIZATION_TEAM_MEMBER_REMOVE: 111,
|
|
72985
|
+
ORGANIZATION_TEAM_APP_ADD: 112,
|
|
72986
|
+
ORGANIZATION_TEAM_APP_REMOVE: 113
|
|
72036
72987
|
};
|
|
72037
72988
|
|
|
72038
72989
|
goog.object.extend(exports, proto.clarifai.api);
|