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.
@@ -84,6 +84,7 @@ goog.exportSymbol('proto.clarifai.api.CommitmentValue', null, global);
84
84
  goog.exportSymbol('proto.clarifai.api.CommitmentValue.CommitmentType', null, global);
85
85
  goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
86
86
  goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
87
+ goog.exportSymbol('proto.clarifai.api.ComputeSourceMetadata', null, global);
87
88
  goog.exportSymbol('proto.clarifai.api.Concept', null, global);
88
89
  goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
89
90
  goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
@@ -175,6 +176,7 @@ goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
175
176
  goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
176
177
  goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
177
178
  goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
179
+ goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
178
180
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
179
181
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
180
182
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
@@ -4906,6 +4908,48 @@ if (goog.DEBUG && !COMPILED) {
4906
4908
  */
4907
4909
  proto.clarifai.api.WorkflowVersionEvaluationTemplate.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationTemplate';
4908
4910
  }
4911
+ /**
4912
+ * Generated by JsPbCodeGenerator.
4913
+ * @param {Array=} opt_data Optional initial data array, typically from a
4914
+ * server response, or constructed directly in Javascript. The array is used
4915
+ * in place and becomes part of the constructed object. It is not cloned.
4916
+ * If no data is provided, the constructed object will be empty, but still
4917
+ * valid.
4918
+ * @extends {jspb.Message}
4919
+ * @constructor
4920
+ */
4921
+ proto.clarifai.api.LogEntry = function(opt_data) {
4922
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4923
+ };
4924
+ goog.inherits(proto.clarifai.api.LogEntry, jspb.Message);
4925
+ if (goog.DEBUG && !COMPILED) {
4926
+ /**
4927
+ * @public
4928
+ * @override
4929
+ */
4930
+ proto.clarifai.api.LogEntry.displayName = 'proto.clarifai.api.LogEntry';
4931
+ }
4932
+ /**
4933
+ * Generated by JsPbCodeGenerator.
4934
+ * @param {Array=} opt_data Optional initial data array, typically from a
4935
+ * server response, or constructed directly in Javascript. The array is used
4936
+ * in place and becomes part of the constructed object. It is not cloned.
4937
+ * If no data is provided, the constructed object will be empty, but still
4938
+ * valid.
4939
+ * @extends {jspb.Message}
4940
+ * @constructor
4941
+ */
4942
+ proto.clarifai.api.ComputeSourceMetadata = function(opt_data) {
4943
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4944
+ };
4945
+ goog.inherits(proto.clarifai.api.ComputeSourceMetadata, jspb.Message);
4946
+ if (goog.DEBUG && !COMPILED) {
4947
+ /**
4948
+ * @public
4949
+ * @override
4950
+ */
4951
+ proto.clarifai.api.ComputeSourceMetadata.displayName = 'proto.clarifai.api.ComputeSourceMetadata';
4952
+ }
4909
4953
 
4910
4954
 
4911
4955
 
@@ -24591,7 +24635,8 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) {
24591
24635
  image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
24592
24636
  licenseType: jspb.Message.getFieldWithDefault(msg, 35, 0),
24593
24637
  source: jspb.Message.getFieldWithDefault(msg, 36, 0),
24594
- creator: jspb.Message.getFieldWithDefault(msg, 37, "")
24638
+ creator: jspb.Message.getFieldWithDefault(msg, 37, ""),
24639
+ versionCount: jspb.Message.getFieldWithDefault(msg, 38, 0)
24595
24640
  };
24596
24641
 
24597
24642
  if (includeInstance) {
@@ -24760,6 +24805,10 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) {
24760
24805
  var value = /** @type {string} */ (reader.readString());
24761
24806
  msg.setCreator(value);
24762
24807
  break;
24808
+ case 38:
24809
+ var value = /** @type {number} */ (reader.readInt32());
24810
+ msg.setVersionCount(value);
24811
+ break;
24763
24812
  default:
24764
24813
  reader.skipField();
24765
24814
  break;
@@ -25011,6 +25060,13 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) {
25011
25060
  f
25012
25061
  );
25013
25062
  }
25063
+ f = message.getVersionCount();
25064
+ if (f !== 0) {
25065
+ writer.writeInt32(
25066
+ 38,
25067
+ f
25068
+ );
25069
+ }
25014
25070
  };
25015
25071
 
25016
25072
 
@@ -25868,6 +25924,24 @@ proto.clarifai.api.Model.prototype.setCreator = function(value) {
25868
25924
  };
25869
25925
 
25870
25926
 
