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