clarifai-web-grpc 3.0.0 → 4.0.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.
Files changed (66) hide show
  1. package/.github/workflows/ci.yml +0 -2
  2. package/CHANGELOG.md +4 -6
  3. package/README.md +2 -2
  4. package/VERSION +1 -1
  5. package/dist/cjs/index.d.ts +2 -2
  6. package/dist/cjs/index.js +5 -4
  7. package/dist/cjs/proto/clarifai/api/resources_pb.js +3595 -302
  8. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  9. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +6663 -0
  10. package/dist/cjs/proto/clarifai/api/service_pb.js +16838 -7904
  11. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +23 -1
  12. package/dist/cjs/proto/clarifai/api/status/status_pb.js +18 -1
  13. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +18 -1
  14. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  15. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +206 -0
  16. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +18 -1
  17. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +37 -5
  18. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +18 -1
  19. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +18 -1
  20. package/dist/esm/index.d.ts +2 -2
  21. package/dist/esm/index.js +2 -2
  22. package/dist/esm/proto/clarifai/api/resources_pb.js +3595 -302
  23. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  24. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +6663 -0
  25. package/dist/esm/proto/clarifai/api/service_pb.js +16838 -7904
  26. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +23 -1
  27. package/dist/esm/proto/clarifai/api/status/status_pb.js +18 -1
  28. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +18 -1
  29. package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  30. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +206 -0
  31. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +18 -1
  32. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +37 -5
  33. package/dist/esm/proto/clarifai/auth/types/types_pb.js +18 -1
  34. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +18 -1
  35. package/index.ts +2 -2
  36. package/package.json +3 -8
  37. package/proto/clarifai/api/resources_pb.d.ts +1522 -1014
  38. package/proto/clarifai/api/resources_pb.js +7122 -2949
  39. package/proto/clarifai/api/service_grpc_web_pb.d.ts +1904 -0
  40. package/proto/clarifai/api/service_grpc_web_pb.js +9672 -0
  41. package/proto/clarifai/api/service_pb.d.ts +2235 -962
  42. package/proto/clarifai/api/service_pb.js +20033 -9036
  43. package/proto/clarifai/api/status/status_code_pb.d.ts +8 -1
  44. package/proto/clarifai/api/status/status_code_pb.js +15 -1
  45. package/proto/clarifai/api/status/status_pb.d.ts +14 -13
  46. package/proto/clarifai/api/status/status_pb.js +10 -1
  47. package/proto/clarifai/api/utils/extensions_pb.d.ts +2 -1
  48. package/proto/clarifai/api/utils/extensions_pb.js +10 -1
  49. package/proto/clarifai/api/utils/matrix_pb.d.ts +28 -0
  50. package/proto/clarifai/api/utils/matrix_pb.js +234 -0
  51. package/proto/clarifai/api/utils/test_proto_pb.d.ts +12 -11
  52. package/proto/clarifai/api/utils/test_proto_pb.js +10 -1
  53. package/proto/clarifai/auth/scope/scope_pb.d.ts +22 -8
  54. package/proto/clarifai/auth/scope/scope_pb.js +29 -5
  55. package/proto/clarifai/auth/types/types_pb.d.ts +3 -1
  56. package/proto/clarifai/auth/types/types_pb.js +10 -1
  57. package/proto/clarifai/auth/util/extension_pb.d.ts +2 -1
  58. package/proto/clarifai/auth/util/extension_pb.js +10 -1
  59. package/.husky/pre-commit +0 -4
  60. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  61. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  62. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  63. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
  64. package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
  65. package/tests/basic.test.ts +0 -41
  66. package/tests/package.test.ts +0 -0
@@ -3,29 +3,52 @@
3
3
  /**
4
4
  * @fileoverview
5
5
  * @enhanceable
6
+ * @suppress {missingRequire} reports error on implicit type usages.
6
7
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
8
  * field starts with 'MSG_' and isn't a translatable message.
8
9
  * @public
9
10
  */
10
11
  // GENERATED CODE -- DO NOT EDIT!
12
+ /* eslint-disable */
13
+ // @ts-nocheck
11
14
  var jspb = require('google-protobuf');
12
15
  var goog = jspb;
13
- var global = Function('return this')();
16
+ var global = (function () {
17
+ if (this) {
18
+ return this;
19
+ }
20
+ if (typeof window !== 'undefined') {
21
+ return window;
22
+ }
23
+ if (typeof global !== 'undefined') {
24
+ return global;
25
+ }
26
+ if (typeof self !== 'undefined') {
27
+ return self;
28
+ }
29
+ return Function('return this')();
30
+ }.call(null));
14
31
  var proto_clarifai_api_status_status_pb = require('../../../proto/clarifai/api/status/status_pb.js');
15
32
  goog.object.extend(proto, proto_clarifai_api_status_status_pb);
16
33
  var proto_clarifai_api_utils_extensions_pb = require('../../../proto/clarifai/api/utils/extensions_pb.js');
17
34
  goog.object.extend(proto, proto_clarifai_api_utils_extensions_pb);
35
+ var proto_clarifai_api_utils_matrix_pb = require('../../../proto/clarifai/api/utils/matrix_pb.js');
36
+ goog.object.extend(proto, proto_clarifai_api_utils_matrix_pb);
18
37
  var proto_clarifai_auth_util_extension_pb = require('../../../proto/clarifai/auth/util/extension_pb.js');
19
38
  goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
20
39
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
21
40
  goog.object.extend(proto, google_protobuf_struct_pb);
22
41
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
23
42
  goog.object.extend(proto, google_protobuf_timestamp_pb);
43
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
44
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
24
45
  goog.exportSymbol('proto.clarifai.api.APIEventType', null, global);
25
46
  goog.exportSymbol('proto.clarifai.api.APIPostModelOutputsCollectorSource', null, global);
26
47
  goog.exportSymbol('proto.clarifai.api.AiAssistParameters', null, global);
27
48
  goog.exportSymbol('proto.clarifai.api.And', null, global);
28
49
  goog.exportSymbol('proto.clarifai.api.Annotation', null, global);
50
+ goog.exportSymbol('proto.clarifai.api.AnnotationFilter', null, global);
51
+ goog.exportSymbol('proto.clarifai.api.AnnotationFilterConfig', null, global);
29
52
  goog.exportSymbol('proto.clarifai.api.AnnotationSearchMetrics', null, global);
30
53
  goog.exportSymbol('proto.clarifai.api.App', null, global);
31
54
  goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
@@ -53,11 +76,13 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
53
76
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
54
77
  goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
55
78
  goog.exportSymbol('proto.clarifai.api.Data', null, global);
56
- goog.exportSymbol('proto.clarifai.api.DatasetFilter', null, global);
79
+ goog.exportSymbol('proto.clarifai.api.Dataset', null, global);
80
+ goog.exportSymbol('proto.clarifai.api.DatasetInput', null, global);
57
81
  goog.exportSymbol('proto.clarifai.api.DatasetVersion', null, global);
58
82
  goog.exportSymbol('proto.clarifai.api.DatasetVersion.DataConfigCase', null, global);
59
- goog.exportSymbol('proto.clarifai.api.DatasetVersionDatasetFilterConfig', null, global);
60
- goog.exportSymbol('proto.clarifai.api.DatasetVersionSummary', null, global);
83
+ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetrics', null, global);
84
+ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global);
85
+ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
61
86
  goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global);
62
87
  goog.exportSymbol('proto.clarifai.api.EmailAddress', null, global);
63
88
  goog.exportSymbol('proto.clarifai.api.Embedding', null, global);
@@ -87,7 +112,9 @@ goog.exportSymbol('proto.clarifai.api.KnowledgeGraph', null, global);
87
112
  goog.exportSymbol('proto.clarifai.api.LOPQEvalResult', null, global);
88
113
  goog.exportSymbol('proto.clarifai.api.LabelCount', null, global);
89
114
  goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
115
+ goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
90
116
  goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
117
+ goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
91
118
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
92
119
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
93
120
  goog.exportSymbol('proto.clarifai.api.Model', null, global);
@@ -95,6 +122,7 @@ goog.exportSymbol('proto.clarifai.api.ModelQuery', null, global);
95
122
  goog.exportSymbol('proto.clarifai.api.ModelReference', null, global);
96
123
  goog.exportSymbol('proto.clarifai.api.ModelType', null, global);
97
124
  goog.exportSymbol('proto.clarifai.api.ModelTypeEnumOption', null, global);
125
+ goog.exportSymbol('proto.clarifai.api.ModelTypeEnumOptionAlias', null, global);
98
126
  goog.exportSymbol('proto.clarifai.api.ModelTypeField', null, global);
99
127
  goog.exportSymbol('proto.clarifai.api.ModelTypeField.ModelTypeFieldType', null, global);
100
128
  goog.exportSymbol('proto.clarifai.api.ModelTypeRangeInfo', null, global);
@@ -110,6 +138,7 @@ goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
110
138
  goog.exportSymbol('proto.clarifai.api.Point', null, global);
111
139
  goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
112
140
  goog.exportSymbol('proto.clarifai.api.PrecisionRecallCurve', null, global);
141
+ goog.exportSymbol('proto.clarifai.api.PretrainedModelConfig', null, global);
113
142
  goog.exportSymbol('proto.clarifai.api.Query', null, global);
114
143
  goog.exportSymbol('proto.clarifai.api.ROC', null, global);
115
144
  goog.exportSymbol('proto.clarifai.api.Rank', null, global);
@@ -118,6 +147,7 @@ goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
118
147
  goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
119
148
  goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
120
149
  goog.exportSymbol('proto.clarifai.api.Search', null, global);
150
+ goog.exportSymbol('proto.clarifai.api.Span', null, global);
121
151
  goog.exportSymbol('proto.clarifai.api.StatTimeAggType', null, global);
122
152
  goog.exportSymbol('proto.clarifai.api.StatValue', null, global);
123
153
  goog.exportSymbol('proto.clarifai.api.StatValueAggType', null, global);
@@ -145,9 +175,11 @@ goog.exportSymbol('proto.clarifai.api.TextInfo', null, global);
145
175
  goog.exportSymbol('proto.clarifai.api.TimeInfo', null, global);
146
176
  goog.exportSymbol('proto.clarifai.api.TimeRange', null, global);
147
177
  goog.exportSymbol('proto.clarifai.api.TimeSegment', null, global);
178
+ goog.exportSymbol('proto.clarifai.api.Token', null, global);
148
179
  goog.exportSymbol('proto.clarifai.api.Track', null, global);
149
180
  goog.exportSymbol('proto.clarifai.api.TrackerMetrics', null, global);
150
181
  goog.exportSymbol('proto.clarifai.api.TrainInfo', null, global);
182
+ goog.exportSymbol('proto.clarifai.api.TrainStats', null, global);
151
183
  goog.exportSymbol('proto.clarifai.api.TrendingMetric', null, global);
152
184
  goog.exportSymbol('proto.clarifai.api.UsageIntervalType', null, global);
153
185
  goog.exportSymbol('proto.clarifai.api.User', null, global);
@@ -817,6 +849,48 @@ if (goog.DEBUG && !COMPILED) {
817
849
  */
818
850
  proto.clarifai.api.Point.displayName = 'proto.clarifai.api.Point';
819
851
  }
852
+ /**
853
+ * Generated by JsPbCodeGenerator.
854
+ * @param {Array=} opt_data Optional initial data array, typically from a
855
+ * server response, or constructed directly in Javascript. The array is used
856
+ * in place and becomes part of the constructed object. It is not cloned.
857
+ * If no data is provided, the constructed object will be empty, but still
858
+ * valid.
859
+ * @extends {jspb.Message}
860
+ * @constructor
861
+ */
862
+ proto.clarifai.api.Span = function (opt_data) {
863
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
864
+ };
865
+ goog.inherits(proto.clarifai.api.Span, jspb.Message);
866
+ if (goog.DEBUG && !COMPILED) {
867
+ /**
868
+ * @public
869
+ * @override
870
+ */
871
+ proto.clarifai.api.Span.displayName = 'proto.clarifai.api.Span';
872
+ }
873
+ /**
874
+ * Generated by JsPbCodeGenerator.
875
+ * @param {Array=} opt_data Optional initial data array, typically from a
876
+ * server response, or constructed directly in Javascript. The array is used
877
+ * in place and becomes part of the constructed object. It is not cloned.
878
+ * If no data is provided, the constructed object will be empty, but still
879
+ * valid.
880
+ * @extends {jspb.Message}
881
+ * @constructor
882
+ */
883
+ proto.clarifai.api.Token = function (opt_data) {
884
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
885
+ };
886
+ goog.inherits(proto.clarifai.api.Token, jspb.Message);
887
+ if (goog.DEBUG && !COMPILED) {
888
+ /**
889
+ * @public
890
+ * @override
891
+ */
892
+ proto.clarifai.api.Token.displayName = 'proto.clarifai.api.Token';
893
+ }
820
894
  /**
821
895
  * Generated by JsPbCodeGenerator.
822
896
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1037,16 +1111,58 @@ if (goog.DEBUG && !COMPILED) {
1037
1111
  * @extends {jspb.Message}
1038
1112
  * @constructor
1039
1113
  */
1040
- proto.clarifai.api.DatasetFilter = function (opt_data) {
1114
+ proto.clarifai.api.Dataset = function (opt_data) {
1115
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1116
+ };
1117
+ goog.inherits(proto.clarifai.api.Dataset, jspb.Message);
1118
+ if (goog.DEBUG && !COMPILED) {
1119
+ /**
1120
+ * @public
1121
+ * @override
1122
+ */
1123
+ proto.clarifai.api.Dataset.displayName = 'proto.clarifai.api.Dataset';
1124
+ }
1125
+ /**
1126
+ * Generated by JsPbCodeGenerator.
1127
+ * @param {Array=} opt_data Optional initial data array, typically from a
1128
+ * server response, or constructed directly in Javascript. The array is used
1129
+ * in place and becomes part of the constructed object. It is not cloned.
1130
+ * If no data is provided, the constructed object will be empty, but still
1131
+ * valid.
1132
+ * @extends {jspb.Message}
1133
+ * @constructor
1134
+ */
1135
+ proto.clarifai.api.AnnotationFilter = function (opt_data) {
1041
1136
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1042
1137
  };
1043
- goog.inherits(proto.clarifai.api.DatasetFilter, jspb.Message);
1138
+ goog.inherits(proto.clarifai.api.AnnotationFilter, jspb.Message);
1044
1139
  if (goog.DEBUG && !COMPILED) {
1045
1140
  /**
1046
1141
  * @public
1047
1142
  * @override
1048
1143
  */
1049
- proto.clarifai.api.DatasetFilter.displayName = 'proto.clarifai.api.DatasetFilter';
1144
+ proto.clarifai.api.AnnotationFilter.displayName = 'proto.clarifai.api.AnnotationFilter';
1145
+ }
1146
+ /**
1147
+ * Generated by JsPbCodeGenerator.
1148
+ * @param {Array=} opt_data Optional initial data array, typically from a
1149
+ * server response, or constructed directly in Javascript. The array is used
1150
+ * in place and becomes part of the constructed object. It is not cloned.
1151
+ * If no data is provided, the constructed object will be empty, but still
1152
+ * valid.
1153
+ * @extends {jspb.Message}
1154
+ * @constructor
1155
+ */
1156
+ proto.clarifai.api.DatasetInput = function (opt_data) {
1157
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1158
+ };
1159
+ goog.inherits(proto.clarifai.api.DatasetInput, jspb.Message);
1160
+ if (goog.DEBUG && !COMPILED) {
1161
+ /**
1162
+ * @public
1163
+ * @override
1164
+ */
1165
+ proto.clarifai.api.DatasetInput.displayName = 'proto.clarifai.api.DatasetInput';
1050
1166
  }
1051
1167
  /**
1052
1168
  * Generated by JsPbCodeGenerator.
@@ -1079,16 +1195,37 @@ if (goog.DEBUG && !COMPILED) {
1079
1195
  * @extends {jspb.Message}
1080
1196
  * @constructor
1081
1197
  */
1082
- proto.clarifai.api.DatasetVersionDatasetFilterConfig = function (opt_data) {
1198
+ proto.clarifai.api.AnnotationFilterConfig = function (opt_data) {
1199
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1200
+ };
1201
+ goog.inherits(proto.clarifai.api.AnnotationFilterConfig, jspb.Message);
1202
+ if (goog.DEBUG && !COMPILED) {
1203
+ /**
1204
+ * @public
1205
+ * @override
1206
+ */
1207
+ proto.clarifai.api.AnnotationFilterConfig.displayName = 'proto.clarifai.api.AnnotationFilterConfig';
1208
+ }
1209
+ /**
1210
+ * Generated by JsPbCodeGenerator.
1211
+ * @param {Array=} opt_data Optional initial data array, typically from a
1212
+ * server response, or constructed directly in Javascript. The array is used
1213
+ * in place and becomes part of the constructed object. It is not cloned.
1214
+ * If no data is provided, the constructed object will be empty, but still
1215
+ * valid.
1216
+ * @extends {jspb.Message}
1217
+ * @constructor
1218
+ */
1219
+ proto.clarifai.api.DatasetVersionMetrics = function (opt_data) {
1083
1220
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1084
1221
  };
1085
- goog.inherits(proto.clarifai.api.DatasetVersionDatasetFilterConfig, jspb.Message);
1222
+ goog.inherits(proto.clarifai.api.DatasetVersionMetrics, jspb.Message);
1086
1223
  if (goog.DEBUG && !COMPILED) {
1087
1224
  /**
1088
1225
  * @public
1089
1226
  * @override
1090
1227
  */
1091
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.displayName = 'proto.clarifai.api.DatasetVersionDatasetFilterConfig';
1228
+ proto.clarifai.api.DatasetVersionMetrics.displayName = 'proto.clarifai.api.DatasetVersionMetrics';
1092
1229
  }
1093
1230
  /**
1094
1231
  * Generated by JsPbCodeGenerator.
@@ -1100,16 +1237,16 @@ if (goog.DEBUG && !COMPILED) {
1100
1237
  * @extends {jspb.Message}
1101
1238
  * @constructor
1102
1239
  */
1103
- proto.clarifai.api.DatasetVersionSummary = function (opt_data) {
1240
+ proto.clarifai.api.DatasetVersionMetricsGroup = function (opt_data) {
1104
1241
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1105
1242
  };
1106
- goog.inherits(proto.clarifai.api.DatasetVersionSummary, jspb.Message);
1243
+ goog.inherits(proto.clarifai.api.DatasetVersionMetricsGroup, jspb.Message);
1107
1244
  if (goog.DEBUG && !COMPILED) {
1108
1245
  /**
1109
1246
  * @public
1110
1247
  * @override
1111
1248
  */
1112
- proto.clarifai.api.DatasetVersionSummary.displayName = 'proto.clarifai.api.DatasetVersionSummary';
1249
+ proto.clarifai.api.DatasetVersionMetricsGroup.displayName = 'proto.clarifai.api.DatasetVersionMetricsGroup';
1113
1250
  }
1114
1251
  /**
1115
1252
  * Generated by JsPbCodeGenerator.
@@ -1405,6 +1542,27 @@ if (goog.DEBUG && !COMPILED) {
1405
1542
  */
1406
1543
  proto.clarifai.api.ModelTypeEnumOption.displayName = 'proto.clarifai.api.ModelTypeEnumOption';
1407
1544
  }
1545
+ /**
1546
+ * Generated by JsPbCodeGenerator.
1547
+ * @param {Array=} opt_data Optional initial data array, typically from a
1548
+ * server response, or constructed directly in Javascript. The array is used
1549
+ * in place and becomes part of the constructed object. It is not cloned.
1550
+ * If no data is provided, the constructed object will be empty, but still
1551
+ * valid.
1552
+ * @extends {jspb.Message}
1553
+ * @constructor
1554
+ */
1555
+ proto.clarifai.api.ModelTypeEnumOptionAlias = function (opt_data) {
1556
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1557
+ };
1558
+ goog.inherits(proto.clarifai.api.ModelTypeEnumOptionAlias, jspb.Message);
1559
+ if (goog.DEBUG && !COMPILED) {
1560
+ /**
1561
+ * @public
1562
+ * @override
1563
+ */
1564
+ proto.clarifai.api.ModelTypeEnumOptionAlias.displayName = 'proto.clarifai.api.ModelTypeEnumOptionAlias';
1565
+ }
1408
1566
  /**
1409
1567
  * Generated by JsPbCodeGenerator.
1410
1568
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1447,6 +1605,69 @@ if (goog.DEBUG && !COMPILED) {
1447
1605
  */
1448
1606
  proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
1449
1607
  }
1608
+ /**
1609
+ * Generated by JsPbCodeGenerator.
1610
+ * @param {Array=} opt_data Optional initial data array, typically from a
1611
+ * server response, or constructed directly in Javascript. The array is used
1612
+ * in place and becomes part of the constructed object. It is not cloned.
1613
+ * If no data is provided, the constructed object will be empty, but still
1614
+ * valid.
1615
+ * @extends {jspb.Message}
1616
+ * @constructor
1617
+ */
1618
+ proto.clarifai.api.PretrainedModelConfig = function (opt_data) {
1619
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1620
+ };
1621
+ goog.inherits(proto.clarifai.api.PretrainedModelConfig, jspb.Message);
1622
+ if (goog.DEBUG && !COMPILED) {
1623
+ /**
1624
+ * @public
1625
+ * @override
1626
+ */
1627
+ proto.clarifai.api.PretrainedModelConfig.displayName = 'proto.clarifai.api.PretrainedModelConfig';
1628
+ }
1629
+ /**
1630
+ * Generated by JsPbCodeGenerator.
1631
+ * @param {Array=} opt_data Optional initial data array, typically from a
1632
+ * server response, or constructed directly in Javascript. The array is used
1633
+ * in place and becomes part of the constructed object. It is not cloned.
1634
+ * If no data is provided, the constructed object will be empty, but still
1635
+ * valid.
1636
+ * @extends {jspb.Message}
1637
+ * @constructor
1638
+ */
1639
+ proto.clarifai.api.TrainStats = function (opt_data) {
1640
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.TrainStats.repeatedFields_, null);
1641
+ };
1642
+ goog.inherits(proto.clarifai.api.TrainStats, jspb.Message);
1643
+ if (goog.DEBUG && !COMPILED) {
1644
+ /**
1645
+ * @public
1646
+ * @override
1647
+ */
1648
+ proto.clarifai.api.TrainStats.displayName = 'proto.clarifai.api.TrainStats';
1649
+ }
1650
+ /**
1651
+ * Generated by JsPbCodeGenerator.
1652
+ * @param {Array=} opt_data Optional initial data array, typically from a
1653
+ * server response, or constructed directly in Javascript. The array is used
1654
+ * in place and becomes part of the constructed object. It is not cloned.
1655
+ * If no data is provided, the constructed object will be empty, but still
1656
+ * valid.
1657
+ * @extends {jspb.Message}
1658
+ * @constructor
1659
+ */
1660
+ proto.clarifai.api.LossCurveEntry = function (opt_data) {
1661
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1662
+ };
1663
+ goog.inherits(proto.clarifai.api.LossCurveEntry, jspb.Message);
1664
+ if (goog.DEBUG && !COMPILED) {
1665
+ /**
1666
+ * @public
1667
+ * @override
1668
+ */
1669
+ proto.clarifai.api.LossCurveEntry.displayName = 'proto.clarifai.api.LossCurveEntry';
1670
+ }
1450
1671
  /**
1451
1672
  * Generated by JsPbCodeGenerator.
1452
1673
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2350,6 +2571,27 @@ if (goog.DEBUG && !COMPILED) {
2350
2571
  */
2351
2572
  proto.clarifai.api.AppDuplicationFilters.displayName = 'proto.clarifai.api.AppDuplicationFilters';
2352
2573
  }
2574
+ /**
2575
+ * Generated by JsPbCodeGenerator.
2576
+ * @param {Array=} opt_data Optional initial data array, typically from a
2577
+ * server response, or constructed directly in Javascript. The array is used
2578
+ * in place and becomes part of the constructed object. It is not cloned.
2579
+ * If no data is provided, the constructed object will be empty, but still
2580
+ * valid.
2581
+ * @extends {jspb.Message}
2582
+ * @constructor
2583
+ */
2584
+ proto.clarifai.api.LabelOrder = function (opt_data) {
2585
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2586
+ };
2587
+ goog.inherits(proto.clarifai.api.LabelOrder, jspb.Message);
2588
+ if (goog.DEBUG && !COMPILED) {
2589
+ /**
2590
+ * @public
2591
+ * @override
2592
+ */
2593
+ proto.clarifai.api.LabelOrder.displayName = 'proto.clarifai.api.LabelOrder';
2594
+ }
2353
2595
  /**
2354
2596
  * Generated by JsPbCodeGenerator.
2355
2597
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3328,7 +3570,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3328
3570
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
3329
3571
  dataTierId: jspb.Message.getFieldWithDefault(msg, 18, ""),
3330
3572
  isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
3331
- starCount: jspb.Message.getFieldWithDefault(msg, 20, 0)
3573
+ starCount: jspb.Message.getFieldWithDefault(msg, 20, 0),
3574
+ notes: jspb.Message.getFieldWithDefault(msg, 21, "")
3332
3575
  };
3333
3576
  if (includeInstance) {
3334
3577
  obj.$jspbMessageInstance = msg;
@@ -3424,6 +3667,10 @@ proto.clarifai.api.App.deserializeBinaryFromReader = function (msg, reader) {
3424
3667
  var value = /** @type {number} */ (reader.readInt32());
3425
3668
  msg.setStarCount(value);
3426
3669
  break;
3670
+ case 21:
3671
+ var value = /** @type {string} */ (reader.readString());
3672
+ msg.setNotes(value);
3673
+ break;
3427
3674
  default:
3428
3675
  reader.skipField();
3429
3676
  break;
@@ -3509,6 +3756,10 @@ proto.clarifai.api.App.serializeBinaryToWriter = function (message, writer) {
3509
3756
  if (f !== 0) {
3510
3757
  writer.writeInt32(20, f);
3511
3758
  }
3759
+ f = message.getNotes();
3760
+ if (f.length > 0) {
3761
+ writer.writeString(21, f);
3762
+ }
3512
3763
  };
