clarifai-web-grpc 11.2.1 → 11.2.3

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.
@@ -187,6 +187,7 @@ goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
187
187
  goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
188
188
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
189
189
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
190
+ goog.exportSymbol('proto.clarifai.api.MethodSignature', null, global);
190
191
  goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
191
192
  goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
192
193
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
@@ -201,6 +202,7 @@ goog.exportSymbol('proto.clarifai.api.ModelType', null, global);
201
202
  goog.exportSymbol('proto.clarifai.api.ModelTypeEnumOption', null, global);
202
203
  goog.exportSymbol('proto.clarifai.api.ModelTypeEnumOptionAlias', null, global);
203
204
  goog.exportSymbol('proto.clarifai.api.ModelTypeField', null, global);
205
+ goog.exportSymbol('proto.clarifai.api.ModelTypeField.DataType', null, global);
204
206
  goog.exportSymbol('proto.clarifai.api.ModelTypeField.ModelTypeFieldType', null, global);
205
207
  goog.exportSymbol('proto.clarifai.api.ModelTypeRangeInfo', null, global);
206
208
  goog.exportSymbol('proto.clarifai.api.ModelVersion', null, global);
@@ -2063,7 +2065,7 @@ if (goog.DEBUG && !COMPILED) {
2063
2065
  * @constructor
2064
2066
  */
2065
2067
  proto.clarifai.api.ModelVersion = function(opt_data) {
2066
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2068
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ModelVersion.repeatedFields_, null);
2067
2069
  };
2068
2070
  goog.inherits(proto.clarifai.api.ModelVersion, jspb.Message);
2069
2071
  if (goog.DEBUG && !COMPILED) {
@@ -2073,6 +2075,27 @@ if (goog.DEBUG && !COMPILED) {
2073
2075
  */
2074
2076
  proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
2075
2077
  }
2078
+ /**
2079
+ * Generated by JsPbCodeGenerator.
2080
+ * @param {Array=} opt_data Optional initial data array, typically from a
2081
+ * server response, or constructed directly in Javascript. The array is used
2082
+ * in place and becomes part of the constructed object. It is not cloned.
2083
+ * If no data is provided, the constructed object will be empty, but still
2084
+ * valid.
2085
+ * @extends {jspb.Message}
2086
+ * @constructor
2087
+ */
2088
+ proto.clarifai.api.MethodSignature = function(opt_data) {
2089
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MethodSignature.repeatedFields_, null);
2090
+ };
2091
+ goog.inherits(proto.clarifai.api.MethodSignature, jspb.Message);
2092
+ if (goog.DEBUG && !COMPILED) {
2093
+ /**
2094
+ * @public
2095
+ * @override
2096
+ */
2097
+ proto.clarifai.api.MethodSignature.displayName = 'proto.clarifai.api.MethodSignature';
2098
+ }
2076
2099
  /**
2077
2100
  * Generated by JsPbCodeGenerator.
2078
2101
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -28947,7 +28970,7 @@ proto.clarifai.api.OutputConfig.prototype.hasModelMetadata = function() {
28947
28970
  * @private {!Array<number>}
28948
28971
  * @const
28949
28972
  */
28950
- proto.clarifai.api.ModelType.repeatedFields_ = [5,6,11,16,17];
28973
+ proto.clarifai.api.ModelType.repeatedFields_ = [5,6,11,16,17,19];
28951
28974
 
28952
28975
 
28953
28976
 
@@ -28995,7 +29018,9 @@ proto.clarifai.api.ModelType.toObject = function(includeInstance, msg) {
28995
29018
  proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
28996
29019
  expectedOutputLayersList: jspb.Message.toObjectList(msg.getExpectedOutputLayersList(),
28997
29020
  proto.clarifai.api.ModelLayerInfo.toObject, includeInstance),
28998
- evaluationType: jspb.Message.getFieldWithDefault(msg, 18, 0)
29021
+ evaluationType: jspb.Message.getFieldWithDefault(msg, 18, 0),
29022
+ methodSignaturesList: jspb.Message.toObjectList(msg.getMethodSignaturesList(),
29023
+ proto.clarifai.api.MethodSignature.toObject, includeInstance)
28999
29024
  };
