clarifai-web-grpc 11.2.2 → 11.2.4

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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.2.2
1
+ 11.2.4
@@ -185,6 +185,7 @@ goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
185
185
  goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
186
186
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
187
187
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
188
+ goog.exportSymbol('proto.clarifai.api.MethodSignature', null, global);
188
189
  goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
189
190
  goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
190
191
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
@@ -199,6 +200,7 @@ goog.exportSymbol('proto.clarifai.api.ModelType', null, global);
199
200
  goog.exportSymbol('proto.clarifai.api.ModelTypeEnumOption', null, global);
200
201
  goog.exportSymbol('proto.clarifai.api.ModelTypeEnumOptionAlias', null, global);
201
202
  goog.exportSymbol('proto.clarifai.api.ModelTypeField', null, global);
203
+ goog.exportSymbol('proto.clarifai.api.ModelTypeField.DataType', null, global);
202
204
  goog.exportSymbol('proto.clarifai.api.ModelTypeField.ModelTypeFieldType', null, global);
203
205
  goog.exportSymbol('proto.clarifai.api.ModelTypeRangeInfo', null, global);
204
206
  goog.exportSymbol('proto.clarifai.api.ModelVersion', null, global);
@@ -2061,7 +2063,7 @@ if (goog.DEBUG && !COMPILED) {
2061
2063
  * @constructor
2062
2064
  */
2063
2065
  proto.clarifai.api.ModelVersion = function (opt_data) {
2064
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2066
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ModelVersion.repeatedFields_, null);
2065
2067
  };
2066
2068
  goog.inherits(proto.clarifai.api.ModelVersion, jspb.Message);
2067
2069
  if (goog.DEBUG && !COMPILED) {
@@ -2071,6 +2073,27 @@ if (goog.DEBUG && !COMPILED) {
2071
2073
  */
2072
2074
  proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
2073
2075
  }
2076
+ /**
2077
+ * Generated by JsPbCodeGenerator.
2078
+ * @param {Array=} opt_data Optional initial data array, typically from a
2079
+ * server response, or constructed directly in Javascript. The array is used
2080
+ * in place and becomes part of the constructed object. It is not cloned.
2081
+ * If no data is provided, the constructed object will be empty, but still
2082
+ * valid.
2083
+ * @extends {jspb.Message}
2084
+ * @constructor
2085
+ */
2086
+ proto.clarifai.api.MethodSignature = function (opt_data) {
2087
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MethodSignature.repeatedFields_, null);
2088
+ };
2089
+ goog.inherits(proto.clarifai.api.MethodSignature, jspb.Message);
2090
+ if (goog.DEBUG && !COMPILED) {
2091
+ /**
2092
+ * @public
2093
+ * @override
2094
+ */
2095
+ proto.clarifai.api.MethodSignature.displayName = 'proto.clarifai.api.MethodSignature';
2096
+ }
2074
2097
  /**
2075
2098
  * Generated by JsPbCodeGenerator.
2076
2099
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -23792,7 +23815,7 @@ proto.clarifai.api.OutputConfig.prototype.hasModelMetadata = function () {
23792
23815
  * @private {!Array<number>}
23793
23816
  * @const
23794
23817
  */
