clarifai-web-grpc 10.7.2 → 10.8.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.
@@ -59,7 +59,10 @@ goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
59
59
  goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
60
60
  goog.exportSymbol('proto.clarifai.api.Audio', null, global);
61
61
  goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
62
- goog.exportSymbol('proto.clarifai.api.AuditOperationType', null, global);
62
+ goog.exportSymbol('proto.clarifai.api.AuditLogEntry', null, global);
63
+ goog.exportSymbol('proto.clarifai.api.AuditLogQuery', null, global);
64
+ goog.exportSymbol('proto.clarifai.api.AuditLogTarget', null, global);
65
+ goog.exportSymbol('proto.clarifai.api.AuditLogTarget.TargetCase', null, global);
63
66
  goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
64
67
  goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
65
68
  goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
@@ -126,6 +129,7 @@ goog.exportSymbol('proto.clarifai.api.EvalInfo', null, global);
126
129
  goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global);
127
130
  goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
128
131
  goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
132
+ goog.exportSymbol('proto.clarifai.api.EventType', null, global);
129
133
  goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
130
134
  goog.exportSymbol('proto.clarifai.api.ExtendedMetrics', null, global);
131
135
  goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global);
@@ -168,10 +172,12 @@ goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
168
172
  goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
169
173
  goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
170
174
  goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
175
+ goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
171
176
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
172
177
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
173
178
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
174
179
  goog.exportSymbol('proto.clarifai.api.Model', null, global);
180
+ goog.exportSymbol('proto.clarifai.api.Model.Source', null, global);
175
181
  goog.exportSymbol('proto.clarifai.api.ModelLayerInfo', null, global);
176
182
  goog.exportSymbol('proto.clarifai.api.ModelPredictConfig', null, global);
177
183
  goog.exportSymbol('proto.clarifai.api.ModelQuery', null, global);
@@ -234,6 +240,7 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
234
240
  goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
235
241
  goog.exportSymbol('proto.clarifai.api.Task', null, global);
236
242
  goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
243
+ goog.exportSymbol('proto.clarifai.api.Task.WorkerType', null, global);
237
244
  goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global);
238
245
  goog.exportSymbol('proto.clarifai.api.TaskAssignment', null, global);
239
246
  goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
@@ -4742,6 +4749,69 @@ if (goog.DEBUG && !COMPILED) {
4742
4749
  */
4743
4750
  proto.clarifai.api.ProcessingInfo.displayName = 'proto.clarifai.api.ProcessingInfo';
4744
4751
  }
4752
+ /**
4753
+ * Generated by JsPbCodeGenerator.
4754
+ * @param {Array=} opt_data Optional initial data array, typically from a
4755
+ * server response, or constructed directly in Javascript. The array is used
4756
+ * in place and becomes part of the constructed object. It is not cloned.
4757
+ * If no data is provided, the constructed object will be empty, but still
4758
+ * valid.
4759
+ * @extends {jspb.Message}
4760
+ * @constructor
4761
+ */
4762
+ proto.clarifai.api.AuditLogTarget = function(opt_data) {
4763
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.AuditLogTarget.oneofGroups_);
4764
+ };
4765
+ goog.inherits(proto.clarifai.api.AuditLogTarget, jspb.Message);
4766
+ if (goog.DEBUG && !COMPILED) {
4767
+ /**
4768
+ * @public
4769
+ * @override
4770
+ */
4771
+ proto.clarifai.api.AuditLogTarget.displayName = 'proto.clarifai.api.AuditLogTarget';
4772
+ }
4773
+ /**
4774
+ * Generated by JsPbCodeGenerator.
4775
+ * @param {Array=} opt_data Optional initial data array, typically from a
4776
+ * server response, or constructed directly in Javascript. The array is used
4777
+ * in place and becomes part of the constructed object. It is not cloned.
4778
+ * If no data is provided, the constructed object will be empty, but still
4779
+ * valid.
4780
+ * @extends {jspb.Message}
4781
+ * @constructor
4782
+ */
4783
+ proto.clarifai.api.AuditLogEntry = function(opt_data) {
4784
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.AuditLogEntry.repeatedFields_, null);
4785
+ };
4786
+ goog.inherits(proto.clarifai.api.AuditLogEntry, jspb.Message);
4787
+ if (goog.DEBUG && !COMPILED) {
4788
+ /**
4789
+ * @public
4790
+ * @override
4791
+ */
4792
+ proto.clarifai.api.AuditLogEntry.displayName = 'proto.clarifai.api.AuditLogEntry';
4793
+ }
4794
+ /**
4795
+ * Generated by JsPbCodeGenerator.
4796
+ * @param {Array=} opt_data Optional initial data array, typically from a
4797
+ * server response, or constructed directly in Javascript. The array is used
4798
+ * in place and becomes part of the constructed object. It is not cloned.
4799
+ * If no data is provided, the constructed object will be empty, but still
4800
+ * valid.
4801
+ * @extends {jspb.Message}
4802
+ * @constructor
4803
+ */
4804
+ proto.clarifai.api.AuditLogQuery = function(opt_data) {
4805
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.AuditLogQuery.repeatedFields_, null);
4806
+ };
4807
+ goog.inherits(proto.clarifai.api.AuditLogQuery, jspb.Message);
4808
+ if (goog.DEBUG && !COMPILED) {
4809
+ /**
4810
+ * @public
4811
+ * @override
4812
+ */
4813
+ proto.clarifai.api.AuditLogQuery.displayName = 'proto.clarifai.api.AuditLogQuery';
4814
+ }
4745
4815
 
4746
4816
 
4747
4817
 
@@ -23967,7 +24037,10 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) {
23967
24037
  starCount: jspb.Message.getFieldWithDefault(msg, 23, 0),
23968
24038
  workflowRecommended: (f = msg.getWorkflowRecommended()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
23969
24039
  bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f),
23970
- image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f)
24040
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
24041
+ licenseType: jspb.Message.getFieldWithDefault(msg, 35, 0),
24042
+ source: jspb.Message.getFieldWithDefault(msg, 36, 0),
24043
+ creator: jspb.Message.getFieldWithDefault(msg, 37, "")
23971
24044
  };
23972
24045
 
23973
24046
  if (includeInstance) {
@@ -24124,6 +24197,18 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) {
24124
24197
  reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader);
24125
24198
  msg.setImage(value);
24126
24199
  break;
24200
+ case 35:
24201
+ var value = /** @type {!proto.clarifai.api.LicenseType} */ (reader.readEnum());
24202
+ msg.setLicenseType(value);
24203
+ break;
24204
+ case 36:
24205
+ var value = /** @type {!proto.clarifai.api.Model.Source} */ (reader.readEnum());
24206
+ msg.setSource(value);
24207
+ break;
24208
+ case 37:
24209
+ var value = /** @type {string} */ (reader.readString());
24210
+ msg.setCreator(value);
24211
+ break;
24127
24212
  default:
24128
24213
  reader.skipField();
24129
24214
  break;
@@ -24354,9 +24439,39 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) {
24354
24439
  proto.clarifai.api.Image.serializeBinaryToWriter
24355
24440
  );
24356
24441
  }
24442
+ f = message.getLicenseType();
24443
+ if (f !== 0.0) {
24444
+ writer.writeEnum(
24445
+ 35,
24446
+ f
24447
+ );
24448
+ }
24449
+ f = message.getSource();
24450
+ if (f !== 0.0) {
24451
+ writer.writeEnum(
24452
+ 36,
24453
+ f
24454
+ );
24455
+ }
24456
+ f = message.getCreator();
24457
+ if (f.length > 0) {
24458
+ writer.writeString(
24459
+ 37,
24460
+ f
24461
+ );
24462
+ }
24357
24463
  };
24358
24464
 
24359
24465
 
24466
+ /**
24467
+ * @enum {number}
24468
+ */
24469
+ proto.clarifai.api.Model.Source = {
24470
+ UNKNOWN_SOURCE: 0,
24471
+ HOSTED: 1,
24472
+ WRAPPED: 2
24473
+ };
24474
+
24360
24475
  /**
24361
24476
  * optional string id = 1;
24362
24477
  * @return {string}
@@ -25148,6 +25263,60 @@ proto.clarifai.api.Model.prototype.hasImage = function() {
25148
25263
  };
25149
25264
 
25150
25265
 
25266
+ /**
25267
+ * optional LicenseType license_type = 35;
25268
+ * @return {!proto.clarifai.api.LicenseType}
25269
+ */
25270
+ proto.clarifai.api.Model.prototype.getLicenseType = function() {
25271
+ return /** @type {!proto.clarifai.api.LicenseType} */ (jspb.Message.getFieldWithDefault(this, 35, 0));
25272
+ };
25273
+
25274
+
25275
+ /**
25276
+ * @param {!proto.clarifai.api.LicenseType} value
25277
+ * @return {!proto.clarifai.api.Model} returns this
25278
+ */
25279
+ proto.clarifai.api.Model.prototype.setLicenseType = function(value) {
25280
+ return jspb.Message.setProto3EnumField(this, 35, value);
25281
+ };
25282
+
25283
+
25284
+ /**
25285
+ * optional Source source = 36;
25286
+ * @return {!proto.clarifai.api.Model.Source}
25287
+ */
25288
+ proto.clarifai.api.Model.prototype.getSource = function() {
25289
+ return /** @type {!proto.clarifai.api.Model.Source} */ (jspb.Message.getFieldWithDefault(this, 36, 0));
25290
+ };
25291
+
25292
+
25293
+ /**
25294
+ * @param {!proto.clarifai.api.Model.Source} value
25295
+ * @return {!proto.clarifai.api.Model} returns this
25296
+ */
25297
+ proto.clarifai.api.Model.prototype.setSource = function(value) {
25298
+ return jspb.Message.setProto3EnumField(this, 36, value);
25299
+ };
25300
+
25301
+
25302
+ /**
25303
+ * optional string creator = 37;
25304
+ * @return {string}
25305
+ */
25306
+ proto.clarifai.api.Model.prototype.getCreator = function() {
25307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
25308
+ };
25309
+
25310
+
25311
+ /**
25312
+ * @param {string} value
25313
+ * @return {!proto.clarifai.api.Model} returns this
25314
+ */
25315
+ proto.clarifai.api.Model.prototype.setCreator = function(value) {
25316
+ return jspb.Message.setProto3StringField(this, 37, value);
25317
+ };
25318
+
25319
+
25151
25320
 
25152
25321
 
25153
25322
 
@@ -48349,6 +48518,7 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
48349
48518
  type: jspb.Message.getFieldWithDefault(msg, 4, 0),
48350
48519
  description: jspb.Message.getFieldWithDefault(msg, 5, ""),
48351
48520
  worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f),
48521
+ workerType: jspb.Message.getFieldWithDefault(msg, 22, 0),
48352
48522
  conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
48353
48523
  inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f),
48354
48524
  sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0),
@@ -48428,6 +48598,10 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
48428
48598
  reader.readMessage(value,proto.clarifai.api.TaskWorker.deserializeBinaryFromReader);
48429
48599
  msg.setWorker(value);
48430
48600
  break;
48601
+ case 22:
48602
+ var value = /** @type {!proto.clarifai.api.Task.WorkerType} */ (reader.readEnum());
48603
+ msg.setWorkerType(value);
48604
+ break;
48431
48605
  case 7:
48432
48606
  var value = /** @type {string} */ (reader.readString());
48433
48607
  msg.addConceptIds(value);
@@ -48570,6 +48744,13 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
48570
48744
  proto.clarifai.api.TaskWorker.serializeBinaryToWriter
48571
48745
  );
48572
48746
  }
48747
+ f = message.getWorkerType();
48748
+ if (f !== 0.0) {
48749
+ writer.writeEnum(
48750
+ 22,
48751
+ f
48752
+ );
48753
+ }
48573
48754
  f = message.getConceptIdsList();