29000
29025
 
29001
29026
  if (includeInstance) {
@@ -29087,6 +29112,11 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function(msg, reader)
29087
29112
  var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum());
29088
29113
  msg.setEvaluationType(value);
29089
29114
  break;
29115
+ case 19:
29116
+ var value = new proto.clarifai.api.MethodSignature;
29117
+ reader.readMessage(value,proto.clarifai.api.MethodSignature.deserializeBinaryFromReader);
29118
+ msg.addMethodSignatures(value);
29119
+ break;
29090
29120
  default:
29091
29121
  reader.skipField();
29092
29122
  break;
@@ -29210,6 +29240,14 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function(message, writer)
29210
29240
  f
29211
29241
  );
29212
29242
  }
29243
+ f = message.getMethodSignaturesList();
29244
+ if (f.length > 0) {
29245
+ writer.writeRepeatedMessage(
29246
+ 19,
29247
+ f,
29248
+ proto.clarifai.api.MethodSignature.serializeBinaryToWriter
29249
+ );
29250
+ }
29213
29251
  };
29214
29252
 
29215
29253
 
@@ -29545,6 +29583,44 @@ proto.clarifai.api.ModelType.prototype.setEvaluationType = function(value) {
29545
29583
  };
29546
29584
 
29547
29585
 
29586
+ /**
29587
+ * repeated MethodSignature method_signatures = 19;
29588
+ * @return {!Array<!proto.clarifai.api.MethodSignature>}
29589
+ */
29590
+ proto.clarifai.api.ModelType.prototype.getMethodSignaturesList = function() {
29591
+ return /** @type{!Array<!proto.clarifai.api.MethodSignature>} */ (
29592
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MethodSignature, 19));
29593
+ };
29594
+
29595
+
29596
+ /**
29597
+ * @param {!Array<!proto.clarifai.api.MethodSignature>} value
29598
+ * @return {!proto.clarifai.api.ModelType} returns this
29599
+ */
29600
+ proto.clarifai.api.ModelType.prototype.setMethodSignaturesList = function(value) {
29601
+ return jspb.Message.setRepeatedWrapperField(this, 19, value);
29602
+ };
29603
+
29604
+
29605
+ /**
29606
+ * @param {!proto.clarifai.api.MethodSignature=} opt_value
29607
+ * @param {number=} opt_index
29608
+ * @return {!proto.clarifai.api.MethodSignature}
29609
+ */
29610
+ proto.clarifai.api.ModelType.prototype.addMethodSignatures = function(opt_value, opt_index) {
29611
+ return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.clarifai.api.MethodSignature, opt_index);
29612
+ };
29613
+
29614
+
29615
+ /**
29616
+ * Clears the list making it empty but non-null.
29617
+ * @return {!proto.clarifai.api.ModelType} returns this
29618
+ */
29619
+ proto.clarifai.api.ModelType.prototype.clearMethodSignaturesList = function() {
29620
+ return this.setMethodSignaturesList([]);
29621
+ };
29622
+
29623
+
29548
29624
 
29549
29625
  /**
29550
29626
  * List of repeated fields within this message type.
@@ -30230,7 +30306,7 @@ proto.clarifai.api.LayerShape.prototype.setDescription = function(value) {
30230
30306
  * @private {!Array<number>}
30231
30307
  * @const
30232
30308
  */
30233
- proto.clarifai.api.ModelTypeField.repeatedFields_ = [6];
30309
+ proto.clarifai.api.ModelTypeField.repeatedFields_ = [6,12];
30234
30310
 
30235
30311
 
30236
30312
 
@@ -30272,7 +30348,13 @@ proto.clarifai.api.ModelTypeField.toObject = function(includeInstance, msg) {
30272
30348
  proto.clarifai.api.ModelTypeEnumOption.toObject, includeInstance),
30273
30349
  internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
30274
30350
  required: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
