clarifai-web-grpc 10.9.3 → 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.
@@ -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.
@@ -51540,7 +51875,9 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.toObject = function
51540
51875
  */
51541
51876
  proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject = function(includeInstance, msg) {
51542
51877
  var f, obj = {
51543
- approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0)
51878
+ approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0),
51879
+ approvalThresholdLabelers: jspb.Message.getFieldWithDefault(msg, 3, 0),
51880
+ approvalThresholdReviewers: jspb.Message.getFieldWithDefault(msg, 4, 0)
51544
51881
  };
51545
51882
 
51546
51883
  if (includeInstance) {
@@ -51581,6 +51918,14 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader =
51581
51918
  var value = /** @type {number} */ (reader.readUint32());
51582
51919
  msg.setApprovalThreshold(value);
51583
51920
  break;
51921
+ case 3:
51922
+ var value = /** @type {number} */ (reader.readUint32());
51923
+ msg.setApprovalThresholdLabelers(value);
51924
+ break;
51925
+ case 4:
51926
+ var value = /** @type {number} */ (reader.readInt32());
51927
+ msg.setApprovalThresholdReviewers(value);
51928
+ break;
51584
51929
  default:
51585
51930
  reader.skipField();
51586
51931
  break;
@@ -51617,6 +51962,20 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.serializeBinaryToWriter = fun
51617
51962
  f
51618
51963
  );
51619
51964
  }
51965
+ f = message.getApprovalThresholdLabelers();
51966
+ if (f !== 0) {
51967
+ writer.writeUint32(
51968
+ 3,
51969
+ f
51970
+ );
51971
+ }
51972
+ f = message.getApprovalThresholdReviewers();
51973
+ if (f !== 0) {
51974
+ writer.writeInt32(
51975
+ 4,
51976
+ f
51977
+ );
51978
+ }
51620
51979
  };
51621
51980
 
51622
51981
 
@@ -51638,6 +51997,42 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.setApprovalThreshol
51638
51997
  };
51639
51998
 
51640
51999
 
52000
+ /**
52001
+ * optional uint32 approval_threshold_labelers = 3;
52002
+ * @return {number}
52003
+ */
52004
+ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.getApprovalThresholdLabelers = function() {
52005
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
52006
+ };
52007
+
52008
+
52009
+ /**
52010
+ * @param {number} value
52011
+ * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} returns this
52012
+ */
52013
+ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.setApprovalThresholdLabelers = function(value) {
52014
+ return jspb.Message.setProto3IntField(this, 3, value);
52015
+ };
52016
+
52017
+
52018
+ /**
52019
+ * optional int32 approval_threshold_reviewers = 4;
52020
+ * @return {number}
52021
+ */
52022
+ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.getApprovalThresholdReviewers = function() {
52023
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
52024
+ };
52025
+
52026
+
52027
+ /**
52028
+ * @param {number} value
52029
+ * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} returns this
52030
+ */
52031
+ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.setApprovalThresholdReviewers = function(value) {
52032
+ return jspb.Message.setProto3IntField(this, 4, value);
52033
+ };
52034
+
52035
+
51641
52036
 
51642
52037
 
51643
52038
 
@@ -53821,6 +54216,725 @@ proto.clarifai.api.TaskInputSourceMetrics.prototype.setInputsCountEstimated = fu
53821
54216
 
53822
54217
 
53823
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
+
53824
54938
 
53825
54939
 