48574
48755
  if (f.length > 0) {
48575
48756
  writer.writeRepeatedString(
@@ -48686,6 +48867,15 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
48686
48867
  };
48687
48868
 
48688
48869
 
48870
+ /**
48871
+ * @enum {number}
48872
+ */
48873
+ proto.clarifai.api.Task.WorkerType = {
48874
+ WORKER_TYPE_NOT_SET: 0,
48875
+ WORKER_HUMAN: 1,
48876
+ WORKER_AUTO: 2
48877
+ };
48878
+
48689
48879
  /**
48690
48880
  * @enum {number}
48691
48881
  */
@@ -48861,6 +49051,24 @@ proto.clarifai.api.Task.prototype.hasWorker = function() {
48861
49051
  };
48862
49052
 
48863
49053
 
49054
+ /**
49055
+ * optional WorkerType worker_type = 22;
49056
+ * @return {!proto.clarifai.api.Task.WorkerType}
49057
+ */
49058
+ proto.clarifai.api.Task.prototype.getWorkerType = function() {
49059
+ return /** @type {!proto.clarifai.api.Task.WorkerType} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
49060
+ };
49061
+
49062
+
49063
+ /**
49064
+ * @param {!proto.clarifai.api.Task.WorkerType} value
49065
+ * @return {!proto.clarifai.api.Task} returns this
49066
+ */
49067
+ proto.clarifai.api.Task.prototype.setWorkerType = function(value) {
49068
+ return jspb.Message.setProto3EnumField(this, 22, value);
49069
+ };
49070
+
49071
+
48864
49072
  /**
48865
49073
  * repeated string concept_ids = 7;
48866
49074
  * @return {!Array<string>}
@@ -69614,6 +69822,1105 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
69614
69822
  };
69615
69823
 
69616
69824
 
69825
+
69826
+ /**
69827
+ * Oneof group definitions for this message. Each group defines the field
69828
+ * numbers belonging to that group. When of these fields' value is set, all
69829
+ * other fields in the group are cleared. During deserialization, if multiple
69830
+ * fields are encountered for a group, only the last value seen will be kept.
69831
+ * @private {!Array<!Array<number>>}
69832
+ * @const
69833
+ */
69834
+ proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1]];
69835
+
69836
+ /**
69837
+ * @enum {number}
69838
+ */
69839
+ proto.clarifai.api.AuditLogTarget.TargetCase = {
69840
+ TARGET_NOT_SET: 0,
69841
+ MEMBER: 1
69842
+ };
69843
+
69844
+ /**
69845
+ * @return {proto.clarifai.api.AuditLogTarget.TargetCase}
69846
+ */
69847
+ proto.clarifai.api.AuditLogTarget.prototype.getTargetCase = function() {
69848
+ return /** @type {proto.clarifai.api.AuditLogTarget.TargetCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.AuditLogTarget.oneofGroups_[0]));
69849
+ };
69850
+
69851
+
69852
+
69853
+ if (jspb.Message.GENERATE_TO_OBJECT) {
69854
+ /**
69855
+ * Creates an object representation of this proto.
69856
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
69857
+ * Optional fields that are not set will be set to undefined.
69858
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
69859
+ * For the list of reserved names please see:
69860
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
69861
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
69862
+ * JSPB instance for transitional soy proto support:
69863
+ * http://goto/soy-param-migration
69864
+ * @return {!Object}
69865
+ */
69866
+ proto.clarifai.api.AuditLogTarget.prototype.toObject = function(opt_includeInstance) {
69867
+ return proto.clarifai.api.AuditLogTarget.toObject(opt_includeInstance, this);
69868
+ };
69869
+
69870
+
69871
+ /**
69872
+ * Static version of the {@see toObject} method.
69873
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
69874
+ * the JSPB instance for transitional soy proto support:
69875
+ * http://goto/soy-param-migration
69876
+ * @param {!proto.clarifai.api.AuditLogTarget} msg The msg instance to transform.
69877
+ * @return {!Object}
69878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69879
+ */
69880
+ proto.clarifai.api.AuditLogTarget.toObject = function(includeInstance, msg) {
69881
+ var f, obj = {
69882
+ member: (f = msg.getMember()) && proto.clarifai.api.User.toObject(includeInstance, f)
69883
+ };
69884
+
69885
+ if (includeInstance) {
69886
+ obj.$jspbMessageInstance = msg;
69887
+ }
69888
+ return obj;
69889
+ };
69890
+ }
69891
+
69892
+
69893
+ /**
69894
+ * Deserializes binary data (in protobuf wire format).
69895
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
69896
+ * @return {!proto.clarifai.api.AuditLogTarget}
69897
+ */
69898
+ proto.clarifai.api.AuditLogTarget.deserializeBinary = function(bytes) {
69899
+ var reader = new jspb.BinaryReader(bytes);
69900
+ var msg = new proto.clarifai.api.AuditLogTarget;
69901
+ return proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader(msg, reader);
69902
+ };
69903
+
69904
+
69905
+ /**
69906
+ * Deserializes binary data (in protobuf wire format) from the
69907
+ * given reader into the given message object.
69908
+ * @param {!proto.clarifai.api.AuditLogTarget} msg The message object to deserialize into.
69909
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
69910
+ * @return {!proto.clarifai.api.AuditLogTarget}
69911
+ */
69912
+ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function(msg, reader) {
69913
+ while (reader.nextField()) {
69914
+ if (reader.isEndGroup()) {
69915
+ break;
69916
+ }
69917
+ var field = reader.getFieldNumber();
69918
+ switch (field) {
69919
+ case 1:
69920
+ var value = new proto.clarifai.api.User;
69921
+ reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
69922
+ msg.setMember(value);
69923
+ break;
69924
+ default:
69925
+ reader.skipField();
69926
+ break;
69927
+ }
69928
+ }
69929
+ return msg;
69930
+ };
69931
+
69932
+
69933
+ /**
69934
+ * Serializes the message to binary data (in protobuf wire format).
69935
+ * @return {!Uint8Array}
69936
+ */
69937
+ proto.clarifai.api.AuditLogTarget.prototype.serializeBinary = function() {
69938
+ var writer = new jspb.BinaryWriter();
69939
+ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter(this, writer);
69940
+ return writer.getResultBuffer();
69941
+ };
69942
+
69943
+
69944
+ /**
69945
+ * Serializes the given message to binary data (in protobuf wire
69946
+ * format), writing to the given BinaryWriter.
69947
+ * @param {!proto.clarifai.api.AuditLogTarget} message
69948
+ * @param {!jspb.BinaryWriter} writer
69949
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69950
+ */
69951
+ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, writer) {
69952
+ var f = undefined;
69953
+ f = message.getMember();
69954
+ if (f != null) {
69955
+ writer.writeMessage(
69956
+ 1,
69957
+ f,
69958
+ proto.clarifai.api.User.serializeBinaryToWriter
69959
+ );
69960
+ }
69961
+ };
69962
+
69963
+
69964
+ /**
69965
+ * optional User member = 1;
69966
+ * @return {?proto.clarifai.api.User}
69967
+ */
69968
+ proto.clarifai.api.AuditLogTarget.prototype.getMember = function() {
69969
+ return /** @type{?proto.clarifai.api.User} */ (
69970
+ jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
69971
+ };
69972
+
69973
+
69974
+ /**
69975
+ * @param {?proto.clarifai.api.User|undefined} value
69976
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
69977
+ */
69978
+ proto.clarifai.api.AuditLogTarget.prototype.setMember = function(value) {
69979
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
69980
+ };
69981
+
69982
+
69983
+ /**
69984
+ * Clears the message field making it undefined.
69985
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
69986
+ */
69987
+ proto.clarifai.api.AuditLogTarget.prototype.clearMember = function() {
69988
+ return this.setMember(undefined);
69989
+ };
69990
+
69991
+
69992
+ /**
69993
+ * Returns whether this field is set.
69994
+ * @return {boolean}
69995
+ */
69996
+ proto.clarifai.api.AuditLogTarget.prototype.hasMember = function() {
69997
+ return jspb.Message.getField(this, 1) != null;
69998
+ };
69999
+
70000
+
70001
+
70002
+ /**
70003
+ * List of repeated fields within this message type.
70004
+ * @private {!Array<number>}
70005
+ * @const
70006
+ */
70007
+ proto.clarifai.api.AuditLogEntry.repeatedFields_ = [5,6];
70008
+
70009
+
70010
+
70011
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70012
+ /**
70013
+ * Creates an object representation of this proto.
70014
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70015
+ * Optional fields that are not set will be set to undefined.
70016
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70017
+ * For the list of reserved names please see:
70018
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70019
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70020
+ * JSPB instance for transitional soy proto support:
70021
+ * http://goto/soy-param-migration
70022
+ * @return {!Object}
70023
+ */
70024
+ proto.clarifai.api.AuditLogEntry.prototype.toObject = function(opt_includeInstance) {
70025
+ return proto.clarifai.api.AuditLogEntry.toObject(opt_includeInstance, this);
70026
+ };
70027
+
70028
+
70029
+ /**
70030
+ * Static version of the {@see toObject} method.
70031
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70032
+ * the JSPB instance for transitional soy proto support:
70033
+ * http://goto/soy-param-migration
70034
+ * @param {!proto.clarifai.api.AuditLogEntry} msg The msg instance to transform.
70035
+ * @return {!Object}
70036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70037
+ */
70038
+ proto.clarifai.api.AuditLogEntry.toObject = function(includeInstance, msg) {
70039
+ var f, obj = {
70040
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
70041
+ user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
70042
+ operation: jspb.Message.getFieldWithDefault(msg, 3, 0),
70043
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
70044
+ targetsList: jspb.Message.toObjectList(msg.getTargetsList(),
70045
+ proto.clarifai.api.AuditLogTarget.toObject, includeInstance),
70046
+ detailsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
70047
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
70048
+ reqId: jspb.Message.getFieldWithDefault(msg, 8, ""),
70049
+ sourceIp: jspb.Message.getFieldWithDefault(msg, 9, "")
70050
+ };
70051
+
70052
+ if (includeInstance) {
70053
+ obj.$jspbMessageInstance = msg;
70054
+ }
70055
+ return obj;
70056
+ };
70057
+ }
70058
+
70059
+
70060
+ /**
70061
+ * Deserializes binary data (in protobuf wire format).
70062
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
70063
+ * @return {!proto.clarifai.api.AuditLogEntry}
70064
+ */
70065
+ proto.clarifai.api.AuditLogEntry.deserializeBinary = function(bytes) {
70066
+ var reader = new jspb.BinaryReader(bytes);
70067
+ var msg = new proto.clarifai.api.AuditLogEntry;
70068
+ return proto.clarifai.api.AuditLogEntry.deserializeBinaryFromReader(msg, reader);
70069
+ };
70070
+
70071
+
70072
+ /**
70073
+ * Deserializes binary data (in protobuf wire format) from the
70074
+ * given reader into the given message object.
70075
+ * @param {!proto.clarifai.api.AuditLogEntry} msg The message object to deserialize into.
70076
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
70077
+ * @return {!proto.clarifai.api.AuditLogEntry}
70078
+ */
70079
+ proto.clarifai.api.AuditLogEntry.deserializeBinaryFromReader = function(msg, reader) {
70080
+ while (reader.nextField()) {
70081
+ if (reader.isEndGroup()) {
70082
+ break;
70083
+ }
70084
+ var field = reader.getFieldNumber();
70085
+ switch (field) {
70086
+ case 1:
70087
+ var value = new google_protobuf_timestamp_pb.Timestamp;
70088
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
70089
+ msg.setTimestamp(value);
70090
+ break;
70091
+ case 2:
70092
+ var value = new proto.clarifai.api.User;
70093
+ reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
70094
+ msg.setUser(value);
70095
+ break;
70096
+ case 3:
70097
+ var value = /** @type {!proto.clarifai.api.EventType} */ (reader.readEnum());
70098
+ msg.setOperation(value);
70099
+ break;
70100
+ case 4:
70101
+ var value = /** @type {string} */ (reader.readString());
70102
+ msg.setDescription(value);
70103
+ break;
70104
+ case 5:
70105
+ var value = new proto.clarifai.api.AuditLogTarget;
70106
+ reader.readMessage(value,proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader);
70107
+ msg.addTargets(value);
70108
+ break;
70109
+ case 6:
70110
+ var value = /** @type {string} */ (reader.readString());
70111
+ msg.addDetails(value);
70112
+ break;
70113
+ case 7:
70114
+ var value = /** @type {boolean} */ (reader.readBool());
70115
+ msg.setSuccess(value);
70116
+ break;
70117
+ case 8:
70118
+ var value = /** @type {string} */ (reader.readString());
70119
+ msg.setReqId(value);
70120
+ break;
70121
+ case 9:
70122
+ var value = /** @type {string} */ (reader.readString());
70123
+ msg.setSourceIp(value);
70124
+ break;
70125
+ default:
70126
+ reader.skipField();
70127
+ break;
70128
+ }
70129
+ }
70130
+ return msg;
70131
+ };
70132
+
70133
+
70134
+ /**
70135
+ * Serializes the message to binary data (in protobuf wire format).
70136
+ * @return {!Uint8Array}
70137
+ */
70138
+ proto.clarifai.api.AuditLogEntry.prototype.serializeBinary = function() {
70139
+ var writer = new jspb.BinaryWriter();
70140
+ proto.clarifai.api.AuditLogEntry.serializeBinaryToWriter(this, writer);
70141
+ return writer.getResultBuffer();
70142
+ };
70143
+
70144
+
70145
+ /**
70146
+ * Serializes the given message to binary data (in protobuf wire
70147
+ * format), writing to the given BinaryWriter.
70148
+ * @param {!proto.clarifai.api.AuditLogEntry} message
70149
+ * @param {!jspb.BinaryWriter} writer
70150
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70151
+ */
70152
+ proto.clarifai.api.AuditLogEntry.serializeBinaryToWriter = function(message, writer) {
70153
+ var f = undefined;
70154
+ f = message.getTimestamp();
70155
+ if (f != null) {
70156
+ writer.writeMessage(
70157
+ 1,
70158
+ f,
70159
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
70160
+ );
70161
+ }
70162
+ f = message.getUser();
70163
+ if (f != null) {
70164
+ writer.writeMessage(
70165
+ 2,
70166
+ f,
70167
+ proto.clarifai.api.User.serializeBinaryToWriter
70168
+ );
70169
+ }
70170
+ f = message.getOperation();
70171
+ if (f !== 0.0) {
70172
+ writer.writeEnum(
70173
+ 3,
70174
+ f
70175
+ );
70176
+ }
70177
+ f = message.getDescription();
70178
+ if (f.length > 0) {
70179
+ writer.writeString(
70180
+ 4,
70181
+ f
70182
+ );
70183
+ }
70184
+ f = message.getTargetsList();
70185
+ if (f.length > 0) {
70186
+ writer.writeRepeatedMessage(
70187
+ 5,
70188
+ f,
70189
+ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter
70190
+ );
70191
+ }
70192
+ f = message.getDetailsList();
70193
+ if (f.length > 0) {
70194
+ writer.writeRepeatedString(
70195
+ 6,
70196
+ f
70197
+ );
70198
+ }
70199
+ f = message.getSuccess();
70200
+ if (f) {
70201
+ writer.writeBool(
70202
+ 7,
70203
+ f
70204
+ );
70205
+ }
70206
+ f = message.getReqId();
70207
+ if (f.length > 0) {
70208
+ writer.writeString(
70209
+ 8,
70210
+ f
70211
+ );
70212
+ }
70213
+ f = message.getSourceIp();
70214
+ if (f.length > 0) {
70215
+ writer.writeString(
70216
+ 9,
70217
+ f
70218
+ );
70219
+ }
70220
+ };
70221
+
70222
+
70223
+ /**
70224
+ * optional google.protobuf.Timestamp timestamp = 1;
70225
+ * @return {?proto.google.protobuf.Timestamp}
70226
+ */
70227
+ proto.clarifai.api.AuditLogEntry.prototype.getTimestamp = function() {
70228
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
70229
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
70230
+ };
70231
+
70232
+
70233
+ /**
70234
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
70235
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70236
+ */
70237
+ proto.clarifai.api.AuditLogEntry.prototype.setTimestamp = function(value) {
70238
+ return jspb.Message.setWrapperField(this, 1, value);
70239
+ };
70240
+
70241
+
70242
+ /**
70243
+ * Clears the message field making it undefined.
70244
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70245
+ */
70246
+ proto.clarifai.api.AuditLogEntry.prototype.clearTimestamp = function() {
70247
+ return this.setTimestamp(undefined);
70248
+ };
70249
+
70250
+
70251
+ /**
70252
+ * Returns whether this field is set.
70253
+ * @return {boolean}
70254
+ */
70255
+ proto.clarifai.api.AuditLogEntry.prototype.hasTimestamp = function() {
70256
+ return jspb.Message.getField(this, 1) != null;
70257
+ };
70258
+
70259
+
70260
+ /**
70261
+ * optional User user = 2;
70262
+ * @return {?proto.clarifai.api.User}
70263
+ */
70264
+ proto.clarifai.api.AuditLogEntry.prototype.getUser = function() {
70265
+ return /** @type{?proto.clarifai.api.User} */ (
70266
+ jspb.Message.getWrapperField(this, proto.clarifai.api.User, 2));
70267
+ };
70268
+
70269
+
70270
+ /**
70271
+ * @param {?proto.clarifai.api.User|undefined} value
70272
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70273
+ */
70274
+ proto.clarifai.api.AuditLogEntry.prototype.setUser = function(value) {
70275
+ return jspb.Message.setWrapperField(this, 2, value);
70276
+ };
70277
+
70278
+
70279
+ /**
70280
+ * Clears the message field making it undefined.
70281
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70282
+ */
70283
+ proto.clarifai.api.AuditLogEntry.prototype.clearUser = function() {
70284
+ return this.setUser(undefined);
70285
+ };
70286
+
70287
+
70288
+ /**
70289
+ * Returns whether this field is set.
70290
+ * @return {boolean}
70291
+ */
70292
+ proto.clarifai.api.AuditLogEntry.prototype.hasUser = function() {
70293
+ return jspb.Message.getField(this, 2) != null;
70294
+ };
70295
+
70296
+
70297
+ /**
70298
+ * optional EventType operation = 3;
70299
+ * @return {!proto.clarifai.api.EventType}
70300
+ */
70301
+ proto.clarifai.api.AuditLogEntry.prototype.getOperation = function() {
70302
+ return /** @type {!proto.clarifai.api.EventType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
70303
+ };
70304
+
70305
+
70306
+ /**
70307
+ * @param {!proto.clarifai.api.EventType} value
70308
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70309
+ */
70310
+ proto.clarifai.api.AuditLogEntry.prototype.setOperation = function(value) {
70311
+ return jspb.Message.setProto3EnumField(this, 3, value);
70312
+ };
70313
+
70314
+
70315
+ /**
70316
+ * optional string description = 4;
70317
+ * @return {string}
70318
+ */
70319
+ proto.clarifai.api.AuditLogEntry.prototype.getDescription = function() {
70320
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
70321
+ };
70322
+
70323
+
70324
+ /**
70325
+ * @param {string} value
70326
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70327
+ */
70328
+ proto.clarifai.api.AuditLogEntry.prototype.setDescription = function(value) {
70329
+ return jspb.Message.setProto3StringField(this, 4, value);
70330
+ };
70331
+
70332
+
70333
+ /**
70334
+ * repeated AuditLogTarget targets = 5;
70335
+ * @return {!Array<!proto.clarifai.api.AuditLogTarget>}
70336
+ */
70337
+ proto.clarifai.api.AuditLogEntry.prototype.getTargetsList = function() {
70338
+ return /** @type{!Array<!proto.clarifai.api.AuditLogTarget>} */ (
70339
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.AuditLogTarget, 5));
70340
+ };
70341
+
70342
+
70343
+ /**
70344
+ * @param {!Array<!proto.clarifai.api.AuditLogTarget>} value
70345
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70346
+ */
70347
+ proto.clarifai.api.AuditLogEntry.prototype.setTargetsList = function(value) {
70348
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
70349
+ };
70350
+
70351
+
70352
+ /**
70353
+ * @param {!proto.clarifai.api.AuditLogTarget=} opt_value
70354
+ * @param {number=} opt_index
70355
+ * @return {!proto.clarifai.api.AuditLogTarget}
70356
+ */
70357
+ proto.clarifai.api.AuditLogEntry.prototype.addTargets = function(opt_value, opt_index) {
70358
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.AuditLogTarget, opt_index);
70359
+ };
70360
+
70361
+
70362
+ /**
70363
+ * Clears the list making it empty but non-null.
70364
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70365
+ */
70366
+ proto.clarifai.api.AuditLogEntry.prototype.clearTargetsList = function() {
70367
+ return this.setTargetsList([]);
70368
+ };
70369
+
70370
+
70371
+ /**
70372
+ * repeated string details = 6;
70373
+ * @return {!Array<string>}
70374
+ */
70375
+ proto.clarifai.api.AuditLogEntry.prototype.getDetailsList = function() {
70376
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
70377
+ };
70378
+
70379
+
70380
+ /**
70381
+ * @param {!Array<string>} value
70382
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70383
+ */
70384
+ proto.clarifai.api.AuditLogEntry.prototype.setDetailsList = function(value) {
70385
+ return jspb.Message.setField(this, 6, value || []);
70386
+ };
70387
+
70388
+
70389
+ /**
70390
+ * @param {string} value
70391
+ * @param {number=} opt_index
70392
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70393
+ */
70394
+ proto.clarifai.api.AuditLogEntry.prototype.addDetails = function(value, opt_index) {
70395
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
70396
+ };
70397
+
70398
+
70399
+ /**
70400
+ * Clears the list making it empty but non-null.
70401
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70402
+ */
70403
+ proto.clarifai.api.AuditLogEntry.prototype.clearDetailsList = function() {
70404
+ return this.setDetailsList([]);
70405
+ };
70406
+
70407
+
70408
+ /**
70409
+ * optional bool success = 7;
70410
+ * @return {boolean}
70411
+ */
70412
+ proto.clarifai.api.AuditLogEntry.prototype.getSuccess = function() {
70413
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
70414
+ };
70415
+
70416
+
70417
+ /**
70418
+ * @param {boolean} value
70419
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70420
+ */
70421
+ proto.clarifai.api.AuditLogEntry.prototype.setSuccess = function(value) {
70422
+ return jspb.Message.setProto3BooleanField(this, 7, value);
70423
+ };
70424
+
70425
+
70426
+ /**
70427
+ * optional string req_id = 8;
70428
+ * @return {string}
70429
+ */
70430
+ proto.clarifai.api.AuditLogEntry.prototype.getReqId = function() {
70431
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
70432
+ };
70433
+
70434
+
70435
+ /**
70436
+ * @param {string} value
70437
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70438
+ */
70439
+ proto.clarifai.api.AuditLogEntry.prototype.setReqId = function(value) {
70440
+ return jspb.Message.setProto3StringField(this, 8, value);
70441
+ };
70442
+
70443
+
70444
+ /**
70445
+ * optional string source_ip = 9;
70446
+ * @return {string}
70447
+ */
70448
+ proto.clarifai.api.AuditLogEntry.prototype.getSourceIp = function() {
70449
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
70450
+ };
70451
+
70452
+
70453
+ /**
70454
+ * @param {string} value
70455
+ * @return {!proto.clarifai.api.AuditLogEntry} returns this
70456
+ */
70457
+ proto.clarifai.api.AuditLogEntry.prototype.setSourceIp = function(value) {
70458
+ return jspb.Message.setProto3StringField(this, 9, value);
70459
+ };
70460
+
70461
+
70462
+
70463
+ /**
70464
+ * List of repeated fields within this message type.
70465
+ * @private {!Array<number>}
70466
+ * @const
70467
+ */
70468
+ proto.clarifai.api.AuditLogQuery.repeatedFields_ = [3,4,5,7];
70469
+
70470
+
70471
+
70472
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70473
+ /**
70474
+ * Creates an object representation of this proto.
70475
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70476
+ * Optional fields that are not set will be set to undefined.
70477
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70478
+ * For the list of reserved names please see:
70479
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70480
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70481
+ * JSPB instance for transitional soy proto support:
70482
+ * http://goto/soy-param-migration
70483
+ * @return {!Object}
70484
+ */
70485
+ proto.clarifai.api.AuditLogQuery.prototype.toObject = function(opt_includeInstance) {
70486
+ return proto.clarifai.api.AuditLogQuery.toObject(opt_includeInstance, this);
70487
+ };
70488
+
70489
+
70490
+ /**
70491
+ * Static version of the {@see toObject} method.
70492
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70493
+ * the JSPB instance for transitional soy proto support:
70494
+ * http://goto/soy-param-migration
70495
+ * @param {!proto.clarifai.api.AuditLogQuery} msg The msg instance to transform.
70496
+ * @return {!Object}
70497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70498
+ */
70499
+ proto.clarifai.api.AuditLogQuery.toObject = function(includeInstance, msg) {
70500
+ var f, obj = {
70501
+ timestampFrom: (f = msg.getTimestampFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
70502
+ timestampTo: (f = msg.getTimestampTo()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
70503
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
70504
+ operationsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
70505
+ targetsList: jspb.Message.toObjectList(msg.getTargetsList(),
70506
+ proto.clarifai.api.AuditLogTarget.toObject, includeInstance),
70507
+ success: (f = msg.getSuccess()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
70508
+ sourceIpsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
70509
+ };
70510
+
70511
+ if (includeInstance) {
70512
+ obj.$jspbMessageInstance = msg;
70513
+ }
70514
+ return obj;
70515
+ };
70516
+ }
70517
+
70518
+
70519
+ /**
70520
+ * Deserializes binary data (in protobuf wire format).
70521
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
70522
+ * @return {!proto.clarifai.api.AuditLogQuery}
70523
+ */
70524
+ proto.clarifai.api.AuditLogQuery.deserializeBinary = function(bytes) {
70525
+ var reader = new jspb.BinaryReader(bytes);
70526
+ var msg = new proto.clarifai.api.AuditLogQuery;
70527
+ return proto.clarifai.api.AuditLogQuery.deserializeBinaryFromReader(msg, reader);
70528
+ };
70529
+
70530
+
70531
+ /**
70532
+ * Deserializes binary data (in protobuf wire format) from the
70533
+ * given reader into the given message object.
70534
+ * @param {!proto.clarifai.api.AuditLogQuery} msg The message object to deserialize into.
70535
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
70536
+ * @return {!proto.clarifai.api.AuditLogQuery}
70537
+ */
70538
+ proto.clarifai.api.AuditLogQuery.deserializeBinaryFromReader = function(msg, reader) {
70539
+ while (reader.nextField()) {
70540
+ if (reader.isEndGroup()) {
70541
+ break;
70542
+ }
70543
+ var field = reader.getFieldNumber();
70544
+ switch (field) {
70545
+ case 1:
70546
+ var value = new google_protobuf_timestamp_pb.Timestamp;
70547
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
70548
+ msg.setTimestampFrom(value);
70549
+ break;
70550
+ case 2:
70551
+ var value = new google_protobuf_timestamp_pb.Timestamp;
70552
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
70553
+ msg.setTimestampTo(value);
70554
+ break;
70555
+ case 3:
70556
+ var value = /** @type {string} */ (reader.readString());
70557
+ msg.addUserIds(value);
70558
+ break;
70559
+ case 4:
70560
+ var values = /** @type {!Array<!proto.clarifai.api.EventType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
70561
+ for (var i = 0; i < values.length; i++) {
70562
+ msg.addOperations(values[i]);
70563
+ }
70564
+ break;
70565
+ case 5:
70566
+ var value = new proto.clarifai.api.AuditLogTarget;
70567
+ reader.readMessage(value,proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader);
70568
+ msg.addTargets(value);
70569
+ break;
70570
+ case 6:
70571
+ var value = new google_protobuf_wrappers_pb.BoolValue;
70572
+ reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
70573
+ msg.setSuccess(value);
70574
+ break;
70575
+ case 7:
70576
+ var value = /** @type {string} */ (reader.readString());
70577
+ msg.addSourceIps(value);
70578
+ break;
70579
+ default:
70580
+ reader.skipField();
70581
+ break;
70582
+ }
70583
+ }
70584
+ return msg;
70585
+ };
70586
+
70587
+
70588
+ /**
70589
+ * Serializes the message to binary data (in protobuf wire format).
70590
+ * @return {!Uint8Array}
70591
+ */
70592
+ proto.clarifai.api.AuditLogQuery.prototype.serializeBinary = function() {
70593
+ var writer = new jspb.BinaryWriter();
70594
+ proto.clarifai.api.AuditLogQuery.serializeBinaryToWriter(this, writer);
70595
+ return writer.getResultBuffer();
70596
+ };
70597
+
70598
+
70599
+ /**
70600
+ * Serializes the given message to binary data (in protobuf wire
70601
+ * format), writing to the given BinaryWriter.
70602
+ * @param {!proto.clarifai.api.AuditLogQuery} message
70603
+ * @param {!jspb.BinaryWriter} writer
70604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70605
+ */
70606
+ proto.clarifai.api.AuditLogQuery.serializeBinaryToWriter = function(message, writer) {
70607
+ var f = undefined;
70608
+ f = message.getTimestampFrom();
70609
+ if (f != null) {
70610
+ writer.writeMessage(
70611
+ 1,
70612
+ f,
70613
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
70614
+ );
70615
+ }
70616
+ f = message.getTimestampTo();
70617
+ if (f != null) {
70618
+ writer.writeMessage(
70619
+ 2,
70620
+ f,
70621
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
70622
+ );
70623
+ }
70624
+ f = message.getUserIdsList();
70625
+ if (f.length > 0) {
70626
+ writer.writeRepeatedString(
70627
+ 3,
70628
+ f
70629
+ );
70630
+ }
70631
+ f = message.getOperationsList();
70632
+ if (f.length > 0) {
70633
+ writer.writePackedEnum(
70634
+ 4,
70635
+ f
70636
+ );
70637
+ }
70638
+ f = message.getTargetsList();
70639
+ if (f.length > 0) {
70640
+ writer.writeRepeatedMessage(
70641
+ 5,
70642
+ f,
70643
+ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter
70644
+ );
70645
+ }
70646
+ f = message.getSuccess();
70647
+ if (f != null) {
70648
+ writer.writeMessage(
70649
+ 6,
70650
+ f,
70651
+ google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
70652
+ );
70653
+ }
70654
+ f = message.getSourceIpsList();
70655
+ if (f.length > 0) {
70656
+ writer.writeRepeatedString(
70657
+ 7,
70658
+ f
70659
+ );
70660
+ }
70661
+ };
70662
+
70663
+
70664
+ /**
70665
+ * optional google.protobuf.Timestamp timestamp_from = 1;
70666
+ * @return {?proto.google.protobuf.Timestamp}
70667
+ */
70668
+ proto.clarifai.api.AuditLogQuery.prototype.getTimestampFrom = function() {
70669
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
70670
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
70671
+ };
70672
+
70673
+
70674
+ /**
70675
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
70676
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70677
+ */
70678
+ proto.clarifai.api.AuditLogQuery.prototype.setTimestampFrom = function(value) {
70679
+ return jspb.Message.setWrapperField(this, 1, value);
70680
+ };
70681
+
70682
+
70683
+ /**
70684
+ * Clears the message field making it undefined.
70685
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70686
+ */
70687
+ proto.clarifai.api.AuditLogQuery.prototype.clearTimestampFrom = function() {
70688
+ return this.setTimestampFrom(undefined);
70689
+ };
70690
+
70691
+
70692
+ /**
70693
+ * Returns whether this field is set.
70694
+ * @return {boolean}
70695
+ */
70696
+ proto.clarifai.api.AuditLogQuery.prototype.hasTimestampFrom = function() {
70697
+ return jspb.Message.getField(this, 1) != null;
70698
+ };
70699
+
70700
+
70701
+ /**
70702
+ * optional google.protobuf.Timestamp timestamp_to = 2;
70703
+ * @return {?proto.google.protobuf.Timestamp}
70704
+ */
70705
+ proto.clarifai.api.AuditLogQuery.prototype.getTimestampTo = function() {
70706
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
70707
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
70708
+ };
70709
+
70710
+
70711
+ /**
70712
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
70713
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70714
+ */
70715
+ proto.clarifai.api.AuditLogQuery.prototype.setTimestampTo = function(value) {
70716
+ return jspb.Message.setWrapperField(this, 2, value);
70717
+ };
70718
+
70719
+
70720
+ /**
70721
+ * Clears the message field making it undefined.
70722
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70723
+ */
70724
+ proto.clarifai.api.AuditLogQuery.prototype.clearTimestampTo = function() {
70725
+ return this.setTimestampTo(undefined);
70726
+ };
70727
+
70728
+
70729
+ /**
70730
+ * Returns whether this field is set.
70731
+ * @return {boolean}
70732
+ */
70733
+ proto.clarifai.api.AuditLogQuery.prototype.hasTimestampTo = function() {
70734
+ return jspb.Message.getField(this, 2) != null;
70735
+ };
70736
+
70737
+
70738
+ /**
70739
+ * repeated string user_ids = 3;
70740
+ * @return {!Array<string>}
70741
+ */
70742
+ proto.clarifai.api.AuditLogQuery.prototype.getUserIdsList = function() {
70743
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
70744
+ };
70745
+
70746
+
70747
+ /**
70748
+ * @param {!Array<string>} value
70749
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70750
+ */
70751
+ proto.clarifai.api.AuditLogQuery.prototype.setUserIdsList = function(value) {
70752
+ return jspb.Message.setField(this, 3, value || []);
70753
+ };
70754
+
70755
+
70756
+ /**
70757
+ * @param {string} value
70758
+ * @param {number=} opt_index
70759
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70760
+ */
70761
+ proto.clarifai.api.AuditLogQuery.prototype.addUserIds = function(value, opt_index) {
70762
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
70763
+ };
70764
+
70765
+
70766
+ /**
70767
+ * Clears the list making it empty but non-null.
70768
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70769
+ */
70770
+ proto.clarifai.api.AuditLogQuery.prototype.clearUserIdsList = function() {
70771
+ return this.setUserIdsList([]);
70772
+ };
70773
+
70774
+
70775
+ /**
70776
+ * repeated EventType operations = 4;
70777
+ * @return {!Array<!proto.clarifai.api.EventType>}
70778
+ */
70779
+ proto.clarifai.api.AuditLogQuery.prototype.getOperationsList = function() {
70780
+ return /** @type {!Array<!proto.clarifai.api.EventType>} */ (jspb.Message.getRepeatedField(this, 4));
70781
+ };
70782
+
70783
+
70784
+ /**
70785
+ * @param {!Array<!proto.clarifai.api.EventType>} value
70786
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70787
+ */
70788
+ proto.clarifai.api.AuditLogQuery.prototype.setOperationsList = function(value) {
70789
+ return jspb.Message.setField(this, 4, value || []);
70790
+ };
70791
+
70792
+
70793
+ /**
70794
+ * @param {!proto.clarifai.api.EventType} value
70795
+ * @param {number=} opt_index
70796
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70797
+ */
70798
+ proto.clarifai.api.AuditLogQuery.prototype.addOperations = function(value, opt_index) {
70799
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
70800
+ };
70801
+
70802
+
70803
+ /**
70804
+ * Clears the list making it empty but non-null.
70805
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70806
+ */
70807
+ proto.clarifai.api.AuditLogQuery.prototype.clearOperationsList = function() {
70808
+ return this.setOperationsList([]);
70809
+ };
70810
+
70811
+
70812
+ /**
70813
+ * repeated AuditLogTarget targets = 5;
70814
+ * @return {!Array<!proto.clarifai.api.AuditLogTarget>}
70815
+ */
70816
+ proto.clarifai.api.AuditLogQuery.prototype.getTargetsList = function() {
70817
+ return /** @type{!Array<!proto.clarifai.api.AuditLogTarget>} */ (
70818
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.AuditLogTarget, 5));
70819
+ };
70820
+
70821
+
70822
+ /**
70823
+ * @param {!Array<!proto.clarifai.api.AuditLogTarget>} value
70824
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70825
+ */
70826
+ proto.clarifai.api.AuditLogQuery.prototype.setTargetsList = function(value) {
70827
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
70828
+ };
70829
+
70830
+
70831
+ /**
70832
+ * @param {!proto.clarifai.api.AuditLogTarget=} opt_value
70833
+ * @param {number=} opt_index
70834
+ * @return {!proto.clarifai.api.AuditLogTarget}
70835
+ */
70836
+ proto.clarifai.api.AuditLogQuery.prototype.addTargets = function(opt_value, opt_index) {
70837
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.AuditLogTarget, opt_index);
70838
+ };
70839
+
70840
+
70841
+ /**
70842
+ * Clears the list making it empty but non-null.
70843
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70844
+ */
70845
+ proto.clarifai.api.AuditLogQuery.prototype.clearTargetsList = function() {
70846
+ return this.setTargetsList([]);
70847
+ };
70848
+
70849
+
70850
+ /**
70851
+ * optional google.protobuf.BoolValue success = 6;
70852
+ * @return {?proto.google.protobuf.BoolValue}
70853
+ */
70854
+ proto.clarifai.api.AuditLogQuery.prototype.getSuccess = function() {
70855
+ return /** @type{?proto.google.protobuf.BoolValue} */ (
70856
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 6));
70857
+ };
70858
+
70859
+
70860
+ /**
70861
+ * @param {?proto.google.protobuf.BoolValue|undefined} value
70862
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70863
+ */
70864
+ proto.clarifai.api.AuditLogQuery.prototype.setSuccess = function(value) {
70865
+ return jspb.Message.setWrapperField(this, 6, value);
70866
+ };
70867
+
70868
+
70869
+ /**
70870
+ * Clears the message field making it undefined.
70871
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70872
+ */
70873
+ proto.clarifai.api.AuditLogQuery.prototype.clearSuccess = function() {
70874
+ return this.setSuccess(undefined);
70875
+ };
70876
+
70877
+
70878
+ /**
70879
+ * Returns whether this field is set.
70880
+ * @return {boolean}
70881
+ */
70882
+ proto.clarifai.api.AuditLogQuery.prototype.hasSuccess = function() {
70883
+ return jspb.Message.getField(this, 6) != null;
70884
+ };
70885
+
70886
+
70887
+ /**
70888
+ * repeated string source_ips = 7;
70889
+ * @return {!Array<string>}
70890
+ */
70891
+ proto.clarifai.api.AuditLogQuery.prototype.getSourceIpsList = function() {
70892
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
70893
+ };
70894
+
70895
+
70896
+ /**
70897
+ * @param {!Array<string>} value
70898
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70899
+ */
70900
+ proto.clarifai.api.AuditLogQuery.prototype.setSourceIpsList = function(value) {
70901
+ return jspb.Message.setField(this, 7, value || []);
70902
+ };
70903
+
70904
+
70905
+ /**
70906
+ * @param {string} value
70907
+ * @param {number=} opt_index
70908
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70909
+ */
70910
+ proto.clarifai.api.AuditLogQuery.prototype.addSourceIps = function(value, opt_index) {
70911
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
70912
+ };
70913
+
70914
+
70915
+ /**
70916
+ * Clears the list making it empty but non-null.
70917
+ * @return {!proto.clarifai.api.AuditLogQuery} returns this
70918
+ */
70919
+ proto.clarifai.api.AuditLogQuery.prototype.clearSourceIpsList = function() {
70920
+ return this.setSourceIpsList([]);
70921
+ };
70922
+
70923
+
69617
70924
  /**
69618
70925
  * @enum {number}
69619
70926
  */
@@ -69679,6 +70986,16 @@ proto.clarifai.api.LicenseScope = {
69679
70986
  SEARCH: 3
69680
70987
  };
69681
70988
 
70989
+ /**
70990
+ * @enum {number}
70991
+ */
70992
+ proto.clarifai.api.LicenseType = {
70993
+ UNKNOWN_LICENSE_TYPE: 0,
70994
+ FIRST_PARTY: 1,
70995
+ OPEN_SOURCE: 2,
70996
+ CLOSED_SOURCE: 3
70997
+ };
70998
+
69682
70999
  /**
69683
71000
  * @enum {number}
69684
71001
  */
@@ -69811,8 +71128,8 @@ proto.clarifai.api.RunnerMethodType = {
69811
71128
  /**
69812
71129
  * @enum {number}
69813
71130
  */
69814
- proto.clarifai.api.AuditOperationType = {
69815
- AUDIT_OPERATION_TYPE_NOT_SET: 0,
71131
+ proto.clarifai.api.EventType = {
71132
+ EVENT_TYPE_NOT_SET: 0,
69816
71133
  APPLICATION_CREATE: 100
69817
71134
  };
69818
71135