clarifai-web-grpc 10.10.1 → 10.11.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.
@@ -82,6 +82,7 @@ goog.exportSymbol('proto.clarifai.api.CommitmentValue', null, global);
82
82
  goog.exportSymbol('proto.clarifai.api.CommitmentValue.CommitmentType', null, global);
83
83
  goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
84
84
  goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
85
+ goog.exportSymbol('proto.clarifai.api.ComputeSourceMetadata', null, global);
85
86
  goog.exportSymbol('proto.clarifai.api.Concept', null, global);
86
87
  goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
87
88
  goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
@@ -173,6 +174,7 @@ goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
173
174
  goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
174
175
  goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
175
176
  goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
177
+ goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
176
178
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
177
179
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
178
180
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
@@ -4904,6 +4906,48 @@ if (goog.DEBUG && !COMPILED) {
4904
4906
  */
4905
4907
  proto.clarifai.api.WorkflowVersionEvaluationTemplate.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationTemplate';
4906
4908
  }
4909
+ /**
4910
+ * Generated by JsPbCodeGenerator.
4911
+ * @param {Array=} opt_data Optional initial data array, typically from a
4912
+ * server response, or constructed directly in Javascript. The array is used
4913
+ * in place and becomes part of the constructed object. It is not cloned.
4914
+ * If no data is provided, the constructed object will be empty, but still
4915
+ * valid.
4916
+ * @extends {jspb.Message}
4917
+ * @constructor
4918
+ */
4919
+ proto.clarifai.api.LogEntry = function (opt_data) {
4920
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4921
+ };
4922
+ goog.inherits(proto.clarifai.api.LogEntry, jspb.Message);
4923
+ if (goog.DEBUG && !COMPILED) {
4924
+ /**
4925
+ * @public
4926
+ * @override
4927
+ */
4928
+ proto.clarifai.api.LogEntry.displayName = 'proto.clarifai.api.LogEntry';
4929
+ }
4930
+ /**
4931
+ * Generated by JsPbCodeGenerator.
4932
+ * @param {Array=} opt_data Optional initial data array, typically from a
4933
+ * server response, or constructed directly in Javascript. The array is used
4934
+ * in place and becomes part of the constructed object. It is not cloned.
4935
+ * If no data is provided, the constructed object will be empty, but still
4936
+ * valid.
4937
+ * @extends {jspb.Message}
4938
+ * @constructor
4939
+ */
4940
+ proto.clarifai.api.ComputeSourceMetadata = function (opt_data) {
4941
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4942
+ };
4943
+ goog.inherits(proto.clarifai.api.ComputeSourceMetadata, jspb.Message);
4944
+ if (goog.DEBUG && !COMPILED) {
4945
+ /**
4946
+ * @public
4947
+ * @override
4948
+ */
4949
+ proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
4950
+ }
4907
4951
  if (jspb.Message.GENERATE_TO_OBJECT) {
4908
4952
  /**
4909
4953
  * Creates an object representation of this proto.
@@ -20336,7 +20380,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
20336
20380
  image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
20337
20381
  licenseType: jspb.Message.getFieldWithDefault(msg, 35, 0),
20338
20382
  source: jspb.Message.getFieldWithDefault(msg, 36, 0),
20339
- creator: jspb.Message.getFieldWithDefault(msg, 37, "")
20383
+ creator: jspb.Message.getFieldWithDefault(msg, 37, ""),
20384
+ versionCount: jspb.Message.getFieldWithDefault(msg, 38, 0)
20340
20385
  };
20341
20386
  if (includeInstance) {
20342
20387
  obj.$jspbMessageInstance = msg;
@@ -20500,6 +20545,10 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function (msg, reader) {
20500
20545
  var value = /** @type {string} */ (reader.readString());
20501
20546
  msg.setCreator(value);
20502
20547
  break;
20548
+ case 38:
20549
+ var value = /** @type {number} */ (reader.readInt32());
20550
+ msg.setVersionCount(value);
20551
+ break;
20503
20552
  default:
20504
20553
  reader.skipField();
20505
20554
  break;
@@ -20645,6 +20694,10 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function (message, writer) {
20645
20694
  if (f.length > 0) {
20646
20695
  writer.writeString(37, f);
20647
20696
  }
20697
+ f = message.getVersionCount();
20698
+ if (f !== 0) {
20699
+ writer.writeInt32(38, f);
20700
+ }
20648
20701
  };
20649
20702
  /**
20650
20703
  * @enum {number}
@@ -21303,6 +21356,20 @@ proto.clarifai.api.Model.prototype.getCreator = function () {
21303
21356
  proto.clarifai.api.Model.prototype.setCreator = function (value) {
21304
21357
  return jspb.Message.setProto3StringField(this, 37, value);
21305
21358
  };
21359
+ /**
21360
+ * optional int32 version_count = 38;
21361
+ * @return {number}
21362
+ */
21363
+ proto.clarifai.api.Model.prototype.getVersionCount = function () {
21364
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 38, 0));
21365
+ };
21366
+ /**
21367
+ * @param {number} value
21368
+ * @return {!proto.clarifai.api.Model} returns this
21369
+ */
21370
+ proto.clarifai.api.Model.prototype.setVersionCount = function (value) {
21371
+ return jspb.Message.setProto3IntField(this, 38, value);
21372
+ };
21306
21373
  if (jspb.Message.GENERATE_TO_OBJECT) {
21307
21374
  /**
21308
21375
  * Creates an object representation of this proto.
@@ -26337,7 +26404,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
26337
26404
  var f, obj = {
26338
26405
  inputFieldsMap: (f = msg.getInputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
26339
26406
  outputFieldsMap: (f = msg.getOutputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
26340
- modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, "")
26407
+ modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
26408
+ localDev: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
26341
26409
  };
26342
26410
  if (includeInstance) {
26343
26411
  obj.$jspbMessageInstance = msg;
@@ -26383,6 +26451,10 @@ proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function
26383
26451
  var value = /** @type {string} */ (reader.readString());
26384
26452
  msg.setModelZipUrl(value);
26385
26453
  break;
26454
+ case 8:
26455
+ var value = /** @type {boolean} */ (reader.readBool());
26456
+ msg.setLocalDev(value);
26457
+ break;
26386
26458
  default:
26387
26459
  reader.skipField();
26388
26460
  break;
@@ -26420,6 +26492,10 @@ proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter = function (mes
26420
26492
  if (f.length > 0) {
26421
26493
  writer.writeString(6, f);
26422
26494
  }
26495
+ f = message.getLocalDev();
26496
+ if (f) {
26497
+ writer.writeBool(8, f);
26498
+ }
26423
26499
  };
26424
26500
  /**
26425
26501
  * optional google.protobuf.Struct input_fields_map = 3;
@@ -26491,6 +26567,20 @@ proto.clarifai.api.PretrainedModelConfig.prototype.getModelZipUrl = function ()
26491
26567
  proto.clarifai.api.PretrainedModelConfig.prototype.setModelZipUrl = function (value) {
26492
26568
  return jspb.Message.setProto3StringField(this, 6, value);
26493
26569
  };
26570
+ /**
26571
+ * optional bool local_dev = 8;
26572
+ * @return {boolean}
26573
+ */
26574
+ proto.clarifai.api.PretrainedModelConfig.prototype.getLocalDev = function () {
26575
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
26576
+ };
26577
+ /**
26578
+ * @param {boolean} value
26579
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
26580
+ */
26581
+ proto.clarifai.api.PretrainedModelConfig.prototype.setLocalDev = function (value) {
26582
+ return jspb.Message.setProto3BooleanField(this, 8, value);
26583
+ };
26494
26584
  /**
26495
26585
  * List of repeated fields within this message type.
26496
26586
  * @private {!Array<number>}
@@ -56665,7 +56755,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
56665
56755
  proto.clarifai.api.ProcessingInfo.toObject = function (includeInstance, msg) {
56666
56756
  var f, obj = {
56667
56757
  runnerMethodType: jspb.Message.getFieldWithDefault(msg, 1, 0),
56668
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
56758
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
56759
+ processingId: jspb.Message.getFieldWithDefault(msg, 3, "")
56669
56760
  };
56670
56761
  if (includeInstance) {
56671
56762
  obj.$jspbMessageInstance = msg;
@@ -56706,6 +56797,10 @@ proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader = function (msg, r
56706
56797
  reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
56707
56798
  msg.setStatus(value);
56708
56799
  break;
56800
+ case 3:
56801
+ var value = /** @type {string} */ (reader.readString());
56802
+ msg.setProcessingId(value);
56803
+ break;
56709
56804
  default:
56710
56805
  reader.skipField();
56711
56806
  break;
@@ -56739,6 +56834,10 @@ proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter = function (message, w
56739
56834
  if (f != null) {
56740
56835
  writer.writeMessage(2, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
56741
56836
  }
56837
+ f = message.getProcessingId();
56838
+ if (f.length > 0) {
56839
+ writer.writeString(3, f);
56840
+ }
56742
56841
  };
56743
56842
  /**
56744
56843
  * optional RunnerMethodType runner_method_type = 1;
@@ -56782,6 +56881,20 @@ proto.clarifai.api.ProcessingInfo.prototype.clearStatus = function () {
56782
56881
  proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function () {
56783
56882
  return jspb.Message.getField(this, 2) != null;
56784
56883
  };
56884
+ /**
56885
+ * optional string processing_id = 3;
56886
+ * @return {string}
56887
+ */
56888
+ proto.clarifai.api.ProcessingInfo.prototype.getProcessingId = function () {
56889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
56890
+ };
56891
+ /**
56892
+ * @param {string} value
56893
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
56894
+ */
56895
+ proto.clarifai.api.ProcessingInfo.prototype.setProcessingId = function (value) {
56896
+ return jspb.Message.setProto3StringField(this, 3, value);
56897
+ };
56785
56898
  /**
56786
56899
  * Oneof group definitions for this message. Each group defines the field
56787
56900
  * numbers belonging to that group. When of these fields' value is set, all
@@ -56790,7 +56903,7 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function () {
56790
56903
  * @private {!Array<!Array<number>>}
56791
56904
  * @const
56792
56905
  */
56793
- proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3]];
56906
+ proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3, 4, 5, 6]];
56794
56907
  /**
56795
56908
  * @enum {number}
56796
56909
  */