53826
54940
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -56255,226 +57369,6 @@ proto.clarifai.api.Visibility.prototype.setGettable = function(value) {
56255
57369
 
56256
57370
 
56257
57371
 
56258
- if (jspb.Message.GENERATE_TO_OBJECT) {
56259
- /**
56260
- * Creates an object representation of this proto.
56261
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
56262
- * Optional fields that are not set will be set to undefined.
56263
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56264
- * For the list of reserved names please see:
56265
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56266
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56267
- * JSPB instance for transitional soy proto support:
56268
- * http://goto/soy-param-migration
56269
- * @return {!Object}
56270
- */
56271
- proto.clarifai.api.TrendingMetric.prototype.toObject = function(opt_includeInstance) {
56272
- return proto.clarifai.api.TrendingMetric.toObject(opt_includeInstance, this);
56273
- };
56274
-
56275
-
56276
- /**
56277
- * Static version of the {@see toObject} method.
56278
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56279
- * the JSPB instance for transitional soy proto support:
56280
- * http://goto/soy-param-migration
56281
- * @param {!proto.clarifai.api.TrendingMetric} msg The msg instance to transform.
56282
- * @return {!Object}
56283
- * @suppress {unusedLocalVariables} f is only used for nested messages
56284
- */
56285
- proto.clarifai.api.TrendingMetric.toObject = function(includeInstance, msg) {
56286
- var f, obj = {
56287
- userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
56288
- appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
56289
- objectId: jspb.Message.getFieldWithDefault(msg, 3, ""),
56290
- viewCount: jspb.Message.getFieldWithDefault(msg, 4, 0)
56291
- };
56292
-
56293
- if (includeInstance) {
56294
- obj.$jspbMessageInstance = msg;
56295
- }
56296
- return obj;
56297
- };
56298
- }
56299
-
56300
-
56301
- /**
56302
- * Deserializes binary data (in protobuf wire format).
56303
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
56304
- * @return {!proto.clarifai.api.TrendingMetric}
56305
- */
56306
- proto.clarifai.api.TrendingMetric.deserializeBinary = function(bytes) {
56307
- var reader = new jspb.BinaryReader(bytes);
56308
- var msg = new proto.clarifai.api.TrendingMetric;
56309
- return proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader(msg, reader);
56310
- };
56311
-
56312
-
56313
- /**
56314
- * Deserializes binary data (in protobuf wire format) from the
56315
- * given reader into the given message object.
56316
- * @param {!proto.clarifai.api.TrendingMetric} msg The message object to deserialize into.
56317
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56318
- * @return {!proto.clarifai.api.TrendingMetric}
56319
- */
56320
- proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function(msg, reader) {
56321
- while (reader.nextField()) {
56322
- if (reader.isEndGroup()) {
56323
- break;
56324
- }
56325
- var field = reader.getFieldNumber();
56326
- switch (field) {
56327
- case 1:
56328
- var value = /** @type {string} */ (reader.readString());
56329
- msg.setUserId(value);
56330
- break;
56331
- case 2:
56332
- var value = /** @type {string} */ (reader.readString());
56333
- msg.setAppId(value);
56334
- break;
56335
- case 3:
56336
- var value = /** @type {string} */ (reader.readString());
56337
- msg.setObjectId(value);
56338
- break;
56339
- case 4:
56340
- var value = /** @type {number} */ (reader.readUint64());
56341
- msg.setViewCount(value);
56342
- break;
56343
- default:
56344
- reader.skipField();
56345
- break;
56346
- }
56347
- }
56348
- return msg;
56349
- };
56350
-
56351
-
56352
- /**
56353
- * Serializes the message to binary data (in protobuf wire format).
56354
- * @return {!Uint8Array}
56355
- */
56356
- proto.clarifai.api.TrendingMetric.prototype.serializeBinary = function() {
56357
- var writer = new jspb.BinaryWriter();
56358
- proto.clarifai.api.TrendingMetric.serializeBinaryToWriter(this, writer);
56359
- return writer.getResultBuffer();
56360
- };
56361
-
56362
-
56363
- /**
56364
- * Serializes the given message to binary data (in protobuf wire
56365
- * format), writing to the given BinaryWriter.
56366
- * @param {!proto.clarifai.api.TrendingMetric} message
56367
- * @param {!jspb.BinaryWriter} writer
56368
- * @suppress {unusedLocalVariables} f is only used for nested messages
56369
- */
56370
- proto.clarifai.api.TrendingMetric.serializeBinaryToWriter = function(message, writer) {
56371
- var f = undefined;
56372
- f = message.getUserId();
56373
- if (f.length > 0) {
56374
- writer.writeString(
56375
- 1,
56376
- f
56377
- );
56378
- }
56379
- f = message.getAppId();
56380
- if (f.length > 0) {
56381
- writer.writeString(
56382
- 2,
56383
- f
56384
- );
56385
- }
56386
- f = message.getObjectId();
56387
- if (f.length > 0) {
56388
- writer.writeString(
56389
- 3,
56390
- f
56391
- );
56392
- }
56393
- f = message.getViewCount();
56394
- if (f !== 0) {
56395
- writer.writeUint64(
56396
- 4,
56397
- f
56398
- );
56399
- }
56400
- };
56401
-
56402
-
56403
- /**
56404
- * optional string user_id = 1;
56405
- * @return {string}
56406
- */
56407
- proto.clarifai.api.TrendingMetric.prototype.getUserId = function() {
56408
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
56409
- };
56410
-
56411
-
56412
- /**
56413
- * @param {string} value
56414
- * @return {!proto.clarifai.api.TrendingMetric} returns this
56415
- */
56416
- proto.clarifai.api.TrendingMetric.prototype.setUserId = function(value) {
56417
- return jspb.Message.setProto3StringField(this, 1, value);
56418
- };
56419
-
56420
-
56421
- /**
56422
- * optional string app_id = 2;
56423
- * @return {string}
56424
- */
56425
- proto.clarifai.api.TrendingMetric.prototype.getAppId = function() {
56426
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
56427
- };
56428
-
56429
-
56430
- /**
56431
- * @param {string} value
56432
- * @return {!proto.clarifai.api.TrendingMetric} returns this
56433
- */
56434
- proto.clarifai.api.TrendingMetric.prototype.setAppId = function(value) {
56435
- return jspb.Message.setProto3StringField(this, 2, value);
56436
- };
56437
-
56438
-
56439
- /**
56440
- * optional string object_id = 3;
56441
- * @return {string}
56442
- */
56443
- proto.clarifai.api.TrendingMetric.prototype.getObjectId = function() {
56444
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
56445
- };
56446
-
56447
-
56448
- /**
56449
- * @param {string} value
56450
- * @return {!proto.clarifai.api.TrendingMetric} returns this
56451
- */
56452
- proto.clarifai.api.TrendingMetric.prototype.setObjectId = function(value) {
56453
- return jspb.Message.setProto3StringField(this, 3, value);
56454
- };
56455
-
56456
-
56457
- /**
56458
- * optional uint64 view_count = 4;
56459
- * @return {number}
56460
- */
56461
- proto.clarifai.api.TrendingMetric.prototype.getViewCount = function() {
56462
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
56463
- };
56464
-
56465
-
56466
- /**
56467
- * @param {number} value
56468
- * @return {!proto.clarifai.api.TrendingMetric} returns this
56469
- */
56470
- proto.clarifai.api.TrendingMetric.prototype.setViewCount = function(value) {
56471
- return jspb.Message.setProto3IntField(this, 4, value);
56472
- };
56473
-
56474
-
56475
-
56476
-
56477
-
56478
57372
  if (jspb.Message.GENERATE_TO_OBJECT) {
56479
57373
  /**
56480
57374
  * Creates an object representation of this proto.
@@ -68839,7 +69733,7 @@ proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
68839
69733
  trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
68840
69734
  scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
68841
69735
  scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
68842
- enablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
69736
+ disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
68843
69737
  };
68844
69738
 
68845
69739
  if (includeInstance) {
@@ -68896,9 +69790,9 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, r
68896
69790
  var value = /** @type {number} */ (reader.readUint32());
68897
69791
  msg.setScaleUpDelaySeconds(value);
68898
69792
  break;
68899
- case 6:
69793
+ case 7:
68900
69794
  var value = /** @type {boolean} */ (reader.readBool());
68901
- msg.setEnablePacking(value);
69795
+ msg.setDisablePacking(value);
68902
69796
  break;
68903
69797
  default:
68904
69798
  reader.skipField();
@@ -68964,10 +69858,10 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, w
68964
69858
  f
68965
69859
  );
68966
69860
  }