30275
- modelTypeRangeInfo: (f = msg.getModelTypeRangeInfo()) && proto.clarifai.api.ModelTypeRangeInfo.toObject(includeInstance, f)
30351
+ modelTypeRangeInfo: (f = msg.getModelTypeRangeInfo()) && proto.clarifai.api.ModelTypeRangeInfo.toObject(includeInstance, f),
30352
+ name: jspb.Message.getFieldWithDefault(msg, 10, ""),
30353
+ type: jspb.Message.getFieldWithDefault(msg, 11, 0),
30354
+ typeArgsList: jspb.Message.toObjectList(msg.getTypeArgsList(),
30355
+ proto.clarifai.api.ModelTypeField.toObject, includeInstance),
30356
+ iterator: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
30357
+ pb_default: jspb.Message.getFieldWithDefault(msg, 14, "")
30276
30358
  };
30277
30359
 
30278
30360
  if (includeInstance) {
@@ -30348,6 +30430,27 @@ proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader = function(msg, re
30348
30430
  reader.readMessage(value,proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader);
30349
30431
  msg.setModelTypeRangeInfo(value);
30350
30432
  break;
30433
+ case 10:
30434
+ var value = /** @type {string} */ (reader.readString());
30435
+ msg.setName(value);
30436
+ break;
30437
+ case 11:
30438
+ var value = /** @type {!proto.clarifai.api.ModelTypeField.DataType} */ (reader.readEnum());
30439
+ msg.setType(value);
30440
+ break;
30441
+ case 12:
30442
+ var value = new proto.clarifai.api.ModelTypeField;
30443
+ reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader);
30444
+ msg.addTypeArgs(value);
30445
+ break;
30446
+ case 13:
30447
+ var value = /** @type {boolean} */ (reader.readBool());
30448
+ msg.setIterator(value);
30449
+ break;
30450
+ case 14:
30451
+ var value = /** @type {string} */ (reader.readString());
30452
+ msg.setDefault(value);
30453
+ break;
30351
30454
  default:
30352
30455
  reader.skipField();
30353
30456
  break;
@@ -30443,6 +30546,42 @@ proto.clarifai.api.ModelTypeField.serializeBinaryToWriter = function(message, wr
30443
30546
  proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter
30444
30547
  );
30445
30548
  }
30549
+ f = message.getName();
30550
+ if (f.length > 0) {
30551
+ writer.writeString(
30552
+ 10,
30553
+ f
30554
+ );
30555
+ }
30556
+ f = message.getType();
30557
+ if (f !== 0.0) {
30558
+ writer.writeEnum(
30559
+ 11,
30560
+ f
30561
+ );
30562
+ }
30563
+ f = message.getTypeArgsList();
30564
+ if (f.length > 0) {
30565
+ writer.writeRepeatedMessage(
30566
+ 12,
30567
+ f,
30568
+ proto.clarifai.api.ModelTypeField.serializeBinaryToWriter
30569
+ );
30570
+ }
30571
+ f = message.getIterator();
30572
+ if (f) {
30573
+ writer.writeBool(
30574
+ 13,
30575
+ f
30576
+ );
30577
+ }
30578
+ f = message.getDefault();
30579
+ if (f.length > 0) {
30580
+ writer.writeString(
30581
+ 14,
30582
+ f
30583
+ );
30584
+ }
30446
30585
  };
30447
30586
 
30448
30587
 
@@ -30474,6 +30613,30 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
30474
30613
  CHECKPOINT_MODEL: 22
30475
30614
  };
30476
30615
 