25927
+ /**
25928
+ * optional int32 version_count = 38;
25929
+ * @return {number}
25930
+ */
25931
+ proto.clarifai.api.Model.prototype.getVersionCount = function() {
25932
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 38, 0));
25933
+ };
25934
+
25935
+
25936
+ /**
25937
+ * @param {number} value
25938
+ * @return {!proto.clarifai.api.Model} returns this
25939
+ */
25940
+ proto.clarifai.api.Model.prototype.setVersionCount = function(value) {
25941
+ return jspb.Message.setProto3IntField(this, 38, value);
25942
+ };
25943
+
25944
+
25871
25945
 
25872
25946
 
25873
25947
 
@@ -32289,7 +32363,8 @@ proto.clarifai.api.PretrainedModelConfig.toObject = function(includeInstance, ms
32289
32363
  var f, obj = {
32290
32364
  inputFieldsMap: (f = msg.getInputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
32291
32365
  outputFieldsMap: (f = msg.getOutputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
32292
- modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, "")
32366
+ modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
32367
+ localDev: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
32293
32368
  };
32294
32369
 
32295
32370
  if (includeInstance) {
@@ -32340,6 +32415,10 @@ proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function(
32340
32415
  var value = /** @type {string} */ (reader.readString());
32341
32416
  msg.setModelZipUrl(value);
32342
32417
  break;
32418
+ case 8:
32419
+ var value = /** @type {boolean} */ (reader.readBool());
32420
+ msg.setLocalDev(value);
32421
+ break;
32343
32422
  default:
32344
32423
  reader.skipField();
32345
32424
  break;
@@ -32392,6 +32471,13 @@ proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter = function(mess
32392
32471
  f
32393
32472
  );
32394
32473
  }
32474
+ f = message.getLocalDev();
32475
+ if (f) {
32476
+ writer.writeBool(
32477
+ 8,
32478
+ f
32479
+ );
32480
+ }
32395
32481
  };
32396
32482
 
32397
32483
 
@@ -32487,6 +32573,24 @@ proto.clarifai.api.PretrainedModelConfig.prototype.setModelZipUrl = function(val
32487
32573
  };
32488
32574
 
32489
32575
 
32576
+ /**
32577
+ * optional bool local_dev = 8;
32578
+ * @return {boolean}
32579
+ */
32580
+ proto.clarifai.api.PretrainedModelConfig.prototype.getLocalDev = function() {
32581
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
32582
+ };
32583
+
32584
+
32585
+ /**
32586
+ * @param {boolean} value
32587
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
32588
+ */
32589
+ proto.clarifai.api.PretrainedModelConfig.prototype.setLocalDev = function(value) {
32590
+ return jspb.Message.setProto3BooleanField(this, 8, value);
32591
+ };
32592
+
32593
+
32490
32594
 
32491
32595
  /**
32492
32596
  * List of repeated fields within this message type.
@@ -70914,7 +71018,8 @@ proto.clarifai.api.ProcessingInfo.prototype.toObject = function(opt_includeInsta
70914
71018
  proto.clarifai.api.ProcessingInfo.toObject = function(includeInstance, msg) {
70915
71019
  var f, obj = {
70916
71020
  runnerMethodType: jspb.Message.getFieldWithDefault(msg, 1, 0),
70917
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
71021
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
71022
+ processingId: jspb.Message.getFieldWithDefault(msg, 3, "")
70918
71023
  };
70919
71024
 
70920
71025
  if (includeInstance) {
@@ -70960,6 +71065,10 @@ proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader = function(msg, re
70960
71065
  reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
70961
71066
  msg.setStatus(value);
70962
71067
  break;
71068
+ case 3:
71069
+ var value = /** @type {string} */ (reader.readString());
71070
+ msg.setProcessingId(value);
71071
+ break;
70963
71072
  default:
70964
71073
  reader.skipField();
70965
71074
  break;
@@ -71004,6 +71113,13 @@ proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter = function(message, wr
71004
71113
  proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
71005
71114
  );
71006
71115
  }
71116
+ f = message.getProcessingId();
71117
+ if (f.length > 0) {
71118
+ writer.writeString(
71119
+ 3,
71120
+ f
71121
+ );
71122
+ }
71007
71123
  };
71008
71124
 
71009
71125
 
@@ -71062,6 +71178,24 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
71062
71178
  };
71063
71179
 
71064
71180
 
71181
+ /**
71182
+ * optional string processing_id = 3;
71183
+ * @return {string}
71184
+ */
71185
+ proto.clarifai.api.ProcessingInfo.prototype.getProcessingId = function() {
71186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
71187
+ };
71188
+
71189
+
71190
+ /**
71191
+ * @param {string} value
71192
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
71193
+ */
71194
+ proto.clarifai.api.ProcessingInfo.prototype.setProcessingId = function(value) {
71195
+ return jspb.Message.setProto3StringField(this, 3, value);
71196
+ };
71197
+
71198
+
71065
71199
 