68967
- f = message.getEnablePacking();
69861
+ f = message.getDisablePacking();
68968
69862
  if (f) {
68969
69863
  writer.writeBool(
68970
- 6,
69864
+ 7,
68971
69865
  f
68972
69866
  );
68973
69867
  }
@@ -69065,11 +69959,11 @@ proto.clarifai.api.AutoscaleConfig.prototype.setScaleUpDelaySeconds = function(v
69065
69959
 
69066
69960
 
69067
69961
  /**
69068
- * optional bool enable_packing = 6;
69962
+ * optional bool disable_packing = 7;
69069
69963
  * @return {boolean}
69070
69964
  */
69071
- proto.clarifai.api.AutoscaleConfig.prototype.getEnablePacking = function() {
69072
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
69965
+ proto.clarifai.api.AutoscaleConfig.prototype.getDisablePacking = function() {
69966
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
69073
69967
  };
69074
69968
 
69075
69969
 
@@ -69077,8 +69971,8 @@ proto.clarifai.api.AutoscaleConfig.prototype.getEnablePacking = function() {
69077
69971
  * @param {boolean} value
69078
69972
  * @return {!proto.clarifai.api.AutoscaleConfig} returns this
69079
69973
  */
69080
- proto.clarifai.api.AutoscaleConfig.prototype.setEnablePacking = function(value) {
69081
- return jspb.Message.setProto3BooleanField(this, 6, value);
69974
+ proto.clarifai.api.AutoscaleConfig.prototype.setDisablePacking = function(value) {
69975
+ return jspb.Message.setProto3BooleanField(this, 7, value);
69082
69976
  };
69083
69977
 
69084
69978
 
@@ -70126,14 +71020,16 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
70126
71020
  * @private {!Array<!Array<number>>}
70127
71021
  * @const
70128
71022
  */
70129
- proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1]];
71023
+ proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1,2,3]];
70130
71024
 