3513
3764
  /**
3514
3765
  * optional string id = 1;
@@ -3776,6 +4027,20 @@ proto.clarifai.api.App.prototype.getStarCount = function () {
3776
4027
  proto.clarifai.api.App.prototype.setStarCount = function (value) {
3777
4028
  return jspb.Message.setProto3IntField(this, 20, value);
3778
4029
  };
4030
+ /**
4031
+ * optional string notes = 21;
4032
+ * @return {string}
4033
+ */
4034
+ proto.clarifai.api.App.prototype.getNotes = function () {
4035
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
4036
+ };
4037
+ /**
4038
+ * @param {string} value
4039
+ * @return {!proto.clarifai.api.App} returns this
4040
+ */
4041
+ proto.clarifai.api.App.prototype.setNotes = function (value) {
4042
+ return jspb.Message.setProto3StringField(this, 21, value);
4043
+ };
3779
4044
  if (jspb.Message.GENERATE_TO_OBJECT) {
3780
4045
  /**
3781
4046
  * Creates an object representation of this proto.
@@ -5258,8 +5523,10 @@ proto.clarifai.api.Cluster.deserializeBinaryFromReader = function (msg, reader)
5258
5523
  msg.addHits(value);
5259
5524
  break;
5260
5525
  case 5:
5261
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
5262
- msg.setProjectionList(value);
5526
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
5527
+ for (var i = 0; i < values.length; i++) {
5528
+ msg.addProjection(values[i]);
5529
+ }
5263
5530
  break;
5264
5531
  default:
5265
5532
  reader.skipField();
@@ -7832,7 +8099,7 @@ proto.clarifai.api.ConceptLanguage.prototype.setDefinition = function (value) {
7832
8099
  * @private {!Array<number>}
7833
8100
  * @const
7834
8101
  */
7835
- proto.clarifai.api.Data.repeatedFields_ = [3, 7, 8, 9, 11, 12, 15, 16];
8102
+ proto.clarifai.api.Data.repeatedFields_ = [3, 7, 8, 9, 11, 12, 15, 16, 17];
7836
8103
  if (jspb.Message.GENERATE_TO_OBJECT) {
7837
8104
  /**
7838
8105
  * Creates an object representation of this proto.
@@ -7873,7 +8140,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7873
8140
  text: (f = msg.getText()) && proto.clarifai.api.Text.toObject(includeInstance, f),
7874
8141
  audio: (f = msg.getAudio()) && proto.clarifai.api.Audio.toObject(includeInstance, f),
7875
8142
  tracksList: jspb.Message.toObjectList(msg.getTracksList(), proto.clarifai.api.Track.toObject, includeInstance),
7876
- timeSegmentsList: jspb.Message.toObjectList(msg.getTimeSegmentsList(), proto.clarifai.api.TimeSegment.toObject, includeInstance)
8143
+ timeSegmentsList: jspb.Message.toObjectList(msg.getTimeSegmentsList(), proto.clarifai.api.TimeSegment.toObject, includeInstance),
8144
+ hitsList: jspb.Message.toObjectList(msg.getHitsList(), proto.clarifai.api.Hit.toObject, includeInstance)
7877
8145
  };
7878
8146
  if (includeInstance) {
7879
8147
  obj.$jspbMessageInstance = msg;
@@ -7975,6 +8243,11 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function (msg, reader) {
7975
8243
  reader.readMessage(value, proto.clarifai.api.TimeSegment.deserializeBinaryFromReader);
7976
8244
  msg.addTimeSegments(value);
7977
8245
  break;
8246
+ case 17:
8247
+ var value = new proto.clarifai.api.Hit;
8248
+ reader.readMessage(value, proto.clarifai.api.Hit.deserializeBinaryFromReader);
8249
+ msg.addHits(value);
8250
+ break;
7978
8251
  default:
7979
8252
  reader.skipField();
7980
8253
  break;
@@ -8056,6 +8329,10 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function (message, writer) {
8056
8329
  if (f.length > 0) {
8057
8330
  writer.writeRepeatedMessage(16, f, proto.clarifai.api.TimeSegment.serializeBinaryToWriter);
8058
8331
  }
8332
+ f = message.getHitsList();
8333
+ if (f.length > 0) {
8334
+ writer.writeRepeatedMessage(17, f, proto.clarifai.api.Hit.serializeBinaryToWriter);
8335
+ }
8059
8336
  };
8060
8337
  /**
8061
8338
  * optional Image image = 1;
@@ -8457,6 +8734,35 @@ proto.clarifai.api.Data.prototype.addTimeSegments = function (opt_value, opt_ind
8457
8734
  proto.clarifai.api.Data.prototype.clearTimeSegmentsList = function () {
8458
8735
  return this.setTimeSegmentsList([]);
8459
8736
  };
8737
+ /**
8738
+ * repeated Hit hits = 17;
8739
+ * @return {!Array<!proto.clarifai.api.Hit>}
8740
+ */
8741
+ proto.clarifai.api.Data.prototype.getHitsList = function () {
8742
+ return /** @type{!Array<!proto.clarifai.api.Hit>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 17));
8743
+ };
8744
+ /**
8745
+ * @param {!Array<!proto.clarifai.api.Hit>} value
8746
+ * @return {!proto.clarifai.api.Data} returns this
8747
+ */
8748
+ proto.clarifai.api.Data.prototype.setHitsList = function (value) {
8749
+ return jspb.Message.setRepeatedWrapperField(this, 17, value);
8750
+ };
8751
+ /**
8752
+ * @param {!proto.clarifai.api.Hit=} opt_value
8753
+ * @param {number=} opt_index
8754
+ * @return {!proto.clarifai.api.Hit}
8755
+ */
8756
+ proto.clarifai.api.Data.prototype.addHits = function (opt_value, opt_index) {
8757
+ return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.clarifai.api.Hit, opt_index);
8758
+ };
8759
+ /**
8760
+ * Clears the list making it empty but non-null.
8761
+ * @return {!proto.clarifai.api.Data} returns this
8762
+ */
8763
+ proto.clarifai.api.Data.prototype.clearHitsList = function () {
8764
+ return this.setHitsList([]);
8765
+ };
8460
8766
  if (jspb.Message.GENERATE_TO_OBJECT) {
8461
8767
  /**
8462
8768
  * Creates an object representation of this proto.
@@ -8716,7 +9022,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
8716
9022
  boundingBox: (f = msg.getBoundingBox()) && proto.clarifai.api.BoundingBox.toObject(includeInstance, f),
8717
9023
  mask: (f = msg.getMask()) && proto.clarifai.api.Mask.toObject(includeInstance, f),
8718
9024
  polygon: (f = msg.getPolygon()) && proto.clarifai.api.Polygon.toObject(includeInstance, f),
8719
- point: (f = msg.getPoint()) && proto.clarifai.api.Point.toObject(includeInstance, f)
9025
+ point: (f = msg.getPoint()) && proto.clarifai.api.Point.toObject(includeInstance, f),
9026
+ span: (f = msg.getSpan()) && proto.clarifai.api.Span.toObject(includeInstance, f),
9027
+ token: (f = msg.getToken()) && proto.clarifai.api.Token.toObject(includeInstance, f)
8720
9028
  };
8721
9029
  if (includeInstance) {
8722
9030
  obj.$jspbMessageInstance = msg;
@@ -8768,6 +9076,16 @@ proto.clarifai.api.RegionInfo.deserializeBinaryFromReader = function (msg, reade
8768
9076
  reader.readMessage(value, proto.clarifai.api.Point.deserializeBinaryFromReader);
8769
9077
  msg.setPoint(value);
8770
9078
  break;
9079
+ case 7:
9080
+ var value = new proto.clarifai.api.Span;
9081
+ reader.readMessage(value, proto.clarifai.api.Span.deserializeBinaryFromReader);
9082
+ msg.setSpan(value);
9083
+ break;
9084
+ case 8:
9085
+ var value = new proto.clarifai.api.Token;
9086
+ reader.readMessage(value, proto.clarifai.api.Token.deserializeBinaryFromReader);
9087
+ msg.setToken(value);
9088
+ break;
8771
9089
  default:
8772
9090
  reader.skipField();
8773
9091
  break;
@@ -8809,6 +9127,14 @@ proto.clarifai.api.RegionInfo.serializeBinaryToWriter = function (message, write
8809
9127
  if (f != null) {
8810
9128
  writer.writeMessage(6, f, proto.clarifai.api.Point.serializeBinaryToWriter);
8811
9129
  }
9130
+ f = message.getSpan();
9131
+ if (f != null) {
9132
+ writer.writeMessage(7, f, proto.clarifai.api.Span.serializeBinaryToWriter);
9133
+ }
9134
+ f = message.getToken();
9135
+ if (f != null) {
9136
+ writer.writeMessage(8, f, proto.clarifai.api.Token.serializeBinaryToWriter);
9137
+ }
8812
9138
  };
8813
9139
  /**
8814
9140
  * optional BoundingBox bounding_box = 1;
@@ -8922,6 +9248,62 @@ proto.clarifai.api.RegionInfo.prototype.clearPoint = function () {
8922
9248
  proto.clarifai.api.RegionInfo.prototype.hasPoint = function () {
8923
9249
  return jspb.Message.getField(this, 6) != null;
8924
9250
  };
9251
+ /**
9252
+ * optional Span span = 7;
9253
+ * @return {?proto.clarifai.api.Span}
9254
+ */
9255
+ proto.clarifai.api.RegionInfo.prototype.getSpan = function () {
9256
+ return /** @type{?proto.clarifai.api.Span} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Span, 7));
9257
+ };
9258
+ /**
9259
+ * @param {?proto.clarifai.api.Span|undefined} value
9260
+ * @return {!proto.clarifai.api.RegionInfo} returns this
9261
+ */
9262
+ proto.clarifai.api.RegionInfo.prototype.setSpan = function (value) {
9263
+ return jspb.Message.setWrapperField(this, 7, value);
9264
+ };
9265
+ /**
9266
+ * Clears the message field making it undefined.
9267
+ * @return {!proto.clarifai.api.RegionInfo} returns this
9268
+ */
9269
+ proto.clarifai.api.RegionInfo.prototype.clearSpan = function () {
9270
+ return this.setSpan(undefined);
9271
+ };
9272
+ /**
9273
+ * Returns whether this field is set.
9274
+ * @return {boolean}
9275
+ */
9276
+ proto.clarifai.api.RegionInfo.prototype.hasSpan = function () {
9277
+ return jspb.Message.getField(this, 7) != null;
9278
+ };
9279
+ /**
9280
+ * optional Token token = 8;
9281
+ * @return {?proto.clarifai.api.Token}
9282
+ */
9283
+ proto.clarifai.api.RegionInfo.prototype.getToken = function () {
9284
+ return /** @type{?proto.clarifai.api.Token} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Token, 8));
9285
+ };
9286
+ /**
9287
+ * @param {?proto.clarifai.api.Token|undefined} value
9288
+ * @return {!proto.clarifai.api.RegionInfo} returns this
9289
+ */
9290
+ proto.clarifai.api.RegionInfo.prototype.setToken = function (value) {
9291
+ return jspb.Message.setWrapperField(this, 8, value);
9292
+ };
9293
+ /**
9294
+ * Clears the message field making it undefined.
9295
+ * @return {!proto.clarifai.api.RegionInfo} returns this
9296
+ */
9297
+ proto.clarifai.api.RegionInfo.prototype.clearToken = function () {
9298
+ return this.setToken(undefined);
9299
+ };
9300
+ /**
9301
+ * Returns whether this field is set.
9302
+ * @return {boolean}
9303
+ */
9304
+ proto.clarifai.api.RegionInfo.prototype.hasToken = function () {
9305
+ return jspb.Message.getField(this, 8) != null;
9306
+ };
8925
9307
  if (jspb.Message.GENERATE_TO_OBJECT) {
8926
9308
  /**
8927
9309
  * Creates an object representation of this proto.
@@ -9815,6 +10197,312 @@ proto.clarifai.api.Point.prototype.getZ = function () {
9815
10197
  proto.clarifai.api.Point.prototype.setZ = function (value) {
9816
10198
  return jspb.Message.setProto3FloatField(this, 3, value);
9817
10199
  };
10200
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10201
+ /**
10202
+ * Creates an object representation of this proto.
10203
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10204
+ * Optional fields that are not set will be set to undefined.
10205
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10206
+ * For the list of reserved names please see:
10207
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10208
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10209
+ * JSPB instance for transitional soy proto support:
10210
+ * http://goto/soy-param-migration
10211
+ * @return {!Object}
10212
+ */
10213
+ proto.clarifai.api.Span.prototype.toObject = function (opt_includeInstance) {
10214
+ return proto.clarifai.api.Span.toObject(opt_includeInstance, this);
10215
+ };
10216
+ /**
10217
+ * Static version of the {@see toObject} method.
10218
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10219
+ * the JSPB instance for transitional soy proto support:
10220
+ * http://goto/soy-param-migration
10221
+ * @param {!proto.clarifai.api.Span} msg The msg instance to transform.
10222
+ * @return {!Object}
10223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10224
+ */
10225
+ proto.clarifai.api.Span.toObject = function (includeInstance, msg) {
10226
+ var f, obj = {
10227
+ charStart: jspb.Message.getFieldWithDefault(msg, 1, 0),
10228
+ charEnd: jspb.Message.getFieldWithDefault(msg, 2, 0),
10229
+ rawText: jspb.Message.getFieldWithDefault(msg, 3, "")
10230
+ };
10231
+ if (includeInstance) {
10232
+ obj.$jspbMessageInstance = msg;
10233
+ }
10234
+ return obj;
10235
+ };
10236
+ }
10237
+ /**
10238
+ * Deserializes binary data (in protobuf wire format).
10239
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10240
+ * @return {!proto.clarifai.api.Span}
10241
+ */
10242
+ proto.clarifai.api.Span.deserializeBinary = function (bytes) {
10243
+ var reader = new jspb.BinaryReader(bytes);
10244
+ var msg = new proto.clarifai.api.Span;
10245
+ return proto.clarifai.api.Span.deserializeBinaryFromReader(msg, reader);
10246
+ };
10247
+ /**
10248
+ * Deserializes binary data (in protobuf wire format) from the
10249
+ * given reader into the given message object.
10250
+ * @param {!proto.clarifai.api.Span} msg The message object to deserialize into.
10251
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10252
+ * @return {!proto.clarifai.api.Span}
10253
+ */
10254
+ proto.clarifai.api.Span.deserializeBinaryFromReader = function (msg, reader) {
10255
+ while (reader.nextField()) {
10256
+ if (reader.isEndGroup()) {
10257
+ break;
10258
+ }
10259
+ var field = reader.getFieldNumber();
10260
+ switch (field) {
10261
+ case 1:
10262
+ var value = /** @type {number} */ (reader.readUint32());
10263
+ msg.setCharStart(value);
10264
+ break;
10265
+ case 2:
10266
+ var value = /** @type {number} */ (reader.readUint32());
10267
+ msg.setCharEnd(value);
10268
+ break;
10269
+ case 3:
10270
+ var value = /** @type {string} */ (reader.readString());
10271
+ msg.setRawText(value);
10272
+ break;
10273
+ default:
10274
+ reader.skipField();
10275
+ break;
10276
+ }
10277
+ }
10278
+ return msg;
10279
+ };
10280
+ /**
10281
+ * Serializes the message to binary data (in protobuf wire format).
10282
+ * @return {!Uint8Array}
10283
+ */
10284
+ proto.clarifai.api.Span.prototype.serializeBinary = function () {
10285
+ var writer = new jspb.BinaryWriter();
10286
+ proto.clarifai.api.Span.serializeBinaryToWriter(this, writer);
10287
+ return writer.getResultBuffer();
10288
+ };
10289
+ /**
10290
+ * Serializes the given message to binary data (in protobuf wire
10291
+ * format), writing to the given BinaryWriter.
10292
+ * @param {!proto.clarifai.api.Span} message
10293
+ * @param {!jspb.BinaryWriter} writer
10294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10295
+ */
10296
+ proto.clarifai.api.Span.serializeBinaryToWriter = function (message, writer) {
10297
+ var f = undefined;
10298
+ f = message.getCharStart();
10299
+ if (f !== 0) {
10300
+ writer.writeUint32(1, f);
10301
+ }
10302
+ f = message.getCharEnd();
10303
+ if (f !== 0) {
10304
+ writer.writeUint32(2, f);
10305
+ }
10306
+ f = message.getRawText();
10307
+ if (f.length > 0) {
10308
+ writer.writeString(3, f);
10309
+ }
10310
+ };
10311
+ /**
10312
+ * optional uint32 char_start = 1;
10313
+ * @return {number}
10314
+ */
10315
+ proto.clarifai.api.Span.prototype.getCharStart = function () {
10316
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10317
+ };
10318
+ /**
10319
+ * @param {number} value
10320
+ * @return {!proto.clarifai.api.Span} returns this
10321
+ */
10322
+ proto.clarifai.api.Span.prototype.setCharStart = function (value) {
10323
+ return jspb.Message.setProto3IntField(this, 1, value);
10324
+ };
10325
+ /**
10326
+ * optional uint32 char_end = 2;
10327
+ * @return {number}
10328
+ */
10329
+ proto.clarifai.api.Span.prototype.getCharEnd = function () {
10330
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
10331
+ };
10332
+ /**
10333
+ * @param {number} value
10334
+ * @return {!proto.clarifai.api.Span} returns this
10335
+ */
10336
+ proto.clarifai.api.Span.prototype.setCharEnd = function (value) {
10337
+ return jspb.Message.setProto3IntField(this, 2, value);
10338
+ };
10339
+ /**
10340
+ * optional string raw_text = 3;
10341
+ * @return {string}
10342
+ */
10343
+ proto.clarifai.api.Span.prototype.getRawText = function () {
10344
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10345
+ };
10346
+ /**
10347
+ * @param {string} value
10348
+ * @return {!proto.clarifai.api.Span} returns this
10349
+ */
10350
+ proto.clarifai.api.Span.prototype.setRawText = function (value) {
10351
+ return jspb.Message.setProto3StringField(this, 3, value);
10352
+ };
10353
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10354
+ /**
10355
+ * Creates an object representation of this proto.
10356
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10357
+ * Optional fields that are not set will be set to undefined.
10358
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10359
+ * For the list of reserved names please see:
10360
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10361
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10362
+ * JSPB instance for transitional soy proto support:
10363
+ * http://goto/soy-param-migration
10364
+ * @return {!Object}
10365
+ */
10366
+ proto.clarifai.api.Token.prototype.toObject = function (opt_includeInstance) {
10367
+ return proto.clarifai.api.Token.toObject(opt_includeInstance, this);
10368
+ };
10369
+ /**
10370
+ * Static version of the {@see toObject} method.
10371
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10372
+ * the JSPB instance for transitional soy proto support:
10373
+ * http://goto/soy-param-migration
10374
+ * @param {!proto.clarifai.api.Token} msg The msg instance to transform.
10375
+ * @return {!Object}
10376
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10377
+ */
10378
+ proto.clarifai.api.Token.toObject = function (includeInstance, msg) {
10379
+ var f, obj = {
10380
+ charStart: jspb.Message.getFieldWithDefault(msg, 1, 0),
10381
+ charEnd: jspb.Message.getFieldWithDefault(msg, 2, 0),
10382
+ rawText: jspb.Message.getFieldWithDefault(msg, 3, "")
10383
+ };
10384
+ if (includeInstance) {
10385
+ obj.$jspbMessageInstance = msg;
10386
+ }
10387
+ return obj;
10388
+ };
10389
+ }
10390
+ /**
10391
+ * Deserializes binary data (in protobuf wire format).
10392
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10393
+ * @return {!proto.clarifai.api.Token}
10394
+ */
10395
+ proto.clarifai.api.Token.deserializeBinary = function (bytes) {
10396
+ var reader = new jspb.BinaryReader(bytes);
10397
+ var msg = new proto.clarifai.api.Token;
10398
+ return proto.clarifai.api.Token.deserializeBinaryFromReader(msg, reader);
10399
+ };
10400
+ /**
10401
+ * Deserializes binary data (in protobuf wire format) from the
10402
+ * given reader into the given message object.
10403
+ * @param {!proto.clarifai.api.Token} msg The message object to deserialize into.
10404
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10405
+ * @return {!proto.clarifai.api.Token}
10406
+ */
10407
+ proto.clarifai.api.Token.deserializeBinaryFromReader = function (msg, reader) {
10408
+ while (reader.nextField()) {
10409
+ if (reader.isEndGroup()) {
10410
+ break;
10411
+ }
10412
+ var field = reader.getFieldNumber();
10413
+ switch (field) {
10414
+ case 1:
10415
+ var value = /** @type {number} */ (reader.readUint32());
10416
+ msg.setCharStart(value);
10417
+ break;
10418
+ case 2:
10419
+ var value = /** @type {number} */ (reader.readUint32());
10420
+ msg.setCharEnd(value);
10421
+ break;
10422
+ case 3:
10423
+ var value = /** @type {string} */ (reader.readString());
10424
+ msg.setRawText(value);
10425
+ break;
10426
+ default:
10427
+ reader.skipField();
10428
+ break;
10429
+ }
10430
+ }
10431
+ return msg;
10432
+ };
10433
+ /**
10434
+ * Serializes the message to binary data (in protobuf wire format).
10435
+ * @return {!Uint8Array}
10436
+ */
10437
+ proto.clarifai.api.Token.prototype.serializeBinary = function () {
10438
+ var writer = new jspb.BinaryWriter();
10439
+ proto.clarifai.api.Token.serializeBinaryToWriter(this, writer);
10440
+ return writer.getResultBuffer();
10441
+ };
10442
+ /**
10443
+ * Serializes the given message to binary data (in protobuf wire
10444
+ * format), writing to the given BinaryWriter.
10445
+ * @param {!proto.clarifai.api.Token} message
10446
+ * @param {!jspb.BinaryWriter} writer
10447
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10448
+ */
10449
+ proto.clarifai.api.Token.serializeBinaryToWriter = function (message, writer) {
10450
+ var f = undefined;
10451
+ f = message.getCharStart();
10452
+ if (f !== 0) {
10453
+ writer.writeUint32(1, f);
10454
+ }
10455
+ f = message.getCharEnd();
10456
+ if (f !== 0) {
10457
+ writer.writeUint32(2, f);
10458
+ }
10459
+ f = message.getRawText();
10460
+ if (f.length > 0) {
10461
+ writer.writeString(3, f);
10462
+ }
10463
+ };
10464
+ /**
10465
+ * optional uint32 char_start = 1;
10466
+ * @return {number}
10467
+ */
10468
+ proto.clarifai.api.Token.prototype.getCharStart = function () {
10469
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10470
+ };
10471
+ /**
10472
+ * @param {number} value
10473
+ * @return {!proto.clarifai.api.Token} returns this
10474
+ */
10475
+ proto.clarifai.api.Token.prototype.setCharStart = function (value) {
10476
+ return jspb.Message.setProto3IntField(this, 1, value);
10477
+ };
10478
+ /**
10479
+ * optional uint32 char_end = 2;
10480
+ * @return {number}
10481
+ */
10482
+ proto.clarifai.api.Token.prototype.getCharEnd = function () {
10483
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
10484
+ };
10485
+ /**
10486
+ * @param {number} value
10487
+ * @return {!proto.clarifai.api.Token} returns this
10488
+ */
10489
+ proto.clarifai.api.Token.prototype.setCharEnd = function (value) {
10490
+ return jspb.Message.setProto3IntField(this, 2, value);
10491
+ };
10492
+ /**
10493
+ * optional string raw_text = 3;
10494
+ * @return {string}
10495
+ */
10496
+ proto.clarifai.api.Token.prototype.getRawText = function () {
10497
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10498
+ };
10499
+ /**
10500
+ * @param {string} value
10501
+ * @return {!proto.clarifai.api.Token} returns this
10502
+ */
10503
+ proto.clarifai.api.Token.prototype.setRawText = function (value) {
10504
+ return jspb.Message.setProto3StringField(this, 3, value);
10505
+ };
9818
10506
  /**
9819
10507
  * List of repeated fields within this message type.
9820
10508
  * @private {!Array<number>}
@@ -9882,8 +10570,10 @@ proto.clarifai.api.Embedding.deserializeBinaryFromReader = function (msg, reader
9882
10570
  var field = reader.getFieldNumber();
9883
10571
  switch (field) {
9884
10572
  case 1:
9885
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
9886
- msg.setVectorList(value);
10573
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
10574
+ for (var i = 0; i < values.length; i++) {
10575
+ msg.addVector(values[i]);
10576
+ }
9887
10577
  break;
9888
10578
  case 2:
9889
10579
  var value = /** @type {number} */ (reader.readUint32());
@@ -11757,27 +12447,31 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
11757
12447
  * http://goto/soy-param-migration
11758
12448
  * @return {!Object}
11759
12449
  */
11760
- proto.clarifai.api.DatasetFilter.prototype.toObject = function (opt_includeInstance) {
11761
- return proto.clarifai.api.DatasetFilter.toObject(opt_includeInstance, this);
12450
+ proto.clarifai.api.Dataset.prototype.toObject = function (opt_includeInstance) {
12451
+ return proto.clarifai.api.Dataset.toObject(opt_includeInstance, this);
11762
12452
  };
11763
12453
  /**
11764
12454
  * Static version of the {@see toObject} method.
11765
12455
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11766
12456
  * the JSPB instance for transitional soy proto support:
11767
12457
  * http://goto/soy-param-migration
11768
- * @param {!proto.clarifai.api.DatasetFilter} msg The msg instance to transform.
12458
+ * @param {!proto.clarifai.api.Dataset} msg The msg instance to transform.
11769
12459
  * @return {!Object}
11770
12460
  * @suppress {unusedLocalVariables} f is only used for nested messages
11771
12461
  */
11772
- proto.clarifai.api.DatasetFilter.toObject = function (includeInstance, msg) {
12462
+ proto.clarifai.api.Dataset.toObject = function (includeInstance, msg) {
11773
12463
  var f, obj = {
11774
12464
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
11775
12465
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
11776
12466
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
11777
- userId: jspb.Message.getFieldWithDefault(msg, 4, ""),
11778
- appId: jspb.Message.getFieldWithDefault(msg, 5, ""),
11779
- datasetId: jspb.Message.getFieldWithDefault(msg, 6, ""),
11780
- savedSearch: (f = msg.getSavedSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f)
12467
+ appId: jspb.Message.getFieldWithDefault(msg, 4, ""),
12468
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
12469
+ description: jspb.Message.getFieldWithDefault(msg, 7, ""),
12470
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
12471
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
12472
+ defaultAnnotationFilter: (f = msg.getDefaultAnnotationFilter()) && proto.clarifai.api.AnnotationFilter.toObject(includeInstance, f),
12473
+ notes: jspb.Message.getFieldWithDefault(msg, 11, ""),
12474
+ version: (f = msg.getVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f)
11781
12475
  };
11782
12476
  if (includeInstance) {
11783
12477
  obj.$jspbMessageInstance = msg;
@@ -11788,21 +12482,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
11788
12482
  /**
11789
12483
  * Deserializes binary data (in protobuf wire format).
11790
12484
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
11791
- * @return {!proto.clarifai.api.DatasetFilter}
12485
+ * @return {!proto.clarifai.api.Dataset}
11792
12486
  */
11793
- proto.clarifai.api.DatasetFilter.deserializeBinary = function (bytes) {
12487
+ proto.clarifai.api.Dataset.deserializeBinary = function (bytes) {
11794
12488
  var reader = new jspb.BinaryReader(bytes);
11795
- var msg = new proto.clarifai.api.DatasetFilter;
11796
- return proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader(msg, reader);
12489
+ var msg = new proto.clarifai.api.Dataset;
12490
+ return proto.clarifai.api.Dataset.deserializeBinaryFromReader(msg, reader);
11797
12491
  };
11798
12492
  /**
11799
12493
  * Deserializes binary data (in protobuf wire format) from the
11800
12494
  * given reader into the given message object.
11801
- * @param {!proto.clarifai.api.DatasetFilter} msg The message object to deserialize into.
12495
+ * @param {!proto.clarifai.api.Dataset} msg The message object to deserialize into.
11802
12496
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11803
- * @return {!proto.clarifai.api.DatasetFilter}
12497
+ * @return {!proto.clarifai.api.Dataset}
11804
12498
  */
11805
- proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader = function (msg, reader) {
12499
+ proto.clarifai.api.Dataset.deserializeBinaryFromReader = function (msg, reader) {
11806
12500
  while (reader.nextField()) {
11807
12501
  if (reader.isEndGroup()) {
11808
12502
  break;
@@ -11825,20 +12519,39 @@ proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader = function (msg, re
11825
12519
  break;
11826
12520
  case 4:
11827
12521
  var value = /** @type {string} */ (reader.readString());
11828
- msg.setUserId(value);
12522
+ msg.setAppId(value);
11829
12523
  break;
11830
12524
  case 5:
11831
12525
  var value = /** @type {string} */ (reader.readString());
11832
- msg.setAppId(value);
12526
+ msg.setUserId(value);
11833
12527
  break;
11834
- case 6:
12528
+ case 7:
11835
12529
  var value = /** @type {string} */ (reader.readString());
11836
- msg.setDatasetId(value);
12530
+ msg.setDescription(value);
11837
12531
  break;
11838
12532
  case 8:
11839
- var value = new proto.clarifai.api.Search;
11840
- reader.readMessage(value, proto.clarifai.api.Search.deserializeBinaryFromReader);
11841
- msg.setSavedSearch(value);
12533
+ var value = new google_protobuf_struct_pb.Struct;
12534
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
12535
+ msg.setMetadata(value);
12536
+ break;
12537
+ case 9:
12538
+ var value = new proto.clarifai.api.Visibility;
12539
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
12540
+ msg.setVisibility(value);
12541
+ break;
12542
+ case 12:
12543
+ var value = new proto.clarifai.api.AnnotationFilter;
12544
+ reader.readMessage(value, proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader);
12545
+ msg.setDefaultAnnotationFilter(value);
12546
+ break;
12547
+ case 11:
12548
+ var value = /** @type {string} */ (reader.readString());
12549
+ msg.setNotes(value);
12550
+ break;
12551
+ case 13:
12552
+ var value = new proto.clarifai.api.DatasetVersion;
12553
+ reader.readMessage(value, proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader);
12554
+ msg.setVersion(value);
11842
12555
  break;
11843
12556
  default:
11844
12557
  reader.skipField();
@@ -11851,19 +12564,19 @@ proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader = function (msg, re
11851
12564
  * Serializes the message to binary data (in protobuf wire format).
11852
12565
  * @return {!Uint8Array}
11853
12566
  */
11854
- proto.clarifai.api.DatasetFilter.prototype.serializeBinary = function () {
12567
+ proto.clarifai.api.Dataset.prototype.serializeBinary = function () {
11855
12568
  var writer = new jspb.BinaryWriter();
11856
- proto.clarifai.api.DatasetFilter.serializeBinaryToWriter(this, writer);
12569
+ proto.clarifai.api.Dataset.serializeBinaryToWriter(this, writer);
11857
12570
  return writer.getResultBuffer();
11858
12571
  };
11859
12572
  /**
11860
12573
  * Serializes the given message to binary data (in protobuf wire
11861
12574
  * format), writing to the given BinaryWriter.
11862
- * @param {!proto.clarifai.api.DatasetFilter} message
12575
+ * @param {!proto.clarifai.api.Dataset} message
11863
12576
  * @param {!jspb.BinaryWriter} writer
11864
12577
  * @suppress {unusedLocalVariables} f is only used for nested messages
11865
12578
  */
11866
- proto.clarifai.api.DatasetFilter.serializeBinaryToWriter = function (message, writer) {
12579
+ proto.clarifai.api.Dataset.serializeBinaryToWriter = function (message, writer) {
11867
12580
  var f = undefined;
11868
12581
  f = message.getId();
11869
12582
  if (f.length > 0) {
@@ -11877,163 +12590,704 @@ proto.clarifai.api.DatasetFilter.serializeBinaryToWriter = function (message, wr
11877
12590
  if (f != null) {
11878
12591
  writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
11879
12592
  }
11880
- f = message.getUserId();
12593
+ f = message.getAppId();
11881
12594
  if (f.length > 0) {
11882
12595
  writer.writeString(4, f);
11883
12596
  }
11884
- f = message.getAppId();
12597
+ f = message.getUserId();
11885
12598
  if (f.length > 0) {
11886
12599
  writer.writeString(5, f);
11887
12600
  }
11888
- f = message.getDatasetId();
12601
+ f = message.getDescription();
11889
12602
  if (f.length > 0) {
11890
- writer.writeString(6, f);
12603
+ writer.writeString(7, f);
11891
12604
  }
11892
- f = message.getSavedSearch();
12605
+ f = message.getMetadata();
11893
12606
  if (f != null) {
11894
- writer.writeMessage(8, f, proto.clarifai.api.Search.serializeBinaryToWriter);
12607
+ writer.writeMessage(8, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
12608
+ }
12609
+ f = message.getVisibility();
12610
+ if (f != null) {
12611
+ writer.writeMessage(9, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
12612
+ }
12613
+ f = message.getDefaultAnnotationFilter();
12614
+ if (f != null) {
12615
+ writer.writeMessage(12, f, proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter);
12616
+ }
12617
+ f = message.getNotes();
12618
+ if (f.length > 0) {
12619
+ writer.writeString(11, f);
12620
+ }
12621
+ f = message.getVersion();
12622
+ if (f != null) {
12623
+ writer.writeMessage(13, f, proto.clarifai.api.DatasetVersion.serializeBinaryToWriter);
11895
12624
  }
11896
12625
  };
11897
12626
  /**
11898
12627
  * optional string id = 1;
11899
12628
  * @return {string}
11900
12629
  */
11901
- proto.clarifai.api.DatasetFilter.prototype.getId = function () {
12630
+ proto.clarifai.api.Dataset.prototype.getId = function () {
11902
12631
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11903
12632
  };
11904
12633
  /**
11905
12634
  * @param {string} value
11906
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12635
+ * @return {!proto.clarifai.api.Dataset} returns this
11907
12636
  */
11908
- proto.clarifai.api.DatasetFilter.prototype.setId = function (value) {
12637
+ proto.clarifai.api.Dataset.prototype.setId = function (value) {
11909
12638
  return jspb.Message.setProto3StringField(this, 1, value);
11910
12639
  };
11911
12640
  /**
11912
12641
  * optional google.protobuf.Timestamp created_at = 2;
11913
12642
  * @return {?proto.google.protobuf.Timestamp}
11914
12643
  */
11915
- proto.clarifai.api.DatasetFilter.prototype.getCreatedAt = function () {
12644
+ proto.clarifai.api.Dataset.prototype.getCreatedAt = function () {
11916
12645
  return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
11917
12646
  };
11918
12647
  /**
11919
12648
  * @param {?proto.google.protobuf.Timestamp|undefined} value
11920
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12649
+ * @return {!proto.clarifai.api.Dataset} returns this
11921
12650
  */
11922
- proto.clarifai.api.DatasetFilter.prototype.setCreatedAt = function (value) {
12651
+ proto.clarifai.api.Dataset.prototype.setCreatedAt = function (value) {
11923
12652
  return jspb.Message.setWrapperField(this, 2, value);
11924
12653
  };
11925
12654
  /**
11926
12655
  * Clears the message field making it undefined.
11927
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12656
+ * @return {!proto.clarifai.api.Dataset} returns this
11928
12657
  */
11929
- proto.clarifai.api.DatasetFilter.prototype.clearCreatedAt = function () {
12658
+ proto.clarifai.api.Dataset.prototype.clearCreatedAt = function () {
11930
12659
  return this.setCreatedAt(undefined);
11931
12660
  };
11932
12661
  /**
11933
12662
  * Returns whether this field is set.
11934
12663
  * @return {boolean}
11935
12664
  */
11936
- proto.clarifai.api.DatasetFilter.prototype.hasCreatedAt = function () {
12665
+ proto.clarifai.api.Dataset.prototype.hasCreatedAt = function () {
11937
12666
  return jspb.Message.getField(this, 2) != null;
11938
12667
  };
11939
12668
  /**
11940
12669
  * optional google.protobuf.Timestamp modified_at = 3;
11941
12670
  * @return {?proto.google.protobuf.Timestamp}
11942
12671
  */
11943
- proto.clarifai.api.DatasetFilter.prototype.getModifiedAt = function () {
12672
+ proto.clarifai.api.Dataset.prototype.getModifiedAt = function () {
11944
12673
  return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
11945
12674
  };
11946
12675
  /**
11947
12676
  * @param {?proto.google.protobuf.Timestamp|undefined} value
11948
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12677
+ * @return {!proto.clarifai.api.Dataset} returns this
11949
12678
  */
11950
- proto.clarifai.api.DatasetFilter.prototype.setModifiedAt = function (value) {
12679
+ proto.clarifai.api.Dataset.prototype.setModifiedAt = function (value) {
11951
12680
  return jspb.Message.setWrapperField(this, 3, value);
11952
12681
  };
11953
12682
  /**
11954
12683
  * Clears the message field making it undefined.
11955
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12684
+ * @return {!proto.clarifai.api.Dataset} returns this
11956
12685
  */
11957
- proto.clarifai.api.DatasetFilter.prototype.clearModifiedAt = function () {
12686
+ proto.clarifai.api.Dataset.prototype.clearModifiedAt = function () {
11958
12687
  return this.setModifiedAt(undefined);
11959
12688
  };
11960
12689
  /**
11961
12690
  * Returns whether this field is set.
11962
12691
  * @return {boolean}
11963
12692
  */
11964
- proto.clarifai.api.DatasetFilter.prototype.hasModifiedAt = function () {
12693
+ proto.clarifai.api.Dataset.prototype.hasModifiedAt = function () {
11965
12694
  return jspb.Message.getField(this, 3) != null;
11966
12695
  };
11967
12696
  /**
11968
- * optional string user_id = 4;
12697
+ * optional string app_id = 4;
11969
12698
  * @return {string}
11970
12699
  */
11971
- proto.clarifai.api.DatasetFilter.prototype.getUserId = function () {
12700
+ proto.clarifai.api.Dataset.prototype.getAppId = function () {
11972
12701
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11973
12702
  };
11974
12703
  /**
11975
12704
  * @param {string} value
11976
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12705
+ * @return {!proto.clarifai.api.Dataset} returns this
11977
12706
  */
11978
- proto.clarifai.api.DatasetFilter.prototype.setUserId = function (value) {
12707
+ proto.clarifai.api.Dataset.prototype.setAppId = function (value) {
11979
12708
  return jspb.Message.setProto3StringField(this, 4, value);
11980
12709
  };
11981
12710
  /**
11982
- * optional string app_id = 5;
12711
+ * optional string user_id = 5;
11983
12712
  * @return {string}
11984
12713
  */
11985
- proto.clarifai.api.DatasetFilter.prototype.getAppId = function () {
12714
+ proto.clarifai.api.Dataset.prototype.getUserId = function () {
11986
12715
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11987
12716
  };
11988
12717
  /**
11989
12718
  * @param {string} value
11990
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12719
+ * @return {!proto.clarifai.api.Dataset} returns this
11991
12720
  */
11992
- proto.clarifai.api.DatasetFilter.prototype.setAppId = function (value) {
12721
+ proto.clarifai.api.Dataset.prototype.setUserId = function (value) {
11993
12722
  return jspb.Message.setProto3StringField(this, 5, value);
11994
12723
  };
11995
12724
  /**
11996
- * optional string dataset_id = 6;
12725
+ * optional string description = 7;
11997
12726
  * @return {string}
11998
12727
  */
11999
- proto.clarifai.api.DatasetFilter.prototype.getDatasetId = function () {
12000
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
12728
+ proto.clarifai.api.Dataset.prototype.getDescription = function () {
12729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
12001
12730
  };
12002
12731
  /**
12003
12732
  * @param {string} value
12004
- * @return {!proto.clarifai.api.DatasetFilter} returns this
12733
+ * @return {!proto.clarifai.api.Dataset} returns this
12005
12734
  */
12006
- proto.clarifai.api.DatasetFilter.prototype.setDatasetId = function (value) {
12007
- return jspb.Message.setProto3StringField(this, 6, value);
12735
+ proto.clarifai.api.Dataset.prototype.setDescription = function (value) {
12736
+ return jspb.Message.setProto3StringField(this, 7, value);
12737
+ };
12738
+ /**
12739
+ * optional google.protobuf.Struct metadata = 8;
12740
+ * @return {?proto.google.protobuf.Struct}
12741
+ */
12742
+ proto.clarifai.api.Dataset.prototype.getMetadata = function () {
12743
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
12744
+ };
12745
+ /**
12746
+ * @param {?proto.google.protobuf.Struct|undefined} value
12747
+ * @return {!proto.clarifai.api.Dataset} returns this
12748
+ */
12749
+ proto.clarifai.api.Dataset.prototype.setMetadata = function (value) {
12750
+ return jspb.Message.setWrapperField(this, 8, value);
12751
+ };
12752
+ /**
12753
+ * Clears the message field making it undefined.
12754
+ * @return {!proto.clarifai.api.Dataset} returns this
12755
+ */
12756
+ proto.clarifai.api.Dataset.prototype.clearMetadata = function () {
12757
+ return this.setMetadata(undefined);
12758
+ };
12759
+ /**
12760
+ * Returns whether this field is set.
12761
+ * @return {boolean}
12762
+ */
12763
+ proto.clarifai.api.Dataset.prototype.hasMetadata = function () {
12764
+ return jspb.Message.getField(this, 8) != null;
12765
+ };
12766
+ /**
12767
+ * optional Visibility visibility = 9;
12768
+ * @return {?proto.clarifai.api.Visibility}
12769
+ */
12770
+ proto.clarifai.api.Dataset.prototype.getVisibility = function () {
12771
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 9));
12772
+ };
12773
+ /**
12774
+ * @param {?proto.clarifai.api.Visibility|undefined} value
12775
+ * @return {!proto.clarifai.api.Dataset} returns this
12776
+ */
12777
+ proto.clarifai.api.Dataset.prototype.setVisibility = function (value) {
12778
+ return jspb.Message.setWrapperField(this, 9, value);
12779
+ };
12780
+ /**
12781
+ * Clears the message field making it undefined.
12782
+ * @return {!proto.clarifai.api.Dataset} returns this
12783
+ */
12784
+ proto.clarifai.api.Dataset.prototype.clearVisibility = function () {
12785
+ return this.setVisibility(undefined);
12786
+ };
12787
+ /**
12788
+ * Returns whether this field is set.
12789
+ * @return {boolean}
12790
+ */
12791
+ proto.clarifai.api.Dataset.prototype.hasVisibility = function () {
12792
+ return jspb.Message.getField(this, 9) != null;
12793
+ };
12794
+ /**
12795
+ * optional AnnotationFilter default_annotation_filter = 12;
12796
+ * @return {?proto.clarifai.api.AnnotationFilter}
12797
+ */
12798
+ proto.clarifai.api.Dataset.prototype.getDefaultAnnotationFilter = function () {
12799
+ return /** @type{?proto.clarifai.api.AnnotationFilter} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AnnotationFilter, 12));
12800
+ };
12801
+ /**
12802
+ * @param {?proto.clarifai.api.AnnotationFilter|undefined} value
12803
+ * @return {!proto.clarifai.api.Dataset} returns this
12804
+ */
12805
+ proto.clarifai.api.Dataset.prototype.setDefaultAnnotationFilter = function (value) {
12806
+ return jspb.Message.setWrapperField(this, 12, value);
12807
+ };
12808
+ /**
12809
+ * Clears the message field making it undefined.
12810
+ * @return {!proto.clarifai.api.Dataset} returns this
12811
+ */
12812
+ proto.clarifai.api.Dataset.prototype.clearDefaultAnnotationFilter = function () {
12813
+ return this.setDefaultAnnotationFilter(undefined);
12814
+ };
12815
+ /**
12816
+ * Returns whether this field is set.
12817
+ * @return {boolean}
12818
+ */
12819
+ proto.clarifai.api.Dataset.prototype.hasDefaultAnnotationFilter = function () {
12820
+ return jspb.Message.getField(this, 12) != null;
12821
+ };
12822
+ /**
12823
+ * optional string notes = 11;
12824
+ * @return {string}
12825
+ */
12826
+ proto.clarifai.api.Dataset.prototype.getNotes = function () {
12827
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
12828
+ };
12829
+ /**
12830
+ * @param {string} value
12831
+ * @return {!proto.clarifai.api.Dataset} returns this
12832
+ */
12833
+ proto.clarifai.api.Dataset.prototype.setNotes = function (value) {
12834
+ return jspb.Message.setProto3StringField(this, 11, value);
12835
+ };
12836
+ /**
12837
+ * optional DatasetVersion version = 13;
12838
+ * @return {?proto.clarifai.api.DatasetVersion}
12839
+ */
12840
+ proto.clarifai.api.Dataset.prototype.getVersion = function () {
12841
+ return /** @type{?proto.clarifai.api.DatasetVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersion, 13));
12842
+ };
12843
+ /**
12844
+ * @param {?proto.clarifai.api.DatasetVersion|undefined} value
12845
+ * @return {!proto.clarifai.api.Dataset} returns this
12846
+ */
12847
+ proto.clarifai.api.Dataset.prototype.setVersion = function (value) {
12848
+ return jspb.Message.setWrapperField(this, 13, value);
12849
+ };
12850
+ /**
12851
+ * Clears the message field making it undefined.
12852
+ * @return {!proto.clarifai.api.Dataset} returns this
12853
+ */
12854
+ proto.clarifai.api.Dataset.prototype.clearVersion = function () {
12855
+ return this.setVersion(undefined);
12856
+ };
12857
+ /**
12858
+ * Returns whether this field is set.
12859
+ * @return {boolean}
12860
+ */
12861
+ proto.clarifai.api.Dataset.prototype.hasVersion = function () {
12862
+ return jspb.Message.getField(this, 13) != null;
12863
+ };
12864
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12865
+ /**
12866
+ * Creates an object representation of this proto.
12867
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12868
+ * Optional fields that are not set will be set to undefined.
12869
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12870
+ * For the list of reserved names please see:
12871
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12872
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12873
+ * JSPB instance for transitional soy proto support:
12874
+ * http://goto/soy-param-migration
12875
+ * @return {!Object}
12876
+ */
12877
+ proto.clarifai.api.AnnotationFilter.prototype.toObject = function (opt_includeInstance) {
12878
+ return proto.clarifai.api.AnnotationFilter.toObject(opt_includeInstance, this);
12879
+ };
12880
+ /**
12881
+ * Static version of the {@see toObject} method.
12882
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12883
+ * the JSPB instance for transitional soy proto support:
12884
+ * http://goto/soy-param-migration
12885
+ * @param {!proto.clarifai.api.AnnotationFilter} msg The msg instance to transform.
12886
+ * @return {!Object}
12887
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12888
+ */
12889
+ proto.clarifai.api.AnnotationFilter.toObject = function (includeInstance, msg) {
12890
+ var f, obj = {
12891
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
12892
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
12893
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
12894
+ userId: jspb.Message.getFieldWithDefault(msg, 4, ""),
12895
+ appId: jspb.Message.getFieldWithDefault(msg, 5, ""),
12896
+ savedSearch: (f = msg.getSavedSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f)
12897
+ };
12898
+ if (includeInstance) {
12899
+ obj.$jspbMessageInstance = msg;
12900
+ }
12901
+ return obj;
12902
+ };
12903
+ }
12904
+ /**
12905
+ * Deserializes binary data (in protobuf wire format).
12906
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12907
+ * @return {!proto.clarifai.api.AnnotationFilter}
12908
+ */
12909
+ proto.clarifai.api.AnnotationFilter.deserializeBinary = function (bytes) {
12910
+ var reader = new jspb.BinaryReader(bytes);
12911
+ var msg = new proto.clarifai.api.AnnotationFilter;
12912
+ return proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader(msg, reader);
12913
+ };
12914
+ /**
12915
+ * Deserializes binary data (in protobuf wire format) from the
12916
+ * given reader into the given message object.
12917
+ * @param {!proto.clarifai.api.AnnotationFilter} msg The message object to deserialize into.
12918
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12919
+ * @return {!proto.clarifai.api.AnnotationFilter}
12920
+ */
12921
+ proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader = function (msg, reader) {
12922
+ while (reader.nextField()) {
12923
+ if (reader.isEndGroup()) {
12924
+ break;
12925
+ }
12926
+ var field = reader.getFieldNumber();
12927
+ switch (field) {
12928
+ case 1:
12929
+ var value = /** @type {string} */ (reader.readString());
12930
+ msg.setId(value);
12931
+ break;
12932
+ case 2:
12933
+ var value = new google_protobuf_timestamp_pb.Timestamp;
12934
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
12935
+ msg.setCreatedAt(value);
12936
+ break;
12937
+ case 3:
12938
+ var value = new google_protobuf_timestamp_pb.Timestamp;
12939
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
12940
+ msg.setModifiedAt(value);
12941
+ break;
12942
+ case 4:
12943
+ var value = /** @type {string} */ (reader.readString());
12944
+ msg.setUserId(value);
12945
+ break;
12946
+ case 5:
12947
+ var value = /** @type {string} */ (reader.readString());
12948
+ msg.setAppId(value);
12949
+ break;
12950
+ case 8:
12951
+ var value = new proto.clarifai.api.Search;
12952
+ reader.readMessage(value, proto.clarifai.api.Search.deserializeBinaryFromReader);
12953
+ msg.setSavedSearch(value);
12954
+ break;
12955
+ default:
12956
+ reader.skipField();
12957
+ break;
12958
+ }
12959
+ }
12960
+ return msg;
12961
+ };
12962
+ /**
12963
+ * Serializes the message to binary data (in protobuf wire format).
12964
+ * @return {!Uint8Array}
12965
+ */
12966
+ proto.clarifai.api.AnnotationFilter.prototype.serializeBinary = function () {
12967
+ var writer = new jspb.BinaryWriter();
12968
+ proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter(this, writer);
12969
+ return writer.getResultBuffer();
12970
+ };
12971
+ /**
12972
+ * Serializes the given message to binary data (in protobuf wire
12973
+ * format), writing to the given BinaryWriter.
12974
+ * @param {!proto.clarifai.api.AnnotationFilter} message
12975
+ * @param {!jspb.BinaryWriter} writer
12976
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12977
+ */
12978
+ proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter = function (message, writer) {
12979
+ var f = undefined;
12980
+ f = message.getId();
12981
+ if (f.length > 0) {
12982
+ writer.writeString(1, f);
12983
+ }
12984
+ f = message.getCreatedAt();
12985
+ if (f != null) {
12986
+ writer.writeMessage(2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
12987
+ }
12988
+ f = message.getModifiedAt();
12989
+ if (f != null) {
12990
+ writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
12991
+ }
12992
+ f = message.getUserId();
12993
+ if (f.length > 0) {
12994
+ writer.writeString(4, f);
12995
+ }
12996
+ f = message.getAppId();
12997
+ if (f.length > 0) {
12998
+ writer.writeString(5, f);
12999
+ }
13000
+ f = message.getSavedSearch();
13001
+ if (f != null) {
13002
+ writer.writeMessage(8, f, proto.clarifai.api.Search.serializeBinaryToWriter);
13003
+ }
13004
+ };
13005
+ /**
13006
+ * optional string id = 1;
13007
+ * @return {string}
13008
+ */
13009
+ proto.clarifai.api.AnnotationFilter.prototype.getId = function () {
13010
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13011
+ };
13012
+ /**
13013
+ * @param {string} value
13014
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
13015
+ */
13016
+ proto.clarifai.api.AnnotationFilter.prototype.setId = function (value) {
13017
+ return jspb.Message.setProto3StringField(this, 1, value);
13018
+ };
13019
+ /**
13020
+ * optional google.protobuf.Timestamp created_at = 2;
13021
+ * @return {?proto.google.protobuf.Timestamp}
13022
+ */
13023
+ proto.clarifai.api.AnnotationFilter.prototype.getCreatedAt = function () {
13024
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
13025
+ };
13026
+ /**
13027
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
13028
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
13029
+ */
13030
+ proto.clarifai.api.AnnotationFilter.prototype.setCreatedAt = function (value) {
13031
+ return jspb.Message.setWrapperField(this, 2, value);
13032
+ };
13033
+ /**
13034
+ * Clears the message field making it undefined.
13035
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
13036
+ */
13037
+ proto.clarifai.api.AnnotationFilter.prototype.clearCreatedAt = function () {
13038
+ return this.setCreatedAt(undefined);
13039
+ };
13040
+ /**
13041
+ * Returns whether this field is set.
13042
+ * @return {boolean}
13043
+ */
13044
+ proto.clarifai.api.AnnotationFilter.prototype.hasCreatedAt = function () {
13045
+ return jspb.Message.getField(this, 2) != null;
13046
+ };
13047
+ /**
13048
+ * optional google.protobuf.Timestamp modified_at = 3;
13049
+ * @return {?proto.google.protobuf.Timestamp}
13050
+ */
13051
+ proto.clarifai.api.AnnotationFilter.prototype.getModifiedAt = function () {
13052
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
13053
+ };
13054
+ /**
13055
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
13056
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
13057
+ */
13058
+ proto.clarifai.api.AnnotationFilter.prototype.setModifiedAt = function (value) {
13059
+ return jspb.Message.setWrapperField(this, 3, value);
13060
+ };
13061
+ /**
13062
+ * Clears the message field making it undefined.
13063
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
13064
+ */
13065
+ proto.clarifai.api.AnnotationFilter.prototype.clearModifiedAt = function () {
13066
+ return this.setModifiedAt(undefined);
13067
+ };
13068
+ /**
13069
+ * Returns whether this field is set.
13070
+ * @return {boolean}
13071
+ */
13072
+ proto.clarifai.api.AnnotationFilter.prototype.hasModifiedAt = function () {
13073
+ return jspb.Message.getField(this, 3) != null;
13074
+ };
13075
+ /**
13076
+ * optional string user_id = 4;
13077
+ * @return {string}
13078
+ */
13079
+ proto.clarifai.api.AnnotationFilter.prototype.getUserId = function () {
13080
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
13081
+ };
13082
+ /**
13083
+ * @param {string} value
13084
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
13085
+ */
13086
+ proto.clarifai.api.AnnotationFilter.prototype.setUserId = function (value) {
13087
+ return jspb.Message.setProto3StringField(this, 4, value);
13088
+ };
13089
+ /**
13090
+ * optional string app_id = 5;
13091
+ * @return {string}
13092
+ */
13093
+ proto.clarifai.api.AnnotationFilter.prototype.getAppId = function () {
13094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
13095
+ };
13096
+ /**
13097
+ * @param {string} value
13098
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
13099
+ */
13100
+ proto.clarifai.api.AnnotationFilter.prototype.setAppId = function (value) {
13101
+ return jspb.Message.setProto3StringField(this, 5, value);
12008
13102
  };
12009
13103
  /**
12010
13104
  * optional Search saved_search = 8;
12011
13105
  * @return {?proto.clarifai.api.Search}
12012
13106
  */
12013
- proto.clarifai.api.DatasetFilter.prototype.getSavedSearch = function () {
13107
+ proto.clarifai.api.AnnotationFilter.prototype.getSavedSearch = function () {
12014
13108
  return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 8));
12015
13109
  };
12016
13110
  /**
12017
13111
  * @param {?proto.clarifai.api.Search|undefined} value
12018
- * @return {!proto.clarifai.api.DatasetFilter} returns this
13112
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
12019
13113
  */
12020
- proto.clarifai.api.DatasetFilter.prototype.setSavedSearch = function (value) {
13114
+ proto.clarifai.api.AnnotationFilter.prototype.setSavedSearch = function (value) {
12021
13115
  return jspb.Message.setWrapperField(this, 8, value);
12022
13116
  };
12023
13117
  /**
12024
13118
  * Clears the message field making it undefined.
12025
- * @return {!proto.clarifai.api.DatasetFilter} returns this
13119
+ * @return {!proto.clarifai.api.AnnotationFilter} returns this
12026
13120
  */
12027
- proto.clarifai.api.DatasetFilter.prototype.clearSavedSearch = function () {
13121
+ proto.clarifai.api.AnnotationFilter.prototype.clearSavedSearch = function () {
12028
13122
  return this.setSavedSearch(undefined);
12029
13123
  };
12030
13124
  /**
12031
13125
  * Returns whether this field is set.
12032
13126
  * @return {boolean}
12033
13127
  */
12034
- proto.clarifai.api.DatasetFilter.prototype.hasSavedSearch = function () {
13128
+ proto.clarifai.api.AnnotationFilter.prototype.hasSavedSearch = function () {
12035
13129
  return jspb.Message.getField(this, 8) != null;
12036
13130
  };
13131
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13132
+ /**
13133
+ * Creates an object representation of this proto.
13134
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13135
+ * Optional fields that are not set will be set to undefined.
13136
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13137
+ * For the list of reserved names please see:
13138
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13139
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13140
+ * JSPB instance for transitional soy proto support:
13141
+ * http://goto/soy-param-migration
13142
+ * @return {!Object}
13143
+ */
13144
+ proto.clarifai.api.DatasetInput.prototype.toObject = function (opt_includeInstance) {
13145
+ return proto.clarifai.api.DatasetInput.toObject(opt_includeInstance, this);
13146
+ };
13147
+ /**
13148
+ * Static version of the {@see toObject} method.
13149
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13150
+ * the JSPB instance for transitional soy proto support:
13151
+ * http://goto/soy-param-migration
13152
+ * @param {!proto.clarifai.api.DatasetInput} msg The msg instance to transform.
13153
+ * @return {!Object}
13154
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13155
+ */
13156
+ proto.clarifai.api.DatasetInput.toObject = function (includeInstance, msg) {
13157
+ var f, obj = {
13158
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
13159
+ input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f)
13160
+ };
13161
+ if (includeInstance) {
13162
+ obj.$jspbMessageInstance = msg;
13163
+ }
13164
+ return obj;
13165
+ };
13166
+ }
13167
+ /**
13168
+ * Deserializes binary data (in protobuf wire format).
13169
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13170
+ * @return {!proto.clarifai.api.DatasetInput}
13171
+ */
13172
+ proto.clarifai.api.DatasetInput.deserializeBinary = function (bytes) {
13173
+ var reader = new jspb.BinaryReader(bytes);
13174
+ var msg = new proto.clarifai.api.DatasetInput;
13175
+ return proto.clarifai.api.DatasetInput.deserializeBinaryFromReader(msg, reader);
13176
+ };
13177
+ /**
13178
+ * Deserializes binary data (in protobuf wire format) from the
13179
+ * given reader into the given message object.
13180
+ * @param {!proto.clarifai.api.DatasetInput} msg The message object to deserialize into.
13181
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13182
+ * @return {!proto.clarifai.api.DatasetInput}
13183
+ */
13184
+ proto.clarifai.api.DatasetInput.deserializeBinaryFromReader = function (msg, reader) {
13185
+ while (reader.nextField()) {
13186
+ if (reader.isEndGroup()) {
13187
+ break;
13188
+ }
13189
+ var field = reader.getFieldNumber();
13190
+ switch (field) {
13191
+ case 1:
13192
+ var value = new google_protobuf_timestamp_pb.Timestamp;
13193
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
13194
+ msg.setCreatedAt(value);
13195
+ break;
13196
+ case 2:
13197
+ var value = new proto.clarifai.api.Input;
13198
+ reader.readMessage(value, proto.clarifai.api.Input.deserializeBinaryFromReader);
13199
+ msg.setInput(value);
13200
+ break;
13201
+ default:
13202
+ reader.skipField();
13203
+ break;
13204
+ }
13205
+ }
13206
+ return msg;
13207
+ };
13208
+ /**
13209
+ * Serializes the message to binary data (in protobuf wire format).
13210
+ * @return {!Uint8Array}
13211
+ */
13212
+ proto.clarifai.api.DatasetInput.prototype.serializeBinary = function () {
13213
+ var writer = new jspb.BinaryWriter();
13214
+ proto.clarifai.api.DatasetInput.serializeBinaryToWriter(this, writer);
13215
+ return writer.getResultBuffer();
13216
+ };
13217
+ /**
13218
+ * Serializes the given message to binary data (in protobuf wire
13219
+ * format), writing to the given BinaryWriter.
13220
+ * @param {!proto.clarifai.api.DatasetInput} message
13221
+ * @param {!jspb.BinaryWriter} writer
13222
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13223
+ */
13224
+ proto.clarifai.api.DatasetInput.serializeBinaryToWriter = function (message, writer) {
13225
+ var f = undefined;
13226
+ f = message.getCreatedAt();
13227
+ if (f != null) {
13228
+ writer.writeMessage(1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
13229
+ }
13230
+ f = message.getInput();
13231
+ if (f != null) {
13232
+ writer.writeMessage(2, f, proto.clarifai.api.Input.serializeBinaryToWriter);
13233
+ }
13234
+ };
13235
+ /**
13236
+ * optional google.protobuf.Timestamp created_at = 1;
13237
+ * @return {?proto.google.protobuf.Timestamp}
13238
+ */
13239
+ proto.clarifai.api.DatasetInput.prototype.getCreatedAt = function () {
13240
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
13241
+ };
13242
+ /**
13243
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
13244
+ * @return {!proto.clarifai.api.DatasetInput} returns this
13245
+ */
13246
+ proto.clarifai.api.DatasetInput.prototype.setCreatedAt = function (value) {
13247
+ return jspb.Message.setWrapperField(this, 1, value);
13248
+ };
13249
+ /**
13250
+ * Clears the message field making it undefined.
13251
+ * @return {!proto.clarifai.api.DatasetInput} returns this
13252
+ */
13253
+ proto.clarifai.api.DatasetInput.prototype.clearCreatedAt = function () {
13254
+ return this.setCreatedAt(undefined);
13255
+ };
13256
+ /**
13257
+ * Returns whether this field is set.
13258
+ * @return {boolean}
13259
+ */
13260
+ proto.clarifai.api.DatasetInput.prototype.hasCreatedAt = function () {
13261
+ return jspb.Message.getField(this, 1) != null;
13262
+ };
13263
+ /**
13264
+ * optional Input input = 2;
13265
+ * @return {?proto.clarifai.api.Input}
13266
+ */
13267
+ proto.clarifai.api.DatasetInput.prototype.getInput = function () {
13268
+ return /** @type{?proto.clarifai.api.Input} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 2));
13269
+ };
13270
+ /**
13271
+ * @param {?proto.clarifai.api.Input|undefined} value
13272
+ * @return {!proto.clarifai.api.DatasetInput} returns this
13273
+ */
13274
+ proto.clarifai.api.DatasetInput.prototype.setInput = function (value) {
13275
+ return jspb.Message.setWrapperField(this, 2, value);
13276
+ };
13277
+ /**
13278
+ * Clears the message field making it undefined.
13279
+ * @return {!proto.clarifai.api.DatasetInput} returns this
13280
+ */
13281
+ proto.clarifai.api.DatasetInput.prototype.clearInput = function () {
13282
+ return this.setInput(undefined);
13283
+ };
13284
+ /**
13285
+ * Returns whether this field is set.
13286
+ * @return {boolean}
13287
+ */
13288
+ proto.clarifai.api.DatasetInput.prototype.hasInput = function () {
13289
+ return jspb.Message.getField(this, 2) != null;
13290
+ };
12037
13291
  /**
12038
13292
  * List of repeated fields within this message type.
12039
13293
  * @private {!Array<number>}
@@ -12048,13 +13302,13 @@ proto.clarifai.api.DatasetVersion.repeatedFields_ = [14];
12048
13302
  * @private {!Array<!Array<number>>}
12049
13303
  * @const
12050
13304
  */
12051
- proto.clarifai.api.DatasetVersion.oneofGroups_ = [[7]];
13305
+ proto.clarifai.api.DatasetVersion.oneofGroups_ = [[15]];
12052
13306
  /**
12053
13307
  * @enum {number}
12054
13308
  */
12055
13309
  proto.clarifai.api.DatasetVersion.DataConfigCase = {
12056
13310
  DATA_CONFIG_NOT_SET: 0,
12057
- DATASET_FILTER_CONFIG: 7
13311
+ ANNOTATION_FILTER_CONFIG: 15
12058
13312
  };
12059
13313
  /**
12060
13314
  * @return {proto.clarifai.api.DatasetVersion.DataConfigCase}
@@ -12095,10 +13349,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12095
13349
  appId: jspb.Message.getFieldWithDefault(msg, 4, ""),
12096
13350
  userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
12097
13351
  datasetId: jspb.Message.getFieldWithDefault(msg, 6, ""),
12098
- datasetFilterConfig: (f = msg.getDatasetFilterConfig()) && proto.clarifai.api.DatasetVersionDatasetFilterConfig.toObject(includeInstance, f),
13352
+ annotationFilterConfig: (f = msg.getAnnotationFilterConfig()) && proto.clarifai.api.AnnotationFilterConfig.toObject(includeInstance, f),
12099
13353
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
12100
13354
  description: jspb.Message.getFieldWithDefault(msg, 10, ""),
12101
- summary: (f = msg.getSummary()) && proto.clarifai.api.DatasetVersionSummary.toObject(includeInstance, f),
13355
+ metrics: (f = msg.getMetrics()) && proto.clarifai.api.DatasetVersionMetrics.toObject(includeInstance, f),
12102
13356
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
12103
13357
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
12104
13358
  embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f
@@ -12159,10 +13413,10 @@ proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function (msg, r
12159
13413
  var value = /** @type {string} */ (reader.readString());
12160
13414
  msg.setDatasetId(value);
12161
13415
  break;
12162
- case 7:
12163
- var value = new proto.clarifai.api.DatasetVersionDatasetFilterConfig;
12164
- reader.readMessage(value, proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader);
12165
- msg.setDatasetFilterConfig(value);
13416
+ case 15:
13417
+ var value = new proto.clarifai.api.AnnotationFilterConfig;
13418
+ reader.readMessage(value, proto.clarifai.api.AnnotationFilterConfig.deserializeBinaryFromReader);
13419
+ msg.setAnnotationFilterConfig(value);
12166
13420
  break;
12167
13421
  case 8:
12168
13422
  var value = new proto_clarifai_api_status_status_pb.Status;
@@ -12174,9 +13428,9 @@ proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function (msg, r
12174
13428
  msg.setDescription(value);
12175
13429
  break;
12176
13430
  case 11:
12177
- var value = new proto.clarifai.api.DatasetVersionSummary;
12178
- reader.readMessage(value, proto.clarifai.api.DatasetVersionSummary.deserializeBinaryFromReader);
12179
- msg.setSummary(value);
13431
+ var value = new proto.clarifai.api.DatasetVersionMetrics;
13432
+ reader.readMessage(value, proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader);
13433
+ msg.setMetrics(value);
12180
13434
  break;
12181
13435
  case 12:
12182
13436
  var value = new google_protobuf_struct_pb.Struct;
@@ -12241,9 +13495,9 @@ proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function (message, w
12241
13495
  if (f.length > 0) {
12242
13496
  writer.writeString(6, f);
12243
13497
  }
12244
- f = message.getDatasetFilterConfig();
13498
+ f = message.getAnnotationFilterConfig();
12245
13499
  if (f != null) {
12246
- writer.writeMessage(7, f, proto.clarifai.api.DatasetVersionDatasetFilterConfig.serializeBinaryToWriter);
13500
+ writer.writeMessage(15, f, proto.clarifai.api.AnnotationFilterConfig.serializeBinaryToWriter);
12247
13501
  }
12248
13502
  f = message.getStatus();
12249
13503
  if (f != null) {
@@ -12253,9 +13507,9 @@ proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function (message, w
12253
13507
  if (f.length > 0) {
12254
13508
  writer.writeString(10, f);
12255
13509
  }
12256
- f = message.getSummary();
13510
+ f = message.getMetrics();
12257
13511
  if (f != null) {
12258
- writer.writeMessage(11, f, proto.clarifai.api.DatasetVersionSummary.serializeBinaryToWriter);
13512
+ writer.writeMessage(11, f, proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter);
12259
13513
  }
12260
13514
  f = message.getMetadata();
12261
13515
  if (f != null) {
@@ -12383,32 +13637,32 @@ proto.clarifai.api.DatasetVersion.prototype.setDatasetId = function (value) {
12383
13637
  return jspb.Message.setProto3StringField(this, 6, value);
12384
13638
  };
12385
13639
  /**
12386
- * optional DatasetVersionDatasetFilterConfig dataset_filter_config = 7;
12387
- * @return {?proto.clarifai.api.DatasetVersionDatasetFilterConfig}
13640
+ * optional AnnotationFilterConfig annotation_filter_config = 15;
13641
+ * @return {?proto.clarifai.api.AnnotationFilterConfig}
12388
13642
  */
12389
- proto.clarifai.api.DatasetVersion.prototype.getDatasetFilterConfig = function () {
12390
- return /** @type{?proto.clarifai.api.DatasetVersionDatasetFilterConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionDatasetFilterConfig, 7));
13643
+ proto.clarifai.api.DatasetVersion.prototype.getAnnotationFilterConfig = function () {
13644
+ return /** @type{?proto.clarifai.api.AnnotationFilterConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AnnotationFilterConfig, 15));
12391
13645
  };
12392
13646
  /**
12393
- * @param {?proto.clarifai.api.DatasetVersionDatasetFilterConfig|undefined} value
13647
+ * @param {?proto.clarifai.api.AnnotationFilterConfig|undefined} value
12394
13648
  * @return {!proto.clarifai.api.DatasetVersion} returns this
12395
13649
  */
12396
- proto.clarifai.api.DatasetVersion.prototype.setDatasetFilterConfig = function (value) {
12397
- return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.DatasetVersion.oneofGroups_[0], value);
13650
+ proto.clarifai.api.DatasetVersion.prototype.setAnnotationFilterConfig = function (value) {
13651
+ return jspb.Message.setOneofWrapperField(this, 15, proto.clarifai.api.DatasetVersion.oneofGroups_[0], value);
12398
13652
  };
12399
13653
  /**
12400
13654
  * Clears the message field making it undefined.
12401
13655
  * @return {!proto.clarifai.api.DatasetVersion} returns this
12402
13656
  */
12403
- proto.clarifai.api.DatasetVersion.prototype.clearDatasetFilterConfig = function () {
12404
- return this.setDatasetFilterConfig(undefined);
13657
+ proto.clarifai.api.DatasetVersion.prototype.clearAnnotationFilterConfig = function () {
13658
+ return this.setAnnotationFilterConfig(undefined);
12405
13659
  };
12406
13660
  /**
12407
13661
  * Returns whether this field is set.
12408
13662
  * @return {boolean}
12409
13663
  */
12410
- proto.clarifai.api.DatasetVersion.prototype.hasDatasetFilterConfig = function () {
12411
- return jspb.Message.getField(this, 7) != null;
13664
+ proto.clarifai.api.DatasetVersion.prototype.hasAnnotationFilterConfig = function () {
13665
+ return jspb.Message.getField(this, 15) != null;
12412
13666
  };
12413
13667
  /**
12414
13668
  * optional status.Status status = 8;
@@ -12453,31 +13707,31 @@ proto.clarifai.api.DatasetVersion.prototype.setDescription = function (value) {
12453
13707
  return jspb.Message.setProto3StringField(this, 10, value);
12454
13708
  };
12455
13709
  /**
12456
- * optional DatasetVersionSummary summary = 11;
12457
- * @return {?proto.clarifai.api.DatasetVersionSummary}
13710
+ * optional DatasetVersionMetrics metrics = 11;
13711
+ * @return {?proto.clarifai.api.DatasetVersionMetrics}
12458
13712
  */
12459
- proto.clarifai.api.DatasetVersion.prototype.getSummary = function () {
12460
- return /** @type{?proto.clarifai.api.DatasetVersionSummary} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionSummary, 11));
13713
+ proto.clarifai.api.DatasetVersion.prototype.getMetrics = function () {
13714
+ return /** @type{?proto.clarifai.api.DatasetVersionMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionMetrics, 11));
12461
13715
  };
12462
13716
  /**
12463
- * @param {?proto.clarifai.api.DatasetVersionSummary|undefined} value
13717
+ * @param {?proto.clarifai.api.DatasetVersionMetrics|undefined} value
12464
13718
  * @return {!proto.clarifai.api.DatasetVersion} returns this
12465
13719
  */
12466
- proto.clarifai.api.DatasetVersion.prototype.setSummary = function (value) {
13720
+ proto.clarifai.api.DatasetVersion.prototype.setMetrics = function (value) {
12467
13721
  return jspb.Message.setWrapperField(this, 11, value);
12468
13722
  };
12469
13723
  /**
12470
13724
  * Clears the message field making it undefined.
12471
13725
  * @return {!proto.clarifai.api.DatasetVersion} returns this
12472
13726
  */
12473
- proto.clarifai.api.DatasetVersion.prototype.clearSummary = function () {
12474
- return this.setSummary(undefined);
13727
+ proto.clarifai.api.DatasetVersion.prototype.clearMetrics = function () {
13728
+ return this.setMetrics(undefined);
12475
13729
  };
12476
13730
  /**
12477
13731
  * Returns whether this field is set.
12478
13732
  * @return {boolean}
12479
13733
  */
12480
- proto.clarifai.api.DatasetVersion.prototype.hasSummary = function () {
13734
+ proto.clarifai.api.DatasetVersion.prototype.hasMetrics = function () {
12481
13735
  return jspb.Message.getField(this, 11) != null;
12482
13736
  };
12483
13737
  /**
@@ -12578,21 +13832,160 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12578
13832
  * http://goto/soy-param-migration
12579
13833
  * @return {!Object}
12580
13834
  */
12581
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.toObject = function (opt_includeInstance) {
12582
- return proto.clarifai.api.DatasetVersionDatasetFilterConfig.toObject(opt_includeInstance, this);
13835
+ proto.clarifai.api.AnnotationFilterConfig.prototype.toObject = function (opt_includeInstance) {
13836
+ return proto.clarifai.api.AnnotationFilterConfig.toObject(opt_includeInstance, this);
13837
+ };
13838
+ /**
13839
+ * Static version of the {@see toObject} method.
13840
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13841
+ * the JSPB instance for transitional soy proto support:
13842
+ * http://goto/soy-param-migration
13843
+ * @param {!proto.clarifai.api.AnnotationFilterConfig} msg The msg instance to transform.
13844
+ * @return {!Object}
13845
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13846
+ */
13847
+ proto.clarifai.api.AnnotationFilterConfig.toObject = function (includeInstance, msg) {
13848
+ var f, obj = {
13849
+ annotationFilter: (f = msg.getAnnotationFilter()) && proto.clarifai.api.AnnotationFilter.toObject(includeInstance, f)
13850
+ };
13851
+ if (includeInstance) {
13852
+ obj.$jspbMessageInstance = msg;
13853
+ }
13854
+ return obj;
13855
+ };
13856
+ }
13857
+ /**
13858
+ * Deserializes binary data (in protobuf wire format).
13859
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13860
+ * @return {!proto.clarifai.api.AnnotationFilterConfig}
13861
+ */
13862
+ proto.clarifai.api.AnnotationFilterConfig.deserializeBinary = function (bytes) {
13863
+ var reader = new jspb.BinaryReader(bytes);
13864
+ var msg = new proto.clarifai.api.AnnotationFilterConfig;
13865
+ return proto.clarifai.api.AnnotationFilterConfig.deserializeBinaryFromReader(msg, reader);
13866
+ };
13867
+ /**
13868
+ * Deserializes binary data (in protobuf wire format) from the
13869
+ * given reader into the given message object.
13870
+ * @param {!proto.clarifai.api.AnnotationFilterConfig} msg The message object to deserialize into.
13871
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13872
+ * @return {!proto.clarifai.api.AnnotationFilterConfig}
13873
+ */
13874
+ proto.clarifai.api.AnnotationFilterConfig.deserializeBinaryFromReader = function (msg, reader) {
13875
+ while (reader.nextField()) {
13876
+ if (reader.isEndGroup()) {
13877
+ break;
13878
+ }
13879
+ var field = reader.getFieldNumber();
13880
+ switch (field) {
13881
+ case 1:
13882
+ var value = new proto.clarifai.api.AnnotationFilter;
13883
+ reader.readMessage(value, proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader);
13884
+ msg.setAnnotationFilter(value);
13885
+ break;
13886
+ default:
13887
+ reader.skipField();
13888
+ break;
13889
+ }
13890
+ }
13891
+ return msg;
13892
+ };
13893
+ /**
13894
+ * Serializes the message to binary data (in protobuf wire format).
13895
+ * @return {!Uint8Array}
13896
+ */
13897
+ proto.clarifai.api.AnnotationFilterConfig.prototype.serializeBinary = function () {
13898
+ var writer = new jspb.BinaryWriter();
13899
+ proto.clarifai.api.AnnotationFilterConfig.serializeBinaryToWriter(this, writer);
13900
+ return writer.getResultBuffer();
13901
+ };
13902
+ /**
13903
+ * Serializes the given message to binary data (in protobuf wire
13904
+ * format), writing to the given BinaryWriter.
13905
+ * @param {!proto.clarifai.api.AnnotationFilterConfig} message
13906
+ * @param {!jspb.BinaryWriter} writer
13907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13908
+ */
13909
+ proto.clarifai.api.AnnotationFilterConfig.serializeBinaryToWriter = function (message, writer) {
13910
+ var f = undefined;
13911
+ f = message.getAnnotationFilter();
13912
+ if (f != null) {
13913
+ writer.writeMessage(1, f, proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter);
13914
+ }
13915
+ };
13916
+ /**
13917
+ * optional AnnotationFilter annotation_filter = 1;
13918
+ * @return {?proto.clarifai.api.AnnotationFilter}
13919
+ */
13920
+ proto.clarifai.api.AnnotationFilterConfig.prototype.getAnnotationFilter = function () {
13921
+ return /** @type{?proto.clarifai.api.AnnotationFilter} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AnnotationFilter, 1));
13922
+ };
13923
+ /**
13924
+ * @param {?proto.clarifai.api.AnnotationFilter|undefined} value
13925
+ * @return {!proto.clarifai.api.AnnotationFilterConfig} returns this
13926
+ */
13927
+ proto.clarifai.api.AnnotationFilterConfig.prototype.setAnnotationFilter = function (value) {
13928
+ return jspb.Message.setWrapperField(this, 1, value);
13929
+ };
13930
+ /**
13931
+ * Clears the message field making it undefined.
13932
+ * @return {!proto.clarifai.api.AnnotationFilterConfig} returns this
13933
+ */
13934
+ proto.clarifai.api.AnnotationFilterConfig.prototype.clearAnnotationFilter = function () {
13935
+ return this.setAnnotationFilter(undefined);
13936
+ };
13937
+ /**
13938
+ * Returns whether this field is set.
13939
+ * @return {boolean}
13940
+ */
13941
+ proto.clarifai.api.AnnotationFilterConfig.prototype.hasAnnotationFilter = function () {
13942
+ return jspb.Message.getField(this, 1) != null;
13943
+ };
13944
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13945
+ /**
13946
+ * Creates an object representation of this proto.
13947
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13948
+ * Optional fields that are not set will be set to undefined.
13949
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13950
+ * For the list of reserved names please see:
13951
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13952
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13953
+ * JSPB instance for transitional soy proto support:
13954
+ * http://goto/soy-param-migration
13955
+ * @return {!Object}
13956
+ */
13957
+ proto.clarifai.api.DatasetVersionMetrics.prototype.toObject = function (opt_includeInstance) {
13958
+ return proto.clarifai.api.DatasetVersionMetrics.toObject(opt_includeInstance, this);
12583
13959
  };
12584
13960
  /**
12585
13961
  * Static version of the {@see toObject} method.
12586
13962
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12587
13963
  * the JSPB instance for transitional soy proto support:
12588
13964
  * http://goto/soy-param-migration
12589
- * @param {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} msg The msg instance to transform.
13965
+ * @param {!proto.clarifai.api.DatasetVersionMetrics} msg The msg instance to transform.
12590
13966
  * @return {!Object}
12591
13967
  * @suppress {unusedLocalVariables} f is only used for nested messages
12592
13968
  */
12593
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.toObject = function (includeInstance, msg) {
13969
+ proto.clarifai.api.DatasetVersionMetrics.toObject = function (includeInstance, msg) {
12594
13970
  var f, obj = {
12595
- datasetFilter: (f = msg.getDatasetFilter()) && proto.clarifai.api.DatasetFilter.toObject(includeInstance, f)
13971
+ inputsCount: (f = msg.getInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13972
+ unlabeledInputsCount: (f = msg.getUnlabeledInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13973
+ inputsWithMetadataCount: (f = msg.getInputsWithMetadataCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13974
+ inputsWithGeoCount: (f = msg.getInputsWithGeoCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13975
+ regionsCount: (f = msg.getRegionsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13976
+ regionLocationMatrix: (f = msg.getRegionLocationMatrix()) && proto_clarifai_api_utils_matrix_pb.MatrixUint64.toObject(includeInstance, f),
13977
+ boundingBoxesCount: (f = msg.getBoundingBoxesCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13978
+ polygonsCount: (f = msg.getPolygonsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13979
+ pointsCount: (f = msg.getPointsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13980
+ masksCount: (f = msg.getMasksCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13981
+ regionInputsCount: (f = msg.getRegionInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13982
+ regionFramesCount: (f = msg.getRegionFramesCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13983
+ framesCount: (f = msg.getFramesCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13984
+ frameInputsCount: (f = msg.getFrameInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13985
+ embeddingsCount: (f = msg.getEmbeddingsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13986
+ positiveInputTagsCount: (f = msg.getPositiveInputTagsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13987
+ positiveRegionTagsCount: (f = msg.getPositiveRegionTagsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
13988
+ positiveFrameTagsCount: (f = msg.getPositiveFrameTagsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f)
12596
13989
  };
12597
13990
  if (includeInstance) {
12598
13991
  obj.$jspbMessageInstance = msg;
@@ -12603,21 +13996,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12603
13996
  /**
12604
13997
  * Deserializes binary data (in protobuf wire format).
12605
13998
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
12606
- * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig}
13999
+ * @return {!proto.clarifai.api.DatasetVersionMetrics}
12607
14000
  */
12608
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinary = function (bytes) {
14001
+ proto.clarifai.api.DatasetVersionMetrics.deserializeBinary = function (bytes) {
12609
14002
  var reader = new jspb.BinaryReader(bytes);
12610
- var msg = new proto.clarifai.api.DatasetVersionDatasetFilterConfig;
12611
- return proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader(msg, reader);
14003
+ var msg = new proto.clarifai.api.DatasetVersionMetrics;
14004
+ return proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader(msg, reader);
12612
14005
  };
12613
14006
  /**
12614
14007
  * Deserializes binary data (in protobuf wire format) from the
12615
14008
  * given reader into the given message object.
12616
- * @param {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} msg The message object to deserialize into.
14009
+ * @param {!proto.clarifai.api.DatasetVersionMetrics} msg The message object to deserialize into.
12617
14010
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12618
- * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig}
14011
+ * @return {!proto.clarifai.api.DatasetVersionMetrics}
12619
14012
  */
12620
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader = function (msg, reader) {
14013
+ proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader = function (msg, reader) {
12621
14014
  while (reader.nextField()) {
12622
14015
  if (reader.isEndGroup()) {
12623
14016
  break;
@@ -12625,9 +14018,94 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader
12625
14018
  var field = reader.getFieldNumber();
12626
14019
  switch (field) {
12627
14020
  case 1:
12628
- var value = new proto.clarifai.api.DatasetFilter;
12629
- reader.readMessage(value, proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader);
12630
- msg.setDatasetFilter(value);
14021
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14022
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14023
+ msg.setInputsCount(value);
14024
+ break;
14025
+ case 6:
14026
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14027
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14028
+ msg.setUnlabeledInputsCount(value);
14029
+ break;
14030
+ case 8:
14031
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14032
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14033
+ msg.setInputsWithMetadataCount(value);
14034
+ break;
14035
+ case 9:
14036
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14037
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14038
+ msg.setInputsWithGeoCount(value);
14039
+ break;
14040
+ case 20:
14041
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14042
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14043
+ msg.setRegionsCount(value);
14044
+ break;
14045
+ case 21:
14046
+ var value = new proto_clarifai_api_utils_matrix_pb.MatrixUint64;
14047
+ reader.readMessage(value, proto_clarifai_api_utils_matrix_pb.MatrixUint64.deserializeBinaryFromReader);
14048
+ msg.setRegionLocationMatrix(value);
14049
+ break;
14050
+ case 22:
14051
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14052
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14053
+ msg.setBoundingBoxesCount(value);
14054
+ break;
14055
+ case 23:
14056
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14057
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14058
+ msg.setPolygonsCount(value);
14059
+ break;
14060
+ case 24:
14061
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14062
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14063
+ msg.setPointsCount(value);
14064
+ break;
14065
+ case 25:
14066
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14067
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14068
+ msg.setMasksCount(value);
14069
+ break;
14070
+ case 60:
14071
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14072
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14073
+ msg.setRegionInputsCount(value);
14074
+ break;
14075
+ case 61:
14076
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14077
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14078
+ msg.setRegionFramesCount(value);
14079
+ break;
14080
+ case 30:
14081
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14082
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14083
+ msg.setFramesCount(value);
14084
+ break;
14085
+ case 70:
14086
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14087
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14088
+ msg.setFrameInputsCount(value);
14089
+ break;
14090
+ case 40:
14091
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14092
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14093
+ msg.setEmbeddingsCount(value);
14094
+ break;
14095
+ case 50:
14096
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14097
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14098
+ msg.setPositiveInputTagsCount(value);
14099
+ break;
14100
+ case 51:
14101
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14102
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14103
+ msg.setPositiveRegionTagsCount(value);
14104
+ break;
14105
+ case 52:
14106
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
14107
+ reader.readMessage(value, google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
14108
+ msg.setPositiveFrameTagsCount(value);
12631
14109
  break;
12632
14110
  default:
12633
14111
  reader.skipField();
@@ -12640,53 +14118,597 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader
12640
14118
  * Serializes the message to binary data (in protobuf wire format).
12641
14119
  * @return {!Uint8Array}
12642
14120
  */
12643
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.serializeBinary = function () {
14121
+ proto.clarifai.api.DatasetVersionMetrics.prototype.serializeBinary = function () {
12644
14122
  var writer = new jspb.BinaryWriter();
12645
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.serializeBinaryToWriter(this, writer);
14123
+ proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter(this, writer);
12646
14124
  return writer.getResultBuffer();
12647
14125
  };
12648
14126
  /**
12649
14127
  * Serializes the given message to binary data (in protobuf wire
12650
14128
  * format), writing to the given BinaryWriter.
12651
- * @param {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} message
14129
+ * @param {!proto.clarifai.api.DatasetVersionMetrics} message
12652
14130
  * @param {!jspb.BinaryWriter} writer
12653
14131
  * @suppress {unusedLocalVariables} f is only used for nested messages
12654
14132
  */
12655
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.serializeBinaryToWriter = function (message, writer) {
14133
+ proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter = function (message, writer) {
12656
14134
  var f = undefined;
12657
- f = message.getDatasetFilter();
14135
+ f = message.getInputsCount();
14136
+ if (f != null) {
14137
+ writer.writeMessage(1, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14138
+ }
14139
+ f = message.getUnlabeledInputsCount();
14140
+ if (f != null) {
14141
+ writer.writeMessage(6, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14142
+ }
14143
+ f = message.getInputsWithMetadataCount();
14144
+ if (f != null) {
14145
+ writer.writeMessage(8, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14146
+ }
14147
+ f = message.getInputsWithGeoCount();
14148
+ if (f != null) {
14149
+ writer.writeMessage(9, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14150
+ }
14151
+ f = message.getRegionsCount();
14152
+ if (f != null) {
14153
+ writer.writeMessage(20, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14154
+ }
14155
+ f = message.getRegionLocationMatrix();
14156
+ if (f != null) {
14157
+ writer.writeMessage(21, f, proto_clarifai_api_utils_matrix_pb.MatrixUint64.serializeBinaryToWriter);
14158
+ }
14159
+ f = message.getBoundingBoxesCount();
14160
+ if (f != null) {
14161
+ writer.writeMessage(22, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14162
+ }
14163
+ f = message.getPolygonsCount();
14164
+ if (f != null) {
14165
+ writer.writeMessage(23, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14166
+ }
14167
+ f = message.getPointsCount();
14168
+ if (f != null) {
14169
+ writer.writeMessage(24, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14170
+ }
14171
+ f = message.getMasksCount();
14172
+ if (f != null) {
14173
+ writer.writeMessage(25, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14174
+ }
14175
+ f = message.getRegionInputsCount();
14176
+ if (f != null) {
14177
+ writer.writeMessage(60, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14178
+ }
14179
+ f = message.getRegionFramesCount();
14180
+ if (f != null) {
14181
+ writer.writeMessage(61, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14182
+ }
14183
+ f = message.getFramesCount();
14184
+ if (f != null) {
14185
+ writer.writeMessage(30, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14186
+ }
14187
+ f = message.getFrameInputsCount();
14188
+ if (f != null) {
14189
+ writer.writeMessage(70, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14190
+ }
14191
+ f = message.getEmbeddingsCount();
14192
+ if (f != null) {
14193
+ writer.writeMessage(40, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14194
+ }
14195
+ f = message.getPositiveInputTagsCount();
14196
+ if (f != null) {
14197
+ writer.writeMessage(50, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14198
+ }
14199
+ f = message.getPositiveRegionTagsCount();
14200
+ if (f != null) {
14201
+ writer.writeMessage(51, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
14202
+ }
14203
+ f = message.getPositiveFrameTagsCount();
12658
14204
  if (f != null) {
12659
- writer.writeMessage(1, f, proto.clarifai.api.DatasetFilter.serializeBinaryToWriter);
14205
+ writer.writeMessage(52, f, google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter);
12660
14206
  }
12661
14207
  };
12662
14208
  /**
12663
- * optional DatasetFilter dataset_filter = 1;
12664
- * @return {?proto.clarifai.api.DatasetFilter}
14209
+ * optional google.protobuf.UInt64Value inputs_count = 1;
14210
+ * @return {?proto.google.protobuf.UInt64Value}
12665
14211
  */
12666
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.getDatasetFilter = function () {
12667
- return /** @type{?proto.clarifai.api.DatasetFilter} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetFilter, 1));
14212
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getInputsCount = function () {
14213
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 1));
12668
14214
  };
12669
14215
  /**
12670
- * @param {?proto.clarifai.api.DatasetFilter|undefined} value
12671
- * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} returns this
14216
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14217
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
12672
14218
  */
12673
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.setDatasetFilter = function (value) {
14219
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setInputsCount = function (value) {
12674
14220
  return jspb.Message.setWrapperField(this, 1, value);
12675
14221
  };
12676
14222
  /**
12677
14223
  * Clears the message field making it undefined.
12678
- * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} returns this
14224
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
12679
14225
  */
12680
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.clearDatasetFilter = function () {
12681
- return this.setDatasetFilter(undefined);
14226
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearInputsCount = function () {
14227
+ return this.setInputsCount(undefined);
12682
14228
  };
12683
14229
  /**
12684
14230
  * Returns whether this field is set.
12685
14231
  * @return {boolean}
12686
14232
  */
12687
- proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.hasDatasetFilter = function () {
14233
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasInputsCount = function () {
12688
14234
  return jspb.Message.getField(this, 1) != null;
12689
14235
  };
14236
+ /**
14237
+ * optional google.protobuf.UInt64Value unlabeled_inputs_count = 6;
14238
+ * @return {?proto.google.protobuf.UInt64Value}
14239
+ */
14240
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getUnlabeledInputsCount = function () {
14241
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 6));
14242
+ };
14243
+ /**
14244
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14245
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14246
+ */
14247
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setUnlabeledInputsCount = function (value) {
14248
+ return jspb.Message.setWrapperField(this, 6, value);
14249
+ };
14250
+ /**
14251
+ * Clears the message field making it undefined.
14252
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14253
+ */
14254
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearUnlabeledInputsCount = function () {
14255
+ return this.setUnlabeledInputsCount(undefined);
14256
+ };
14257
+ /**
14258
+ * Returns whether this field is set.
14259
+ * @return {boolean}
14260
+ */
14261
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasUnlabeledInputsCount = function () {
14262
+ return jspb.Message.getField(this, 6) != null;
14263
+ };
14264
+ /**
14265
+ * optional google.protobuf.UInt64Value inputs_with_metadata_count = 8;
14266
+ * @return {?proto.google.protobuf.UInt64Value}
14267
+ */
14268
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getInputsWithMetadataCount = function () {
14269
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 8));
14270
+ };
14271
+ /**
14272
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14273
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14274
+ */
14275
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setInputsWithMetadataCount = function (value) {
14276
+ return jspb.Message.setWrapperField(this, 8, value);
14277
+ };
14278
+ /**
14279
+ * Clears the message field making it undefined.
14280
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14281
+ */
14282
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearInputsWithMetadataCount = function () {
14283
+ return this.setInputsWithMetadataCount(undefined);
14284
+ };
14285
+ /**
14286
+ * Returns whether this field is set.
14287
+ * @return {boolean}
14288
+ */
14289
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasInputsWithMetadataCount = function () {
14290
+ return jspb.Message.getField(this, 8) != null;
14291
+ };
14292
+ /**
14293
+ * optional google.protobuf.UInt64Value inputs_with_geo_count = 9;
14294
+ * @return {?proto.google.protobuf.UInt64Value}
14295
+ */
14296
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getInputsWithGeoCount = function () {
14297
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 9));
14298
+ };
14299
+ /**
14300
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14301
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14302
+ */
14303
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setInputsWithGeoCount = function (value) {
14304
+ return jspb.Message.setWrapperField(this, 9, value);
14305
+ };
14306
+ /**
14307
+ * Clears the message field making it undefined.
14308
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14309
+ */
14310
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearInputsWithGeoCount = function () {
14311
+ return this.setInputsWithGeoCount(undefined);
14312
+ };
14313
+ /**
14314
+ * Returns whether this field is set.
14315
+ * @return {boolean}
14316
+ */
14317
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasInputsWithGeoCount = function () {
14318
+ return jspb.Message.getField(this, 9) != null;
14319
+ };
14320
+ /**
14321
+ * optional google.protobuf.UInt64Value regions_count = 20;
14322
+ * @return {?proto.google.protobuf.UInt64Value}
14323
+ */
14324
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionsCount = function () {
14325
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 20));
14326
+ };
14327
+ /**
14328
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14329
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14330
+ */
14331
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionsCount = function (value) {
14332
+ return jspb.Message.setWrapperField(this, 20, value);
14333
+ };
14334
+ /**
14335
+ * Clears the message field making it undefined.
14336
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14337
+ */
14338
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionsCount = function () {
14339
+ return this.setRegionsCount(undefined);
14340
+ };
14341
+ /**
14342
+ * Returns whether this field is set.
14343
+ * @return {boolean}
14344
+ */
14345
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionsCount = function () {
14346
+ return jspb.Message.getField(this, 20) != null;
14347
+ };
14348
+ /**
14349
+ * optional MatrixUint64 region_location_matrix = 21;
14350
+ * @return {?proto.MatrixUint64}
14351
+ */
14352
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionLocationMatrix = function () {
14353
+ return /** @type{?proto.MatrixUint64} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_utils_matrix_pb.MatrixUint64, 21));
14354
+ };
14355
+ /**
14356
+ * @param {?proto.MatrixUint64|undefined} value
14357
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14358
+ */
14359
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionLocationMatrix = function (value) {
14360
+ return jspb.Message.setWrapperField(this, 21, value);
14361
+ };
14362
+ /**
14363
+ * Clears the message field making it undefined.
14364
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14365
+ */
14366
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionLocationMatrix = function () {
14367
+ return this.setRegionLocationMatrix(undefined);
14368
+ };
14369
+ /**
14370
+ * Returns whether this field is set.
14371
+ * @return {boolean}
14372
+ */
14373
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionLocationMatrix = function () {
14374
+ return jspb.Message.getField(this, 21) != null;
14375
+ };
14376
+ /**
14377
+ * optional google.protobuf.UInt64Value bounding_boxes_count = 22;
14378
+ * @return {?proto.google.protobuf.UInt64Value}
14379
+ */
14380
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getBoundingBoxesCount = function () {
14381
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 22));
14382
+ };
14383
+ /**
14384
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14385
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14386
+ */
14387
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setBoundingBoxesCount = function (value) {
14388
+ return jspb.Message.setWrapperField(this, 22, value);
14389
+ };
14390
+ /**
14391
+ * Clears the message field making it undefined.
14392
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14393
+ */
14394
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearBoundingBoxesCount = function () {
14395
+ return this.setBoundingBoxesCount(undefined);
14396
+ };
14397
+ /**
14398
+ * Returns whether this field is set.
14399
+ * @return {boolean}
14400
+ */
14401
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasBoundingBoxesCount = function () {
14402
+ return jspb.Message.getField(this, 22) != null;
14403
+ };
14404
+ /**
14405
+ * optional google.protobuf.UInt64Value polygons_count = 23;
14406
+ * @return {?proto.google.protobuf.UInt64Value}
14407
+ */
14408
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getPolygonsCount = function () {
14409
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 23));
14410
+ };
14411
+ /**
14412
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14413
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14414
+ */
14415
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setPolygonsCount = function (value) {
14416
+ return jspb.Message.setWrapperField(this, 23, value);
14417
+ };
14418
+ /**
14419
+ * Clears the message field making it undefined.
14420
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14421
+ */
14422
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearPolygonsCount = function () {
14423
+ return this.setPolygonsCount(undefined);
14424
+ };
14425
+ /**
14426
+ * Returns whether this field is set.
14427
+ * @return {boolean}
14428
+ */
14429
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasPolygonsCount = function () {
14430
+ return jspb.Message.getField(this, 23) != null;
14431
+ };
14432
+ /**
14433
+ * optional google.protobuf.UInt64Value points_count = 24;
14434
+ * @return {?proto.google.protobuf.UInt64Value}
14435
+ */
14436
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getPointsCount = function () {
14437
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 24));
14438
+ };
14439
+ /**
14440
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14441
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14442
+ */
14443
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setPointsCount = function (value) {
14444
+ return jspb.Message.setWrapperField(this, 24, value);
14445
+ };
14446
+ /**
14447
+ * Clears the message field making it undefined.
14448
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14449
+ */
14450
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearPointsCount = function () {
14451
+ return this.setPointsCount(undefined);
14452
+ };
14453
+ /**
14454
+ * Returns whether this field is set.
14455
+ * @return {boolean}
14456
+ */
14457
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasPointsCount = function () {
14458
+ return jspb.Message.getField(this, 24) != null;
14459
+ };
14460
+ /**
14461
+ * optional google.protobuf.UInt64Value masks_count = 25;
14462
+ * @return {?proto.google.protobuf.UInt64Value}
14463
+ */
14464
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getMasksCount = function () {
14465
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 25));
14466
+ };
14467
+ /**
14468
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14469
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14470
+ */
14471
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setMasksCount = function (value) {
14472
+ return jspb.Message.setWrapperField(this, 25, value);
14473
+ };
14474
+ /**
14475
+ * Clears the message field making it undefined.
14476
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14477
+ */
14478
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearMasksCount = function () {
14479
+ return this.setMasksCount(undefined);
14480
+ };
14481
+ /**
14482
+ * Returns whether this field is set.
14483
+ * @return {boolean}
14484
+ */
14485
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasMasksCount = function () {
14486
+ return jspb.Message.getField(this, 25) != null;
14487
+ };
14488
+ /**
14489
+ * optional google.protobuf.UInt64Value region_inputs_count = 60;
14490
+ * @return {?proto.google.protobuf.UInt64Value}
14491
+ */
14492
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionInputsCount = function () {
14493
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 60));
14494
+ };
14495
+ /**
14496
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14497
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14498
+ */
14499
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionInputsCount = function (value) {
14500
+ return jspb.Message.setWrapperField(this, 60, value);
14501
+ };
14502
+ /**
14503
+ * Clears the message field making it undefined.
14504
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14505
+ */
14506
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionInputsCount = function () {
14507
+ return this.setRegionInputsCount(undefined);
14508
+ };
14509
+ /**
14510
+ * Returns whether this field is set.
14511
+ * @return {boolean}
14512
+ */
14513
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionInputsCount = function () {
14514
+ return jspb.Message.getField(this, 60) != null;
14515
+ };
14516
+ /**
14517
+ * optional google.protobuf.UInt64Value region_frames_count = 61;
14518
+ * @return {?proto.google.protobuf.UInt64Value}
14519
+ */
14520
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionFramesCount = function () {
14521
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 61));
14522
+ };
14523
+ /**
14524
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14525
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14526
+ */
14527
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionFramesCount = function (value) {
14528
+ return jspb.Message.setWrapperField(this, 61, value);
14529
+ };
14530
+ /**
14531
+ * Clears the message field making it undefined.
14532
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14533
+ */
14534
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionFramesCount = function () {
14535
+ return this.setRegionFramesCount(undefined);
14536
+ };
14537
+ /**
14538
+ * Returns whether this field is set.
14539
+ * @return {boolean}
14540
+ */
14541
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionFramesCount = function () {
14542
+ return jspb.Message.getField(this, 61) != null;
14543
+ };
14544
+ /**
14545
+ * optional google.protobuf.UInt64Value frames_count = 30;
14546
+ * @return {?proto.google.protobuf.UInt64Value}
14547
+ */
14548
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getFramesCount = function () {
14549
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 30));
14550
+ };
14551
+ /**
14552
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14553
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14554
+ */
14555
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setFramesCount = function (value) {
14556
+ return jspb.Message.setWrapperField(this, 30, value);
14557
+ };
14558
+ /**
14559
+ * Clears the message field making it undefined.
14560
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14561
+ */
14562
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearFramesCount = function () {
14563
+ return this.setFramesCount(undefined);
14564
+ };
14565
+ /**
14566
+ * Returns whether this field is set.
14567
+ * @return {boolean}
14568
+ */
14569
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasFramesCount = function () {
14570
+ return jspb.Message.getField(this, 30) != null;
14571
+ };
14572
+ /**
14573
+ * optional google.protobuf.UInt64Value frame_inputs_count = 70;
14574
+ * @return {?proto.google.protobuf.UInt64Value}
14575
+ */
14576
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getFrameInputsCount = function () {
14577
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 70));
14578
+ };
14579
+ /**
14580
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14581
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14582
+ */
14583
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setFrameInputsCount = function (value) {
14584
+ return jspb.Message.setWrapperField(this, 70, value);
14585
+ };
14586
+ /**
14587
+ * Clears the message field making it undefined.
14588
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14589
+ */
14590
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearFrameInputsCount = function () {
14591
+ return this.setFrameInputsCount(undefined);
14592
+ };
14593
+ /**
14594
+ * Returns whether this field is set.
14595
+ * @return {boolean}
14596
+ */
14597
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasFrameInputsCount = function () {
14598
+ return jspb.Message.getField(this, 70) != null;
14599
+ };
14600
+ /**
14601
+ * optional google.protobuf.UInt64Value embeddings_count = 40;
14602
+ * @return {?proto.google.protobuf.UInt64Value}
14603
+ */
14604
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getEmbeddingsCount = function () {
14605
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 40));
14606
+ };
14607
+ /**
14608
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14609
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14610
+ */
14611
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setEmbeddingsCount = function (value) {
14612
+ return jspb.Message.setWrapperField(this, 40, value);
14613
+ };
14614
+ /**
14615
+ * Clears the message field making it undefined.
14616
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14617
+ */
14618
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearEmbeddingsCount = function () {
14619
+ return this.setEmbeddingsCount(undefined);
14620
+ };
14621
+ /**
14622
+ * Returns whether this field is set.
14623
+ * @return {boolean}
14624
+ */
14625
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasEmbeddingsCount = function () {
14626
+ return jspb.Message.getField(this, 40) != null;
14627
+ };
14628
+ /**
14629
+ * optional google.protobuf.UInt64Value positive_input_tags_count = 50;
14630
+ * @return {?proto.google.protobuf.UInt64Value}
14631
+ */
14632
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getPositiveInputTagsCount = function () {
14633
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 50));
14634
+ };
14635
+ /**
14636
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14637
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14638
+ */
14639
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setPositiveInputTagsCount = function (value) {
14640
+ return jspb.Message.setWrapperField(this, 50, value);
14641
+ };
14642
+ /**
14643
+ * Clears the message field making it undefined.
14644
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14645
+ */
14646
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearPositiveInputTagsCount = function () {
14647
+ return this.setPositiveInputTagsCount(undefined);
14648
+ };
14649
+ /**
14650
+ * Returns whether this field is set.
14651
+ * @return {boolean}
14652
+ */
14653
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasPositiveInputTagsCount = function () {
14654
+ return jspb.Message.getField(this, 50) != null;
14655
+ };
14656
+ /**
14657
+ * optional google.protobuf.UInt64Value positive_region_tags_count = 51;
14658
+ * @return {?proto.google.protobuf.UInt64Value}
14659
+ */
14660
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getPositiveRegionTagsCount = function () {
14661
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 51));
14662
+ };
14663
+ /**
14664
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14665
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14666
+ */
14667
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setPositiveRegionTagsCount = function (value) {
14668
+ return jspb.Message.setWrapperField(this, 51, value);
14669
+ };
14670
+ /**
14671
+ * Clears the message field making it undefined.
14672
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14673
+ */
14674
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearPositiveRegionTagsCount = function () {
14675
+ return this.setPositiveRegionTagsCount(undefined);
14676
+ };
14677
+ /**
14678
+ * Returns whether this field is set.
14679
+ * @return {boolean}
14680
+ */
14681
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasPositiveRegionTagsCount = function () {
14682
+ return jspb.Message.getField(this, 51) != null;
14683
+ };
14684
+ /**
14685
+ * optional google.protobuf.UInt64Value positive_frame_tags_count = 52;
14686
+ * @return {?proto.google.protobuf.UInt64Value}
14687
+ */
14688
+ proto.clarifai.api.DatasetVersionMetrics.prototype.getPositiveFrameTagsCount = function () {
14689
+ return /** @type{?proto.google.protobuf.UInt64Value} */ (jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 52));
14690
+ };
14691
+ /**
14692
+ * @param {?proto.google.protobuf.UInt64Value|undefined} value
14693
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14694
+ */
14695
+ proto.clarifai.api.DatasetVersionMetrics.prototype.setPositiveFrameTagsCount = function (value) {
14696
+ return jspb.Message.setWrapperField(this, 52, value);
14697
+ };
14698
+ /**
14699
+ * Clears the message field making it undefined.
14700
+ * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this
14701
+ */
14702
+ proto.clarifai.api.DatasetVersionMetrics.prototype.clearPositiveFrameTagsCount = function () {
14703
+ return this.setPositiveFrameTagsCount(undefined);
14704
+ };
14705
+ /**
14706
+ * Returns whether this field is set.
14707
+ * @return {boolean}
14708
+ */
14709
+ proto.clarifai.api.DatasetVersionMetrics.prototype.hasPositiveFrameTagsCount = function () {
14710
+ return jspb.Message.getField(this, 52) != null;
14711
+ };
12690
14712
  if (jspb.Message.GENERATE_TO_OBJECT) {
12691
14713
  /**
12692
14714
  * Creates an object representation of this proto.
@@ -12700,21 +14722,24 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12700
14722
  * http://goto/soy-param-migration
12701
14723
  * @return {!Object}
12702
14724
  */
12703
- proto.clarifai.api.DatasetVersionSummary.prototype.toObject = function (opt_includeInstance) {
12704
- return proto.clarifai.api.DatasetVersionSummary.toObject(opt_includeInstance, this);
14725
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.toObject = function (opt_includeInstance) {
14726
+ return proto.clarifai.api.DatasetVersionMetricsGroup.toObject(opt_includeInstance, this);
12705
14727
  };
12706
14728
  /**
12707
14729
  * Static version of the {@see toObject} method.
12708
14730
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12709
14731
  * the JSPB instance for transitional soy proto support:
12710
14732
  * http://goto/soy-param-migration
12711
- * @param {!proto.clarifai.api.DatasetVersionSummary} msg The msg instance to transform.
14733
+ * @param {!proto.clarifai.api.DatasetVersionMetricsGroup} msg The msg instance to transform.
12712
14734
  * @return {!Object}
12713
14735
  * @suppress {unusedLocalVariables} f is only used for nested messages
12714
14736
  */
12715
- proto.clarifai.api.DatasetVersionSummary.toObject = function (includeInstance, msg) {
14737
+ proto.clarifai.api.DatasetVersionMetricsGroup.toObject = function (includeInstance, msg) {
12716
14738
  var f, obj = {
12717
- inputCountsMap: (f = msg.getInputCountsMap()) ? f.toObject(includeInstance, undefined) : []
14739
+ parentPath: jspb.Message.getFieldWithDefault(msg, 1, ""),
14740
+ type: jspb.Message.getFieldWithDefault(msg, 2, 0),
14741
+ value: (f = msg.getValue()) && google_protobuf_struct_pb.Value.toObject(includeInstance, f),
14742
+ metrics: (f = msg.getMetrics()) && proto.clarifai.api.DatasetVersionMetrics.toObject(includeInstance, f)
12718
14743
  };
12719
14744
  if (includeInstance) {
12720
14745
  obj.$jspbMessageInstance = msg;
@@ -12725,21 +14750,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12725
14750
  /**
12726
14751
  * Deserializes binary data (in protobuf wire format).
12727
14752
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
12728
- * @return {!proto.clarifai.api.DatasetVersionSummary}
14753
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup}
12729
14754
  */
12730
- proto.clarifai.api.DatasetVersionSummary.deserializeBinary = function (bytes) {
14755
+ proto.clarifai.api.DatasetVersionMetricsGroup.deserializeBinary = function (bytes) {
12731
14756
  var reader = new jspb.BinaryReader(bytes);
12732
- var msg = new proto.clarifai.api.DatasetVersionSummary;
12733
- return proto.clarifai.api.DatasetVersionSummary.deserializeBinaryFromReader(msg, reader);
14757
+ var msg = new proto.clarifai.api.DatasetVersionMetricsGroup;
14758
+ return proto.clarifai.api.DatasetVersionMetricsGroup.deserializeBinaryFromReader(msg, reader);
12734
14759
  };
12735
14760
  /**
12736
14761
  * Deserializes binary data (in protobuf wire format) from the
12737
14762
  * given reader into the given message object.
12738
- * @param {!proto.clarifai.api.DatasetVersionSummary} msg The message object to deserialize into.
14763
+ * @param {!proto.clarifai.api.DatasetVersionMetricsGroup} msg The message object to deserialize into.
12739
14764
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12740
- * @return {!proto.clarifai.api.DatasetVersionSummary}
14765
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup}
12741
14766
  */
12742
- proto.clarifai.api.DatasetVersionSummary.deserializeBinaryFromReader = function (msg, reader) {
14767
+ proto.clarifai.api.DatasetVersionMetricsGroup.deserializeBinaryFromReader = function (msg, reader) {
12743
14768
  while (reader.nextField()) {
12744
14769
  if (reader.isEndGroup()) {
12745
14770
  break;
@@ -12747,10 +14772,22 @@ proto.clarifai.api.DatasetVersionSummary.deserializeBinaryFromReader = function
12747
14772
  var field = reader.getFieldNumber();
12748
14773
  switch (field) {
12749
14774
  case 1:
12750
- var value = msg.getInputCountsMap();
12751
- reader.readMessage(value, function (message, reader) {
12752
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint64, null, "", 0);
12753
- });
14775
+ var value = /** @type {string} */ (reader.readString());
14776
+ msg.setParentPath(value);
14777
+ break;
14778
+ case 2:
14779
+ var value = /** @type {!proto.clarifai.api.DatasetVersionMetricsGroupType} */ (reader.readEnum());
14780
+ msg.setType(value);
14781
+ break;
14782
+ case 3:
14783
+ var value = new google_protobuf_struct_pb.Value;
14784
+ reader.readMessage(value, google_protobuf_struct_pb.Value.deserializeBinaryFromReader);
14785
+ msg.setValue(value);
14786
+ break;
14787
+ case 4:
14788
+ var value = new proto.clarifai.api.DatasetVersionMetrics;
14789
+ reader.readMessage(value, proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader);
14790
+ msg.setMetrics(value);
12754
14791
  break;
12755
14792
  default:
12756
14793
  reader.skipField();
@@ -12763,41 +14800,120 @@ proto.clarifai.api.DatasetVersionSummary.deserializeBinaryFromReader = function
12763
14800
  * Serializes the message to binary data (in protobuf wire format).
12764
14801
  * @return {!Uint8Array}
12765
14802
  */
12766
- proto.clarifai.api.DatasetVersionSummary.prototype.serializeBinary = function () {
14803
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.serializeBinary = function () {
12767
14804
  var writer = new jspb.BinaryWriter();
12768
- proto.clarifai.api.DatasetVersionSummary.serializeBinaryToWriter(this, writer);
14805
+ proto.clarifai.api.DatasetVersionMetricsGroup.serializeBinaryToWriter(this, writer);
12769
14806
  return writer.getResultBuffer();
12770
14807
  };
12771
14808
  /**
12772
14809
  * Serializes the given message to binary data (in protobuf wire
12773
14810
  * format), writing to the given BinaryWriter.
12774
- * @param {!proto.clarifai.api.DatasetVersionSummary} message
14811
+ * @param {!proto.clarifai.api.DatasetVersionMetricsGroup} message
12775
14812
  * @param {!jspb.BinaryWriter} writer
12776
14813
  * @suppress {unusedLocalVariables} f is only used for nested messages
12777
14814
  */
12778
- proto.clarifai.api.DatasetVersionSummary.serializeBinaryToWriter = function (message, writer) {
14815
+ proto.clarifai.api.DatasetVersionMetricsGroup.serializeBinaryToWriter = function (message, writer) {
12779
14816
  var f = undefined;
12780
- f = message.getInputCountsMap(true);
12781
- if (f && f.getLength() > 0) {
12782
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint64);
14817
+ f = message.getParentPath();
14818
+ if (f.length > 0) {
14819
+ writer.writeString(1, f);
14820
+ }
14821
+ f = message.getType();
14822
+ if (f !== 0.0) {
14823
+ writer.writeEnum(2, f);
14824
+ }
14825
+ f = message.getValue();
14826
+ if (f != null) {
14827
+ writer.writeMessage(3, f, google_protobuf_struct_pb.Value.serializeBinaryToWriter);
14828
+ }
14829
+ f = message.getMetrics();
14830
+ if (f != null) {
14831
+ writer.writeMessage(4, f, proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter);
12783
14832
  }
12784
14833
  };
12785
14834
  /**
12786
- * map<string, uint64> input_counts = 1;
12787
- * @param {boolean=} opt_noLazyCreate Do not create the map if
12788
- * empty, instead returning `undefined`
12789
- * @return {!jspb.Map<string,number>}
14835
+ * optional string parent_path = 1;
14836
+ * @return {string}
12790
14837
  */
12791
- proto.clarifai.api.DatasetVersionSummary.prototype.getInputCountsMap = function (opt_noLazyCreate) {
12792
- return /** @type {!jspb.Map<string,number>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, null));
14838
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getParentPath = function () {
14839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
12793
14840
  };
12794
14841
  /**
12795
- * Clears values from the map. The map will be non-null.
12796
- * @return {!proto.clarifai.api.DatasetVersionSummary} returns this
14842
+ * @param {string} value
14843
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this
12797
14844
  */
12798
- proto.clarifai.api.DatasetVersionSummary.prototype.clearInputCountsMap = function () {
12799
- this.getInputCountsMap().clear();
12800
- return this;
14845
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setParentPath = function (value) {
14846
+ return jspb.Message.setProto3StringField(this, 1, value);
14847
+ };
14848
+ /**
14849
+ * optional DatasetVersionMetricsGroupType type = 2;
14850
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroupType}
14851
+ */
14852
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getType = function () {
14853
+ return /** @type {!proto.clarifai.api.DatasetVersionMetricsGroupType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
14854
+ };
14855
+ /**
14856
+ * @param {!proto.clarifai.api.DatasetVersionMetricsGroupType} value
14857
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this
14858
+ */
14859
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setType = function (value) {
14860
+ return jspb.Message.setProto3EnumField(this, 2, value);
14861
+ };
14862
+ /**
14863
+ * optional google.protobuf.Value value = 3;
14864
+ * @return {?proto.google.protobuf.Value}
14865
+ */
14866
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getValue = function () {
14867
+ return /** @type{?proto.google.protobuf.Value} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 3));
14868
+ };
14869
+ /**
14870
+ * @param {?proto.google.protobuf.Value|undefined} value
14871
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this
14872
+ */
14873
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setValue = function (value) {
14874
+ return jspb.Message.setWrapperField(this, 3, value);
14875
+ };
14876
+ /**
14877
+ * Clears the message field making it undefined.
14878
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this
14879
+ */
14880
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.clearValue = function () {
14881
+ return this.setValue(undefined);
14882
+ };
14883
+ /**
14884
+ * Returns whether this field is set.
14885
+ * @return {boolean}
14886
+ */
14887
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.hasValue = function () {
14888
+ return jspb.Message.getField(this, 3) != null;
14889
+ };
14890
+ /**
14891
+ * optional DatasetVersionMetrics metrics = 4;
14892
+ * @return {?proto.clarifai.api.DatasetVersionMetrics}
14893
+ */
14894
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getMetrics = function () {
14895
+ return /** @type{?proto.clarifai.api.DatasetVersionMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionMetrics, 4));
14896
+ };
14897
+ /**
14898
+ * @param {?proto.clarifai.api.DatasetVersionMetrics|undefined} value
14899
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this
14900
+ */
14901
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setMetrics = function (value) {
14902
+ return jspb.Message.setWrapperField(this, 4, value);
14903
+ };
14904
+ /**
14905
+ * Clears the message field making it undefined.
14906
+ * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this
14907
+ */
14908
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.clearMetrics = function () {
14909
+ return this.setMetrics(undefined);
14910
+ };
14911
+ /**
14912
+ * Returns whether this field is set.
14913
+ * @return {boolean}
14914
+ */
14915
+ proto.clarifai.api.DatasetVersionMetricsGroup.prototype.hasMetrics = function () {
14916
+ return jspb.Message.getField(this, 4) != null;
12801
14917
  };
12802
14918
  /**
12803
14919
  * List of repeated fields within this message type.
@@ -13399,6 +15515,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
13399
15515
  inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
13400
15516
  trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
13401
15517
  modelTypeId: jspb.Message.getFieldWithDefault(msg, 14, ""),
15518
+ task: jspb.Message.getFieldWithDefault(msg, 26, ""),
13402
15519
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
13403
15520
  description: jspb.Message.getFieldWithDefault(msg, 16, ""),
13404
15521
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
@@ -13494,6 +15611,10 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function (msg, reader) {
13494
15611
  var value = /** @type {string} */ (reader.readString());
13495
15612
  msg.setModelTypeId(value);
13496
15613
  break;
15614
+ case 26:
15615
+ var value = /** @type {string} */ (reader.readString());
15616
+ msg.setTask(value);
15617
+ break;
13497
15618
  case 15:
13498
15619
  var value = new proto.clarifai.api.Visibility;
13499
15620
  reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
@@ -13610,6 +15731,10 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function (message, writer) {
13610
15731
  if (f.length > 0) {
13611
15732
  writer.writeString(14, f);
13612
15733
  }
15734
+ f = message.getTask();
15735
+ if (f.length > 0) {
15736
+ writer.writeString(26, f);
15737
+ }
13613
15738
  f = message.getVisibility();
13614
15739
  if (f != null) {
13615
15740
  writer.writeMessage(15, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
@@ -13903,6 +16028,20 @@ proto.clarifai.api.Model.prototype.getModelTypeId = function () {
13903
16028
  proto.clarifai.api.Model.prototype.setModelTypeId = function (value) {
13904
16029
  return jspb.Message.setProto3StringField(this, 14, value);
13905
16030
  };
16031
+ /**
16032
+ * optional string task = 26;
16033
+ * @return {string}
16034
+ */
16035
+ proto.clarifai.api.Model.prototype.getTask = function () {
16036
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, ""));
16037
+ };
16038
+ /**
16039
+ * @param {string} value
16040
+ * @return {!proto.clarifai.api.Model} returns this
16041
+ */
16042
+ proto.clarifai.api.Model.prototype.setTask = function (value) {
16043
+ return jspb.Message.setProto3StringField(this, 26, value);
16044
+ };
13906
16045
  /**
13907
16046
  * optional Visibility visibility = 15;
13908
16047
  * @return {?proto.clarifai.api.Visibility}
@@ -14611,8 +16750,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
14611
16750
  data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f),
14612
16751
  outputConfig: (f = msg.getOutputConfig()) && proto.clarifai.api.OutputConfig.toObject(includeInstance, f),
14613
16752
  message: jspb.Message.getFieldWithDefault(msg, 3, ""),
14614
- type: jspb.Message.getFieldWithDefault(msg, 4, ""),
14615
- typeExt: jspb.Message.getFieldWithDefault(msg, 5, ""),
14616
16753
  fieldsMap: (f = msg.getFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
14617
16754
  params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
14618
16755
  };
@@ -14660,14 +16797,6 @@ proto.clarifai.api.OutputInfo.deserializeBinaryFromReader = function (msg, reade
14660
16797
  var value = /** @type {string} */ (reader.readString());
14661
16798
  msg.setMessage(value);
14662
16799
  break;
14663
- case 4:
14664
- var value = /** @type {string} */ (reader.readString());
14665
- msg.setType(value);
14666
- break;
14667
- case 5:
14668
- var value = /** @type {string} */ (reader.readString());
14669
- msg.setTypeExt(value);
14670
- break;
14671
16800
  case 6:
14672
16801
  var value = new google_protobuf_struct_pb.Struct;
14673
16802
  reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
@@ -14715,14 +16844,6 @@ proto.clarifai.api.OutputInfo.serializeBinaryToWriter = function (message, write
14715
16844
  if (f.length > 0) {
14716
16845
  writer.writeString(3, f);
14717
16846
  }
14718
- f = message.getType();
14719
- if (f.length > 0) {
14720
- writer.writeString(4, f);
14721
- }
14722
- f = message.getTypeExt();
14723
- if (f.length > 0) {
14724
- writer.writeString(5, f);
14725
- }
14726
16847
  f = message.getFieldsMap();
14727
16848
  if (f != null) {
14728
16849
  writer.writeMessage(6, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
@@ -14802,34 +16923,6 @@ proto.clarifai.api.OutputInfo.prototype.getMessage = function () {
14802
16923
  proto.clarifai.api.OutputInfo.prototype.setMessage = function (value) {
14803
16924
  return jspb.Message.setProto3StringField(this, 3, value);
14804
16925
  };
14805
- /**
14806
- * optional string type = 4;
14807
- * @return {string}
14808
- */
14809
- proto.clarifai.api.OutputInfo.prototype.getType = function () {
14810
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
14811
- };
14812
- /**
14813
- * @param {string} value
14814
- * @return {!proto.clarifai.api.OutputInfo} returns this
14815
- */
14816
- proto.clarifai.api.OutputInfo.prototype.setType = function (value) {
14817
- return jspb.Message.setProto3StringField(this, 4, value);
14818
- };
14819
- /**
14820
- * optional string type_ext = 5;
14821
- * @return {string}
14822
- */
14823
- proto.clarifai.api.OutputInfo.prototype.getTypeExt = function () {
14824
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
14825
- };
14826
- /**
14827
- * @param {string} value
14828
- * @return {!proto.clarifai.api.OutputInfo} returns this
14829
- */
14830
- proto.clarifai.api.OutputInfo.prototype.setTypeExt = function (value) {
14831
- return jspb.Message.setProto3StringField(this, 5, value);
14832
- };
14833
16926
  /**
14834
16927
  * optional google.protobuf.Struct fields_map = 6;
14835
16928
  * @return {?proto.google.protobuf.Struct}
@@ -15784,7 +17877,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15784
17877
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
15785
17878
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
15786
17879
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
15787
- type: jspb.Message.getFieldWithDefault(msg, 4, ""),
15788
17880
  inputFieldsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
15789
17881
  outputFieldsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
15790
17882
  trainable: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
@@ -15838,10 +17930,6 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function (msg, reader
15838
17930
  var value = /** @type {string} */ (reader.readString());
15839
17931
  msg.setDescription(value);
15840
17932
  break;
15841
- case 4:
15842
- var value = /** @type {string} */ (reader.readString());
15843
- msg.setType(value);
15844
- break;
15845
17933
  case 5:
15846
17934
  var value = /** @type {string} */ (reader.readString());
15847
17935
  msg.addInputFields(value);
@@ -15922,10 +18010,6 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function (message, writer
15922
18010
  if (f.length > 0) {
15923
18011
  writer.writeString(3, f);
15924
18012
  }
15925
- f = message.getType();
15926
- if (f.length > 0) {
15927
- writer.writeString(4, f);
15928
- }
15929
18013
  f = message.getInputFieldsList();
15930
18014
  if (f.length > 0) {
15931
18015
  writer.writeRepeatedString(5, f);
@@ -16009,20 +18093,6 @@ proto.clarifai.api.ModelType.prototype.getDescription = function () {
16009
18093
  proto.clarifai.api.ModelType.prototype.setDescription = function (value) {
16010
18094
  return jspb.Message.setProto3StringField(this, 3, value);
16011
18095
  };
16012
- /**
16013
- * optional string type = 4;
16014
- * @return {string}
16015
- */
16016
- proto.clarifai.api.ModelType.prototype.getType = function () {
16017
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
16018
- };
16019
- /**
16020
- * @param {string} value
16021
- * @return {!proto.clarifai.api.ModelType} returns this
16022
- */
16023
- proto.clarifai.api.ModelType.prototype.setType = function (value) {
16024
- return jspb.Message.setProto3StringField(this, 4, value);
16025
- };
16026
18096
  /**
16027
18097
  * repeated string input_fields = 5;
16028
18098
  * @return {!Array<string>}
@@ -16756,7 +18826,7 @@ proto.clarifai.api.ModelTypeRangeInfo.prototype.setStep = function (value) {
16756
18826
  * @private {!Array<number>}
16757
18827
  * @const
16758
18828
  */
16759
- proto.clarifai.api.ModelTypeEnumOption.repeatedFields_ = [3];
18829
+ proto.clarifai.api.ModelTypeEnumOption.repeatedFields_ = [5, 3];
16760
18830
  if (jspb.Message.GENERATE_TO_OBJECT) {
16761
18831
  /**
16762
18832
  * Creates an object representation of this proto.
@@ -16785,6 +18855,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
16785
18855
  proto.clarifai.api.ModelTypeEnumOption.toObject = function (includeInstance, msg) {
16786
18856
  var f, obj = {
16787
18857
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
18858
+ aliasesList: jspb.Message.toObjectList(msg.getAliasesList(), proto.clarifai.api.ModelTypeEnumOptionAlias.toObject, includeInstance),
16788
18859
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
16789
18860
  modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(), proto.clarifai.api.ModelTypeField.toObject, includeInstance),
16790
18861
  internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
@@ -16823,6 +18894,11 @@ proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader = function (m
16823
18894
  var value = /** @type {string} */ (reader.readString());
16824
18895
  msg.setId(value);
16825
18896
  break;
18897
+ case 5:
18898
+ var value = new proto.clarifai.api.ModelTypeEnumOptionAlias;
18899
+ reader.readMessage(value, proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader);
18900
+ msg.addAliases(value);
18901
+ break;
16826
18902
  case 2:
16827
18903
  var value = /** @type {string} */ (reader.readString());
16828
18904
  msg.setDescription(value);
@@ -16865,6 +18941,10 @@ proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter = function (messa
16865
18941
  if (f.length > 0) {
16866
18942
  writer.writeString(1, f);
16867
18943
  }
18944
+ f = message.getAliasesList();
18945
+ if (f.length > 0) {
18946
+ writer.writeRepeatedMessage(5, f, proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter);
18947
+ }
16868
18948
  f = message.getDescription();
16869
18949
  if (f.length > 0) {
16870
18950
  writer.writeString(2, f);
@@ -16892,6 +18972,35 @@ proto.clarifai.api.ModelTypeEnumOption.prototype.getId = function () {
16892
18972
  proto.clarifai.api.ModelTypeEnumOption.prototype.setId = function (value) {
16893
18973
  return jspb.Message.setProto3StringField(this, 1, value);
16894
18974
  };
18975
+ /**
18976
+ * repeated ModelTypeEnumOptionAlias aliases = 5;
18977
+ * @return {!Array<!proto.clarifai.api.ModelTypeEnumOptionAlias>}
18978
+ */
18979
+ proto.clarifai.api.ModelTypeEnumOption.prototype.getAliasesList = function () {
18980
+ return /** @type{!Array<!proto.clarifai.api.ModelTypeEnumOptionAlias>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeEnumOptionAlias, 5));
18981
+ };
18982
+ /**
18983
+ * @param {!Array<!proto.clarifai.api.ModelTypeEnumOptionAlias>} value
18984
+ * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this
18985
+ */
18986
+ proto.clarifai.api.ModelTypeEnumOption.prototype.setAliasesList = function (value) {
18987
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
18988
+ };
18989
+ /**
18990
+ * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias=} opt_value
18991
+ * @param {number=} opt_index
18992
+ * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias}
18993
+ */
18994
+ proto.clarifai.api.ModelTypeEnumOption.prototype.addAliases = function (opt_value, opt_index) {
18995
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.ModelTypeEnumOptionAlias, opt_index);
18996
+ };
18997
+ /**
18998
+ * Clears the list making it empty but non-null.
18999
+ * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this
19000
+ */
19001
+ proto.clarifai.api.ModelTypeEnumOption.prototype.clearAliasesList = function () {
19002
+ return this.setAliasesList([]);
19003
+ };
16895
19004
  /**
16896
19005
  * optional string description = 2;
16897
19006
  * @return {string}
@@ -16949,6 +19058,113 @@ proto.clarifai.api.ModelTypeEnumOption.prototype.getInternalOnly = function () {
16949
19058
  proto.clarifai.api.ModelTypeEnumOption.prototype.setInternalOnly = function (value) {
16950
19059
  return jspb.Message.setProto3BooleanField(this, 4, value);
16951
19060
  };
19061
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19062
+ /**
19063
+ * Creates an object representation of this proto.
19064
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19065
+ * Optional fields that are not set will be set to undefined.
19066
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19067
+ * For the list of reserved names please see:
19068
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19069
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19070
+ * JSPB instance for transitional soy proto support:
19071
+ * http://goto/soy-param-migration
19072
+ * @return {!Object}
19073
+ */
19074
+ proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.toObject = function (opt_includeInstance) {
19075
+ return proto.clarifai.api.ModelTypeEnumOptionAlias.toObject(opt_includeInstance, this);
19076
+ };
19077
+ /**
19078
+ * Static version of the {@see toObject} method.
19079
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19080
+ * the JSPB instance for transitional soy proto support:
19081
+ * http://goto/soy-param-migration
19082
+ * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} msg The msg instance to transform.
19083
+ * @return {!Object}
19084
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19085
+ */
19086
+ proto.clarifai.api.ModelTypeEnumOptionAlias.toObject = function (includeInstance, msg) {
19087
+ var f, obj = {
19088
+ idInt: jspb.Message.getFieldWithDefault(msg, 1, 0)
19089
+ };
19090
+ if (includeInstance) {
19091
+ obj.$jspbMessageInstance = msg;
19092
+ }
19093
+ return obj;
19094
+ };
19095
+ }
19096
+ /**
19097
+ * Deserializes binary data (in protobuf wire format).
19098
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19099
+ * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias}
19100
+ */
19101
+ proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinary = function (bytes) {
19102
+ var reader = new jspb.BinaryReader(bytes);
19103
+ var msg = new proto.clarifai.api.ModelTypeEnumOptionAlias;
19104
+ return proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader(msg, reader);
19105
+ };
19106
+ /**
19107
+ * Deserializes binary data (in protobuf wire format) from the
19108
+ * given reader into the given message object.
19109
+ * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} msg The message object to deserialize into.
19110
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19111
+ * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias}
19112
+ */
19113
+ proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader = function (msg, reader) {
19114
+ while (reader.nextField()) {
19115
+ if (reader.isEndGroup()) {
19116
+ break;
19117
+ }
19118
+ var field = reader.getFieldNumber();
19119
+ switch (field) {
19120
+ case 1:
19121
+ var value = /** @type {number} */ (reader.readInt64());
19122
+ msg.setIdInt(value);
19123
+ break;
19124
+ default:
19125
+ reader.skipField();
19126
+ break;
19127
+ }
19128
+ }
19129
+ return msg;
19130
+ };
19131
+ /**
19132
+ * Serializes the message to binary data (in protobuf wire format).
19133
+ * @return {!Uint8Array}
19134
+ */
19135
+ proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.serializeBinary = function () {
19136
+ var writer = new jspb.BinaryWriter();
19137
+ proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter(this, writer);
19138
+ return writer.getResultBuffer();
19139
+ };
19140
+ /**
19141
+ * Serializes the given message to binary data (in protobuf wire
19142
+ * format), writing to the given BinaryWriter.
19143
+ * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} message
19144
+ * @param {!jspb.BinaryWriter} writer
19145
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19146
+ */
19147
+ proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter = function (message, writer) {
19148
+ var f = undefined;
19149
+ f = message.getIdInt();
19150
+ if (f !== 0) {
19151
+ writer.writeInt64(1, f);
19152
+ }
19153
+ };
19154
+ /**
19155
+ * optional int64 id_int = 1;
19156
+ * @return {number}
19157
+ */
19158
+ proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.getIdInt = function () {
19159
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19160
+ };
19161
+ /**
19162
+ * @param {number} value
19163
+ * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} returns this
19164
+ */
19165
+ proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.setIdInt = function (value) {
19166
+ return jspb.Message.setProto3IntField(this, 1, value);
19167
+ };
16952
19168
  if (jspb.Message.GENERATE_TO_OBJECT) {
16953
19169
  /**
16954
19170
  * Creates an object representation of this proto.
@@ -16977,7 +19193,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
16977
19193
  proto.clarifai.api.ModelQuery.toObject = function (includeInstance, msg) {
16978
19194
  var f, obj = {
16979
19195
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
16980
- type: jspb.Message.getFieldWithDefault(msg, 2, ""),
16981
19196
  modelTypeId: jspb.Message.getFieldWithDefault(msg, 3, "")
16982
19197
  };
16983
19198
  if (includeInstance) {
@@ -17014,10 +19229,6 @@ proto.clarifai.api.ModelQuery.deserializeBinaryFromReader = function (msg, reade
17014
19229
  var value = /** @type {string} */ (reader.readString());
17015
19230
  msg.setName(value);
17016
19231
  break;
17017
- case 2:
17018
- var value = /** @type {string} */ (reader.readString());
17019
- msg.setType(value);
17020
- break;
17021
19232
  case 3:
17022
19233
  var value = /** @type {string} */ (reader.readString());
17023
19234
  msg.setModelTypeId(value);
@@ -17051,10 +19262,6 @@ proto.clarifai.api.ModelQuery.serializeBinaryToWriter = function (message, write
17051
19262
  if (f.length > 0) {
17052
19263
  writer.writeString(1, f);
17053
19264
  }
17054
- f = message.getType();
17055
- if (f.length > 0) {
17056
- writer.writeString(2, f);
17057
- }
17058
19265
  f = message.getModelTypeId();
17059
19266
  if (f.length > 0) {
17060
19267
  writer.writeString(3, f);
@@ -17074,20 +19281,6 @@ proto.clarifai.api.ModelQuery.prototype.getName = function () {
17074
19281
  proto.clarifai.api.ModelQuery.prototype.setName = function (value) {
17075
19282
  return jspb.Message.setProto3StringField(this, 1, value);
17076
19283
  };
17077
- /**
17078
- * optional string type = 2;
17079
- * @return {string}
17080
- */
17081
- proto.clarifai.api.ModelQuery.prototype.getType = function () {
17082
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17083
- };
17084
- /**
17085
- * @param {string} value
17086
- * @return {!proto.clarifai.api.ModelQuery} returns this
17087
- */
17088
- proto.clarifai.api.ModelQuery.prototype.setType = function (value) {
17089
- return jspb.Message.setProto3StringField(this, 2, value);
17090
- };
17091
19284
  /**
17092
19285
  * optional string model_type_id = 3;
17093
19286
  * @return {string}
@@ -17142,7 +19335,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
17142
19335
  userId: jspb.Message.getFieldWithDefault(msg, 14, ""),
17143
19336
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
17144
19337
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
17145
- license: jspb.Message.getFieldWithDefault(msg, 17, "")
19338
+ license: jspb.Message.getFieldWithDefault(msg, 17, ""),
19339
+ datasetVersion: (f = msg.getDatasetVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f)
17146
19340
  };
17147
19341
  if (includeInstance) {
17148
19342
  obj.$jspbMessageInstance = msg;
@@ -17237,6 +19431,11 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function (msg, rea
17237
19431
  var value = /** @type {string} */ (reader.readString());
17238
19432
  msg.setLicense(value);
17239
19433
  break;
19434
+ case 18:
19435
+ var value = new proto.clarifai.api.DatasetVersion;
19436
+ reader.readMessage(value, proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader);
19437
+ msg.setDatasetVersion(value);
19438
+ break;
17240
19439
  default:
17241
19440
  reader.skipField();
17242
19441
  break;
@@ -17318,6 +19517,10 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function (message, wri
17318
19517
  if (f.length > 0) {
17319
19518
  writer.writeString(17, f);
17320
19519
  }
19520
+ f = message.getDatasetVersion();
19521
+ if (f != null) {
19522
+ writer.writeMessage(18, f, proto.clarifai.api.DatasetVersion.serializeBinaryToWriter);
19523
+ }
17321
19524
  };
17322
19525
  /**
17323
19526
  * optional string id = 1;
@@ -17613,6 +19816,591 @@ proto.clarifai.api.ModelVersion.prototype.getLicense = function () {
17613
19816
  proto.clarifai.api.ModelVersion.prototype.setLicense = function (value) {
17614
19817
  return jspb.Message.setProto3StringField(this, 17, value);
17615
19818
  };
19819
+ /**
19820
+ * optional DatasetVersion dataset_version = 18;
19821
+ * @return {?proto.clarifai.api.DatasetVersion}
19822
+ */
19823
+ proto.clarifai.api.ModelVersion.prototype.getDatasetVersion = function () {
19824
+ return /** @type{?proto.clarifai.api.DatasetVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersion, 18));
19825
+ };
19826
+ /**
19827
+ * @param {?proto.clarifai.api.DatasetVersion|undefined} value
19828
+ * @return {!proto.clarifai.api.ModelVersion} returns this
19829
+ */
19830
+ proto.clarifai.api.ModelVersion.prototype.setDatasetVersion = function (value) {
19831
+ return jspb.Message.setWrapperField(this, 18, value);
19832
+ };
19833
+ /**
19834
+ * Clears the message field making it undefined.
19835
+ * @return {!proto.clarifai.api.ModelVersion} returns this
19836
+ */
19837
+ proto.clarifai.api.ModelVersion.prototype.clearDatasetVersion = function () {
19838
+ return this.setDatasetVersion(undefined);
19839
+ };
19840
+ /**
19841
+ * Returns whether this field is set.
19842
+ * @return {boolean}
19843
+ */
19844
+ proto.clarifai.api.ModelVersion.prototype.hasDatasetVersion = function () {
19845
+ return jspb.Message.getField(this, 18) != null;
19846
+ };
19847
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19848
+ /**
19849
+ * Creates an object representation of this proto.
19850
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19851
+ * Optional fields that are not set will be set to undefined.
19852
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19853
+ * For the list of reserved names please see:
19854
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19855
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19856
+ * JSPB instance for transitional soy proto support:
19857
+ * http://goto/soy-param-migration
19858
+ * @return {!Object}
19859
+ */
19860
+ proto.clarifai.api.PretrainedModelConfig.prototype.toObject = function (opt_includeInstance) {
19861
+ return proto.clarifai.api.PretrainedModelConfig.toObject(opt_includeInstance, this);
19862
+ };
19863
+ /**
19864
+ * Static version of the {@see toObject} method.
19865
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19866
+ * the JSPB instance for transitional soy proto support:
19867
+ * http://goto/soy-param-migration
19868
+ * @param {!proto.clarifai.api.PretrainedModelConfig} msg The msg instance to transform.
19869
+ * @return {!Object}
19870
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19871
+ */
19872
+ proto.clarifai.api.PretrainedModelConfig.toObject = function (includeInstance, msg) {
19873
+ var f, obj = {
19874
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
19875
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
19876
+ inputFieldsMap: (f = msg.getInputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
19877
+ outputFieldsMap: (f = msg.getOutputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
19878
+ dataProviderParams: jspb.Message.getFieldWithDefault(msg, 5, ""),
19879
+ modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
19880
+ overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
19881
+ };
19882
+ if (includeInstance) {
19883
+ obj.$jspbMessageInstance = msg;
19884
+ }
19885
+ return obj;
19886
+ };
19887
+ }
19888
+ /**
19889
+ * Deserializes binary data (in protobuf wire format).
19890
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19891
+ * @return {!proto.clarifai.api.PretrainedModelConfig}
19892
+ */
19893
+ proto.clarifai.api.PretrainedModelConfig.deserializeBinary = function (bytes) {
19894
+ var reader = new jspb.BinaryReader(bytes);
19895
+ var msg = new proto.clarifai.api.PretrainedModelConfig;
19896
+ return proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader(msg, reader);
19897
+ };
19898
+ /**
19899
+ * Deserializes binary data (in protobuf wire format) from the
19900
+ * given reader into the given message object.
19901
+ * @param {!proto.clarifai.api.PretrainedModelConfig} msg The message object to deserialize into.
19902
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19903
+ * @return {!proto.clarifai.api.PretrainedModelConfig}
19904
+ */
19905
+ proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function (msg, reader) {
19906
+ while (reader.nextField()) {
19907
+ if (reader.isEndGroup()) {
19908
+ break;
19909
+ }
19910
+ var field = reader.getFieldNumber();
19911
+ switch (field) {
19912
+ case 1:
19913
+ var value = /** @type {string} */ (reader.readString());
19914
+ msg.setId(value);
19915
+ break;
19916
+ case 2:
19917
+ var value = /** @type {string} */ (reader.readString());
19918
+ msg.setType(value);
19919
+ break;
19920
+ case 3:
19921
+ var value = new google_protobuf_struct_pb.Struct;
19922
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
19923
+ msg.setInputFieldsMap(value);
19924
+ break;
19925
+ case 4:
19926
+ var value = new google_protobuf_struct_pb.Struct;
19927
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
19928
+ msg.setOutputFieldsMap(value);
19929
+ break;
19930
+ case 5:
19931
+ var value = /** @type {string} */ (reader.readString());
19932
+ msg.setDataProviderParams(value);
19933
+ break;
19934
+ case 6:
19935
+ var value = /** @type {string} */ (reader.readString());
19936
+ msg.setModelZipUrl(value);
19937
+ break;
19938
+ case 7:
19939
+ var value = /** @type {boolean} */ (reader.readBool());
19940
+ msg.setOverwrite(value);
19941
+ break;
19942
+ default:
19943
+ reader.skipField();
19944
+ break;
19945
+ }
19946
+ }
19947
+ return msg;
19948
+ };
19949
+ /**
19950
+ * Serializes the message to binary data (in protobuf wire format).
19951
+ * @return {!Uint8Array}
19952
+ */
19953
+ proto.clarifai.api.PretrainedModelConfig.prototype.serializeBinary = function () {
19954
+ var writer = new jspb.BinaryWriter();
19955
+ proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter(this, writer);
19956
+ return writer.getResultBuffer();
19957
+ };
19958
+ /**
19959
+ * Serializes the given message to binary data (in protobuf wire
19960
+ * format), writing to the given BinaryWriter.
19961
+ * @param {!proto.clarifai.api.PretrainedModelConfig} message
19962
+ * @param {!jspb.BinaryWriter} writer
19963
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19964
+ */
19965
+ proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter = function (message, writer) {
19966
+ var f = undefined;
19967
+ f = message.getId();
19968
+ if (f.length > 0) {
19969
+ writer.writeString(1, f);
19970
+ }
19971
+ f = message.getType();
19972
+ if (f.length > 0) {
19973
+ writer.writeString(2, f);
19974
+ }
19975
+ f = message.getInputFieldsMap();
19976
+ if (f != null) {
19977
+ writer.writeMessage(3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
19978
+ }
19979
+ f = message.getOutputFieldsMap();
19980
+ if (f != null) {
19981
+ writer.writeMessage(4, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
19982
+ }
19983
+ f = message.getDataProviderParams();
19984
+ if (f.length > 0) {
19985
+ writer.writeString(5, f);
19986
+ }
19987
+ f = message.getModelZipUrl();
19988
+ if (f.length > 0) {
19989
+ writer.writeString(6, f);
19990
+ }
19991
+ f = message.getOverwrite();
19992
+ if (f) {
19993
+ writer.writeBool(7, f);
19994
+ }
19995
+ };
19996
+ /**
19997
+ * optional string id = 1;
19998
+ * @return {string}
19999
+ */
20000
+ proto.clarifai.api.PretrainedModelConfig.prototype.getId = function () {
20001
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
20002
+ };
20003
+ /**
20004
+ * @param {string} value
20005
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20006
+ */
20007
+ proto.clarifai.api.PretrainedModelConfig.prototype.setId = function (value) {
20008
+ return jspb.Message.setProto3StringField(this, 1, value);
20009
+ };
20010
+ /**
20011
+ * optional string type = 2;
20012
+ * @return {string}
20013
+ */
20014
+ proto.clarifai.api.PretrainedModelConfig.prototype.getType = function () {
20015
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20016
+ };
20017
+ /**
20018
+ * @param {string} value
20019
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20020
+ */
20021
+ proto.clarifai.api.PretrainedModelConfig.prototype.setType = function (value) {
20022
+ return jspb.Message.setProto3StringField(this, 2, value);
20023
+ };
20024
+ /**
20025
+ * optional google.protobuf.Struct input_fields_map = 3;
20026
+ * @return {?proto.google.protobuf.Struct}
20027
+ */
20028
+ proto.clarifai.api.PretrainedModelConfig.prototype.getInputFieldsMap = function () {
20029
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
20030
+ };
20031
+ /**
20032
+ * @param {?proto.google.protobuf.Struct|undefined} value
20033
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20034
+ */
20035
+ proto.clarifai.api.PretrainedModelConfig.prototype.setInputFieldsMap = function (value) {
20036
+ return jspb.Message.setWrapperField(this, 3, value);
20037
+ };
20038
+ /**
20039
+ * Clears the message field making it undefined.
20040
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20041
+ */
20042
+ proto.clarifai.api.PretrainedModelConfig.prototype.clearInputFieldsMap = function () {
20043
+ return this.setInputFieldsMap(undefined);
20044
+ };
20045
+ /**
20046
+ * Returns whether this field is set.
20047
+ * @return {boolean}
20048
+ */
20049
+ proto.clarifai.api.PretrainedModelConfig.prototype.hasInputFieldsMap = function () {
20050
+ return jspb.Message.getField(this, 3) != null;
20051
+ };
20052
+ /**
20053
+ * optional google.protobuf.Struct output_fields_map = 4;
20054
+ * @return {?proto.google.protobuf.Struct}
20055
+ */
20056
+ proto.clarifai.api.PretrainedModelConfig.prototype.getOutputFieldsMap = function () {
20057
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
20058
+ };
20059
+ /**
20060
+ * @param {?proto.google.protobuf.Struct|undefined} value
20061
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20062
+ */
20063
+ proto.clarifai.api.PretrainedModelConfig.prototype.setOutputFieldsMap = function (value) {
20064
+ return jspb.Message.setWrapperField(this, 4, value);
20065
+ };
20066
+ /**
20067
+ * Clears the message field making it undefined.
20068
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20069
+ */
20070
+ proto.clarifai.api.PretrainedModelConfig.prototype.clearOutputFieldsMap = function () {
20071
+ return this.setOutputFieldsMap(undefined);
20072
+ };
20073
+ /**
20074
+ * Returns whether this field is set.
20075
+ * @return {boolean}
20076
+ */
20077
+ proto.clarifai.api.PretrainedModelConfig.prototype.hasOutputFieldsMap = function () {
20078
+ return jspb.Message.getField(this, 4) != null;
20079
+ };
20080
+ /**
20081
+ * optional string data_provider_params = 5;
20082
+ * @return {string}
20083
+ */
20084
+ proto.clarifai.api.PretrainedModelConfig.prototype.getDataProviderParams = function () {
20085
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
20086
+ };
20087
+ /**
20088
+ * @param {string} value
20089
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20090
+ */
20091
+ proto.clarifai.api.PretrainedModelConfig.prototype.setDataProviderParams = function (value) {
20092
+ return jspb.Message.setProto3StringField(this, 5, value);
20093
+ };
20094
+ /**
20095
+ * optional string model_zip_url = 6;
20096
+ * @return {string}
20097
+ */
20098
+ proto.clarifai.api.PretrainedModelConfig.prototype.getModelZipUrl = function () {
20099
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
20100
+ };
20101
+ /**
20102
+ * @param {string} value
20103
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20104
+ */
20105
+ proto.clarifai.api.PretrainedModelConfig.prototype.setModelZipUrl = function (value) {
20106
+ return jspb.Message.setProto3StringField(this, 6, value);
20107
+ };
20108
+ /**
20109
+ * optional bool overwrite = 7;
20110
+ * @return {boolean}
20111
+ */
20112
+ proto.clarifai.api.PretrainedModelConfig.prototype.getOverwrite = function () {
20113
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
20114
+ };
20115
+ /**
20116
+ * @param {boolean} value
20117
+ * @return {!proto.clarifai.api.PretrainedModelConfig} returns this
20118
+ */
20119
+ proto.clarifai.api.PretrainedModelConfig.prototype.setOverwrite = function (value) {
20120
+ return jspb.Message.setProto3BooleanField(this, 7, value);
20121
+ };
20122
+ /**
20123
+ * List of repeated fields within this message type.
20124
+ * @private {!Array<number>}
20125
+ * @const
20126
+ */
20127
+ proto.clarifai.api.TrainStats.repeatedFields_ = [1];
20128
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20129
+ /**
20130
+ * Creates an object representation of this proto.
20131
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20132
+ * Optional fields that are not set will be set to undefined.
20133
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20134
+ * For the list of reserved names please see:
20135
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20136
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20137
+ * JSPB instance for transitional soy proto support:
20138
+ * http://goto/soy-param-migration
20139
+ * @return {!Object}
20140
+ */
20141
+ proto.clarifai.api.TrainStats.prototype.toObject = function (opt_includeInstance) {
20142
+ return proto.clarifai.api.TrainStats.toObject(opt_includeInstance, this);
20143
+ };
20144
+ /**
20145
+ * Static version of the {@see toObject} method.
20146
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20147
+ * the JSPB instance for transitional soy proto support:
20148
+ * http://goto/soy-param-migration
20149
+ * @param {!proto.clarifai.api.TrainStats} msg The msg instance to transform.
20150
+ * @return {!Object}
20151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20152
+ */
20153
+ proto.clarifai.api.TrainStats.toObject = function (includeInstance, msg) {
20154
+ var f, obj = {
20155
+ lossCurveList: jspb.Message.toObjectList(msg.getLossCurveList(), proto.clarifai.api.LossCurveEntry.toObject, includeInstance)
20156
+ };
20157
+ if (includeInstance) {
20158
+ obj.$jspbMessageInstance = msg;
20159
+ }
20160
+ return obj;
20161
+ };
20162
+ }
20163
+ /**
20164
+ * Deserializes binary data (in protobuf wire format).
20165
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20166
+ * @return {!proto.clarifai.api.TrainStats}
20167
+ */
20168
+ proto.clarifai.api.TrainStats.deserializeBinary = function (bytes) {
20169
+ var reader = new jspb.BinaryReader(bytes);
20170
+ var msg = new proto.clarifai.api.TrainStats;
20171
+ return proto.clarifai.api.TrainStats.deserializeBinaryFromReader(msg, reader);
20172
+ };
20173
+ /**
20174
+ * Deserializes binary data (in protobuf wire format) from the
20175
+ * given reader into the given message object.
20176
+ * @param {!proto.clarifai.api.TrainStats} msg The message object to deserialize into.
20177
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20178
+ * @return {!proto.clarifai.api.TrainStats}
20179
+ */
20180
+ proto.clarifai.api.TrainStats.deserializeBinaryFromReader = function (msg, reader) {
20181
+ while (reader.nextField()) {
20182
+ if (reader.isEndGroup()) {
20183
+ break;
20184
+ }
20185
+ var field = reader.getFieldNumber();
20186
+ switch (field) {
20187
+ case 1:
20188
+ var value = new proto.clarifai.api.LossCurveEntry;
20189
+ reader.readMessage(value, proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader);
20190
+ msg.addLossCurve(value);
20191
+ break;
20192
+ default:
20193
+ reader.skipField();
20194
+ break;
20195
+ }
20196
+ }
20197
+ return msg;
20198
+ };
20199
+ /**
20200
+ * Serializes the message to binary data (in protobuf wire format).
20201
+ * @return {!Uint8Array}
20202
+ */
20203
+ proto.clarifai.api.TrainStats.prototype.serializeBinary = function () {
20204
+ var writer = new jspb.BinaryWriter();
20205
+ proto.clarifai.api.TrainStats.serializeBinaryToWriter(this, writer);
20206
+ return writer.getResultBuffer();
20207
+ };
20208
+ /**
20209
+ * Serializes the given message to binary data (in protobuf wire
20210
+ * format), writing to the given BinaryWriter.
20211
+ * @param {!proto.clarifai.api.TrainStats} message
20212
+ * @param {!jspb.BinaryWriter} writer
20213
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20214
+ */
20215
+ proto.clarifai.api.TrainStats.serializeBinaryToWriter = function (message, writer) {
20216
+ var f = undefined;
20217
+ f = message.getLossCurveList();
20218
+ if (f.length > 0) {
20219
+ writer.writeRepeatedMessage(1, f, proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter);
20220
+ }
20221
+ };
20222
+ /**
20223
+ * repeated LossCurveEntry loss_curve = 1;
20224
+ * @return {!Array<!proto.clarifai.api.LossCurveEntry>}
20225
+ */
20226
+ proto.clarifai.api.TrainStats.prototype.getLossCurveList = function () {
20227
+ return /** @type{!Array<!proto.clarifai.api.LossCurveEntry>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LossCurveEntry, 1));
20228
+ };
20229
+ /**
20230
+ * @param {!Array<!proto.clarifai.api.LossCurveEntry>} value
20231
+ * @return {!proto.clarifai.api.TrainStats} returns this
20232
+ */
20233
+ proto.clarifai.api.TrainStats.prototype.setLossCurveList = function (value) {
20234
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
20235
+ };
20236
+ /**
20237
+ * @param {!proto.clarifai.api.LossCurveEntry=} opt_value
20238
+ * @param {number=} opt_index
20239
+ * @return {!proto.clarifai.api.LossCurveEntry}
20240
+ */
20241
+ proto.clarifai.api.TrainStats.prototype.addLossCurve = function (opt_value, opt_index) {
20242
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.LossCurveEntry, opt_index);
20243
+ };
20244
+ /**
20245
+ * Clears the list making it empty but non-null.
20246
+ * @return {!proto.clarifai.api.TrainStats} returns this
20247
+ */
20248
+ proto.clarifai.api.TrainStats.prototype.clearLossCurveList = function () {
20249
+ return this.setLossCurveList([]);
20250
+ };
20251
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20252
+ /**
20253
+ * Creates an object representation of this proto.
20254
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20255
+ * Optional fields that are not set will be set to undefined.
20256
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20257
+ * For the list of reserved names please see:
20258
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20259
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20260
+ * JSPB instance for transitional soy proto support:
20261
+ * http://goto/soy-param-migration
20262
+ * @return {!Object}
20263
+ */
20264
+ proto.clarifai.api.LossCurveEntry.prototype.toObject = function (opt_includeInstance) {
20265
+ return proto.clarifai.api.LossCurveEntry.toObject(opt_includeInstance, this);
20266
+ };
20267
+ /**
20268
+ * Static version of the {@see toObject} method.
20269
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20270
+ * the JSPB instance for transitional soy proto support:
20271
+ * http://goto/soy-param-migration
20272
+ * @param {!proto.clarifai.api.LossCurveEntry} msg The msg instance to transform.
20273
+ * @return {!Object}
20274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20275
+ */
20276
+ proto.clarifai.api.LossCurveEntry.toObject = function (includeInstance, msg) {
20277
+ var f, obj = {
20278
+ epoch: jspb.Message.getFieldWithDefault(msg, 1, 0),
20279
+ globalStep: jspb.Message.getFieldWithDefault(msg, 2, 0),
20280
+ cost: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
20281
+ };
20282
+ if (includeInstance) {
20283
+ obj.$jspbMessageInstance = msg;
20284
+ }
20285
+ return obj;
20286
+ };
20287
+ }
20288
+ /**
20289
+ * Deserializes binary data (in protobuf wire format).
20290
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20291
+ * @return {!proto.clarifai.api.LossCurveEntry}
20292
+ */
20293
+ proto.clarifai.api.LossCurveEntry.deserializeBinary = function (bytes) {
20294
+ var reader = new jspb.BinaryReader(bytes);
20295
+ var msg = new proto.clarifai.api.LossCurveEntry;
20296
+ return proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader(msg, reader);
20297
+ };
20298
+ /**
20299
+ * Deserializes binary data (in protobuf wire format) from the
20300
+ * given reader into the given message object.
20301
+ * @param {!proto.clarifai.api.LossCurveEntry} msg The message object to deserialize into.
20302
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20303
+ * @return {!proto.clarifai.api.LossCurveEntry}
20304
+ */
20305
+ proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader = function (msg, reader) {
20306
+ while (reader.nextField()) {
20307
+ if (reader.isEndGroup()) {
20308
+ break;
20309
+ }
20310
+ var field = reader.getFieldNumber();
20311
+ switch (field) {
20312
+ case 1:
20313
+ var value = /** @type {number} */ (reader.readUint32());
20314
+ msg.setEpoch(value);
20315
+ break;
20316
+ case 2:
20317
+ var value = /** @type {number} */ (reader.readUint32());
20318
+ msg.setGlobalStep(value);
20319
+ break;
20320
+ case 3:
20321
+ var value = /** @type {number} */ (reader.readFloat());
20322
+ msg.setCost(value);
20323
+ break;
20324
+ default:
20325
+ reader.skipField();
20326
+ break;
20327
+ }
20328
+ }
20329
+ return msg;
20330
+ };
20331
+ /**
20332
+ * Serializes the message to binary data (in protobuf wire format).
20333
+ * @return {!Uint8Array}
20334
+ */
20335
+ proto.clarifai.api.LossCurveEntry.prototype.serializeBinary = function () {
20336
+ var writer = new jspb.BinaryWriter();
20337
+ proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter(this, writer);
20338
+ return writer.getResultBuffer();
20339
+ };
20340
+ /**
20341
+ * Serializes the given message to binary data (in protobuf wire
20342
+ * format), writing to the given BinaryWriter.
20343
+ * @param {!proto.clarifai.api.LossCurveEntry} message
20344
+ * @param {!jspb.BinaryWriter} writer
20345
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20346
+ */
20347
+ proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter = function (message, writer) {
20348
+ var f = undefined;
20349
+ f = message.getEpoch();
20350
+ if (f !== 0) {
20351
+ writer.writeUint32(1, f);
20352
+ }
20353
+ f = message.getGlobalStep();
20354
+ if (f !== 0) {
20355
+ writer.writeUint32(2, f);
20356
+ }
20357
+ f = message.getCost();
20358
+ if (f !== 0.0) {
20359
+ writer.writeFloat(3, f);
20360
+ }
20361
+ };
20362
+ /**
20363
+ * optional uint32 epoch = 1;
20364
+ * @return {number}
20365
+ */
20366
+ proto.clarifai.api.LossCurveEntry.prototype.getEpoch = function () {
20367
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
20368
+ };
20369
+ /**
20370
+ * @param {number} value
20371
+ * @return {!proto.clarifai.api.LossCurveEntry} returns this
20372
+ */
20373
+ proto.clarifai.api.LossCurveEntry.prototype.setEpoch = function (value) {
20374
+ return jspb.Message.setProto3IntField(this, 1, value);
20375
+ };
20376
+ /**
20377
+ * optional uint32 global_step = 2;
20378
+ * @return {number}
20379
+ */
20380
+ proto.clarifai.api.LossCurveEntry.prototype.getGlobalStep = function () {
20381
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20382
+ };
20383
+ /**
20384
+ * @param {number} value
20385
+ * @return {!proto.clarifai.api.LossCurveEntry} returns this
20386
+ */
20387
+ proto.clarifai.api.LossCurveEntry.prototype.setGlobalStep = function (value) {
20388
+ return jspb.Message.setProto3IntField(this, 2, value);
20389
+ };
20390
+ /**
20391
+ * optional float cost = 3;
20392
+ * @return {number}
20393
+ */
20394
+ proto.clarifai.api.LossCurveEntry.prototype.getCost = function () {
20395
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
20396
+ };
20397
+ /**
20398
+ * @param {number} value
20399
+ * @return {!proto.clarifai.api.LossCurveEntry} returns this
20400
+ */
20401
+ proto.clarifai.api.LossCurveEntry.prototype.setCost = function (value) {
20402
+ return jspb.Message.setProto3FloatField(this, 3, value);
20403
+ };
17616
20404
  if (jspb.Message.GENERATE_TO_OBJECT) {
17617
20405
  /**
17618
20406
  * Creates an object representation of this proto.
@@ -18582,24 +21370,34 @@ proto.clarifai.api.ROC.deserializeBinaryFromReader = function (msg, reader) {
18582
21370
  var field = reader.getFieldNumber();
18583
21371
  switch (field) {
18584
21372
  case 1:
18585
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18586
- msg.setFprList(value);
21373
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21374
+ for (var i = 0; i < values.length; i++) {
21375
+ msg.addFpr(values[i]);
21376
+ }
18587
21377
  break;
18588
21378
  case 2:
18589
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18590
- msg.setTprList(value);
21379
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21380
+ for (var i = 0; i < values.length; i++) {
21381
+ msg.addTpr(values[i]);
21382
+ }
18591
21383
  break;
18592
21384
  case 3:
18593
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18594
- msg.setThresholdsList(value);
21385
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21386
+ for (var i = 0; i < values.length; i++) {
21387
+ msg.addThresholds(values[i]);
21388
+ }
18595
21389
  break;
18596
21390
  case 4:
18597
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18598
- msg.setFprPerImageList(value);
21391
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21392
+ for (var i = 0; i < values.length; i++) {
21393
+ msg.addFprPerImage(values[i]);
21394
+ }
18599
21395
  break;
18600
21396
  case 5:
18601
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18602
- msg.setFprPerObjectList(value);
21397
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21398
+ for (var i = 0; i < values.length; i++) {
21399
+ msg.addFprPerObject(values[i]);
21400
+ }
18603
21401
  break;
18604
21402
  default:
18605
21403
  reader.skipField();
@@ -18860,16 +21658,22 @@ proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader = function (
18860
21658
  var field = reader.getFieldNumber();
18861
21659
  switch (field) {
18862
21660
  case 1:
18863
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18864
- msg.setRecallList(value);
21661
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21662
+ for (var i = 0; i < values.length; i++) {
21663
+ msg.addRecall(values[i]);
21664
+ }
18865
21665
  break;
18866
21666
  case 2:
18867
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18868
- msg.setPrecisionList(value);
21667
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21668
+ for (var i = 0; i < values.length; i++) {
21669
+ msg.addPrecision(values[i]);
21670
+ }
18869
21671
  break;
18870
21672
  case 3:
18871
- var value = /** @type {!Array<number>} */ (reader.readPackedFloat());
18872
- msg.setThresholdsList(value);
21673
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
21674
+ for (var i = 0; i < values.length; i++) {
21675
+ msg.addThresholds(values[i]);
21676
+ }
18873
21677
  break;
18874
21678
  default:
18875
21679
  reader.skipField();
@@ -21888,7 +24692,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
21888
24692
  var f, obj = {
21889
24693
  score: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
21890
24694
  input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f),
21891
- annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f)
24695
+ annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f),
24696
+ userId: jspb.Message.getFieldWithDefault(msg, 4, ""),
24697
+ appId: jspb.Message.getFieldWithDefault(msg, 5, "")
21892
24698
  };
21893
24699
  if (includeInstance) {
21894
24700
  obj.$jspbMessageInstance = msg;
@@ -21934,6 +24740,14 @@ proto.clarifai.api.Hit.deserializeBinaryFromReader = function (msg, reader) {
21934
24740
  reader.readMessage(value, proto.clarifai.api.Annotation.deserializeBinaryFromReader);
21935
24741
  msg.setAnnotation(value);
21936
24742
  break;
24743
+ case 4:
24744
+ var value = /** @type {string} */ (reader.readString());
24745
+ msg.setUserId(value);
24746
+ break;
24747
+ case 5:
24748
+ var value = /** @type {string} */ (reader.readString());
24749
+ msg.setAppId(value);
24750
+ break;
21937
24751
  default:
21938
24752
  reader.skipField();
21939
24753
  break;
@@ -21971,6 +24785,14 @@ proto.clarifai.api.Hit.serializeBinaryToWriter = function (message, writer) {
21971
24785
  if (f != null) {
21972
24786
  writer.writeMessage(3, f, proto.clarifai.api.Annotation.serializeBinaryToWriter);
21973
24787
  }
24788
+ f = message.getUserId();
24789
+ if (f.length > 0) {
24790
+ writer.writeString(4, f);
24791
+ }
24792
+ f = message.getAppId();
24793
+ if (f.length > 0) {
24794
+ writer.writeString(5, f);
24795
+ }
21974
24796
  };
21975
24797
  /**
21976
24798
  * optional float score = 1;
@@ -22042,6 +24864,34 @@ proto.clarifai.api.Hit.prototype.clearAnnotation = function () {
22042
24864
  proto.clarifai.api.Hit.prototype.hasAnnotation = function () {
22043
24865
  return jspb.Message.getField(this, 3) != null;
22044
24866
  };
24867
+ /**
24868
+ * optional string user_id = 4;
24869
+ * @return {string}
24870
+ */
24871
+ proto.clarifai.api.Hit.prototype.getUserId = function () {
24872
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
24873
+ };
24874
+ /**
24875
+ * @param {string} value
24876
+ * @return {!proto.clarifai.api.Hit} returns this
24877
+ */
24878
+ proto.clarifai.api.Hit.prototype.setUserId = function (value) {
24879
+ return jspb.Message.setProto3StringField(this, 4, value);
24880
+ };
24881
+ /**
24882
+ * optional string app_id = 5;
24883
+ * @return {string}
24884
+ */
24885
+ proto.clarifai.api.Hit.prototype.getAppId = function () {
24886
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
24887
+ };
24888
+ /**
24889
+ * @param {string} value
24890
+ * @return {!proto.clarifai.api.Hit} returns this
24891
+ */
24892
+ proto.clarifai.api.Hit.prototype.setAppId = function (value) {
24893
+ return jspb.Message.setProto3StringField(this, 5, value);
24894
+ };
22045
24895
  if (jspb.Message.GENERATE_TO_OBJECT) {
22046
24896
  /**
22047
24897
  * Creates an object representation of this proto.
@@ -28151,7 +31001,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
28151
31001
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
28152
31002
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28153
31003
  lastModifiedAt: (f = msg.getLastModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
28154
- filter: (f = msg.getFilter()) && proto.clarifai.api.AppDuplicationFilters.toObject(includeInstance, f)
31004
+ filter: (f = msg.getFilter()) && proto.clarifai.api.AppDuplicationFilters.toObject(includeInstance, f),
31005
+ existingAppId: jspb.Message.getFieldWithDefault(msg, 8, "")
28155
31006
  };
28156
31007
  if (includeInstance) {
28157
31008
  obj.$jspbMessageInstance = msg;
@@ -28215,6 +31066,10 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function (msg, r
28215
31066
  reader.readMessage(value, proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader);
28216
31067
  msg.setFilter(value);
28217
31068
  break;
31069
+ case 8:
31070
+ var value = /** @type {string} */ (reader.readString());
31071
+ msg.setExistingAppId(value);
31072
+ break;
28218
31073
  default:
28219
31074
  reader.skipField();
28220
31075
  break;
@@ -28268,6 +31123,10 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function (message, w
28268
31123
  if (f != null) {
28269
31124
  writer.writeMessage(7, f, proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter);
28270
31125
  }
31126
+ f = message.getExistingAppId();
31127
+ if (f.length > 0) {
31128
+ writer.writeString(8, f);
31129
+ }
28271
31130
  };
28272
31131
  /**
28273
31132
  * optional string id = 1;
@@ -28423,6 +31282,20 @@ proto.clarifai.api.AppDuplication.prototype.clearFilter = function () {
28423
31282
  proto.clarifai.api.AppDuplication.prototype.hasFilter = function () {
28424
31283
  return jspb.Message.getField(this, 7) != null;
28425
31284
  };
31285
+ /**
31286
+ * optional string existing_app_id = 8;
31287
+ * @return {string}
31288
+ */
31289
+ proto.clarifai.api.AppDuplication.prototype.getExistingAppId = function () {
31290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
31291
+ };
31292
+ /**
31293
+ * @param {string} value
31294
+ * @return {!proto.clarifai.api.AppDuplication} returns this
31295
+ */
31296
+ proto.clarifai.api.AppDuplication.prototype.setExistingAppId = function (value) {
31297
+ return jspb.Message.setProto3StringField(this, 8, value);
31298
+ };
28426
31299
  if (jspb.Message.GENERATE_TO_OBJECT) {
28427
31300
  /**
28428
31301
  * Creates an object representation of this proto.
@@ -28622,6 +31495,410 @@ proto.clarifai.api.AppDuplicationFilters.prototype.getCopyWorkflows = function (
28622
31495
  proto.clarifai.api.AppDuplicationFilters.prototype.setCopyWorkflows = function (value) {
28623
31496
  return jspb.Message.setProto3BooleanField(this, 5, value);
28624
31497
  };
31498
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31499
+ /**
31500
+ * Creates an object representation of this proto.
31501
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31502
+ * Optional fields that are not set will be set to undefined.
31503
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31504
+ * For the list of reserved names please see:
31505
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31506
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31507
+ * JSPB instance for transitional soy proto support:
31508
+ * http://goto/soy-param-migration
31509
+ * @return {!Object}
31510
+ */
31511
+ proto.clarifai.api.LabelOrder.prototype.toObject = function (opt_includeInstance) {
31512
+ return proto.clarifai.api.LabelOrder.toObject(opt_includeInstance, this);
31513
+ };
31514
+ /**
31515
+ * Static version of the {@see toObject} method.
31516
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31517
+ * the JSPB instance for transitional soy proto support:
31518
+ * http://goto/soy-param-migration
31519
+ * @param {!proto.clarifai.api.LabelOrder} msg The msg instance to transform.
31520
+ * @return {!Object}
31521
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31522
+ */
31523
+ proto.clarifai.api.LabelOrder.toObject = function (includeInstance, msg) {
31524
+ var f, obj = {
31525
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
31526
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
31527
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
31528
+ autoRelease: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
31529
+ allowEmptyTag: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
31530
+ desiredFulfillTime: (f = msg.getDesiredFulfillTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
31531
+ estimateFulfillTime: (f = msg.getEstimateFulfillTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
31532
+ task: (f = msg.getTask()) && proto.clarifai.api.Task.toObject(includeInstance, f),
31533
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
31534
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
31535
+ };
31536
+ if (includeInstance) {
31537
+ obj.$jspbMessageInstance = msg;
31538
+ }
31539
+ return obj;
31540
+ };
31541
+ }
31542
+ /**
31543
+ * Deserializes binary data (in protobuf wire format).
31544
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31545
+ * @return {!proto.clarifai.api.LabelOrder}
31546
+ */
31547
+ proto.clarifai.api.LabelOrder.deserializeBinary = function (bytes) {
31548
+ var reader = new jspb.BinaryReader(bytes);
31549
+ var msg = new proto.clarifai.api.LabelOrder;
31550
+ return proto.clarifai.api.LabelOrder.deserializeBinaryFromReader(msg, reader);
31551
+ };
31552
+ /**
31553
+ * Deserializes binary data (in protobuf wire format) from the
31554
+ * given reader into the given message object.
31555
+ * @param {!proto.clarifai.api.LabelOrder} msg The message object to deserialize into.
31556
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31557
+ * @return {!proto.clarifai.api.LabelOrder}
31558
+ */
31559
+ proto.clarifai.api.LabelOrder.deserializeBinaryFromReader = function (msg, reader) {
31560
+ while (reader.nextField()) {
31561
+ if (reader.isEndGroup()) {
31562
+ break;
31563
+ }
31564
+ var field = reader.getFieldNumber();
31565
+ switch (field) {
31566
+ case 1:
31567
+ var value = /** @type {string} */ (reader.readString());
31568
+ msg.setId(value);
31569
+ break;
31570
+ case 2:
31571
+ var value = /** @type {string} */ (reader.readString());
31572
+ msg.setName(value);
31573
+ break;
31574
+ case 3:
31575
+ var value = new proto_clarifai_api_status_status_pb.Status;
31576
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
31577
+ msg.setStatus(value);
31578
+ break;
31579
+ case 4:
31580
+ var value = /** @type {boolean} */ (reader.readBool());
31581
+ msg.setAutoRelease(value);
31582
+ break;
31583
+ case 5:
31584
+ var value = /** @type {boolean} */ (reader.readBool());
31585
+ msg.setAllowEmptyTag(value);
31586
+ break;
31587
+ case 6:
31588
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31589
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31590
+ msg.setDesiredFulfillTime(value);
31591
+ break;
31592
+ case 7:
31593
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31594
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31595
+ msg.setEstimateFulfillTime(value);
31596
+ break;
31597
+ case 8:
31598
+ var value = new proto.clarifai.api.Task;
31599
+ reader.readMessage(value, proto.clarifai.api.Task.deserializeBinaryFromReader);
31600
+ msg.setTask(value);
31601
+ break;
31602
+ case 9:
31603
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31604
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31605
+ msg.setCreatedAt(value);
31606
+ break;
31607
+ case 10:
31608
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31609
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31610
+ msg.setModifiedAt(value);
31611
+ break;
31612
+ default:
31613
+ reader.skipField();
31614
+ break;
31615
+ }
31616
+ }
31617
+ return msg;
31618
+ };
31619
+ /**
31620
+ * Serializes the message to binary data (in protobuf wire format).
31621
+ * @return {!Uint8Array}
31622
+ */
31623
+ proto.clarifai.api.LabelOrder.prototype.serializeBinary = function () {
31624
+ var writer = new jspb.BinaryWriter();
31625
+ proto.clarifai.api.LabelOrder.serializeBinaryToWriter(this, writer);
31626
+ return writer.getResultBuffer();
31627
+ };
31628
+ /**
31629
+ * Serializes the given message to binary data (in protobuf wire
31630
+ * format), writing to the given BinaryWriter.
31631
+ * @param {!proto.clarifai.api.LabelOrder} message
31632
+ * @param {!jspb.BinaryWriter} writer
31633
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31634
+ */
31635
+ proto.clarifai.api.LabelOrder.serializeBinaryToWriter = function (message, writer) {
31636
+ var f = undefined;
31637
+ f = message.getId();
31638
+ if (f.length > 0) {
31639
+ writer.writeString(1, f);
31640
+ }
31641
+ f = message.getName();
31642
+ if (f.length > 0) {
31643
+ writer.writeString(2, f);
31644
+ }
31645
+ f = message.getStatus();
31646
+ if (f != null) {
31647
+ writer.writeMessage(3, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
31648
+ }
31649
+ f = message.getAutoRelease();
31650
+ if (f) {
31651
+ writer.writeBool(4, f);
31652
+ }
31653
+ f = message.getAllowEmptyTag();
31654
+ if (f) {
31655
+ writer.writeBool(5, f);
31656
+ }
31657
+ f = message.getDesiredFulfillTime();
31658
+ if (f != null) {
31659
+ writer.writeMessage(6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
31660
+ }
31661
+ f = message.getEstimateFulfillTime();
31662
+ if (f != null) {
31663
+ writer.writeMessage(7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
31664
+ }
31665
+ f = message.getTask();
31666
+ if (f != null) {
31667
+ writer.writeMessage(8, f, proto.clarifai.api.Task.serializeBinaryToWriter);
31668
+ }
31669
+ f = message.getCreatedAt();
31670
+ if (f != null) {
31671
+ writer.writeMessage(9, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
31672
+ }
31673
+ f = message.getModifiedAt();
31674
+ if (f != null) {
31675
+ writer.writeMessage(10, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
31676
+ }
31677
+ };
31678
+ /**
31679
+ * optional string id = 1;
31680
+ * @return {string}
31681
+ */
31682
+ proto.clarifai.api.LabelOrder.prototype.getId = function () {
31683
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31684
+ };
31685
+ /**
31686
+ * @param {string} value
31687
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31688
+ */
31689
+ proto.clarifai.api.LabelOrder.prototype.setId = function (value) {
31690
+ return jspb.Message.setProto3StringField(this, 1, value);
31691
+ };
31692
+ /**
31693
+ * optional string name = 2;
31694
+ * @return {string}
31695
+ */
31696
+ proto.clarifai.api.LabelOrder.prototype.getName = function () {
31697
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31698
+ };
31699
+ /**
31700
+ * @param {string} value
31701
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31702
+ */
31703
+ proto.clarifai.api.LabelOrder.prototype.setName = function (value) {
31704
+ return jspb.Message.setProto3StringField(this, 2, value);
31705
+ };
31706
+ /**
31707
+ * optional status.Status status = 3;
31708
+ * @return {?proto.clarifai.api.status.Status}
31709
+ */
31710
+ proto.clarifai.api.LabelOrder.prototype.getStatus = function () {
31711
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 3));
31712
+ };
31713
+ /**
31714
+ * @param {?proto.clarifai.api.status.Status|undefined} value
31715
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31716
+ */
31717
+ proto.clarifai.api.LabelOrder.prototype.setStatus = function (value) {
31718
+ return jspb.Message.setWrapperField(this, 3, value);
31719
+ };
31720
+ /**
31721
+ * Clears the message field making it undefined.
31722
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31723
+ */
31724
+ proto.clarifai.api.LabelOrder.prototype.clearStatus = function () {
31725
+ return this.setStatus(undefined);
31726
+ };
31727
+ /**
31728
+ * Returns whether this field is set.
31729
+ * @return {boolean}
31730
+ */
31731
+ proto.clarifai.api.LabelOrder.prototype.hasStatus = function () {
31732
+ return jspb.Message.getField(this, 3) != null;
31733
+ };
31734
+ /**
31735
+ * optional bool auto_release = 4;
31736
+ * @return {boolean}
31737
+ */
31738
+ proto.clarifai.api.LabelOrder.prototype.getAutoRelease = function () {
31739
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
31740
+ };
31741
+ /**
31742
+ * @param {boolean} value
31743
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31744
+ */
31745
+ proto.clarifai.api.LabelOrder.prototype.setAutoRelease = function (value) {
31746
+ return jspb.Message.setProto3BooleanField(this, 4, value);
31747
+ };
31748
+ /**
31749
+ * optional bool allow_empty_tag = 5;
31750
+ * @return {boolean}
31751
+ */
31752
+ proto.clarifai.api.LabelOrder.prototype.getAllowEmptyTag = function () {
31753
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
31754
+ };
31755
+ /**
31756
+ * @param {boolean} value
31757
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31758
+ */
31759
+ proto.clarifai.api.LabelOrder.prototype.setAllowEmptyTag = function (value) {
31760
+ return jspb.Message.setProto3BooleanField(this, 5, value);
31761
+ };
31762
+ /**
31763
+ * optional google.protobuf.Timestamp desired_fulfill_time = 6;
31764
+ * @return {?proto.google.protobuf.Timestamp}
31765
+ */
31766
+ proto.clarifai.api.LabelOrder.prototype.getDesiredFulfillTime = function () {
31767
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
31768
+ };
31769
+ /**
31770
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31771
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31772
+ */
31773
+ proto.clarifai.api.LabelOrder.prototype.setDesiredFulfillTime = function (value) {
31774
+ return jspb.Message.setWrapperField(this, 6, value);
31775
+ };
31776
+ /**
31777
+ * Clears the message field making it undefined.
31778
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31779
+ */
31780
+ proto.clarifai.api.LabelOrder.prototype.clearDesiredFulfillTime = function () {
31781
+ return this.setDesiredFulfillTime(undefined);
31782
+ };
31783
+ /**
31784
+ * Returns whether this field is set.
31785
+ * @return {boolean}
31786
+ */
31787
+ proto.clarifai.api.LabelOrder.prototype.hasDesiredFulfillTime = function () {
31788
+ return jspb.Message.getField(this, 6) != null;
31789
+ };
31790
+ /**
31791
+ * optional google.protobuf.Timestamp estimate_fulfill_time = 7;
31792
+ * @return {?proto.google.protobuf.Timestamp}
31793
+ */
31794
+ proto.clarifai.api.LabelOrder.prototype.getEstimateFulfillTime = function () {
31795
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
31796
+ };
31797
+ /**
31798
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31799
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31800
+ */
31801
+ proto.clarifai.api.LabelOrder.prototype.setEstimateFulfillTime = function (value) {
31802
+ return jspb.Message.setWrapperField(this, 7, value);
31803
+ };
31804
+ /**
31805
+ * Clears the message field making it undefined.
31806
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31807
+ */
31808
+ proto.clarifai.api.LabelOrder.prototype.clearEstimateFulfillTime = function () {
31809
+ return this.setEstimateFulfillTime(undefined);
31810
+ };
31811
+ /**
31812
+ * Returns whether this field is set.
31813
+ * @return {boolean}
31814
+ */
31815
+ proto.clarifai.api.LabelOrder.prototype.hasEstimateFulfillTime = function () {
31816
+ return jspb.Message.getField(this, 7) != null;
31817
+ };
31818
+ /**
31819
+ * optional Task task = 8;
31820
+ * @return {?proto.clarifai.api.Task}
31821
+ */
31822
+ proto.clarifai.api.LabelOrder.prototype.getTask = function () {
31823
+ return /** @type{?proto.clarifai.api.Task} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Task, 8));
31824
+ };
31825
+ /**
31826
+ * @param {?proto.clarifai.api.Task|undefined} value
31827
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31828
+ */
31829
+ proto.clarifai.api.LabelOrder.prototype.setTask = function (value) {
31830
+ return jspb.Message.setWrapperField(this, 8, value);
31831
+ };
31832
+ /**
31833
+ * Clears the message field making it undefined.
31834
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31835
+ */
31836
+ proto.clarifai.api.LabelOrder.prototype.clearTask = function () {
31837
+ return this.setTask(undefined);
31838
+ };
31839
+ /**
31840
+ * Returns whether this field is set.
31841
+ * @return {boolean}
31842
+ */
31843
+ proto.clarifai.api.LabelOrder.prototype.hasTask = function () {
31844
+ return jspb.Message.getField(this, 8) != null;
31845
+ };
31846
+ /**
31847
+ * optional google.protobuf.Timestamp created_at = 9;
31848
+ * @return {?proto.google.protobuf.Timestamp}
31849
+ */
31850
+ proto.clarifai.api.LabelOrder.prototype.getCreatedAt = function () {
31851
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
31852
+ };
31853
+ /**
31854
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31855
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31856
+ */
31857
+ proto.clarifai.api.LabelOrder.prototype.setCreatedAt = function (value) {
31858
+ return jspb.Message.setWrapperField(this, 9, value);
31859
+ };
31860
+ /**
31861
+ * Clears the message field making it undefined.
31862
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31863
+ */
31864
+ proto.clarifai.api.LabelOrder.prototype.clearCreatedAt = function () {
31865
+ return this.setCreatedAt(undefined);
31866
+ };
31867
+ /**
31868
+ * Returns whether this field is set.
31869
+ * @return {boolean}
31870
+ */
31871
+ proto.clarifai.api.LabelOrder.prototype.hasCreatedAt = function () {
31872
+ return jspb.Message.getField(this, 9) != null;
31873
+ };
31874
+ /**
31875
+ * optional google.protobuf.Timestamp modified_at = 10;
31876
+ * @return {?proto.google.protobuf.Timestamp}
31877
+ */
31878
+ proto.clarifai.api.LabelOrder.prototype.getModifiedAt = function () {
31879
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
31880
+ };
31881
+ /**
31882
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31883
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31884
+ */
31885
+ proto.clarifai.api.LabelOrder.prototype.setModifiedAt = function (value) {
31886
+ return jspb.Message.setWrapperField(this, 10, value);
31887
+ };
31888
+ /**
31889
+ * Clears the message field making it undefined.
31890
+ * @return {!proto.clarifai.api.LabelOrder} returns this
31891
+ */
31892
+ proto.clarifai.api.LabelOrder.prototype.clearModifiedAt = function () {
31893
+ return this.setModifiedAt(undefined);
31894
+ };
31895
+ /**
31896
+ * Returns whether this field is set.
31897
+ * @return {boolean}
31898
+ */
31899
+ proto.clarifai.api.LabelOrder.prototype.hasModifiedAt = function () {
31900
+ return jspb.Message.getField(this, 10) != null;
31901
+ };
28625
31902
  /**
28626
31903
  * List of repeated fields within this message type.
28627
31904
  * @private {!Array<number>}
@@ -29939,7 +33216,8 @@ proto.clarifai.api.TaskInputSource.serializeBinaryToWriter = function (message,
29939
33216
  proto.clarifai.api.TaskInputSource.TaskInputSourceType = {
29940
33217
  INPUT_SOURCE_TYPE_NOT_SET: 0,
29941
33218
  ALL_INPUTS: 1,
29942
- SAVED_SEARCH: 2
33219
+ SAVED_SEARCH: 2,
33220
+ DATASET: 3
29943
33221
  };
29944
33222
  /**
29945
33223
  * optional TaskInputSourceType type = 1;
@@ -32866,6 +36144,21 @@ proto.clarifai.api.TimeInfo.prototype.getEndTime = function () {
32866
36144
  proto.clarifai.api.TimeInfo.prototype.setEndTime = function (value) {
32867
36145
  return jspb.Message.setProto3IntField(this, 3, value);
32868
36146
  };
36147
+ /**
36148
+ * @enum {number}
36149
+ */
36150
+ proto.clarifai.api.DatasetVersionMetricsGroupType = {
36151
+ DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
36152
+ INPUT_TYPE: 2,
36153
+ CONCEPT_ID: 10,
36154
+ CONCEPTS_COUNT: 11,
36155
+ BOUNDING_BOXES_COUNT: 20,
36156
+ POLYGONS_COUNT: 21,
36157
+ POINTS_COUNT: 22,
36158
+ MASKS_COUNT: 23,
36159
+ PIXELS_COUNT: 30,
36160
+ ASPECT_RATIO: 31
36161
+ };
32869
36162
  /**
32870
36163
  * @enum {number}
32871
36164
  */