23795
- proto.clarifai.api.ModelType.repeatedFields_ = [5, 6, 11, 16, 17];
23818
+ proto.clarifai.api.ModelType.repeatedFields_ = [5, 6, 11, 16, 17, 19];
23796
23819
  if (jspb.Message.GENERATE_TO_OBJECT) {
23797
23820
  /**
23798
23821
  * Creates an object representation of this proto.
@@ -23832,7 +23855,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
23832
23855
  requiresSequentialFrames: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
23833
23856
  expectedInputLayersList: jspb.Message.toObjectList(msg.getExpectedInputLayersList(), proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
23834
23857
  expectedOutputLayersList: jspb.Message.toObjectList(msg.getExpectedOutputLayersList(), proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
23835
- evaluationType: jspb.Message.getFieldWithDefault(msg, 18, 0)
23858
+ evaluationType: jspb.Message.getFieldWithDefault(msg, 18, 0),
23859
+ methodSignaturesList: jspb.Message.toObjectList(msg.getMethodSignaturesList(), proto.clarifai.api.MethodSignature.toObject, includeInstance)
23836
23860
  };
23837
23861
  if (includeInstance) {
23838
23862
  obj.$jspbMessageInstance = msg;
@@ -23919,6 +23943,11 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function (msg, reader
23919
23943
  var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum());
23920
23944
  msg.setEvaluationType(value);
23921
23945
  break;
23946
+ case 19:
23947
+ var value = new proto.clarifai.api.MethodSignature;
23948
+ reader.readMessage(value, proto.clarifai.api.MethodSignature.deserializeBinaryFromReader);
23949
+ msg.addMethodSignatures(value);
23950
+ break;
23922
23951
  default:
23923
23952
  reader.skipField();
23924
23953
  break;
@@ -23996,6 +24025,10 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function (message, writer
23996
24025
  if (f !== 0.0) {
23997
24026
  writer.writeEnum(18, f);
23998
24027
  }
24028
+ f = message.getMethodSignaturesList();
24029
+ if (f.length > 0) {
24030
+ writer.writeRepeatedMessage(19, f, proto.clarifai.api.MethodSignature.serializeBinaryToWriter);
24031
+ }
23999
24032
  };
24000
24033
  /**
24001
24034
  * optional string id = 1;
@@ -24254,6 +24287,35 @@ proto.clarifai.api.ModelType.prototype.getEvaluationType = function () {
24254
24287
  proto.clarifai.api.ModelType.prototype.setEvaluationType = function (value) {
24255
24288
  return jspb.Message.setProto3EnumField(this, 18, value);
24256
24289
  };
24290
+ /**
24291
+ * repeated MethodSignature method_signatures = 19;
24292
+ * @return {!Array<!proto.clarifai.api.MethodSignature>}
24293
+ */
24294
+ proto.clarifai.api.ModelType.prototype.getMethodSignaturesList = function () {
24295
+ return /** @type{!Array<!proto.clarifai.api.MethodSignature>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MethodSignature, 19));
24296
+ };
24297
+ /**
24298
+ * @param {!Array<!proto.clarifai.api.MethodSignature>} value
24299
+ * @return {!proto.clarifai.api.ModelType} returns this
24300
+ */
24301
+ proto.clarifai.api.ModelType.prototype.setMethodSignaturesList = function (value) {
24302
+ return jspb.Message.setRepeatedWrapperField(this, 19, value);
24303
+ };
24304
+ /**
24305
+ * @param {!proto.clarifai.api.MethodSignature=} opt_value
24306
+ * @param {number=} opt_index
24307
+ * @return {!proto.clarifai.api.MethodSignature}
24308
+ */
24309
+ proto.clarifai.api.ModelType.prototype.addMethodSignatures = function (opt_value, opt_index) {
24310
+ return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.clarifai.api.MethodSignature, opt_index);
24311
+ };
24312
+ /**
24313
+ * Clears the list making it empty but non-null.
24314
+ * @return {!proto.clarifai.api.ModelType} returns this
24315
+ */
24316
+ proto.clarifai.api.ModelType.prototype.clearMethodSignaturesList = function () {
24317
+ return this.setMethodSignaturesList([]);
24318
+ };
24257
24319
  /**
24258
24320
  * List of repeated fields within this message type.
24259
24321
  * @private {!Array<number>}
@@ -24803,7 +24865,7 @@ proto.clarifai.api.LayerShape.prototype.setDescription = function (value) {
24803
24865
  * @private {!Array<number>}
24804
24866
  * @const
24805
24867
  */
24806
- proto.clarifai.api.ModelTypeField.repeatedFields_ = [6];
24868
+ proto.clarifai.api.ModelTypeField.repeatedFields_ = [6, 12];
24807
24869
  if (jspb.Message.GENERATE_TO_OBJECT) {
24808
24870
  /**
24809
24871
  * Creates an object representation of this proto.
@@ -24839,7 +24901,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
24839
24901
  modelTypeEnumOptionsList: jspb.Message.toObjectList(msg.getModelTypeEnumOptionsList(), proto.clarifai.api.ModelTypeEnumOption.toObject, includeInstance),
24840
24902
  internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
24841
24903
  required: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
24842
- modelTypeRangeInfo: (f = msg.getModelTypeRangeInfo()) && proto.clarifai.api.ModelTypeRangeInfo.toObject(includeInstance, f)
24904
+ modelTypeRangeInfo: (f = msg.getModelTypeRangeInfo()) && proto.clarifai.api.ModelTypeRangeInfo.toObject(includeInstance, f),
24905
+ name: jspb.Message.getFieldWithDefault(msg, 10, ""),
24906
+ type: jspb.Message.getFieldWithDefault(msg, 11, 0),
24907
+ typeArgsList: jspb.Message.toObjectList(msg.getTypeArgsList(), proto.clarifai.api.ModelTypeField.toObject, includeInstance),
24908
+ iterator: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
24909
+ pb_default: jspb.Message.getFieldWithDefault(msg, 14, "")
24843
24910
  };
24844
24911
  if (includeInstance) {
24845
24912
  obj.$jspbMessageInstance = msg;
@@ -24910,6 +24977,27 @@ proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader = function (msg, r
24910
24977
  reader.readMessage(value, proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader);
24911
24978
  msg.setModelTypeRangeInfo(value);
24912
24979
  break;
24980
+ case 10:
24981
+ var value = /** @type {string} */ (reader.readString());
24982
+ msg.setName(value);
24983
+ break;
24984
+ case 11:
24985
+ var value = /** @type {!proto.clarifai.api.ModelTypeField.DataType} */ (reader.readEnum());
24986
+ msg.setType(value);
24987
+ break;
24988
+ case 12:
24989
+ var value = new proto.clarifai.api.ModelTypeField;
24990
+ reader.readMessage(value, proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader);
24991
+ msg.addTypeArgs(value);
24992
+ break;
24993
+ case 13:
24994
+ var value = /** @type {boolean} */ (reader.readBool());
24995
+ msg.setIterator(value);
24996
+ break;
24997
+ case 14:
24998
+ var value = /** @type {string} */ (reader.readString());
24999
+ msg.setDefault(value);
25000
+ break;
24913
25001
  default:
24914
25002
  reader.skipField();
24915
25003
  break;
@@ -24971,6 +25059,26 @@ proto.clarifai.api.ModelTypeField.serializeBinaryToWriter = function (message, w
24971
25059
  if (f != null) {
24972
25060
  writer.writeMessage(9, f, proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter);
24973
25061
  }
25062
+ f = message.getName();
25063
+ if (f.length > 0) {
25064
+ writer.writeString(10, f);
25065
+ }
25066
+ f = message.getType();
25067
+ if (f !== 0.0) {
25068
+ writer.writeEnum(11, f);
25069
+ }
25070
+ f = message.getTypeArgsList();
25071
+ if (f.length > 0) {
25072
+ writer.writeRepeatedMessage(12, f, proto.clarifai.api.ModelTypeField.serializeBinaryToWriter);
25073
+ }
25074
+ f = message.getIterator();
25075
+ if (f) {
25076
+ writer.writeBool(13, f);
25077
+ }
25078
+ f = message.getDefault();
25079
+ if (f.length > 0) {
25080
+ writer.writeString(14, f);
25081
+ }
24974
25082
  };
24975
25083
  /**
24976
25084
  * @enum {number}
@@ -24999,6 +25107,29 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
24999
25107
  ENCRYPTED_STRING: 21,
25000
25108
  CHECKPOINT_MODEL: 22
25001
25109
  };
25110
+ /**
25111
+ * @enum {number}
25112
+ */
25113
+ proto.clarifai.api.ModelTypeField.DataType = {
25114
+ NOT_SET: 0,
25115
+ STR: 1,
25116
+ BYTES: 2,
25117
+ INT: 3,
25118
+ FLOAT: 4,
25119
+ BOOL: 5,
25120
+ NDARRAY: 6,
25121
+ JSON_DATA: 7,
25122
+ TEXT: 8,
25123
+ IMAGE: 9,
25124
+ CONCEPT: 10,
25125
+ REGION: 11,
25126
+ FRAME: 12,
25127
+ AUDIO: 13,
25128
+ VIDEO: 14,
25129
+ NAMED_FIELDS: 20,
25130
+ TUPLE: 21,
25131
+ LIST: 22
25132
+ };
25002
25133
  /**
25003
25134
  * optional string path = 1;
25004
25135
  * @return {string}
@@ -25168,6 +25299,91 @@ proto.clarifai.api.ModelTypeField.prototype.clearModelTypeRangeInfo = function (
25168
25299
  proto.clarifai.api.ModelTypeField.prototype.hasModelTypeRangeInfo = function () {
25169
25300
  return jspb.Message.getField(this, 9) != null;
25170
25301
  };
25302
+ /**
25303
+ * optional string name = 10;
25304
+ * @return {string}
25305
+ */
25306
+ proto.clarifai.api.ModelTypeField.prototype.getName = function () {
25307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
25308
+ };
25309
+ /**
25310
+ * @param {string} value
25311
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
25312
+ */
25313
+ proto.clarifai.api.ModelTypeField.prototype.setName = function (value) {
25314
+ return jspb.Message.setProto3StringField(this, 10, value);
25315
+ };
25316
+ /**
25317
+ * optional DataType type = 11;
25318
+ * @return {!proto.clarifai.api.ModelTypeField.DataType}
25319
+ */
25320
+ proto.clarifai.api.ModelTypeField.prototype.getType = function () {
25321
+ return /** @type {!proto.clarifai.api.ModelTypeField.DataType} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
25322
+ };
25323
+ /**
25324
+ * @param {!proto.clarifai.api.ModelTypeField.DataType} value
25325
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
25326
+ */
25327
+ proto.clarifai.api.ModelTypeField.prototype.setType = function (value) {
25328
+ return jspb.Message.setProto3EnumField(this, 11, value);
25329
+ };
25330
+ /**
25331
+ * repeated ModelTypeField type_args = 12;
25332
+ * @return {!Array<!proto.clarifai.api.ModelTypeField>}
25333
+ */
25334
+ proto.clarifai.api.ModelTypeField.prototype.getTypeArgsList = function () {
25335
+ return /** @type{!Array<!proto.clarifai.api.ModelTypeField>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 12));
25336
+ };
25337
+ /**
25338
+ * @param {!Array<!proto.clarifai.api.ModelTypeField>} value
25339
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
25340
+ */
25341
+ proto.clarifai.api.ModelTypeField.prototype.setTypeArgsList = function (value) {
25342
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
25343
+ };
25344
+ /**
25345
+ * @param {!proto.clarifai.api.ModelTypeField=} opt_value
25346
+ * @param {number=} opt_index
25347
+ * @return {!proto.clarifai.api.ModelTypeField}
25348
+ */
25349
+ proto.clarifai.api.ModelTypeField.prototype.addTypeArgs = function (opt_value, opt_index) {
25350
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.ModelTypeField, opt_index);
25351
+ };
25352
+ /**
25353
+ * Clears the list making it empty but non-null.
25354
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
25355
+ */
25356
+ proto.clarifai.api.ModelTypeField.prototype.clearTypeArgsList = function () {
25357
+ return this.setTypeArgsList([]);
25358
+ };
25359
+ /**
25360
+ * optional bool iterator = 13;
25361
+ * @return {boolean}
25362
+ */
25363
+ proto.clarifai.api.ModelTypeField.prototype.getIterator = function () {
25364
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
25365
+ };
25366
+ /**
25367
+ * @param {boolean} value
25368
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
25369
+ */
25370
+ proto.clarifai.api.ModelTypeField.prototype.setIterator = function (value) {
25371
+ return jspb.Message.setProto3BooleanField(this, 13, value);
25372
+ };
25373
+ /**
25374
+ * optional string default = 14;
25375
+ * @return {string}
25376
+ */
25377
+ proto.clarifai.api.ModelTypeField.prototype.getDefault = function () {
25378
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
25379
+ };
25380
+ /**
25381
+ * @param {string} value
25382
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
25383
+ */
25384
+ proto.clarifai.api.ModelTypeField.prototype.setDefault = function (value) {
25385
+ return jspb.Message.setProto3StringField(this, 14, value);
25386
+ };
25171
25387
  if (jspb.Message.GENERATE_TO_OBJECT) {
25172
25388
  /**
25173
25389
  * Creates an object representation of this proto.
@@ -25841,6 +26057,12 @@ proto.clarifai.api.ModelQuery.prototype.getModelTypeId = function () {
25841
26057
  proto.clarifai.api.ModelQuery.prototype.setModelTypeId = function (value) {
25842
26058
  return jspb.Message.setProto3StringField(this, 3, value);
25843
26059
  };
26060
+ /**
26061
+ * List of repeated fields within this message type.
26062
+ * @private {!Array<number>}
26063
+ * @const
26064
+ */
26065
+ proto.clarifai.api.ModelVersion.repeatedFields_ = [26];
25844
26066
  if (jspb.Message.GENERATE_TO_OBJECT) {
25845
26067
  /**
25846
26068
  * Creates an object representation of this proto.
@@ -25889,7 +26111,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
25889
26111
  importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f),
25890
26112
  trainLog: jspb.Message.getFieldWithDefault(msg, 23, ""),
25891
26113
  inferenceComputeInfo: (f = msg.getInferenceComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
25892
- buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f)
26114
+ buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f),
26115
+ methodSignaturesList: jspb.Message.toObjectList(msg.getMethodSignaturesList(), proto.clarifai.api.MethodSignature.toObject, includeInstance)
25893
26116
  };
25894
26117
  if (includeInstance) {
25895
26118
  obj.$jspbMessageInstance = msg;
@@ -26023,6 +26246,11 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function (msg, rea
26023
26246
  reader.readMessage(value, proto.clarifai.api.BuildInfo.deserializeBinaryFromReader);
26024
26247
  msg.setBuildInfo(value);
26025
26248
  break;
26249
+ case 26:
26250
+ var value = new proto.clarifai.api.MethodSignature;
26251
+ reader.readMessage(value, proto.clarifai.api.MethodSignature.deserializeBinaryFromReader);
26252
+ msg.addMethodSignatures(value);
26253
+ break;
26026
26254
  default:
26027
26255
  reader.skipField();
26028
26256
  break;
@@ -26136,6 +26364,10 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function (message, wri
26136
26364
  if (f != null) {
26137
26365
  writer.writeMessage(25, f, proto.clarifai.api.BuildInfo.serializeBinaryToWriter);
26138
26366
  }
26367
+ f = message.getMethodSignaturesList();
26368
+ if (f.length > 0) {
26369
+ writer.writeRepeatedMessage(26, f, proto.clarifai.api.MethodSignature.serializeBinaryToWriter);
26370
+ }
26139
26371
  };
26140
26372
  /**
26141
26373
  * optional string id = 1;
@@ -26641,6 +26873,272 @@ proto.clarifai.api.ModelVersion.prototype.clearBuildInfo = function () {
26641
26873
  proto.clarifai.api.ModelVersion.prototype.hasBuildInfo = function () {
26642
26874
  return jspb.Message.getField(this, 25) != null;
26643
26875
  };
26876
+ /**
26877
+ * repeated MethodSignature method_signatures = 26;
26878
+ * @return {!Array<!proto.clarifai.api.MethodSignature>}
26879
+ */
26880
+ proto.clarifai.api.ModelVersion.prototype.getMethodSignaturesList = function () {
26881
+ return /** @type{!Array<!proto.clarifai.api.MethodSignature>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MethodSignature, 26));
26882
+ };
26883
+ /**
26884
+ * @param {!Array<!proto.clarifai.api.MethodSignature>} value
26885
+ * @return {!proto.clarifai.api.ModelVersion} returns this
26886
+ */
26887
+ proto.clarifai.api.ModelVersion.prototype.setMethodSignaturesList = function (value) {
26888
+ return jspb.Message.setRepeatedWrapperField(this, 26, value);
26889
+ };
26890
+ /**
26891
+ * @param {!proto.clarifai.api.MethodSignature=} opt_value
26892
+ * @param {number=} opt_index
26893
+ * @return {!proto.clarifai.api.MethodSignature}
26894
+ */
26895
+ proto.clarifai.api.ModelVersion.prototype.addMethodSignatures = function (opt_value, opt_index) {
26896
+ return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.clarifai.api.MethodSignature, opt_index);
26897
+ };
26898
+ /**
26899
+ * Clears the list making it empty but non-null.
26900
+ * @return {!proto.clarifai.api.ModelVersion} returns this
26901
+ */
26902
+ proto.clarifai.api.ModelVersion.prototype.clearMethodSignaturesList = function () {
26903
+ return this.setMethodSignaturesList([]);
26904
+ };
26905
+ /**
26906
+ * List of repeated fields within this message type.
26907
+ * @private {!Array<number>}
26908
+ * @const
26909
+ */
26910
+ proto.clarifai.api.MethodSignature.repeatedFields_ = [4, 5];
26911
+ if (jspb.Message.GENERATE_TO_OBJECT) {
26912
+ /**
26913
+ * Creates an object representation of this proto.
26914
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
26915
+ * Optional fields that are not set will be set to undefined.
26916
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
26917
+ * For the list of reserved names please see:
26918
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
26919
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
26920
+ * JSPB instance for transitional soy proto support:
26921
+ * http://goto/soy-param-migration
26922
+ * @return {!Object}
26923
+ */
26924
+ proto.clarifai.api.MethodSignature.prototype.toObject = function (opt_includeInstance) {
26925
+ return proto.clarifai.api.MethodSignature.toObject(opt_includeInstance, this);
26926
+ };
26927
+ /**
26928
+ * Static version of the {@see toObject} method.
26929
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
26930
+ * the JSPB instance for transitional soy proto support:
26931
+ * http://goto/soy-param-migration
26932
+ * @param {!proto.clarifai.api.MethodSignature} msg The msg instance to transform.
26933
+ * @return {!Object}
26934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
26935
+ */
26936
+ proto.clarifai.api.MethodSignature.toObject = function (includeInstance, msg) {
26937
+ var f, obj = {
26938
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
26939
+ methodType: jspb.Message.getFieldWithDefault(msg, 2, 0),
26940
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
26941
+ inputFieldsList: jspb.Message.toObjectList(msg.getInputFieldsList(), proto.clarifai.api.ModelTypeField.toObject, includeInstance),
26942
+ outputFieldsList: jspb.Message.toObjectList(msg.getOutputFieldsList(), proto.clarifai.api.ModelTypeField.toObject, includeInstance)
26943
+ };
26944
+ if (includeInstance) {
26945
+ obj.$jspbMessageInstance = msg;
26946
+ }
26947
+ return obj;
26948
+ };
26949
+ }
26950
+ /**
26951
+ * Deserializes binary data (in protobuf wire format).
26952
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
26953
+ * @return {!proto.clarifai.api.MethodSignature}
26954
+ */
26955
+ proto.clarifai.api.MethodSignature.deserializeBinary = function (bytes) {
26956
+ var reader = new jspb.BinaryReader(bytes);
26957
+ var msg = new proto.clarifai.api.MethodSignature;
26958
+ return proto.clarifai.api.MethodSignature.deserializeBinaryFromReader(msg, reader);
26959
+ };
26960
+ /**
26961
+ * Deserializes binary data (in protobuf wire format) from the
26962
+ * given reader into the given message object.
26963
+ * @param {!proto.clarifai.api.MethodSignature} msg The message object to deserialize into.
26964
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
26965
+ * @return {!proto.clarifai.api.MethodSignature}
26966
+ */
26967
+ proto.clarifai.api.MethodSignature.deserializeBinaryFromReader = function (msg, reader) {
26968
+ while (reader.nextField()) {
26969
+ if (reader.isEndGroup()) {
26970
+ break;
26971
+ }
26972
+ var field = reader.getFieldNumber();
26973
+ switch (field) {
26974
+ case 1:
26975
+ var value = /** @type {string} */ (reader.readString());
26976
+ msg.setName(value);
26977
+ break;
26978
+ case 2:
26979
+ var value = /** @type {!proto.clarifai.api.RunnerMethodType} */ (reader.readEnum());
26980
+ msg.setMethodType(value);
26981
+ break;
26982
+ case 3:
26983
+ var value = /** @type {string} */ (reader.readString());
26984
+ msg.setDescription(value);
26985
+ break;
26986
+ case 4:
26987
+ var value = new proto.clarifai.api.ModelTypeField;
26988
+ reader.readMessage(value, proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader);
26989
+ msg.addInputFields(value);
26990
+ break;
26991
+ case 5:
26992
+ var value = new proto.clarifai.api.ModelTypeField;
26993
+ reader.readMessage(value, proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader);
26994
+ msg.addOutputFields(value);
26995
+ break;
26996
+ default:
26997
+ reader.skipField();
26998
+ break;
26999
+ }
27000
+ }
27001
+ return msg;
27002
+ };
27003
+ /**
27004
+ * Serializes the message to binary data (in protobuf wire format).
27005
+ * @return {!Uint8Array}
27006
+ */
27007
+ proto.clarifai.api.MethodSignature.prototype.serializeBinary = function () {
27008
+ var writer = new jspb.BinaryWriter();
27009
+ proto.clarifai.api.MethodSignature.serializeBinaryToWriter(this, writer);
27010
+ return writer.getResultBuffer();
27011
+ };
27012
+ /**
27013
+ * Serializes the given message to binary data (in protobuf wire
27014
+ * format), writing to the given BinaryWriter.
27015
+ * @param {!proto.clarifai.api.MethodSignature} message
27016
+ * @param {!jspb.BinaryWriter} writer
27017
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27018
+ */
27019
+ proto.clarifai.api.MethodSignature.serializeBinaryToWriter = function (message, writer) {
27020
+ var f = undefined;
27021
+ f = message.getName();
27022
+ if (f.length > 0) {
27023
+ writer.writeString(1, f);
27024
+ }
27025
+ f = message.getMethodType();
27026
+ if (f !== 0.0) {
27027
+ writer.writeEnum(2, f);
27028
+ }
27029
+ f = message.getDescription();
27030
+ if (f.length > 0) {
27031
+ writer.writeString(3, f);
27032
+ }
27033
+ f = message.getInputFieldsList();
27034
+ if (f.length > 0) {
27035
+ writer.writeRepeatedMessage(4, f, proto.clarifai.api.ModelTypeField.serializeBinaryToWriter);
27036
+ }
27037
+ f = message.getOutputFieldsList();
27038
+ if (f.length > 0) {
27039
+ writer.writeRepeatedMessage(5, f, proto.clarifai.api.ModelTypeField.serializeBinaryToWriter);
27040
+ }
27041
+ };
27042
+ /**
27043
+ * optional string name = 1;
27044
+ * @return {string}
27045
+ */
27046
+ proto.clarifai.api.MethodSignature.prototype.getName = function () {
27047
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
27048
+ };
27049
+ /**
27050
+ * @param {string} value
27051
+ * @return {!proto.clarifai.api.MethodSignature} returns this
27052
+ */
27053
+ proto.clarifai.api.MethodSignature.prototype.setName = function (value) {
27054
+ return jspb.Message.setProto3StringField(this, 1, value);
27055
+ };
27056
+ /**
27057
+ * optional RunnerMethodType method_type = 2;
27058
+ * @return {!proto.clarifai.api.RunnerMethodType}
27059
+ */
27060
+ proto.clarifai.api.MethodSignature.prototype.getMethodType = function () {
27061
+ return /** @type {!proto.clarifai.api.RunnerMethodType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
27062
+ };
27063
+ /**
27064
+ * @param {!proto.clarifai.api.RunnerMethodType} value
27065
+ * @return {!proto.clarifai.api.MethodSignature} returns this
27066
+ */
27067
+ proto.clarifai.api.MethodSignature.prototype.setMethodType = function (value) {
27068
+ return jspb.Message.setProto3EnumField(this, 2, value);
27069
+ };
27070
+ /**
27071
+ * optional string description = 3;
27072
+ * @return {string}
27073
+ */
27074
+ proto.clarifai.api.MethodSignature.prototype.getDescription = function () {
27075
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
27076
+ };
27077
+ /**
27078
+ * @param {string} value
27079
+ * @return {!proto.clarifai.api.MethodSignature} returns this
27080
+ */
27081
+ proto.clarifai.api.MethodSignature.prototype.setDescription = function (value) {
27082
+ return jspb.Message.setProto3StringField(this, 3, value);
27083
+ };
27084
+ /**
27085
+ * repeated ModelTypeField input_fields = 4;
27086
+ * @return {!Array<!proto.clarifai.api.ModelTypeField>}
27087
+ */
27088
+ proto.clarifai.api.MethodSignature.prototype.getInputFieldsList = function () {
27089
+ return /** @type{!Array<!proto.clarifai.api.ModelTypeField>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 4));
27090
+ };
27091
+ /**
27092
+ * @param {!Array<!proto.clarifai.api.ModelTypeField>} value
27093
+ * @return {!proto.clarifai.api.MethodSignature} returns this
27094
+ */
27095
+ proto.clarifai.api.MethodSignature.prototype.setInputFieldsList = function (value) {
27096
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
27097
+ };
27098
+ /**
27099
+ * @param {!proto.clarifai.api.ModelTypeField=} opt_value
27100
+ * @param {number=} opt_index
27101
+ * @return {!proto.clarifai.api.ModelTypeField}
27102
+ */
27103
+ proto.clarifai.api.MethodSignature.prototype.addInputFields = function (opt_value, opt_index) {
27104
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.ModelTypeField, opt_index);
27105
+ };
27106
+ /**
27107
+ * Clears the list making it empty but non-null.
27108
+ * @return {!proto.clarifai.api.MethodSignature} returns this
27109
+ */
27110
+ proto.clarifai.api.MethodSignature.prototype.clearInputFieldsList = function () {
27111
+ return this.setInputFieldsList([]);
27112
+ };
27113
+ /**
27114
+ * repeated ModelTypeField output_fields = 5;
27115
+ * @return {!Array<!proto.clarifai.api.ModelTypeField>}
27116
+ */
27117
+ proto.clarifai.api.MethodSignature.prototype.getOutputFieldsList = function () {
27118
+ return /** @type{!Array<!proto.clarifai.api.ModelTypeField>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 5));
27119
+ };
27120
+ /**
27121
+ * @param {!Array<!proto.clarifai.api.ModelTypeField>} value
27122
+ * @return {!proto.clarifai.api.MethodSignature} returns this
27123
+ */
27124
+ proto.clarifai.api.MethodSignature.prototype.setOutputFieldsList = function (value) {
27125
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
27126
+ };
27127
+ /**
27128
+ * @param {!proto.clarifai.api.ModelTypeField=} opt_value
27129
+ * @param {number=} opt_index
27130
+ * @return {!proto.clarifai.api.ModelTypeField}
27131
+ */
27132
+ proto.clarifai.api.MethodSignature.prototype.addOutputFields = function (opt_value, opt_index) {
27133
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.ModelTypeField, opt_index);
27134
+ };
27135
+ /**
27136
+ * Clears the list making it empty but non-null.
27137
+ * @return {!proto.clarifai.api.MethodSignature} returns this
27138
+ */
27139
+ proto.clarifai.api.MethodSignature.prototype.clearOutputFieldsList = function () {
27140
+ return this.setOutputFieldsList([]);
27141
+ };
26644
27142
  if (jspb.Message.GENERATE_TO_OBJECT) {
26645
27143
  /**
26646
27144
  * Creates an object representation of this proto.
@@ -360,6 +360,7 @@ proto.clarifai.api.status.StatusCode = {
360
360
  FEATUREFLAG_CONFIG_NOT_FOUND: 62000,
361
361
  FEATUREFLAG_INVALID_ARGUMENT: 62001,
362
362
  FEATUREFLAG_BLOCKED: 62002,
363
+ FEATUREFLAG_NOT_FOUND: 62003,
363
364
  MAINTENANCE_SUCCESS: 63000,
364
365
  MAINTENANCE_FAILED: 63001,
365
366
  DATASET_VERSION_PENDING: 64005,