clarifai-web-grpc 11.10.3 → 11.10.5

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.10.3
1
+ 11.10.5
@@ -143,7 +143,6 @@ goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
143
143
  goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
144
144
  goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
145
145
  goog.exportSymbol('proto.clarifai.api.EventType', null, global);
146
- goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
147
146
  goog.exportSymbol('proto.clarifai.api.ExtendedMetrics', null, global);
148
147
  goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global);
149
148
  goog.exportSymbol('proto.clarifai.api.Filter', null, global);
@@ -187,7 +186,6 @@ goog.exportSymbol('proto.clarifai.api.LabelCount', null, global);
187
186
  goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
188
187
  goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
189
188
  goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
190
- goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
191
189
  goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
192
190
  goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
193
191
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
@@ -12872,7 +12870,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12872
12870
  floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
12873
12871
  bytesValue: msg.getBytesValue_asB64(),
12874
12872
  boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
12875
- stringValue: jspb.Message.getFieldWithDefault(msg, 25, "")
12873
+ stringValue: jspb.Message.getFieldWithDefault(msg, 25, ""),
12874
+ structValue: (f = msg.getStructValue()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
12876
12875
  };
12877
12876
  if (includeInstance) {
12878
12877
  obj.$jspbMessageInstance = msg;
@@ -13014,6 +13013,11 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function (msg, reader) {
13014
13013
  var value = /** @type {string} */ (reader.readString());
13015
13014
  msg.setStringValue(value);
13016
13015
  break;
13016
+ case 26:
13017
+ var value = new google_protobuf_struct_pb.Struct;
13018
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
13019
+ msg.setStructValue(value);
13020
+ break;
13017
13021
  default:
13018
13022
  reader.skipField();
13019
13023
  break;
@@ -13131,6 +13135,10 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function (message, writer) {
13131
13135
  if (f.length > 0) {
13132
13136
  writer.writeString(25, f);
13133
13137
  }
13138
+ f = message.getStructValue();
13139
+ if (f != null) {
13140
+ writer.writeMessage(26, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
13141
+ }
13134
13142
  };
13135
13143
  /**
13136
13144
  * optional Image image = 1;
@@ -13735,6 +13743,34 @@ proto.clarifai.api.Data.prototype.getStringValue = function () {
13735
13743
  proto.clarifai.api.Data.prototype.setStringValue = function (value) {
13736
13744
  return jspb.Message.setProto3StringField(this, 25, value);
13737
13745
  };
13746
+ /**
13747
+ * optional google.protobuf.Struct struct_value = 26;
13748
+ * @return {?proto.google.protobuf.Struct}
13749
+ */
13750
+ proto.clarifai.api.Data.prototype.getStructValue = function () {
13751
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 26));
13752
+ };
13753
+ /**
13754
+ * @param {?proto.google.protobuf.Struct|undefined} value
13755
+ * @return {!proto.clarifai.api.Data} returns this
13756
+ */
13757
+ proto.clarifai.api.Data.prototype.setStructValue = function (value) {
13758
+ return jspb.Message.setWrapperField(this, 26, value);
13759
+ };
13760
+ /**
13761
+ * Clears the message field making it undefined.
13762
+ * @return {!proto.clarifai.api.Data} returns this
13763
+ */
13764
+ proto.clarifai.api.Data.prototype.clearStructValue = function () {
13765
+ return this.setStructValue(undefined);
13766
+ };
13767
+ /**
13768
+ * Returns whether this field is set.
13769
+ * @return {boolean}
13770
+ */
13771
+ proto.clarifai.api.Data.prototype.hasStructValue = function () {
13772
+ return jspb.Message.getField(this, 26) != null;
13773
+ };
13738
13774
  if (jspb.Message.GENERATE_TO_OBJECT) {
13739
13775
  /**
13740
13776
  * Creates an object representation of this proto.
@@ -71620,23 +71656,6 @@ proto.clarifai.api.DatasetVersionExportFormat = {
71620
71656
  CLARIFAI_DATA_JSON: 3,
71621
71657
  COCO: 2
71622
71658
  };
71623
- /**
71624
- * @enum {number}
71625
- */
71626
- proto.clarifai.api.ExpirationAction = {
71627
- EXPIRATION_ACTION_NOT_SET: 0,
71628
- DELAY: 1,
71629
- EXPIRY: 2
71630
- };
71631
- /**
71632
- * @enum {number}
71633
- */
71634
- proto.clarifai.api.LicenseScope = {
71635
- LICENSE_SCOPE_NOT_SET: 0,
71636
- PREDICT: 1,
71637
- TRAIN: 2,
71638
- SEARCH: 3
71639
- };
71640
71659
  /**
71641
71660
  * @enum {number}
71642
71661
  */
@@ -143,7 +143,6 @@ goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
143
143
  goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
144
144
  goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
145
145
  goog.exportSymbol('proto.clarifai.api.EventType', null, global);
146
- goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
147
146
  goog.exportSymbol('proto.clarifai.api.ExtendedMetrics', null, global);
148
147
  goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global);
149
148
  goog.exportSymbol('proto.clarifai.api.Filter', null, global);
@@ -187,7 +186,6 @@ goog.exportSymbol('proto.clarifai.api.LabelCount', null, global);
187
186
  goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
188
187
  goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
189
188
  goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
190
- goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
191
189
  goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
192
190
  goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
193
191
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
@@ -12872,7 +12870,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12872
12870
  floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
12873
12871
  bytesValue: msg.getBytesValue_asB64(),
12874
12872
  boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
12875
- stringValue: jspb.Message.getFieldWithDefault(msg, 25, "")
12873
+ stringValue: jspb.Message.getFieldWithDefault(msg, 25, ""),
12874
+ structValue: (f = msg.getStructValue()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
12876
12875
  };
12877
12876
  if (includeInstance) {
12878
12877
  obj.$jspbMessageInstance = msg;
@@ -13014,6 +13013,11 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function (msg, reader) {
13014
13013
  var value = /** @type {string} */ (reader.readString());
13015
13014
  msg.setStringValue(value);
13016
13015
  break;
13016
+ case 26:
13017
+ var value = new google_protobuf_struct_pb.Struct;
13018
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
13019
+ msg.setStructValue(value);
13020
+ break;
13017
13021
  default:
13018
13022
  reader.skipField();
13019
13023
  break;
@@ -13131,6 +13135,10 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function (message, writer) {
13131
13135
  if (f.length > 0) {
13132
13136
  writer.writeString(25, f);
13133
13137
  }
13138
+ f = message.getStructValue();
13139
+ if (f != null) {
13140
+ writer.writeMessage(26, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
13141
+ }
13134
13142
  };
13135
13143
  /**
13136
13144
  * optional Image image = 1;
@@ -13735,6 +13743,34 @@ proto.clarifai.api.Data.prototype.getStringValue = function () {
13735
13743
  proto.clarifai.api.Data.prototype.setStringValue = function (value) {
13736
13744
  return jspb.Message.setProto3StringField(this, 25, value);
13737
13745
  };
13746
+ /**
13747
+ * optional google.protobuf.Struct struct_value = 26;
13748
+ * @return {?proto.google.protobuf.Struct}
13749
+ */
13750
+ proto.clarifai.api.Data.prototype.getStructValue = function () {
13751
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 26));
13752
+ };
13753
+ /**
13754
+ * @param {?proto.google.protobuf.Struct|undefined} value
13755
+ * @return {!proto.clarifai.api.Data} returns this
13756
+ */
13757
+ proto.clarifai.api.Data.prototype.setStructValue = function (value) {
13758
+ return jspb.Message.setWrapperField(this, 26, value);
13759
+ };
13760
+ /**
13761
+ * Clears the message field making it undefined.
13762
+ * @return {!proto.clarifai.api.Data} returns this
13763
+ */
13764
+ proto.clarifai.api.Data.prototype.clearStructValue = function () {
13765
+ return this.setStructValue(undefined);
13766
+ };
13767
+ /**
13768
+ * Returns whether this field is set.
13769
+ * @return {boolean}
13770
+ */
13771
+ proto.clarifai.api.Data.prototype.hasStructValue = function () {
13772
+ return jspb.Message.getField(this, 26) != null;
13773
+ };
13738
13774
  if (jspb.Message.GENERATE_TO_OBJECT) {
13739
13775
  /**
13740
13776
  * Creates an object representation of this proto.
@@ -71620,23 +71656,6 @@ proto.clarifai.api.DatasetVersionExportFormat = {
71620
71656
  CLARIFAI_DATA_JSON: 3,
71621
71657
  COCO: 2
71622
71658
  };
71623
- /**
71624
- * @enum {number}
71625
- */
71626
- proto.clarifai.api.ExpirationAction = {
71627
- EXPIRATION_ACTION_NOT_SET: 0,
71628
- DELAY: 1,
71629
- EXPIRY: 2
71630
- };
71631
- /**
71632
- * @enum {number}
71633
- */
71634
- proto.clarifai.api.LicenseScope = {
71635
- LICENSE_SCOPE_NOT_SET: 0,
71636
- PREDICT: 1,
71637
- TRAIN: 2,
71638
- SEARCH: 3
71639
- };
71640
71659
  /**
71641
71660
  * @enum {number}
71642
71661
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "11.10.3",
3
+ "version": "11.10.5",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1259,6 +1259,11 @@ export class Data extends jspb.Message {
1259
1259
  getStringValue(): string;
1260
1260
  setStringValue(value: string): Data;
1261
1261
 
1262
+ getStructValue(): google_protobuf_struct_pb.Struct | undefined;
1263
+ setStructValue(value?: google_protobuf_struct_pb.Struct): Data;
1264
+ hasStructValue(): boolean;
1265
+ clearStructValue(): Data;
1266
+
1262
1267
  serializeBinary(): Uint8Array;
1263
1268
  toObject(includeInstance?: boolean): Data.AsObject;
1264
1269
  static toObject(includeInstance: boolean, msg: Data): Data.AsObject;
@@ -1292,6 +1297,7 @@ export namespace Data {
1292
1297
  bytesValue: Uint8Array | string,
1293
1298
  boolValue: boolean,
1294
1299
  stringValue: string,
1300
+ structValue?: google_protobuf_struct_pb.Struct.AsObject,
1295
1301
  }
1296
1302
  }
1297
1303
 
@@ -11008,17 +11014,6 @@ export enum DatasetVersionExportFormat {
11008
11014
  CLARIFAI_DATA_JSON = 3,
11009
11015
  COCO = 2,
11010
11016
  }
11011
- export enum ExpirationAction {
11012
- EXPIRATION_ACTION_NOT_SET = 0,
11013
- DELAY = 1,
11014
- EXPIRY = 2,
11015
- }
11016
- export enum LicenseScope {
11017
- LICENSE_SCOPE_NOT_SET = 0,
11018
- PREDICT = 1,
11019
- TRAIN = 2,
11020
- SEARCH = 3,
11021
- }
11022
11017
  export enum LicenseType {
11023
11018
  UNKNOWN_LICENSE_TYPE = 0,
11024
11019
  FIRST_PARTY = 1,
@@ -145,7 +145,6 @@ goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
145
145
  goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
146
146
  goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
147
147
  goog.exportSymbol('proto.clarifai.api.EventType', null, global);
148
- goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
149
148
  goog.exportSymbol('proto.clarifai.api.ExtendedMetrics', null, global);
150
149
  goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global);
151
150
  goog.exportSymbol('proto.clarifai.api.Filter', null, global);
@@ -189,7 +188,6 @@ goog.exportSymbol('proto.clarifai.api.LabelCount', null, global);
189
188
  goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
190
189
  goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
191
190
  goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
192
- goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
193
191
  goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
194
192
  goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
195
193
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
@@ -14767,7 +14765,8 @@ proto.clarifai.api.Data.toObject = function(includeInstance, msg) {
14767
14765
  floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
14768
14766
  bytesValue: msg.getBytesValue_asB64(),
14769
14767
  boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
14770
- stringValue: jspb.Message.getFieldWithDefault(msg, 25, "")
14768
+ stringValue: jspb.Message.getFieldWithDefault(msg, 25, ""),
14769
+ structValue: (f = msg.getStructValue()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
14771
14770
  };
14772
14771
 
14773
14772
  if (includeInstance) {
@@ -14914,6 +14913,11 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function(msg, reader) {
14914
14913
  var value = /** @type {string} */ (reader.readString());
14915
14914
  msg.setStringValue(value);
14916
14915
  break;
14916
+ case 26:
14917
+ var value = new google_protobuf_struct_pb.Struct;
14918
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
14919
+ msg.setStructValue(value);
14920
+ break;
14917
14921
  default:
14918
14922
  reader.skipField();
14919
14923
  break;
@@ -15122,6 +15126,14 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function(message, writer) {
15122
15126
  f
15123
15127
  );
15124
15128
  }
15129
+ f = message.getStructValue();
15130
+ if (f != null) {
15131
+ writer.writeMessage(
15132
+ 26,
15133
+ f,
15134
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
15135
+ );
15136
+ }
15125
15137
  };
15126
15138
 
15127
15139
 
@@ -15916,6 +15928,43 @@ proto.clarifai.api.Data.prototype.setStringValue = function(value) {
15916
15928
  };
15917
15929
 
15918
15930
 
15931
+ /**
15932
+ * optional google.protobuf.Struct struct_value = 26;
15933
+ * @return {?proto.google.protobuf.Struct}
15934
+ */
15935
+ proto.clarifai.api.Data.prototype.getStructValue = function() {
15936
+ return /** @type{?proto.google.protobuf.Struct} */ (
15937
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 26));
15938
+ };
15939
+
15940
+
15941
+ /**
15942
+ * @param {?proto.google.protobuf.Struct|undefined} value
15943
+ * @return {!proto.clarifai.api.Data} returns this
15944
+ */
15945
+ proto.clarifai.api.Data.prototype.setStructValue = function(value) {
15946
+ return jspb.Message.setWrapperField(this, 26, value);
15947
+ };
15948
+
15949
+
15950
+ /**
15951
+ * Clears the message field making it undefined.
15952
+ * @return {!proto.clarifai.api.Data} returns this
15953
+ */
15954
+ proto.clarifai.api.Data.prototype.clearStructValue = function() {
15955
+ return this.setStructValue(undefined);
15956
+ };
15957
+
15958
+
15959
+ /**
15960
+ * Returns whether this field is set.
15961
+ * @return {boolean}
15962
+ */
15963
+ proto.clarifai.api.Data.prototype.hasStructValue = function() {
15964
+ return jspb.Message.getField(this, 26) != null;
15965
+ };
15966
+
15967
+
15919
15968
 
15920
15969
 
15921
15970
 
@@ -89679,25 +89728,6 @@ proto.clarifai.api.DatasetVersionExportFormat = {
89679
89728
  COCO: 2
89680
89729
  };
89681
89730
 
89682
- /**
89683
- * @enum {number}
89684
- */
89685
- proto.clarifai.api.ExpirationAction = {
89686
- EXPIRATION_ACTION_NOT_SET: 0,
89687
- DELAY: 1,
89688
- EXPIRY: 2
89689
- };
89690
-
89691
- /**
89692
- * @enum {number}
89693
- */
89694
- proto.clarifai.api.LicenseScope = {
89695
- LICENSE_SCOPE_NOT_SET: 0,
89696
- PREDICT: 1,
89697
- TRAIN: 2,
89698
- SEARCH: 3
89699
- };
89700
-
89701
89731
  /**
89702
89732
  * @enum {number}
89703
89733
  */