30616
+ /**
30617
+ * @enum {number}
30618
+ */
30619
+ proto.clarifai.api.ModelTypeField.DataType = {
30620
+ NOT_SET: 0,
30621
+ STR: 1,
30622
+ BYTES: 2,
30623
+ INT: 3,
30624
+ FLOAT: 4,
30625
+ BOOL: 5,
30626
+ NDARRAY: 6,
30627
+ JSON_DATA: 7,
30628
+ TEXT: 8,
30629
+ IMAGE: 9,
30630
+ CONCEPT: 10,
30631
+ REGION: 11,
30632
+ FRAME: 12,
30633
+ AUDIO: 13,
30634
+ VIDEO: 14,
30635
+ NAMED_FIELDS: 20,
30636
+ TUPLE: 21,
30637
+ LIST: 22
30638
+ };
30639
+
30477
30640
  /**
30478
30641
  * optional string path = 1;
30479
30642
  * @return {string}
@@ -30694,6 +30857,116 @@ proto.clarifai.api.ModelTypeField.prototype.hasModelTypeRangeInfo = function() {
30694
30857
  };
30695
30858
 
30696
30859
 
30860
+ /**
30861
+ * optional string name = 10;
30862
+ * @return {string}
30863
+ */
30864
+ proto.clarifai.api.ModelTypeField.prototype.getName = function() {
30865
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
30866
+ };
30867
+
30868
+
30869
+ /**
30870
+ * @param {string} value
30871
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
30872
+ */
30873
+ proto.clarifai.api.ModelTypeField.prototype.setName = function(value) {
30874
+ return jspb.Message.setProto3StringField(this, 10, value);
30875
+ };
30876
+
30877
+
30878
+ /**
30879
+ * optional DataType type = 11;
30880
+ * @return {!proto.clarifai.api.ModelTypeField.DataType}
30881
+ */
30882
+ proto.clarifai.api.ModelTypeField.prototype.getType = function() {
30883
+ return /** @type {!proto.clarifai.api.ModelTypeField.DataType} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
30884
+ };
30885
+
30886
+
30887
+ /**
30888
+ * @param {!proto.clarifai.api.ModelTypeField.DataType} value
30889
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
30890
+ */
30891
+ proto.clarifai.api.ModelTypeField.prototype.setType = function(value) {
30892
+ return jspb.Message.setProto3EnumField(this, 11, value);
30893
+ };
30894
+
30895
+
30896
+ /**
30897
+ * repeated ModelTypeField type_args = 12;
30898
+ * @return {!Array<!proto.clarifai.api.ModelTypeField>}
30899
+ */
30900
+ proto.clarifai.api.ModelTypeField.prototype.getTypeArgsList = function() {
30901
+ return /** @type{!Array<!proto.clarifai.api.ModelTypeField>} */ (
30902
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 12));
30903
+ };
30904
+
30905
+
30906
+ /**
30907
+ * @param {!Array<!proto.clarifai.api.ModelTypeField>} value
30908
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
30909
+ */
30910
+ proto.clarifai.api.ModelTypeField.prototype.setTypeArgsList = function(value) {
30911
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
30912
+ };
30913
+
30914
+
30915
+ /**
30916
+ * @param {!proto.clarifai.api.ModelTypeField=} opt_value
30917
+ * @param {number=} opt_index
30918
+ * @return {!proto.clarifai.api.ModelTypeField}
30919
+ */
30920
+ proto.clarifai.api.ModelTypeField.prototype.addTypeArgs = function(opt_value, opt_index) {
30921
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.ModelTypeField, opt_index);
30922
+ };
30923
+
30924
+
30925
+ /**
30926
+ * Clears the list making it empty but non-null.
30927
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
30928
+ */
30929
+ proto.clarifai.api.ModelTypeField.prototype.clearTypeArgsList = function() {
30930
+ return this.setTypeArgsList([]);
30931
+ };
30932
+
30933
+
30934
+ /**
30935
+ * optional bool iterator = 13;
30936
+ * @return {boolean}
30937
+ */
30938
+ proto.clarifai.api.ModelTypeField.prototype.getIterator = function() {
30939
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
30940
+ };
30941
+
30942
+
30943
+ /**
30944
+ * @param {boolean} value
30945
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
30946
+ */
30947
+ proto.clarifai.api.ModelTypeField.prototype.setIterator = function(value) {
30948
+ return jspb.Message.setProto3BooleanField(this, 13, value);
30949
+ };
30950
+
30951
+
30952
+ /**
30953
+ * optional string default = 14;
30954
+ * @return {string}
30955
+ */
30956
+ proto.clarifai.api.ModelTypeField.prototype.getDefault = function() {
30957
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
30958
+ };
30959
+
30960
+
30961
+ /**
30962
+ * @param {string} value
30963
+ * @return {!proto.clarifai.api.ModelTypeField} returns this
30964
+ */
30965
+ proto.clarifai.api.ModelTypeField.prototype.setDefault = function(value) {
30966
+ return jspb.Message.setProto3StringField(this, 14, value);
30967
+ };
30968
+
30969
+
30697
30970
 