70131
71025
  /**
70132
71026
  * @enum {number}
70133
71027
  */
70134
71028
  proto.clarifai.api.AuditLogTarget.TargetCase = {
70135
71029
  TARGET_NOT_SET: 0,
70136
- MEMBER: 1
71030
+ USER: 1,
71031
+ ROLE: 2,
71032
+ TEAM: 3
70137
71033
  };
70138
71034
 
70139
71035
  /**
@@ -70174,7 +71070,9 @@ proto.clarifai.api.AuditLogTarget.prototype.toObject = function(opt_includeInsta
70174
71070
  */
70175
71071
  proto.clarifai.api.AuditLogTarget.toObject = function(includeInstance, msg) {
70176
71072
  var f, obj = {
70177
- member: (f = msg.getMember()) && proto.clarifai.api.User.toObject(includeInstance, f)
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)
70178
71076
  };
70179
71077
 
70180
71078
  if (includeInstance) {
@@ -70214,7 +71112,17 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function(msg, re
70214
71112
  case 1:
70215
71113
  var value = new proto.clarifai.api.User;
70216
71114
  reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
70217
- msg.setMember(value);
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);
70218
71126
  break;
70219
71127
  default:
70220
71128
  reader.skipField();
@@ -70245,7 +71153,7 @@ proto.clarifai.api.AuditLogTarget.prototype.serializeBinary = function() {
70245
71153
  */
70246
71154
  proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, writer) {
70247
71155
  var f = undefined;
70248
- f = message.getMember();
71156
+ f = message.getUser();
70249
71157
  if (f != null) {
70250
71158
  writer.writeMessage(
70251
71159
  1,
@@ -70253,14 +71161,30 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, wr
70253
71161
  proto.clarifai.api.User.serializeBinaryToWriter
70254
71162
  );
70255
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
+ }
70256
71180
  };
70257
71181
 
70258
71182
 
70259
71183
  /**
70260
- * optional User member = 1;
71184
+ * optional User user = 1;
70261
71185
  * @return {?proto.clarifai.api.User}
70262
71186
  */
70263
- proto.clarifai.api.AuditLogTarget.prototype.getMember = function() {
71187
+ proto.clarifai.api.AuditLogTarget.prototype.getUser = function() {
70264
71188
  return /** @type{?proto.clarifai.api.User} */ (
70265
71189
  jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
70266
71190
  };
@@ -70270,7 +71194,7 @@ proto.clarifai.api.AuditLogTarget.prototype.getMember = function() {
70270
71194
  * @param {?proto.clarifai.api.User|undefined} value
70271
71195
  * @return {!proto.clarifai.api.AuditLogTarget} returns this
70272
71196
  */
70273
- proto.clarifai.api.AuditLogTarget.prototype.setMember = function(value) {
71197
+ proto.clarifai.api.AuditLogTarget.prototype.setUser = function(value) {
70274
71198
  return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
70275
71199
  };
70276
71200
 
@@ -70279,8 +71203,8 @@ proto.clarifai.api.AuditLogTarget.prototype.setMember = function(value) {
70279
71203
  * Clears the message field making it undefined.
70280
71204
  * @return {!proto.clarifai.api.AuditLogTarget} returns this
70281
71205
  */
70282
- proto.clarifai.api.AuditLogTarget.prototype.clearMember = function() {
70283
- return this.setMember(undefined);
71206
+ proto.clarifai.api.AuditLogTarget.prototype.clearUser = function() {
71207
+ return this.setUser(undefined);
70284
71208
  };
70285
71209
 
70286
71210
 
@@ -70288,11 +71212,85 @@ proto.clarifai.api.AuditLogTarget.prototype.clearMember = function() {
70288
71212
  * Returns whether this field is set.
70289
71213
  * @return {boolean}
70290
71214
  */
70291
- proto.clarifai.api.AuditLogTarget.prototype.hasMember = function() {
71215
+ proto.clarifai.api.AuditLogTarget.prototype.hasUser = function() {
70292
71216
  return jspb.Message.getField(this, 1) != null;
70293
71217
  };
70294
71218
 
70295
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
+
70296
71294
 
70297
71295
  /**
70298
71296
  * List of repeated fields within this message type.
@@ -71972,7 +72970,20 @@ proto.clarifai.api.RunnerMethodType = {
71972
72970
  */
71973
72971
  proto.clarifai.api.EventType = {
71974
72972
  EVENT_TYPE_NOT_SET: 0,
71975
- APPLICATION_CREATE: 100
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
71976
72987
  };
71977
72988
 
71978
72989
  goog.object.extend(exports, proto.clarifai.api);