71066
71200
  /**
71067
71201
  * Oneof group definitions for this message. Each group defines the field
@@ -71071,7 +71205,7 @@ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
71071
71205
  * @private {!Array<!Array<number>>}
71072
71206
  * @const
71073
71207
  */
71074
- proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1,2,3]];
71208
+ proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1,2,3,4,5,6]];
71075
71209
 
71076
71210
  /**
71077
71211
  * @enum {number}
@@ -71080,7 +71214,10 @@ proto.clarifai.api.AuditLogTarget.TargetCase = {
71080
71214
  TARGET_NOT_SET: 0,
71081
71215
  USER: 1,
71082
71216
  ROLE: 2,
71083
- TEAM: 3
71217
+ TEAM: 3,
71218
+ APP: 4,
71219
+ MODULE: 5,
71220
+ MODULE_VERSION: 6
71084
71221
  };
71085
71222
 
71086
71223
  /**
@@ -71123,7 +71260,10 @@ proto.clarifai.api.AuditLogTarget.toObject = function(includeInstance, msg) {
71123
71260
  var f, obj = {
71124
71261
  user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
71125
71262
  role: (f = msg.getRole()) && proto.clarifai.api.Role.toObject(includeInstance, f),
71126
- team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f)
71263
+ team: (f = msg.getTeam()) && proto.clarifai.api.Team.toObject(includeInstance, f),
71264
+ app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f),
71265
+ module: (f = msg.getModule()) && proto.clarifai.api.Module.toObject(includeInstance, f),
71266
+ moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f)
71127
71267
  };
71128
71268
 
71129
71269
  if (includeInstance) {
@@ -71175,6 +71315,21 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function(msg, re
71175
71315
  reader.readMessage(value,proto.clarifai.api.Team.deserializeBinaryFromReader);
71176
71316
  msg.setTeam(value);
71177
71317
  break;
71318
+ case 4:
71319
+ var value = new proto.clarifai.api.App;
71320
+ reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader);
71321
+ msg.setApp(value);
71322
+ break;
71323
+ case 5:
71324
+ var value = new proto.clarifai.api.Module;
71325
+ reader.readMessage(value,proto.clarifai.api.Module.deserializeBinaryFromReader);
71326
+ msg.setModule(value);
71327
+ break;
71328
+ case 6:
71329
+ var value = new proto.clarifai.api.ModuleVersion;
71330
+ reader.readMessage(value,proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader);
71331
+ msg.setModuleVersion(value);
71332
+ break;
71178
71333
  default:
71179
71334
  reader.skipField();
71180
71335
  break;
@@ -71228,6 +71383,30 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function(message, wr
71228
71383
  proto.clarifai.api.Team.serializeBinaryToWriter
71229
71384
  );
71230
71385
  }
71386
+ f = message.getApp();
71387
+ if (f != null) {
71388
+ writer.writeMessage(
71389
+ 4,
71390
+ f,
71391
+ proto.clarifai.api.App.serializeBinaryToWriter
71392
+ );
71393
+ }
71394
+ f = message.getModule();
71395
+ if (f != null) {
71396
+ writer.writeMessage(
71397
+ 5,
71398
+ f,
71399
+ proto.clarifai.api.Module.serializeBinaryToWriter
71400
+ );
71401
+ }
71402
+ f = message.getModuleVersion();
71403
+ if (f != null) {
71404
+ writer.writeMessage(
71405
+ 6,
71406
+ f,
71407
+ proto.clarifai.api.ModuleVersion.serializeBinaryToWriter
71408
+ );
71409
+ }
71231
71410
  };
71232
71411
 
71233
71412
 
@@ -71342,6 +71521,117 @@ proto.clarifai.api.AuditLogTarget.prototype.hasTeam = function() {
71342
71521
  };
71343
71522
 
71344
71523
 
71524
+ /**
71525
+ * optional App app = 4;
71526
+ * @return {?proto.clarifai.api.App}
71527
+ */
71528
+ proto.clarifai.api.AuditLogTarget.prototype.getApp = function() {
71529
+ return /** @type{?proto.clarifai.api.App} */ (
71530
+ jspb.Message.getWrapperField(this, proto.clarifai.api.App, 4));
71531
+ };
71532
+
71533
+
71534
+ /**
71535
+ * @param {?proto.clarifai.api.App|undefined} value
71536
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
71537
+ */
71538
+ proto.clarifai.api.AuditLogTarget.prototype.setApp = function(value) {
71539
+ return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
71540
+ };
71541
+
71542
+
71543
+ /**
71544
+ * Clears the message field making it undefined.
71545
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
71546
+ */
71547
+ proto.clarifai.api.AuditLogTarget.prototype.clearApp = function() {
71548
+ return this.setApp(undefined);
71549
+ };
71550
+
71551
+
71552
+ /**
71553
+ * Returns whether this field is set.
71554
+ * @return {boolean}
71555
+ */
71556
+ proto.clarifai.api.AuditLogTarget.prototype.hasApp = function() {
71557
+ return jspb.Message.getField(this, 4) != null;
71558
+ };
71559
+
71560
+
71561
+ /**
71562
+ * optional Module module = 5;
71563
+ * @return {?proto.clarifai.api.Module}
71564
+ */
71565
+ proto.clarifai.api.AuditLogTarget.prototype.getModule = function() {
71566
+ return /** @type{?proto.clarifai.api.Module} */ (
71567
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Module, 5));
71568
+ };
71569
+
71570
+
71571
+ /**
71572
+ * @param {?proto.clarifai.api.Module|undefined} value
71573
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
71574
+ */
71575
+ proto.clarifai.api.AuditLogTarget.prototype.setModule = function(value) {
71576
+ return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
71577
+ };
71578
+
71579
+
71580
+ /**
71581
+ * Clears the message field making it undefined.
71582
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
71583
+ */
71584
+ proto.clarifai.api.AuditLogTarget.prototype.clearModule = function() {
71585
+ return this.setModule(undefined);
71586
+ };
71587
+
71588
+
71589
+ /**
71590
+ * Returns whether this field is set.
71591
+ * @return {boolean}
71592
+ */
71593
+ proto.clarifai.api.AuditLogTarget.prototype.hasModule = function() {
71594
+ return jspb.Message.getField(this, 5) != null;
71595
+ };
71596
+
71597
+
71598
+ /**
71599
+ * optional ModuleVersion module_version = 6;
71600
+ * @return {?proto.clarifai.api.ModuleVersion}
71601
+ */
71602
+ proto.clarifai.api.AuditLogTarget.prototype.getModuleVersion = function() {
71603
+ return /** @type{?proto.clarifai.api.ModuleVersion} */ (
71604
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ModuleVersion, 6));
71605
+ };
71606
+
71607
+
71608
+ /**
71609
+ * @param {?proto.clarifai.api.ModuleVersion|undefined} value
71610
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
71611
+ */
71612
+ proto.clarifai.api.AuditLogTarget.prototype.setModuleVersion = function(value) {
71613
+ return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
71614
+ };
71615
+
71616
+
71617
+ /**
71618
+ * Clears the message field making it undefined.
71619
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
71620
+ */
71621
+ proto.clarifai.api.AuditLogTarget.prototype.clearModuleVersion = function() {
71622
+ return this.setModuleVersion(undefined);
71623
+ };
71624
+
71625
+
71626
+ /**
71627
+ * Returns whether this field is set.
71628
+ * @return {boolean}
71629
+ */
71630
+ proto.clarifai.api.AuditLogTarget.prototype.hasModuleVersion = function() {
71631
+ return jspb.Message.getField(this, 6) != null;
71632
+ };
71633
+
71634
+
71345
71635
 