30698
30971
 
30699
30972
 
@@ -31538,6 +31811,13 @@ proto.clarifai.api.ModelQuery.prototype.setModelTypeId = function(value) {
31538
31811
 
31539
31812
 
31540
31813
 
31814
+ /**
31815
+ * List of repeated fields within this message type.
31816
+ * @private {!Array<number>}
31817
+ * @const
31818
+ */
31819
+ proto.clarifai.api.ModelVersion.repeatedFields_ = [26];
31820
+
31541
31821
 
31542
31822
 
31543
31823
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -31590,7 +31870,9 @@ proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) {
31590
31870
  importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f),
31591
31871
  trainLog: jspb.Message.getFieldWithDefault(msg, 23, ""),
31592
31872
  inferenceComputeInfo: (f = msg.getInferenceComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
31593
- buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f)
31873
+ buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f),
31874
+ methodSignatureList: jspb.Message.toObjectList(msg.getMethodSignatureList(),
31875
+ proto.clarifai.api.MethodSignature.toObject, includeInstance)
31594
31876
  };
31595
31877
 
31596
31878
  if (includeInstance) {
@@ -31729,6 +32011,11 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read
31729
32011
  reader.readMessage(value,proto.clarifai.api.BuildInfo.deserializeBinaryFromReader);
31730
32012
  msg.setBuildInfo(value);
31731
32013
  break;
32014
+ case 26:
32015
+ var value = new proto.clarifai.api.MethodSignature;
32016
+ reader.readMessage(value,proto.clarifai.api.MethodSignature.deserializeBinaryFromReader);
32017
+ msg.addMethodSignature(value);
32018
+ break;
31732
32019
  default:
31733
32020
  reader.skipField();
31734
32021
  break;
@@ -31926,6 +32213,14 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writ
31926
32213
  proto.clarifai.api.BuildInfo.serializeBinaryToWriter
31927
32214
  );
31928
32215
  }
32216
+ f = message.getMethodSignatureList();
32217
+ if (f.length > 0) {
32218
+ writer.writeRepeatedMessage(
32219
+ 26,
32220
+ f,
32221
+ proto.clarifai.api.MethodSignature.serializeBinaryToWriter
32222
+ );
32223
+ }
31929
32224
  };
31930
32225
 
31931
32226
 
@@ -32591,6 +32886,347 @@ proto.clarifai.api.ModelVersion.prototype.hasBuildInfo = function() {
32591
32886
  };
32592
32887
 
32593
32888
 