@@ -56798,7 +56911,10 @@ proto.clarifai.api.AuditLogTarget.TargetCase = {
56798
56911
  TARGET_NOT_SET: 0,
56799
56912
  USER: 1,
56800
56913
  ROLE: 2,
56801
- TEAM: 3
56914
+ TEAM: 3,
56915
+ APP: 4,
56916
+ MODULE: 5,
56917
+ MODULE_VERSION: 6
56802
56918
  };
56803
56919
  /**
56804
56920
  * @return {proto.clarifai.api.AuditLogTarget.TargetCase}
@@ -56835,7 +56951,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
56835
56951
  var f, obj = {
56836
56952
  user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
56837
56953
  role: (f = msg.getRole()) && proto.clarifai.api.Role.toObject(includeInstance, f),
56838
- team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f)
56954
+ team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f),
56955
+ app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f),
56956
+ module: (f = msg.getModule()) && proto.clarifai.api.Module.toObject(includeInstance, f),
56957
+ moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f)
56839
56958
  };
56840
56959
  if (includeInstance) {
56841
56960
  obj.$jspbMessageInstance = msg;
@@ -56882,6 +57001,21 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function (msg, r
56882
57001
  reader.readMessage(value, proto.clarifai.api.Team.deserializeBinaryFromReader);
56883
57002
  msg.setTeam(value);
56884
57003
  break;
57004
+ case 4:
57005
+ var value = new proto.clarifai.api.App;
57006
+ reader.readMessage(value, proto.clarifai.api.App.deserializeBinaryFromReader);
57007
+ msg.setApp(value);
57008
+ break;
57009
+ case 5:
57010
+ var value = new proto.clarifai.api.Module;
57011
+ reader.readMessage(value, proto.clarifai.api.Module.deserializeBinaryFromReader);
57012
+ msg.setModule(value);
57013
+ break;
57014
+ case 6:
57015
+ var value = new proto.clarifai.api.ModuleVersion;
57016
+ reader.readMessage(value, proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader);
57017
+ msg.setModuleVersion(value);
57018
+ break;
56885
57019
  default:
56886
57020
  reader.skipField();
56887
57021
  break;
@@ -56919,6 +57053,18 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function (message, w
56919
57053
  if (f != null) {
56920
57054
  writer.writeMessage(3, f, proto.clarifai.api.Team.serializeBinaryToWriter);
56921
57055
  }
57056
+ f = message.getApp();
57057
+ if (f != null) {
57058
+ writer.writeMessage(4, f, proto.clarifai.api.App.serializeBinaryToWriter);
57059
+ }
57060
+ f = message.getModule();
57061
+ if (f != null) {
57062
+ writer.writeMessage(5, f, proto.clarifai.api.Module.serializeBinaryToWriter);
57063
+ }
57064
+ f = message.getModuleVersion();
57065
+ if (f != null) {
57066
+ writer.writeMessage(6, f, proto.clarifai.api.ModuleVersion.serializeBinaryToWriter);
57067
+ }
56922
57068
  };
56923
57069
  /**
56924
57070
  * optional User user = 1;
@@ -57004,6 +57150,90 @@ proto.clarifai.api.AuditLogTarget.prototype.clearTeam = function () {
57004
57150
  proto.clarifai.api.AuditLogTarget.prototype.hasTeam = function () {
57005
57151
  return jspb.Message.getField(this, 3) != null;
57006
57152
  };
57153
+ /**
57154
+ * optional App app = 4;
57155
+ * @return {?proto.clarifai.api.App}
57156
+ */
57157
+ proto.clarifai.api.AuditLogTarget.prototype.getApp = function () {
57158
+ return /** @type{?proto.clarifai.api.App} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.App, 4));
57159
+ };
57160
+ /**
57161
+ * @param {?proto.clarifai.api.App|undefined} value
57162
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57163
+ */
57164
+ proto.clarifai.api.AuditLogTarget.prototype.setApp = function (value) {
57165
+ return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
57166
+ };
57167
+ /**
57168
+ * Clears the message field making it undefined.
57169
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57170
+ */
57171
+ proto.clarifai.api.AuditLogTarget.prototype.clearApp = function () {
57172
+ return this.setApp(undefined);
57173
+ };
57174
+ /**
57175
+ * Returns whether this field is set.
57176
+ * @return {boolean}
57177
+ */
57178
+ proto.clarifai.api.AuditLogTarget.prototype.hasApp = function () {
57179
+ return jspb.Message.getField(this, 4) != null;
57180
+ };
57181
+ /**
57182
+ * optional Module module = 5;
57183
+ * @return {?proto.clarifai.api.Module}
57184
+ */
57185
+ proto.clarifai.api.AuditLogTarget.prototype.getModule = function () {
57186
+ return /** @type{?proto.clarifai.api.Module} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Module, 5));
57187
+ };
57188
+ /**
57189
+ * @param {?proto.clarifai.api.Module|undefined} value
57190
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57191
+ */
57192
+ proto.clarifai.api.AuditLogTarget.prototype.setModule = function (value) {
57193
+ return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
57194
+ };
57195
+ /**
57196
+ * Clears the message field making it undefined.
57197
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57198
+ */
57199
+ proto.clarifai.api.AuditLogTarget.prototype.clearModule = function () {
57200
+ return this.setModule(undefined);
57201
+ };
57202
+ /**
57203
+ * Returns whether this field is set.
57204
+ * @return {boolean}
57205
+ */
57206
+ proto.clarifai.api.AuditLogTarget.prototype.hasModule = function () {
57207
+ return jspb.Message.getField(this, 5) != null;
57208
+ };
57209
+ /**
57210
+ * optional ModuleVersion module_version = 6;
57211
+ * @return {?proto.clarifai.api.ModuleVersion}
57212
+ */
57213
+ proto.clarifai.api.AuditLogTarget.prototype.getModuleVersion = function () {
57214
+ return /** @type{?proto.clarifai.api.ModuleVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ModuleVersion, 6));
57215
+ };
57216
+ /**
57217
+ * @param {?proto.clarifai.api.ModuleVersion|undefined} value
57218
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57219
+ */
57220
+ proto.clarifai.api.AuditLogTarget.prototype.setModuleVersion = function (value) {
57221
+ return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
57222
+ };
57223
+ /**
57224
+ * Clears the message field making it undefined.
57225
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57226
+ */
57227
+ proto.clarifai.api.AuditLogTarget.prototype.clearModuleVersion = function () {
57228
+ return this.setModuleVersion(undefined);
57229
+ };
57230
+ /**
57231
+ * Returns whether this field is set.
57232
+ * @return {boolean}
57233
+ */
57234
+ proto.clarifai.api.AuditLogTarget.prototype.hasModuleVersion = function () {
57235
+ return jspb.Message.getField(this, 6) != null;
57236
+ };
57007
57237
  /**
57008
57238
  * List of repeated fields within this message type.
57009
57239
  * @private {!Array<number>}
@@ -58158,6 +58388,457 @@ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.addWorkflowVersio
58158
58388
  proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVersionEvaluationMetricsList = function () {
58159
58389
  return this.setWorkflowVersionEvaluationMetricsList([]);
58160
58390
  };
58391
+ if (jspb.Message.GENERATE_TO_OBJECT) {
58392
+ /**
58393
+ * Creates an object representation of this proto.
58394
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58395
+ * Optional fields that are not set will be set to undefined.
58396
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58397
+ * For the list of reserved names please see:
58398
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
58399
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58400
+ * JSPB instance for transitional soy proto support:
58401
+ * http://goto/soy-param-migration
58402
+ * @return {!Object}
58403
+ */
58404
+ proto.clarifai.api.LogEntry.prototype.toObject = function (opt_includeInstance) {
58405
+ return proto.clarifai.api.LogEntry.toObject(opt_includeInstance, this);
58406
+ };
58407
+ /**
58408
+ * Static version of the {@see toObject} method.
58409
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
58410
+ * the JSPB instance for transitional soy proto support:
58411
+ * http://goto/soy-param-migration
58412
+ * @param {!proto.clarifai.api.LogEntry} msg The msg instance to transform.
58413
+ * @return {!Object}
58414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58415
+ */
58416
+ proto.clarifai.api.LogEntry.toObject = function (includeInstance, msg) {
58417
+ var f, obj = {
58418
+ message: jspb.Message.getFieldWithDefault(msg, 1, ""),
58419
+ logType: jspb.Message.getFieldWithDefault(msg, 2, ""),
58420
+ url: jspb.Message.getFieldWithDefault(msg, 3, ""),
58421
+ meta: (f = msg.getMeta()) && proto.clarifai.api.ComputeSourceMetadata.toObject(includeInstance, f)
58422
+ };
58423
+ if (includeInstance) {
58424
+ obj.$jspbMessageInstance = msg;
58425
+ }
58426
+ return obj;
58427
+ };
58428
+ }
58429
+ /**
58430
+ * Deserializes binary data (in protobuf wire format).
58431
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
58432
+ * @return {!proto.clarifai.api.LogEntry}
58433
+ */
58434
+ proto.clarifai.api.LogEntry.deserializeBinary = function (bytes) {
58435
+ var reader = new jspb.BinaryReader(bytes);
58436
+ var msg = new proto.clarifai.api.LogEntry;
58437
+ return proto.clarifai.api.LogEntry.deserializeBinaryFromReader(msg, reader);
58438
+ };
58439
+ /**
58440
+ * Deserializes binary data (in protobuf wire format) from the
58441
+ * given reader into the given message object.
58442
+ * @param {!proto.clarifai.api.LogEntry} msg The message object to deserialize into.
58443
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
58444
+ * @return {!proto.clarifai.api.LogEntry}
58445
+ */
58446
+ proto.clarifai.api.LogEntry.deserializeBinaryFromReader = function (msg, reader) {
58447
+ while (reader.nextField()) {
58448
+ if (reader.isEndGroup()) {
58449
+ break;
58450
+ }
58451
+ var field = reader.getFieldNumber();
58452
+ switch (field) {
58453
+ case 1:
58454
+ var value = /** @type {string} */ (reader.readString());
58455
+ msg.setMessage(value);
58456
+ break;
58457
+ case 2:
58458
+ var value = /** @type {string} */ (reader.readString());
58459
+ msg.setLogType(value);
58460
+ break;
58461
+ case 3:
58462
+ var value = /** @type {string} */ (reader.readString());
58463
+ msg.setUrl(value);
58464
+ break;
58465
+ case 9:
58466
+ var value = new proto.clarifai.api.ComputeSourceMetadata;
58467
+ reader.readMessage(value, proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader);
58468
+ msg.setMeta(value);
58469
+ break;
58470
+ default:
58471
+ reader.skipField();
58472
+ break;
58473
+ }
58474
+ }
58475
+ return msg;
58476
+ };
58477
+ /**
58478
+ * Serializes the message to binary data (in protobuf wire format).
58479
+ * @return {!Uint8Array}
58480
+ */
58481
+ proto.clarifai.api.LogEntry.prototype.serializeBinary = function () {
58482
+ var writer = new jspb.BinaryWriter();
58483
+ proto.clarifai.api.LogEntry.serializeBinaryToWriter(this, writer);
58484
+ return writer.getResultBuffer();
58485
+ };
58486
+ /**
58487
+ * Serializes the given message to binary data (in protobuf wire
58488
+ * format), writing to the given BinaryWriter.
58489
+ * @param {!proto.clarifai.api.LogEntry} message
58490
+ * @param {!jspb.BinaryWriter} writer
58491
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58492
+ */
58493
+ proto.clarifai.api.LogEntry.serializeBinaryToWriter = function (message, writer) {
58494
+ var f = undefined;
58495
+ f = message.getMessage();
58496
+ if (f.length > 0) {
58497
+ writer.writeString(1, f);
58498
+ }
58499
+ f = message.getLogType();
58500
+ if (f.length > 0) {
58501
+ writer.writeString(2, f);
58502
+ }
58503
+ f = message.getUrl();
58504
+ if (f.length > 0) {
58505
+ writer.writeString(3, f);
58506
+ }
58507
+ f = message.getMeta();
58508
+ if (f != null) {
58509
+ writer.writeMessage(9, f, proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter);
58510
+ }
58511
+ };
58512
+ /**
58513
+ * optional string message = 1;
58514
+ * @return {string}
58515
+ */
58516
+ proto.clarifai.api.LogEntry.prototype.getMessage = function () {
58517
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
58518
+ };
58519
+ /**
58520
+ * @param {string} value
58521
+ * @return {!proto.clarifai.api.LogEntry} returns this
58522
+ */
58523
+ proto.clarifai.api.LogEntry.prototype.setMessage = function (value) {
58524
+ return jspb.Message.setProto3StringField(this, 1, value);
58525
+ };
58526
+ /**
58527
+ * optional string log_type = 2;
58528
+ * @return {string}
58529
+ */
58530
+ proto.clarifai.api.LogEntry.prototype.getLogType = function () {
58531
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
58532
+ };
58533
+ /**
58534
+ * @param {string} value
58535
+ * @return {!proto.clarifai.api.LogEntry} returns this
58536
+ */
58537
+ proto.clarifai.api.LogEntry.prototype.setLogType = function (value) {
58538
+ return jspb.Message.setProto3StringField(this, 2, value);
58539
+ };
58540
+ /**
58541
+ * optional string url = 3;
58542
+ * @return {string}
58543
+ */
58544
+ proto.clarifai.api.LogEntry.prototype.getUrl = function () {
58545
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
58546
+ };
58547
+ /**
58548
+ * @param {string} value
58549
+ * @return {!proto.clarifai.api.LogEntry} returns this
58550
+ */
58551
+ proto.clarifai.api.LogEntry.prototype.setUrl = function (value) {
58552
+ return jspb.Message.setProto3StringField(this, 3, value);
58553
+ };
58554
+ /**
58555
+ * optional ComputeSourceMetadata meta = 9;
58556
+ * @return {?proto.clarifai.api.ComputeSourceMetadata}
58557
+ */
58558
+ proto.clarifai.api.LogEntry.prototype.getMeta = function () {
58559
+ return /** @type{?proto.clarifai.api.ComputeSourceMetadata} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeSourceMetadata, 9));
58560
+ };
58561
+ /**
58562
+ * @param {?proto.clarifai.api.ComputeSourceMetadata|undefined} value
58563
+ * @return {!proto.clarifai.api.LogEntry} returns this
58564
+ */
58565
+ proto.clarifai.api.LogEntry.prototype.setMeta = function (value) {
58566
+ return jspb.Message.setWrapperField(this, 9, value);
58567
+ };
58568
+ /**
58569
+ * Clears the message field making it undefined.
58570
+ * @return {!proto.clarifai.api.LogEntry} returns this
58571
+ */
58572
+ proto.clarifai.api.LogEntry.prototype.clearMeta = function () {
58573
+ return this.setMeta(undefined);
58574
+ };
58575
+ /**
58576
+ * Returns whether this field is set.
58577
+ * @return {boolean}
58578
+ */
58579
+ proto.clarifai.api.LogEntry.prototype.hasMeta = function () {
58580
+ return jspb.Message.getField(this, 9) != null;
58581
+ };
58582
+ if (jspb.Message.GENERATE_TO_OBJECT) {
58583
+ /**
58584
+ * Creates an object representation of this proto.
58585
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58586
+ * Optional fields that are not set will be set to undefined.
58587
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58588
+ * For the list of reserved names please see:
58589
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
58590
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58591
+ * JSPB instance for transitional soy proto support:
58592
+ * http://goto/soy-param-migration
58593
+ * @return {!Object}
58594
+ */
58595
+ proto.clarifai.api.ComputeSourceMetadata.prototype.toObject = function (opt_includeInstance) {
58596
+ return proto.clarifai.api.ComputeSourceMetadata.toObject(opt_includeInstance, this);
58597
+ };
58598
+ /**
58599
+ * Static version of the {@see toObject} method.
58600
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
58601
+ * the JSPB instance for transitional soy proto support:
58602
+ * http://goto/soy-param-migration
58603
+ * @param {!proto.clarifai.api.ComputeSourceMetadata} msg The msg instance to transform.
58604
+ * @return {!Object}
58605
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58606
+ */
58607
+ proto.clarifai.api.ComputeSourceMetadata.toObject = function (includeInstance, msg) {
58608
+ var f, obj = {
58609
+ userAppId: (f = msg.getUserAppId()) && proto.clarifai.api.UserAppIDSet.toObject(includeInstance, f),
58610
+ modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
58611
+ modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
58612
+ workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
58613
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
58614
+ nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
58615
+ runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
58616
+ };
58617
+ if (includeInstance) {
58618
+ obj.$jspbMessageInstance = msg;
58619
+ }
58620
+ return obj;
58621
+ };
58622
+ }
58623
+ /**
58624
+ * Deserializes binary data (in protobuf wire format).
58625
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
58626
+ * @return {!proto.clarifai.api.ComputeSourceMetadata}
58627
+ */
58628
+ proto.clarifai.api.ComputeSourceMetadata.deserializeBinary = function (bytes) {
58629
+ var reader = new jspb.BinaryReader(bytes);
58630
+ var msg = new proto.clarifai.api.ComputeSourceMetadata;
58631
+ return proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader(msg, reader);
58632
+ };
58633
+ /**
58634
+ * Deserializes binary data (in protobuf wire format) from the
58635
+ * given reader into the given message object.
58636
+ * @param {!proto.clarifai.api.ComputeSourceMetadata} msg The message object to deserialize into.
58637
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
58638
+ * @return {!proto.clarifai.api.ComputeSourceMetadata}
58639
+ */
58640
+ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function (msg, reader) {
58641
+ while (reader.nextField()) {
58642
+ if (reader.isEndGroup()) {
58643
+ break;
58644
+ }
58645
+ var field = reader.getFieldNumber();
58646
+ switch (field) {
58647
+ case 1:
58648
+ var value = new proto.clarifai.api.UserAppIDSet;
58649
+ reader.readMessage(value, proto.clarifai.api.UserAppIDSet.deserializeBinaryFromReader);
58650
+ msg.setUserAppId(value);
58651
+ break;
58652
+ case 2:
58653
+ var value = /** @type {string} */ (reader.readString());
58654
+ msg.setModelId(value);
58655
+ break;
58656
+ case 3:
58657
+ var value = /** @type {string} */ (reader.readString());
58658
+ msg.setModelVersionId(value);
58659
+ break;
58660
+ case 4:
58661
+ var value = /** @type {string} */ (reader.readString());
58662
+ msg.setWorkflowId(value);
58663
+ break;
58664
+ case 6:
58665
+ var value = /** @type {string} */ (reader.readString());
58666
+ msg.setComputeClusterId(value);
58667
+ break;
58668
+ case 7:
58669
+ var value = /** @type {string} */ (reader.readString());
58670
+ msg.setNodepoolId(value);
58671
+ break;
58672
+ case 8:
58673
+ var value = /** @type {string} */ (reader.readString());
58674
+ msg.setRunnerId(value);
58675
+ break;
58676
+ default:
58677
+ reader.skipField();
58678
+ break;
58679
+ }
58680
+ }
58681
+ return msg;
58682
+ };
58683
+ /**
58684
+ * Serializes the message to binary data (in protobuf wire format).
58685
+ * @return {!Uint8Array}
58686
+ */
58687
+ proto.clarifai.api.ComputeSourceMetadata.prototype.serializeBinary = function () {
58688
+ var writer = new jspb.BinaryWriter();
58689
+ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter(this, writer);
58690
+ return writer.getResultBuffer();
58691
+ };
58692
+ /**
58693
+ * Serializes the given message to binary data (in protobuf wire
58694
+ * format), writing to the given BinaryWriter.
58695
+ * @param {!proto.clarifai.api.ComputeSourceMetadata} message
58696
+ * @param {!jspb.BinaryWriter} writer
58697
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58698
+ */
58699
+ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function (message, writer) {
58700
+ var f = undefined;
58701
+ f = message.getUserAppId();
58702
+ if (f != null) {
58703
+ writer.writeMessage(1, f, proto.clarifai.api.UserAppIDSet.serializeBinaryToWriter);
58704
+ }
58705
+ f = message.getModelId();
58706
+ if (f.length > 0) {
58707
+ writer.writeString(2, f);
58708
+ }
58709
+ f = message.getModelVersionId();
58710
+ if (f.length > 0) {
58711
+ writer.writeString(3, f);
58712
+ }
58713
+ f = message.getWorkflowId();
58714
+ if (f.length > 0) {
58715
+ writer.writeString(4, f);
58716
+ }
58717
+ f = message.getComputeClusterId();
58718
+ if (f.length > 0) {
58719
+ writer.writeString(6, f);
58720
+ }
58721
+ f = message.getNodepoolId();
58722
+ if (f.length > 0) {
58723
+ writer.writeString(7, f);
58724
+ }
58725
+ f = message.getRunnerId();
58726
+ if (f.length > 0) {
58727
+ writer.writeString(8, f);
58728
+ }
58729
+ };
58730
+ /**
58731
+ * optional UserAppIDSet user_app_id = 1;
58732
+ * @return {?proto.clarifai.api.UserAppIDSet}
58733
+ */
58734
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getUserAppId = function () {
58735
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.UserAppIDSet, 1));
58736
+ };
58737
+ /**
58738
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
58739
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58740
+ */
58741
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setUserAppId = function (value) {
58742
+ return jspb.Message.setWrapperField(this, 1, value);
58743
+ };
58744
+ /**
58745
+ * Clears the message field making it undefined.
58746
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58747
+ */
58748
+ proto.clarifai.api.ComputeSourceMetadata.prototype.clearUserAppId = function () {
58749
+ return this.setUserAppId(undefined);
58750
+ };
58751
+ /**
58752
+ * Returns whether this field is set.
58753
+ * @return {boolean}
58754
+ */
58755
+ proto.clarifai.api.ComputeSourceMetadata.prototype.hasUserAppId = function () {
58756
+ return jspb.Message.getField(this, 1) != null;
58757
+ };
58758
+ /**
58759
+ * optional string model_id = 2;
58760
+ * @return {string}
58761
+ */
58762
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getModelId = function () {
58763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
58764
+ };
58765
+ /**
58766
+ * @param {string} value
58767
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58768
+ */
58769
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setModelId = function (value) {
58770
+ return jspb.Message.setProto3StringField(this, 2, value);
58771
+ };
58772
+ /**
58773
+ * optional string model_version_id = 3;
58774
+ * @return {string}
58775
+ */
58776
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getModelVersionId = function () {
58777
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
58778
+ };
58779
+ /**
58780
+ * @param {string} value
58781
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58782
+ */
58783
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setModelVersionId = function (value) {
58784
+ return jspb.Message.setProto3StringField(this, 3, value);
58785
+ };
58786
+ /**
58787
+ * optional string workflow_id = 4;
58788
+ * @return {string}
58789
+ */
58790
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getWorkflowId = function () {
58791
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
58792
+ };
58793
+ /**
58794
+ * @param {string} value
58795
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58796
+ */
58797
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setWorkflowId = function (value) {
58798
+ return jspb.Message.setProto3StringField(this, 4, value);
58799
+ };
58800
+ /**
58801
+ * optional string compute_cluster_id = 6;
58802
+ * @return {string}
58803
+ */
58804
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getComputeClusterId = function () {
58805
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
58806
+ };
58807
+ /**
58808
+ * @param {string} value
58809
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58810
+ */
58811
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setComputeClusterId = function (value) {
58812
+ return jspb.Message.setProto3StringField(this, 6, value);
58813
+ };
58814
+ /**
58815
+ * optional string nodepool_id = 7;
58816
+ * @return {string}
58817
+ */
58818
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getNodepoolId = function () {
58819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
58820
+ };
58821
+ /**
58822
+ * @param {string} value
58823
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58824
+ */
58825
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setNodepoolId = function (value) {
58826
+ return jspb.Message.setProto3StringField(this, 7, value);
58827
+ };
58828
+ /**
58829
+ * optional string runner_id = 8;
58830
+ * @return {string}
58831
+ */
58832
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getRunnerId = function () {
58833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
58834
+ };
58835
+ /**
58836
+ * @param {string} value
58837
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
58838
+ */
58839
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function (value) {
58840
+ return jspb.Message.setProto3StringField(this, 8, value);
58841
+ };
58161
58842
  /**
58162
58843
  * @enum {number}
58163
58844
  */
@@ -58361,6 +59042,12 @@ proto.clarifai.api.EventType = {
58361
59042
  ORGANIZATION_TEAM_MEMBER_ADD: 110,
58362
59043
  ORGANIZATION_TEAM_MEMBER_REMOVE: 111,
58363
59044
  ORGANIZATION_TEAM_APP_ADD: 112,
58364
- ORGANIZATION_TEAM_APP_REMOVE: 113
59045
+ ORGANIZATION_TEAM_APP_REMOVE: 113,
59046
+ MODULE_CREATE: 200,
59047
+ MODULE_UPDATE: 201,
59048
+ MODULE_DELETE: 202,
59049
+ MODULE_VERSION_CREATE: 203,
59050
+ MODULE_VERSION_UPDATE: 204,
59051
+ MODULE_VERSION_DELETE: 205
58365
59052
  };
58366
59053
  goog.object.extend(exports, proto.clarifai.api);