71346
71636
  /**
71347
71637
  * List of repeated fields within this message type.
@@ -72812,6 +73102,578 @@ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVers
72812
73102
  };
72813
73103
 
72814
73104
 
73105
+
73106
+
73107
+
73108
+ if (jspb.Message.GENERATE_TO_OBJECT) {
73109
+ /**
73110
+ * Creates an object representation of this proto.
73111
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
73112
+ * Optional fields that are not set will be set to undefined.
73113
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
73114
+ * For the list of reserved names please see:
73115
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
73116
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
73117
+ * JSPB instance for transitional soy proto support:
73118
+ * http://goto/soy-param-migration
73119
+ * @return {!Object}
73120
+ */
73121
+ proto.clarifai.api.LogEntry.prototype.toObject = function(opt_includeInstance) {
73122
+ return proto.clarifai.api.LogEntry.toObject(opt_includeInstance, this);
73123
+ };
73124
+
73125
+
73126
+ /**
73127
+ * Static version of the {@see toObject} method.
73128
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
73129
+ * the JSPB instance for transitional soy proto support:
73130
+ * http://goto/soy-param-migration
73131
+ * @param {!proto.clarifai.api.LogEntry} msg The msg instance to transform.
73132
+ * @return {!Object}
73133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
73134
+ */
73135
+ proto.clarifai.api.LogEntry.toObject = function(includeInstance, msg) {
73136
+ var f, obj = {
73137
+ message: jspb.Message.getFieldWithDefault(msg, 1, ""),
73138
+ logType: jspb.Message.getFieldWithDefault(msg, 2, ""),
73139
+ url: jspb.Message.getFieldWithDefault(msg, 3, ""),
73140
+ meta: (f = msg.getMeta()) && proto.clarifai.api.ComputeSourceMetadata.toObject(includeInstance, f)
73141
+ };
73142
+
73143
+ if (includeInstance) {
73144
+ obj.$jspbMessageInstance = msg;
73145
+ }
73146
+ return obj;
73147
+ };
73148
+ }
73149
+
73150
+
73151
+ /**
73152
+ * Deserializes binary data (in protobuf wire format).
73153
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
73154
+ * @return {!proto.clarifai.api.LogEntry}
73155
+ */
73156
+ proto.clarifai.api.LogEntry.deserializeBinary = function(bytes) {
73157
+ var reader = new jspb.BinaryReader(bytes);
73158
+ var msg = new proto.clarifai.api.LogEntry;
73159
+ return proto.clarifai.api.LogEntry.deserializeBinaryFromReader(msg, reader);
73160
+ };
73161
+
73162
+
73163
+ /**
73164
+ * Deserializes binary data (in protobuf wire format) from the
73165
+ * given reader into the given message object.
73166
+ * @param {!proto.clarifai.api.LogEntry} msg The message object to deserialize into.
73167
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
73168
+ * @return {!proto.clarifai.api.LogEntry}
73169
+ */
73170
+ proto.clarifai.api.LogEntry.deserializeBinaryFromReader = function(msg, reader) {
73171
+ while (reader.nextField()) {
73172
+ if (reader.isEndGroup()) {
73173
+ break;
73174
+ }
73175
+ var field = reader.getFieldNumber();
73176
+ switch (field) {
73177
+ case 1:
73178
+ var value = /** @type {string} */ (reader.readString());
73179
+ msg.setMessage(value);
73180
+ break;
73181
+ case 2:
73182
+ var value = /** @type {string} */ (reader.readString());
73183
+ msg.setLogType(value);
73184
+ break;
73185
+ case 3:
73186
+ var value = /** @type {string} */ (reader.readString());
73187
+ msg.setUrl(value);
73188
+ break;
73189
+ case 9:
73190
+ var value = new proto.clarifai.api.ComputeSourceMetadata;
73191
+ reader.readMessage(value,proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader);
73192
+ msg.setMeta(value);
73193
+ break;
73194
+ default:
73195
+ reader.skipField();
73196
+ break;
73197
+ }
73198
+ }
73199
+ return msg;
73200
+ };
73201
+
73202
+
73203
+ /**
73204
+ * Serializes the message to binary data (in protobuf wire format).
73205
+ * @return {!Uint8Array}
73206
+ */
73207
+ proto.clarifai.api.LogEntry.prototype.serializeBinary = function() {
73208
+ var writer = new jspb.BinaryWriter();
73209
+ proto.clarifai.api.LogEntry.serializeBinaryToWriter(this, writer);
73210
+ return writer.getResultBuffer();
73211
+ };
73212
+
73213
+
73214
+ /**
73215
+ * Serializes the given message to binary data (in protobuf wire
73216
+ * format), writing to the given BinaryWriter.
73217
+ * @param {!proto.clarifai.api.LogEntry} message
73218
+ * @param {!jspb.BinaryWriter} writer
73219
+ * @suppress {unusedLocalVariables} f is only used for nested messages
73220
+ */
73221
+ proto.clarifai.api.LogEntry.serializeBinaryToWriter = function(message, writer) {
73222
+ var f = undefined;
73223
+ f = message.getMessage();
73224
+ if (f.length > 0) {
73225
+ writer.writeString(
73226
+ 1,
73227
+ f
73228
+ );
73229
+ }
73230
+ f = message.getLogType();
73231
+ if (f.length > 0) {
73232
+ writer.writeString(
73233
+ 2,
73234
+ f
73235
+ );
73236
+ }
73237
+ f = message.getUrl();
73238
+ if (f.length > 0) {
73239
+ writer.writeString(
73240
+ 3,
73241
+ f
73242
+ );
73243
+ }
73244
+ f = message.getMeta();
73245
+ if (f != null) {
73246
+ writer.writeMessage(
73247
+ 9,
73248
+ f,
73249
+ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter
73250
+ );
73251
+ }
73252
+ };
73253
+
73254
+
73255
+ /**
73256
+ * optional string message = 1;
73257
+ * @return {string}
73258
+ */
73259
+ proto.clarifai.api.LogEntry.prototype.getMessage = function() {
73260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
73261
+ };
73262
+
73263
+
73264
+ /**
73265
+ * @param {string} value
73266
+ * @return {!proto.clarifai.api.LogEntry} returns this
73267
+ */
73268
+ proto.clarifai.api.LogEntry.prototype.setMessage = function(value) {
73269
+ return jspb.Message.setProto3StringField(this, 1, value);
73270
+ };
73271
+
73272
+
73273
+ /**
73274
+ * optional string log_type = 2;
73275
+ * @return {string}
73276
+ */
73277
+ proto.clarifai.api.LogEntry.prototype.getLogType = function() {
73278
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
73279
+ };
73280
+
73281
+
73282
+ /**
73283
+ * @param {string} value
73284
+ * @return {!proto.clarifai.api.LogEntry} returns this
73285
+ */
73286
+ proto.clarifai.api.LogEntry.prototype.setLogType = function(value) {
73287
+ return jspb.Message.setProto3StringField(this, 2, value);
73288
+ };
73289
+
73290
+
73291
+ /**
73292
+ * optional string url = 3;
73293
+ * @return {string}
73294
+ */
73295
+ proto.clarifai.api.LogEntry.prototype.getUrl = function() {
73296
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
73297
+ };
73298
+
73299
+
73300
+ /**
73301
+ * @param {string} value
73302
+ * @return {!proto.clarifai.api.LogEntry} returns this
73303
+ */
73304
+ proto.clarifai.api.LogEntry.prototype.setUrl = function(value) {
73305
+ return jspb.Message.setProto3StringField(this, 3, value);
73306
+ };
73307
+
73308
+
73309
+ /**
73310
+ * optional ComputeSourceMetadata meta = 9;
73311
+ * @return {?proto.clarifai.api.ComputeSourceMetadata}
73312
+ */
73313
+ proto.clarifai.api.LogEntry.prototype.getMeta = function() {
73314
+ return /** @type{?proto.clarifai.api.ComputeSourceMetadata} */ (
73315
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeSourceMetadata, 9));
73316
+ };
73317
+
73318
+
73319
+ /**
73320
+ * @param {?proto.clarifai.api.ComputeSourceMetadata|undefined} value
73321
+ * @return {!proto.clarifai.api.LogEntry} returns this
73322
+ */
73323
+ proto.clarifai.api.LogEntry.prototype.setMeta = function(value) {
73324
+ return jspb.Message.setWrapperField(this, 9, value);
73325
+ };
73326
+
73327
+
73328
+ /**
73329
+ * Clears the message field making it undefined.
73330
+ * @return {!proto.clarifai.api.LogEntry} returns this
73331
+ */
73332
+ proto.clarifai.api.LogEntry.prototype.clearMeta = function() {
73333
+ return this.setMeta(undefined);
73334
+ };
73335
+
73336
+
73337
+ /**
73338
+ * Returns whether this field is set.
73339
+ * @return {boolean}
73340
+ */
73341
+ proto.clarifai.api.LogEntry.prototype.hasMeta = function() {
73342
+ return jspb.Message.getField(this, 9) != null;
73343
+ };
73344
+
73345
+
73346
+
73347
+
73348
+
73349
+ if (jspb.Message.GENERATE_TO_OBJECT) {
73350
+ /**
73351
+ * Creates an object representation of this proto.
73352
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
73353
+ * Optional fields that are not set will be set to undefined.
73354
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
73355
+ * For the list of reserved names please see:
73356
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
73357
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
73358
+ * JSPB instance for transitional soy proto support:
73359
+ * http://goto/soy-param-migration
73360
+ * @return {!Object}
73361
+ */
73362
+ proto.clarifai.api.ComputeSourceMetadata.prototype.toObject = function(opt_includeInstance) {
73363
+ return proto.clarifai.api.ComputeSourceMetadata.toObject(opt_includeInstance, this);
73364
+ };
73365
+
73366
+
73367
+ /**
73368
+ * Static version of the {@see toObject} method.
73369
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
73370
+ * the JSPB instance for transitional soy proto support:
73371
+ * http://goto/soy-param-migration
73372
+ * @param {!proto.clarifai.api.ComputeSourceMetadata} msg The msg instance to transform.
73373
+ * @return {!Object}
73374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
73375
+ */
73376
+ proto.clarifai.api.ComputeSourceMetadata.toObject = function(includeInstance, msg) {
73377
+ var f, obj = {
73378
+ userAppId: (f = msg.getUserAppId()) && proto.clarifai.api.UserAppIDSet.toObject(includeInstance, f),
73379
+ modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
73380
+ modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
73381
+ workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
73382
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
73383
+ nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
73384
+ runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
73385
+ };
73386
+
73387
+ if (includeInstance) {
73388
+ obj.$jspbMessageInstance = msg;
73389
+ }
73390
+ return obj;
73391
+ };
73392
+ }
73393
+
73394
+
73395
+ /**
73396
+ * Deserializes binary data (in protobuf wire format).
73397
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
73398
+ * @return {!proto.clarifai.api.ComputeSourceMetadata}
73399
+ */
73400
+ proto.clarifai.api.ComputeSourceMetadata.deserializeBinary = function(bytes) {
73401
+ var reader = new jspb.BinaryReader(bytes);
73402
+ var msg = new proto.clarifai.api.ComputeSourceMetadata;
73403
+ return proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader(msg, reader);
73404
+ };
73405
+
73406
+
73407
+ /**
73408
+ * Deserializes binary data (in protobuf wire format) from the
73409
+ * given reader into the given message object.
73410
+ * @param {!proto.clarifai.api.ComputeSourceMetadata} msg The message object to deserialize into.
73411
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
73412
+ * @return {!proto.clarifai.api.ComputeSourceMetadata}
73413
+ */
73414
+ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function(msg, reader) {
73415
+ while (reader.nextField()) {
73416
+ if (reader.isEndGroup()) {
73417
+ break;
73418
+ }
73419
+ var field = reader.getFieldNumber();
73420
+ switch (field) {
73421
+ case 1:
73422
+ var value = new proto.clarifai.api.UserAppIDSet;
73423
+ reader.readMessage(value,proto.clarifai.api.UserAppIDSet.deserializeBinaryFromReader);
73424
+ msg.setUserAppId(value);
73425
+ break;
73426
+ case 2:
73427
+ var value = /** @type {string} */ (reader.readString());
73428
+ msg.setModelId(value);
73429
+ break;
73430
+ case 3:
73431
+ var value = /** @type {string} */ (reader.readString());
73432
+ msg.setModelVersionId(value);
73433
+ break;
73434
+ case 4:
73435
+ var value = /** @type {string} */ (reader.readString());
73436
+ msg.setWorkflowId(value);
73437
+ break;
73438
+ case 6:
73439
+ var value = /** @type {string} */ (reader.readString());
73440
+ msg.setComputeClusterId(value);
73441
+ break;
73442
+ case 7:
73443
+ var value = /** @type {string} */ (reader.readString());
73444
+ msg.setNodepoolId(value);
73445
+ break;
73446
+ case 8:
73447
+ var value = /** @type {string} */ (reader.readString());
73448
+ msg.setRunnerId(value);
73449
+ break;
73450
+ default:
73451
+ reader.skipField();
73452
+ break;
73453
+ }
73454
+ }
73455
+ return msg;
73456
+ };
73457
+
73458
+
73459
+ /**
73460
+ * Serializes the message to binary data (in protobuf wire format).
73461
+ * @return {!Uint8Array}
73462
+ */
73463
+ proto.clarifai.api.ComputeSourceMetadata.prototype.serializeBinary = function() {
73464
+ var writer = new jspb.BinaryWriter();
73465
+ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter(this, writer);
73466
+ return writer.getResultBuffer();
73467
+ };
73468
+
73469
+
73470
+ /**
73471
+ * Serializes the given message to binary data (in protobuf wire
73472
+ * format), writing to the given BinaryWriter.
73473
+ * @param {!proto.clarifai.api.ComputeSourceMetadata} message
73474
+ * @param {!jspb.BinaryWriter} writer
73475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
73476
+ */
73477
+ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function(message, writer) {
73478
+ var f = undefined;
73479
+ f = message.getUserAppId();
73480
+ if (f != null) {
73481
+ writer.writeMessage(
73482
+ 1,
73483
+ f,
73484
+ proto.clarifai.api.UserAppIDSet.serializeBinaryToWriter
73485
+ );
73486
+ }
73487
+ f = message.getModelId();
73488
+ if (f.length > 0) {
73489
+ writer.writeString(
73490
+ 2,
73491
+ f
73492
+ );
73493
+ }
73494
+ f = message.getModelVersionId();
73495
+ if (f.length > 0) {
73496
+ writer.writeString(
73497
+ 3,
73498
+ f
73499
+ );
73500
+ }
73501
+ f = message.getWorkflowId();
73502
+ if (f.length > 0) {
73503
+ writer.writeString(
73504
+ 4,
73505
+ f
73506
+ );
73507
+ }
73508
+ f = message.getComputeClusterId();
73509
+ if (f.length > 0) {
73510
+ writer.writeString(
73511
+ 6,
73512
+ f
73513
+ );
73514
+ }
73515
+ f = message.getNodepoolId();
73516
+ if (f.length > 0) {
73517
+ writer.writeString(
73518
+ 7,
73519
+ f
73520
+ );
73521
+ }
73522
+ f = message.getRunnerId();
73523
+ if (f.length > 0) {
73524
+ writer.writeString(
73525
+ 8,
73526
+ f
73527
+ );
73528
+ }
73529
+ };
73530
+
73531
+
73532
+ /**
73533
+ * optional UserAppIDSet user_app_id = 1;
73534
+ * @return {?proto.clarifai.api.UserAppIDSet}
73535
+ */
73536
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getUserAppId = function() {
73537
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
73538
+ jspb.Message.getWrapperField(this, proto.clarifai.api.UserAppIDSet, 1));
73539
+ };
73540
+
73541
+
73542
+ /**
73543
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
73544
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73545
+ */
73546
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setUserAppId = function(value) {
73547
+ return jspb.Message.setWrapperField(this, 1, value);
73548
+ };
73549
+
73550
+
73551
+ /**
73552
+ * Clears the message field making it undefined.
73553
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73554
+ */
73555
+ proto.clarifai.api.ComputeSourceMetadata.prototype.clearUserAppId = function() {
73556
+ return this.setUserAppId(undefined);
73557
+ };
73558
+
73559
+
73560
+ /**
73561
+ * Returns whether this field is set.
73562
+ * @return {boolean}
73563
+ */
73564
+ proto.clarifai.api.ComputeSourceMetadata.prototype.hasUserAppId = function() {
73565
+ return jspb.Message.getField(this, 1) != null;
73566
+ };
73567
+
73568
+
73569
+ /**
73570
+ * optional string model_id = 2;
73571
+ * @return {string}
73572
+ */
73573
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getModelId = function() {
73574
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
73575
+ };
73576
+
73577
+
73578
+ /**
73579
+ * @param {string} value
73580
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73581
+ */
73582
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setModelId = function(value) {
73583
+ return jspb.Message.setProto3StringField(this, 2, value);
73584
+ };
73585
+
73586
+
73587
+ /**
73588
+ * optional string model_version_id = 3;
73589
+ * @return {string}
73590
+ */
73591
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getModelVersionId = function() {
73592
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
73593
+ };
73594
+
73595
+
73596
+ /**
73597
+ * @param {string} value
73598
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73599
+ */
73600
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setModelVersionId = function(value) {
73601
+ return jspb.Message.setProto3StringField(this, 3, value);
73602
+ };
73603
+
73604
+
73605
+ /**
73606
+ * optional string workflow_id = 4;
73607
+ * @return {string}
73608
+ */
73609
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getWorkflowId = function() {
73610
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
73611
+ };
73612
+
73613
+
73614
+ /**
73615
+ * @param {string} value
73616
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73617
+ */
73618
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setWorkflowId = function(value) {
73619
+ return jspb.Message.setProto3StringField(this, 4, value);
73620
+ };
73621
+
73622
+
73623
+ /**
73624
+ * optional string compute_cluster_id = 6;
73625
+ * @return {string}
73626
+ */
73627
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getComputeClusterId = function() {
73628
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
73629
+ };
73630
+
73631
+
73632
+ /**
73633
+ * @param {string} value
73634
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73635
+ */
73636
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setComputeClusterId = function(value) {
73637
+ return jspb.Message.setProto3StringField(this, 6, value);
73638
+ };
73639
+
73640
+
73641
+ /**
73642
+ * optional string nodepool_id = 7;
73643
+ * @return {string}
73644
+ */
73645
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getNodepoolId = function() {
73646
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
73647
+ };
73648
+
73649
+
73650
+ /**
73651
+ * @param {string} value
73652
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73653
+ */
73654
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setNodepoolId = function(value) {
73655
+ return jspb.Message.setProto3StringField(this, 7, value);
73656
+ };
73657
+
73658
+
73659
+ /**
73660
+ * optional string runner_id = 8;
73661
+ * @return {string}
73662
+ */
73663
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getRunnerId = function() {
73664
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
73665
+ };
73666
+
73667
+
73668
+ /**
73669
+ * @param {string} value
73670
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
73671
+ */
73672
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function(value) {
73673
+ return jspb.Message.setProto3StringField(this, 8, value);
73674
+ };
73675
+
73676
+
72815
73677
  /**
72816
73678
  * @enum {number}
72817
73679
  */
@@ -73034,7 +73896,13 @@ proto.clarifai.api.EventType = {
73034
73896
  ORGANIZATION_TEAM_MEMBER_ADD: 110,
73035
73897
  ORGANIZATION_TEAM_MEMBER_REMOVE: 111,
73036
73898
  ORGANIZATION_TEAM_APP_ADD: 112,
73037
- ORGANIZATION_TEAM_APP_REMOVE: 113
73899
+ ORGANIZATION_TEAM_APP_REMOVE: 113,
73900
+ MODULE_CREATE: 200,
73901
+ MODULE_UPDATE: 201,
73902
+ MODULE_DELETE: 202,
73903
+ MODULE_VERSION_CREATE: 203,
73904
+ MODULE_VERSION_UPDATE: 204,
73905
+ MODULE_VERSION_DELETE: 205
73038
73906
  };
73039
73907
 
73040
73908
  goog.object.extend(exports, proto.clarifai.api);