32889
+ /**
32890
+ * repeated MethodSignature method_signature = 26;
32891
+ * @return {!Array<!proto.clarifai.api.MethodSignature>}
32892
+ */
32893
+ proto.clarifai.api.ModelVersion.prototype.getMethodSignatureList = function() {
32894
+ return /** @type{!Array<!proto.clarifai.api.MethodSignature>} */ (
32895
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MethodSignature, 26));
32896
+ };
32897
+
32898
+
32899
+ /**
32900
+ * @param {!Array<!proto.clarifai.api.MethodSignature>} value
32901
+ * @return {!proto.clarifai.api.ModelVersion} returns this
32902
+ */
32903
+ proto.clarifai.api.ModelVersion.prototype.setMethodSignatureList = function(value) {
32904
+ return jspb.Message.setRepeatedWrapperField(this, 26, value);
32905
+ };
32906
+
32907
+
32908
+ /**
32909
+ * @param {!proto.clarifai.api.MethodSignature=} opt_value
32910
+ * @param {number=} opt_index
32911
+ * @return {!proto.clarifai.api.MethodSignature}
32912
+ */
32913
+ proto.clarifai.api.ModelVersion.prototype.addMethodSignature = function(opt_value, opt_index) {
32914
+ return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.clarifai.api.MethodSignature, opt_index);
32915
+ };
32916
+
32917
+
32918
+ /**
32919
+ * Clears the list making it empty but non-null.
32920
+ * @return {!proto.clarifai.api.ModelVersion} returns this
32921
+ */
32922
+ proto.clarifai.api.ModelVersion.prototype.clearMethodSignatureList = function() {
32923
+ return this.setMethodSignatureList([]);
32924
+ };
32925
+
32926
+
32927
+
32928
+ /**
32929
+ * List of repeated fields within this message type.
32930
+ * @private {!Array<number>}
32931
+ * @const
32932
+ */
32933
+ proto.clarifai.api.MethodSignature.repeatedFields_ = [4,5];
32934
+
32935
+
32936
+
32937
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32938
+ /**
32939
+ * Creates an object representation of this proto.
32940
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32941
+ * Optional fields that are not set will be set to undefined.
32942
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32943
+ * For the list of reserved names please see:
32944
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32945
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32946
+ * JSPB instance for transitional soy proto support:
32947
+ * http://goto/soy-param-migration
32948
+ * @return {!Object}
32949
+ */
32950
+ proto.clarifai.api.MethodSignature.prototype.toObject = function(opt_includeInstance) {
32951
+ return proto.clarifai.api.MethodSignature.toObject(opt_includeInstance, this);
32952
+ };
32953
+
32954
+
32955
+ /**
32956
+ * Static version of the {@see toObject} method.
32957
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32958
+ * the JSPB instance for transitional soy proto support:
32959
+ * http://goto/soy-param-migration
32960
+ * @param {!proto.clarifai.api.MethodSignature} msg The msg instance to transform.
32961
+ * @return {!Object}
32962
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32963
+ */
32964
+ proto.clarifai.api.MethodSignature.toObject = function(includeInstance, msg) {
32965
+ var f, obj = {
32966
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
32967
+ methodType: jspb.Message.getFieldWithDefault(msg, 2, 0),
32968
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
32969
+ inputFieldsList: jspb.Message.toObjectList(msg.getInputFieldsList(),
32970
+ proto.clarifai.api.ModelTypeField.toObject, includeInstance),
32971
+ outputFieldsList: jspb.Message.toObjectList(msg.getOutputFieldsList(),
32972
+ proto.clarifai.api.ModelTypeField.toObject, includeInstance)
32973
+ };
32974
+
32975
+ if (includeInstance) {
32976
+ obj.$jspbMessageInstance = msg;
32977
+ }
32978
+ return obj;
32979
+ };
32980
+ }
32981
+
32982
+
32983
+ /**
32984
+ * Deserializes binary data (in protobuf wire format).
32985
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
32986
+ * @return {!proto.clarifai.api.MethodSignature}
32987
+ */
32988
+ proto.clarifai.api.MethodSignature.deserializeBinary = function(bytes) {
32989
+ var reader = new jspb.BinaryReader(bytes);
32990
+ var msg = new proto.clarifai.api.MethodSignature;
32991
+ return proto.clarifai.api.MethodSignature.deserializeBinaryFromReader(msg, reader);
32992
+ };
32993
+
32994
+
32995
+ /**
32996
+ * Deserializes binary data (in protobuf wire format) from the
32997
+ * given reader into the given message object.
32998
+ * @param {!proto.clarifai.api.MethodSignature} msg The message object to deserialize into.
32999
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33000
+ * @return {!proto.clarifai.api.MethodSignature}
33001
+ */
33002
+ proto.clarifai.api.MethodSignature.deserializeBinaryFromReader = function(msg, reader) {
33003
+ while (reader.nextField()) {
33004
+ if (reader.isEndGroup()) {
33005
+ break;
33006
+ }
33007
+ var field = reader.getFieldNumber();
33008
+ switch (field) {
33009
+ case 1:
33010
+ var value = /** @type {string} */ (reader.readString());
33011
+ msg.setName(value);
33012
+ break;
33013
+ case 2:
33014
+ var value = /** @type {!proto.clarifai.api.RunnerMethodType} */ (reader.readEnum());
33015
+ msg.setMethodType(value);
33016
+ break;
33017
+ case 3:
33018
+ var value = /** @type {string} */ (reader.readString());
33019
+ msg.setDescription(value);
33020
+ break;
33021
+ case 4:
33022
+ var value = new proto.clarifai.api.ModelTypeField;
33023
+ reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader);
33024
+ msg.addInputFields(value);
33025
+ break;
33026
+ case 5:
33027
+ var value = new proto.clarifai.api.ModelTypeField;
33028
+ reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader);
33029
+ msg.addOutputFields(value);
33030
+ break;
33031
+ default:
33032
+ reader.skipField();
33033
+ break;
33034
+ }
33035
+ }
33036
+ return msg;
33037
+ };
33038
+
33039
+
33040
+ /**
33041
+ * Serializes the message to binary data (in protobuf wire format).
33042
+ * @return {!Uint8Array}
33043
+ */
33044
+ proto.clarifai.api.MethodSignature.prototype.serializeBinary = function() {
33045
+ var writer = new jspb.BinaryWriter();
33046
+ proto.clarifai.api.MethodSignature.serializeBinaryToWriter(this, writer);
33047
+ return writer.getResultBuffer();
33048
+ };
33049
+
33050
+
33051
+ /**
33052
+ * Serializes the given message to binary data (in protobuf wire
33053
+ * format), writing to the given BinaryWriter.
33054
+ * @param {!proto.clarifai.api.MethodSignature} message
33055
+ * @param {!jspb.BinaryWriter} writer
33056
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33057
+ */
33058
+ proto.clarifai.api.MethodSignature.serializeBinaryToWriter = function(message, writer) {
33059
+ var f = undefined;
33060
+ f = message.getName();
33061
+ if (f.length > 0) {
33062
+ writer.writeString(
33063
+ 1,
33064
+ f
33065
+ );
33066
+ }
33067
+ f = message.getMethodType();
33068
+ if (f !== 0.0) {
33069
+ writer.writeEnum(
33070
+ 2,
33071
+ f
33072
+ );
33073
+ }
33074
+ f = message.getDescription();
33075
+ if (f.length > 0) {
33076
+ writer.writeString(
33077
+ 3,
33078
+ f
33079
+ );
33080
+ }
33081
+ f = message.getInputFieldsList();
33082
+ if (f.length > 0) {
33083
+ writer.writeRepeatedMessage(
33084
+ 4,
33085
+ f,
33086
+ proto.clarifai.api.ModelTypeField.serializeBinaryToWriter
33087
+ );
33088
+ }
33089
+ f = message.getOutputFieldsList();
33090
+ if (f.length > 0) {
33091
+ writer.writeRepeatedMessage(
33092
+ 5,
33093
+ f,
33094
+ proto.clarifai.api.ModelTypeField.serializeBinaryToWriter
33095
+ );
33096
+ }
33097
+ };
33098
+
33099
+
33100
+ /**
33101
+ * optional string name = 1;
33102
+ * @return {string}
33103
+ */
33104
+ proto.clarifai.api.MethodSignature.prototype.getName = function() {
33105
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
33106
+ };
33107
+
33108
+
33109
+ /**
33110
+ * @param {string} value
33111
+ * @return {!proto.clarifai.api.MethodSignature} returns this
33112
+ */
33113
+ proto.clarifai.api.MethodSignature.prototype.setName = function(value) {
33114
+ return jspb.Message.setProto3StringField(this, 1, value);
33115
+ };
33116
+
33117
+
33118
+ /**
33119
+ * optional RunnerMethodType method_type = 2;
33120
+ * @return {!proto.clarifai.api.RunnerMethodType}
33121
+ */
33122
+ proto.clarifai.api.MethodSignature.prototype.getMethodType = function() {
33123
+ return /** @type {!proto.clarifai.api.RunnerMethodType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33124
+ };
33125
+
33126
+
33127
+ /**
33128
+ * @param {!proto.clarifai.api.RunnerMethodType} value
33129
+ * @return {!proto.clarifai.api.MethodSignature} returns this
33130
+ */
33131
+ proto.clarifai.api.MethodSignature.prototype.setMethodType = function(value) {
33132
+ return jspb.Message.setProto3EnumField(this, 2, value);
33133
+ };
33134
+
33135
+
33136
+ /**
33137
+ * optional string description = 3;
33138
+ * @return {string}
33139
+ */
33140
+ proto.clarifai.api.MethodSignature.prototype.getDescription = function() {
33141
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
33142
+ };
33143
+
33144
+
33145
+ /**
33146
+ * @param {string} value
33147
+ * @return {!proto.clarifai.api.MethodSignature} returns this
33148
+ */
33149
+ proto.clarifai.api.MethodSignature.prototype.setDescription = function(value) {
33150
+ return jspb.Message.setProto3StringField(this, 3, value);
33151
+ };
33152
+
33153
+
33154
+ /**
33155
+ * repeated ModelTypeField input_fields = 4;
33156
+ * @return {!Array<!proto.clarifai.api.ModelTypeField>}
33157
+ */
33158
+ proto.clarifai.api.MethodSignature.prototype.getInputFieldsList = function() {
33159
+ return /** @type{!Array<!proto.clarifai.api.ModelTypeField>} */ (
33160
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 4));
33161
+ };
33162
+
33163
+
33164
+ /**
33165
+ * @param {!Array<!proto.clarifai.api.ModelTypeField>} value
33166
+ * @return {!proto.clarifai.api.MethodSignature} returns this
33167
+ */
33168
+ proto.clarifai.api.MethodSignature.prototype.setInputFieldsList = function(value) {
33169
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
33170
+ };
33171
+
33172
+
33173
+ /**
33174
+ * @param {!proto.clarifai.api.ModelTypeField=} opt_value
33175
+ * @param {number=} opt_index
33176
+ * @return {!proto.clarifai.api.ModelTypeField}
33177
+ */
33178
+ proto.clarifai.api.MethodSignature.prototype.addInputFields = function(opt_value, opt_index) {
33179
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.ModelTypeField, opt_index);
33180
+ };
33181
+
33182
+
33183
+ /**
33184
+ * Clears the list making it empty but non-null.
33185
+ * @return {!proto.clarifai.api.MethodSignature} returns this
33186
+ */
33187
+ proto.clarifai.api.MethodSignature.prototype.clearInputFieldsList = function() {
33188
+ return this.setInputFieldsList([]);
33189
+ };
33190
+
33191
+
33192
+ /**
33193
+ * repeated ModelTypeField output_fields = 5;
33194
+ * @return {!Array<!proto.clarifai.api.ModelTypeField>}
33195
+ */
33196
+ proto.clarifai.api.MethodSignature.prototype.getOutputFieldsList = function() {
33197
+ return /** @type{!Array<!proto.clarifai.api.ModelTypeField>} */ (
33198
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 5));
33199
+ };
33200
+
33201
+
33202
+ /**
33203
+ * @param {!Array<!proto.clarifai.api.ModelTypeField>} value
33204
+ * @return {!proto.clarifai.api.MethodSignature} returns this
33205
+ */
33206
+ proto.clarifai.api.MethodSignature.prototype.setOutputFieldsList = function(value) {
33207
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
33208
+ };
33209
+
33210
+
33211
+ /**
33212
+ * @param {!proto.clarifai.api.ModelTypeField=} opt_value
33213
+ * @param {number=} opt_index
33214
+ * @return {!proto.clarifai.api.ModelTypeField}
33215
+ */
33216
+ proto.clarifai.api.MethodSignature.prototype.addOutputFields = function(opt_value, opt_index) {
33217
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.ModelTypeField, opt_index);
33218
+ };
33219
+
33220
+
33221
+ /**
33222
+ * Clears the list making it empty but non-null.
33223
+ * @return {!proto.clarifai.api.MethodSignature} returns this
33224
+ */
33225
+ proto.clarifai.api.MethodSignature.prototype.clearOutputFieldsList = function() {
33226
+ return this.setOutputFieldsList([]);
33227
+ };
33228
+
33229
+
32594
33230
 
32595
33231
 
32596
33232