clarifai-web-grpc 10.2.1 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -11
- package/VERSION +1 -1
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/proto/clarifai/api/resources_pb.js +2720 -113
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/cjs/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/dist/cjs/resources.d.ts +1 -0
- package/dist/cjs/resources.js +3 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +2720 -113
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/esm/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/dist/esm/resources.d.ts +1 -0
- package/dist/esm/resources.js +1 -0
- package/examples/post-app.ts +27 -0
- package/examples/post-input.ts +42 -0
- package/index.ts +7 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +435 -0
- package/proto/clarifai/api/resources_pb.js +3370 -114
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +10 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +56 -61
- package/proto/clarifai/api/service_pb.d.ts +164 -72
- package/proto/clarifai/api/service_pb.js +1534 -767
- package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
- package/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/resources.ts +1 -0
|
@@ -108,9 +108,6 @@ goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
|
|
|
108
108
|
goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
|
|
109
109
|
goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
|
|
110
110
|
goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global);
|
|
111
|
-
goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest', null, global);
|
|
112
|
-
goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest.ResourceCase', null, global);
|
|
113
|
-
goog.exportSymbol('proto.clarifai.api.GetResourcePriceResponse', null, global);
|
|
114
111
|
goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
|
|
115
112
|
goog.exportSymbol('proto.clarifai.api.GetSearchRequest', null, global);
|
|
116
113
|
goog.exportSymbol('proto.clarifai.api.GetStatusCodeRequest', null, global);
|
|
@@ -344,8 +341,13 @@ goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest', null, global);
|
|
|
344
341
|
goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase', null, global);
|
|
345
342
|
goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequestAction', null, global);
|
|
346
343
|
goog.exportSymbol('proto.clarifai.api.PutUploadContentPartsRequest', null, global);
|
|
344
|
+
goog.exportSymbol('proto.clarifai.api.ReviewApproveConfig', null, global);
|
|
345
|
+
goog.exportSymbol('proto.clarifai.api.ReviewRejectConfig', null, global);
|
|
346
|
+
goog.exportSymbol('proto.clarifai.api.ReviewRequestChangesConfig', null, global);
|
|
347
347
|
goog.exportSymbol('proto.clarifai.api.RunnerItem', null, global);
|
|
348
|
+
goog.exportSymbol('proto.clarifai.api.RunnerItem.RequestCase', null, global);
|
|
348
349
|
goog.exportSymbol('proto.clarifai.api.RunnerItemOutput', null, global);
|
|
350
|
+
goog.exportSymbol('proto.clarifai.api.RunnerItemOutput.ResponseCase', null, global);
|
|
349
351
|
goog.exportSymbol('proto.clarifai.api.SingleAnnotationFilterResponse', null, global);
|
|
350
352
|
goog.exportSymbol('proto.clarifai.api.SingleAnnotationResponse', null, global);
|
|
351
353
|
goog.exportSymbol('proto.clarifai.api.SingleAppDuplicationResponse', null, global);
|
|
@@ -1016,48 +1018,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1016
1018
|
*/
|
|
1017
1019
|
proto.clarifai.api.MultiCollaborationsResponse.displayName = 'proto.clarifai.api.MultiCollaborationsResponse';
|
|
1018
1020
|
}
|
|
1019
|
-
/**
|
|
1020
|
-
* Generated by JsPbCodeGenerator.
|
|
1021
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1022
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
1023
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
1024
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
1025
|
-
* valid.
|
|
1026
|
-
* @extends {jspb.Message}
|
|
1027
|
-
* @constructor
|
|
1028
|
-
*/
|
|
1029
|
-
proto.clarifai.api.GetResourcePriceRequest = function(opt_data) {
|
|
1030
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_);
|
|
1031
|
-
};
|
|
1032
|
-
goog.inherits(proto.clarifai.api.GetResourcePriceRequest, jspb.Message);
|
|
1033
|
-
if (goog.DEBUG && !COMPILED) {
|
|
1034
|
-
/**
|
|
1035
|
-
* @public
|
|
1036
|
-
* @override
|
|
1037
|
-
*/
|
|
1038
|
-
proto.clarifai.api.GetResourcePriceRequest.displayName = 'proto.clarifai.api.GetResourcePriceRequest';
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* Generated by JsPbCodeGenerator.
|
|
1042
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1043
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
1044
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
1045
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
1046
|
-
* valid.
|
|
1047
|
-
* @extends {jspb.Message}
|
|
1048
|
-
* @constructor
|
|
1049
|
-
*/
|
|
1050
|
-
proto.clarifai.api.GetResourcePriceResponse = function(opt_data) {
|
|
1051
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1052
|
-
};
|
|
1053
|
-
goog.inherits(proto.clarifai.api.GetResourcePriceResponse, jspb.Message);
|
|
1054
|
-
if (goog.DEBUG && !COMPILED) {
|
|
1055
|
-
/**
|
|
1056
|
-
* @public
|
|
1057
|
-
* @override
|
|
1058
|
-
*/
|
|
1059
|
-
proto.clarifai.api.GetResourcePriceResponse.displayName = 'proto.clarifai.api.GetResourcePriceResponse';
|
|
1060
|
-
}
|
|
1061
1021
|
/**
|
|
1062
1022
|
* Generated by JsPbCodeGenerator.
|
|
1063
1023
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2287,7 +2247,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2287
2247
|
* @constructor
|
|
2288
2248
|
*/
|
|
2289
2249
|
proto.clarifai.api.ListDatasetVersionsRequest = function(opt_data) {
|
|
2290
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
2250
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListDatasetVersionsRequest.repeatedFields_, null);
|
|
2291
2251
|
};
|
|
2292
2252
|
goog.inherits(proto.clarifai.api.ListDatasetVersionsRequest, jspb.Message);
|
|
2293
2253
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -6665,6 +6625,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
6665
6625
|
*/
|
|
6666
6626
|
proto.clarifai.api.LabelSubmitConfig.displayName = 'proto.clarifai.api.LabelSubmitConfig';
|
|
6667
6627
|
}
|
|
6628
|
+
/**
|
|
6629
|
+
* Generated by JsPbCodeGenerator.
|
|
6630
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6631
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6632
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6633
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6634
|
+
* valid.
|
|
6635
|
+
* @extends {jspb.Message}
|
|
6636
|
+
* @constructor
|
|
6637
|
+
*/
|
|
6638
|
+
proto.clarifai.api.ReviewApproveConfig = function(opt_data) {
|
|
6639
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ReviewApproveConfig.repeatedFields_, null);
|
|
6640
|
+
};
|
|
6641
|
+
goog.inherits(proto.clarifai.api.ReviewApproveConfig, jspb.Message);
|
|
6642
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6643
|
+
/**
|
|
6644
|
+
* @public
|
|
6645
|
+
* @override
|
|
6646
|
+
*/
|
|
6647
|
+
proto.clarifai.api.ReviewApproveConfig.displayName = 'proto.clarifai.api.ReviewApproveConfig';
|
|
6648
|
+
}
|
|
6649
|
+
/**
|
|
6650
|
+
* Generated by JsPbCodeGenerator.
|
|
6651
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6652
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6653
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6654
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6655
|
+
* valid.
|
|
6656
|
+
* @extends {jspb.Message}
|
|
6657
|
+
* @constructor
|
|
6658
|
+
*/
|
|
6659
|
+
proto.clarifai.api.ReviewRequestChangesConfig = function(opt_data) {
|
|
6660
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ReviewRequestChangesConfig.repeatedFields_, null);
|
|
6661
|
+
};
|
|
6662
|
+
goog.inherits(proto.clarifai.api.ReviewRequestChangesConfig, jspb.Message);
|
|
6663
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6664
|
+
/**
|
|
6665
|
+
* @public
|
|
6666
|
+
* @override
|
|
6667
|
+
*/
|
|
6668
|
+
proto.clarifai.api.ReviewRequestChangesConfig.displayName = 'proto.clarifai.api.ReviewRequestChangesConfig';
|
|
6669
|
+
}
|
|
6670
|
+
/**
|
|
6671
|
+
* Generated by JsPbCodeGenerator.
|
|
6672
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6673
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6674
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6675
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6676
|
+
* valid.
|
|
6677
|
+
* @extends {jspb.Message}
|
|
6678
|
+
* @constructor
|
|
6679
|
+
*/
|
|
6680
|
+
proto.clarifai.api.ReviewRejectConfig = function(opt_data) {
|
|
6681
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ReviewRejectConfig.repeatedFields_, null);
|
|
6682
|
+
};
|
|
6683
|
+
goog.inherits(proto.clarifai.api.ReviewRejectConfig, jspb.Message);
|
|
6684
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6685
|
+
/**
|
|
6686
|
+
* @public
|
|
6687
|
+
* @override
|
|
6688
|
+
*/
|
|
6689
|
+
proto.clarifai.api.ReviewRejectConfig.displayName = 'proto.clarifai.api.ReviewRejectConfig';
|
|
6690
|
+
}
|
|
6668
6691
|
/**
|
|
6669
6692
|
* Generated by JsPbCodeGenerator.
|
|
6670
6693
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7285,7 +7308,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7285
7308
|
* @constructor
|
|
7286
7309
|
*/
|
|
7287
7310
|
proto.clarifai.api.RunnerItem = function(opt_data) {
|
|
7288
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
|
7311
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.RunnerItem.oneofGroups_);
|
|
7289
7312
|
};
|
|
7290
7313
|
goog.inherits(proto.clarifai.api.RunnerItem, jspb.Message);
|
|
7291
7314
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -7306,7 +7329,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7306
7329
|
* @constructor
|
|
7307
7330
|
*/
|
|
7308
7331
|
proto.clarifai.api.RunnerItemOutput = function(opt_data) {
|
|
7309
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
|
7332
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.RunnerItemOutput.oneofGroups_);
|
|
7310
7333
|
};
|
|
7311
7334
|
goog.inherits(proto.clarifai.api.RunnerItemOutput, jspb.Message);
|
|
7312
7335
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -7756,7 +7779,7 @@ proto.clarifai.api.GetAnnotationRequest.prototype.setInputId = function(value) {
|
|
|
7756
7779
|
* @private {!Array<number>}
|
|
7757
7780
|
* @const
|
|
7758
7781
|
*/
|
|
7759
|
-
proto.clarifai.api.ListAnnotationsRequest.repeatedFields_ = [2,3,9,10,5];
|
|
7782
|
+
proto.clarifai.api.ListAnnotationsRequest.repeatedFields_ = [2,3,9,10,13,5];
|
|
7760
7783
|
|
|
7761
7784
|
|
|
7762
7785
|
|
|
@@ -7794,6 +7817,7 @@ proto.clarifai.api.ListAnnotationsRequest.toObject = function(includeInstance, m
|
|
|
7794
7817
|
inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
7795
7818
|
userIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
|
|
7796
7819
|
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
|
|
7820
|
+
workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
|
|
7797
7821
|
statusesList: jspb.Message.toObjectList(msg.getStatusesList(),
|
|
7798
7822
|
proto_clarifai_api_status_status_pb.Status.toObject, includeInstance),
|
|
7799
7823
|
listAllAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
@@ -7858,6 +7882,10 @@ proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader = function
|
|
|
7858
7882
|
var value = /** @type {string} */ (reader.readString());
|
|
7859
7883
|
msg.addModelVersionIds(value);
|
|
7860
7884
|
break;
|
|
7885
|
+
case 13:
|
|
7886
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7887
|
+
msg.addWorkflowVersionIds(value);
|
|
7888
|
+
break;
|
|
7861
7889
|
case 5:
|
|
7862
7890
|
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
7863
7891
|
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
@@ -7948,6 +7976,13 @@ proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter = function(mes
|
|
|
7948
7976
|
f
|
|
7949
7977
|
);
|
|
7950
7978
|
}
|
|
7979
|
+
f = message.getWorkflowVersionIdsList();
|
|
7980
|
+
if (f.length > 0) {
|
|
7981
|
+
writer.writeRepeatedString(
|
|
7982
|
+
13,
|
|
7983
|
+
f
|
|
7984
|
+
);
|
|
7985
|
+
}
|
|
7951
7986
|
f = message.getStatusesList();
|
|
7952
7987
|
if (f.length > 0) {
|
|
7953
7988
|
writer.writeRepeatedMessage(
|
|
@@ -8179,6 +8214,43 @@ proto.clarifai.api.ListAnnotationsRequest.prototype.clearModelVersionIdsList = f
|
|
|
8179
8214
|
};
|
|
8180
8215
|
|
|
8181
8216
|
|
|
8217
|
+
/**
|
|
8218
|
+
* repeated string workflow_version_ids = 13;
|
|
8219
|
+
* @return {!Array<string>}
|
|
8220
|
+
*/
|
|
8221
|
+
proto.clarifai.api.ListAnnotationsRequest.prototype.getWorkflowVersionIdsList = function() {
|
|
8222
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
|
|
8223
|
+
};
|
|
8224
|
+
|
|
8225
|
+
|
|
8226
|
+
/**
|
|
8227
|
+
* @param {!Array<string>} value
|
|
8228
|
+
* @return {!proto.clarifai.api.ListAnnotationsRequest} returns this
|
|
8229
|
+
*/
|
|
8230
|
+
proto.clarifai.api.ListAnnotationsRequest.prototype.setWorkflowVersionIdsList = function(value) {
|
|
8231
|
+
return jspb.Message.setField(this, 13, value || []);
|
|
8232
|
+
};
|
|
8233
|
+
|
|
8234
|
+
|
|
8235
|
+
/**
|
|
8236
|
+
* @param {string} value
|
|
8237
|
+
* @param {number=} opt_index
|
|
8238
|
+
* @return {!proto.clarifai.api.ListAnnotationsRequest} returns this
|
|
8239
|
+
*/
|
|
8240
|
+
proto.clarifai.api.ListAnnotationsRequest.prototype.addWorkflowVersionIds = function(value, opt_index) {
|
|
8241
|
+
return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
|
|
8242
|
+
};
|
|
8243
|
+
|
|
8244
|
+
|
|
8245
|
+
/**
|
|
8246
|
+
* Clears the list making it empty but non-null.
|
|
8247
|
+
* @return {!proto.clarifai.api.ListAnnotationsRequest} returns this
|
|
8248
|
+
*/
|
|
8249
|
+
proto.clarifai.api.ListAnnotationsRequest.prototype.clearWorkflowVersionIdsList = function() {
|
|
8250
|
+
return this.setWorkflowVersionIdsList([]);
|
|
8251
|
+
};
|
|
8252
|
+
|
|
8253
|
+
|
|
8182
8254
|
/**
|
|
8183
8255
|
* repeated status.Status statuses = 5;
|
|
8184
8256
|
* @return {!Array<!proto.clarifai.api.status.Status>}
|
|
@@ -15264,32 +15336,6 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.clearCollaborationsList
|
|
|
15264
15336
|
|
|
15265
15337
|
|
|
15266
15338
|
|
|
15267
|
-
/**
|
|
15268
|
-
* Oneof group definitions for this message. Each group defines the field
|
|
15269
|
-
* numbers belonging to that group. When of these fields' value is set, all
|
|
15270
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
|
15271
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
|
15272
|
-
* @private {!Array<!Array<number>>}
|
|
15273
|
-
* @const
|
|
15274
|
-
*/
|
|
15275
|
-
proto.clarifai.api.GetResourcePriceRequest.oneofGroups_ = [[2,3]];
|
|
15276
|
-
|
|
15277
|
-
/**
|
|
15278
|
-
* @enum {number}
|
|
15279
|
-
*/
|
|
15280
|
-
proto.clarifai.api.GetResourcePriceRequest.ResourceCase = {
|
|
15281
|
-
RESOURCE_NOT_SET: 0,
|
|
15282
|
-
MODEL: 2,
|
|
15283
|
-
WORKFLOW: 3
|
|
15284
|
-
};
|
|
15285
|
-
|
|
15286
|
-
/**
|
|
15287
|
-
* @return {proto.clarifai.api.GetResourcePriceRequest.ResourceCase}
|
|
15288
|
-
*/
|
|
15289
|
-
proto.clarifai.api.GetResourcePriceRequest.prototype.getResourceCase = function() {
|
|
15290
|
-
return /** @type {proto.clarifai.api.GetResourcePriceRequest.ResourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0]));
|
|
15291
|
-
};
|
|
15292
|
-
|
|
15293
15339
|
|
|
15294
15340
|
|
|
15295
15341
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -15305,8 +15351,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
15305
15351
|
* http://goto/soy-param-migration
|
|
15306
15352
|
* @return {!Object}
|
|
15307
15353
|
*/
|
|
15308
|
-
proto.clarifai.api.
|
|
15309
|
-
return proto.clarifai.api.
|
|
15354
|
+
proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
15355
|
+
return proto.clarifai.api.GetStatusCodeRequest.toObject(opt_includeInstance, this);
|
|
15310
15356
|
};
|
|
15311
15357
|
|
|
15312
15358
|
|
|
@@ -15315,15 +15361,13 @@ proto.clarifai.api.GetResourcePriceRequest.prototype.toObject = function(opt_inc
|
|
|
15315
15361
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15316
15362
|
* the JSPB instance for transitional soy proto support:
|
|
15317
15363
|
* http://goto/soy-param-migration
|
|
15318
|
-
* @param {!proto.clarifai.api.
|
|
15364
|
+
* @param {!proto.clarifai.api.GetStatusCodeRequest} msg The msg instance to transform.
|
|
15319
15365
|
* @return {!Object}
|
|
15320
15366
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15321
15367
|
*/
|
|
15322
|
-
proto.clarifai.api.
|
|
15368
|
+
proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg) {
|
|
15323
15369
|
var f, obj = {
|
|
15324
|
-
|
|
15325
|
-
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
15326
|
-
workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f)
|
|
15370
|
+
statusCodeId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
15327
15371
|
};
|
|
15328
15372
|
|
|
15329
15373
|
if (includeInstance) {
|
|
@@ -15337,23 +15381,23 @@ proto.clarifai.api.GetResourcePriceRequest.toObject = function(includeInstance,
|
|
|
15337
15381
|
/**
|
|
15338
15382
|
* Deserializes binary data (in protobuf wire format).
|
|
15339
15383
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15340
|
-
* @return {!proto.clarifai.api.
|
|
15384
|
+
* @return {!proto.clarifai.api.GetStatusCodeRequest}
|
|
15341
15385
|
*/
|
|
15342
|
-
proto.clarifai.api.
|
|
15386
|
+
proto.clarifai.api.GetStatusCodeRequest.deserializeBinary = function(bytes) {
|
|
15343
15387
|
var reader = new jspb.BinaryReader(bytes);
|
|
15344
|
-
var msg = new proto.clarifai.api.
|
|
15345
|
-
return proto.clarifai.api.
|
|
15388
|
+
var msg = new proto.clarifai.api.GetStatusCodeRequest;
|
|
15389
|
+
return proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
15346
15390
|
};
|
|
15347
15391
|
|
|
15348
15392
|
|
|
15349
15393
|
/**
|
|
15350
15394
|
* Deserializes binary data (in protobuf wire format) from the
|
|
15351
15395
|
* given reader into the given message object.
|
|
15352
|
-
* @param {!proto.clarifai.api.
|
|
15396
|
+
* @param {!proto.clarifai.api.GetStatusCodeRequest} msg The message object to deserialize into.
|
|
15353
15397
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15354
|
-
* @return {!proto.clarifai.api.
|
|
15398
|
+
* @return {!proto.clarifai.api.GetStatusCodeRequest}
|
|
15355
15399
|
*/
|
|
15356
|
-
proto.clarifai.api.
|
|
15400
|
+
proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15357
15401
|
while (reader.nextField()) {
|
|
15358
15402
|
if (reader.isEndGroup()) {
|
|
15359
15403
|
break;
|
|
@@ -15361,19 +15405,8 @@ proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader = functio
|
|
|
15361
15405
|
var field = reader.getFieldNumber();
|
|
15362
15406
|
switch (field) {
|
|
15363
15407
|
case 1:
|
|
15364
|
-
var value =
|
|
15365
|
-
|
|
15366
|
-
msg.setUserAppId(value);
|
|
15367
|
-
break;
|
|
15368
|
-
case 2:
|
|
15369
|
-
var value = new proto_clarifai_api_resources_pb.Model;
|
|
15370
|
-
reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
|
|
15371
|
-
msg.setModel(value);
|
|
15372
|
-
break;
|
|
15373
|
-
case 3:
|
|
15374
|
-
var value = new proto_clarifai_api_resources_pb.Workflow;
|
|
15375
|
-
reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader);
|
|
15376
|
-
msg.setWorkflow(value);
|
|
15408
|
+
var value = /** @type {string} */ (reader.readString());
|
|
15409
|
+
msg.setStatusCodeId(value);
|
|
15377
15410
|
break;
|
|
15378
15411
|
default:
|
|
15379
15412
|
reader.skipField();
|
|
@@ -15388,9 +15421,9 @@ proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader = functio
|
|
|
15388
15421
|
* Serializes the message to binary data (in protobuf wire format).
|
|
15389
15422
|
* @return {!Uint8Array}
|
|
15390
15423
|
*/
|
|
15391
|
-
proto.clarifai.api.
|
|
15424
|
+
proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() {
|
|
15392
15425
|
var writer = new jspb.BinaryWriter();
|
|
15393
|
-
proto.clarifai.api.
|
|
15426
|
+
proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter(this, writer);
|
|
15394
15427
|
return writer.getResultBuffer();
|
|
15395
15428
|
};
|
|
15396
15429
|
|
|
@@ -15398,147 +15431,138 @@ proto.clarifai.api.GetResourcePriceRequest.prototype.serializeBinary = function(
|
|
|
15398
15431
|
/**
|
|
15399
15432
|
* Serializes the given message to binary data (in protobuf wire
|
|
15400
15433
|
* format), writing to the given BinaryWriter.
|
|
15401
|
-
* @param {!proto.clarifai.api.
|
|
15434
|
+
* @param {!proto.clarifai.api.GetStatusCodeRequest} message
|
|
15402
15435
|
* @param {!jspb.BinaryWriter} writer
|
|
15403
15436
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15404
15437
|
*/
|
|
15405
|
-
proto.clarifai.api.
|
|
15438
|
+
proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15406
15439
|
var f = undefined;
|
|
15407
|
-
f = message.
|
|
15408
|
-
if (f
|
|
15409
|
-
writer.
|
|
15440
|
+
f = message.getStatusCodeId();
|
|
15441
|
+
if (f.length > 0) {
|
|
15442
|
+
writer.writeString(
|
|
15410
15443
|
1,
|
|
15411
|
-
f
|
|
15412
|
-
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
15413
|
-
);
|
|
15414
|
-
}
|
|
15415
|
-
f = message.getModel();
|
|
15416
|
-
if (f != null) {
|
|
15417
|
-
writer.writeMessage(
|
|
15418
|
-
2,
|
|
15419
|
-
f,
|
|
15420
|
-
proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter
|
|
15421
|
-
);
|
|
15422
|
-
}
|
|
15423
|
-
f = message.getWorkflow();
|
|
15424
|
-
if (f != null) {
|
|
15425
|
-
writer.writeMessage(
|
|
15426
|
-
3,
|
|
15427
|
-
f,
|
|
15428
|
-
proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter
|
|
15444
|
+
f
|
|
15429
15445
|
);
|
|
15430
15446
|
}
|
|
15431
15447
|
};
|
|
15432
15448
|
|
|
15433
15449
|
|
|
15434
15450
|
/**
|
|
15435
|
-
* optional
|
|
15436
|
-
* @return {
|
|
15451
|
+
* optional string status_code_id = 1;
|
|
15452
|
+
* @return {string}
|
|
15437
15453
|
*/
|
|
15438
|
-
proto.clarifai.api.
|
|
15439
|
-
return /** @type{
|
|
15440
|
-
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
15441
|
-
};
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
/**
|
|
15445
|
-
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
15446
|
-
* @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
|
|
15447
|
-
*/
|
|
15448
|
-
proto.clarifai.api.GetResourcePriceRequest.prototype.setUserAppId = function(value) {
|
|
15449
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
15454
|
+
proto.clarifai.api.GetStatusCodeRequest.prototype.getStatusCodeId = function() {
|
|
15455
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
15450
15456
|
};
|
|
15451
15457
|
|
|
15452
15458
|
|
|
15453
15459
|
/**
|
|
15454
|
-
*
|
|
15455
|
-
* @return {!proto.clarifai.api.
|
|
15460
|
+
* @param {string} value
|
|
15461
|
+
* @return {!proto.clarifai.api.GetStatusCodeRequest} returns this
|
|
15456
15462
|
*/
|
|
15457
|
-
proto.clarifai.api.
|
|
15458
|
-
return
|
|
15463
|
+
proto.clarifai.api.GetStatusCodeRequest.prototype.setStatusCodeId = function(value) {
|
|
15464
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
15459
15465
|
};
|
|
15460
15466
|
|
|
15461
15467
|
|
|
15462
|
-
/**
|
|
15463
|
-
* Returns whether this field is set.
|
|
15464
|
-
* @return {boolean}
|
|
15465
|
-
*/
|
|
15466
|
-
proto.clarifai.api.GetResourcePriceRequest.prototype.hasUserAppId = function() {
|
|
15467
|
-
return jspb.Message.getField(this, 1) != null;
|
|
15468
|
-
};
|
|
15469
|
-
|
|
15470
15468
|
|
|
15471
|
-
/**
|
|
15472
|
-
* optional Model model = 2;
|
|
15473
|
-
* @return {?proto.clarifai.api.Model}
|
|
15474
|
-
*/
|
|
15475
|
-
proto.clarifai.api.GetResourcePriceRequest.prototype.getModel = function() {
|
|
15476
|
-
return /** @type{?proto.clarifai.api.Model} */ (
|
|
15477
|
-
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2));
|
|
15478
|
-
};
|
|
15479
15469
|
|
|
15480
15470
|
|
|
15471
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15481
15472
|
/**
|
|
15482
|
-
*
|
|
15483
|
-
*
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15473
|
+
* Creates an object representation of this proto.
|
|
15474
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15475
|
+
* Optional fields that are not set will be set to undefined.
|
|
15476
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15477
|
+
* For the list of reserved names please see:
|
|
15478
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15479
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15480
|
+
* JSPB instance for transitional soy proto support:
|
|
15481
|
+
* http://goto/soy-param-migration
|
|
15482
|
+
* @return {!Object}
|
|
15483
|
+
*/
|
|
15484
|
+
proto.clarifai.api.ListStatusCodesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
15485
|
+
return proto.clarifai.api.ListStatusCodesRequest.toObject(opt_includeInstance, this);
|
|
15487
15486
|
};
|
|
15488
15487
|
|
|
15489
15488
|
|
|
15490
15489
|
/**
|
|
15491
|
-
*
|
|
15492
|
-
* @
|
|
15490
|
+
* Static version of the {@see toObject} method.
|
|
15491
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15492
|
+
* the JSPB instance for transitional soy proto support:
|
|
15493
|
+
* http://goto/soy-param-migration
|
|
15494
|
+
* @param {!proto.clarifai.api.ListStatusCodesRequest} msg The msg instance to transform.
|
|
15495
|
+
* @return {!Object}
|
|
15496
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15493
15497
|
*/
|
|
15494
|
-
proto.clarifai.api.
|
|
15495
|
-
|
|
15496
|
-
};
|
|
15498
|
+
proto.clarifai.api.ListStatusCodesRequest.toObject = function(includeInstance, msg) {
|
|
15499
|
+
var f, obj = {
|
|
15497
15500
|
|
|
15501
|
+
};
|
|
15498
15502
|
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
proto.clarifai.api.GetResourcePriceRequest.prototype.hasModel = function() {
|
|
15504
|
-
return jspb.Message.getField(this, 2) != null;
|
|
15503
|
+
if (includeInstance) {
|
|
15504
|
+
obj.$jspbMessageInstance = msg;
|
|
15505
|
+
}
|
|
15506
|
+
return obj;
|
|
15505
15507
|
};
|
|
15508
|
+
}
|
|
15506
15509
|
|
|
15507
15510
|
|
|
15508
15511
|
/**
|
|
15509
|
-
*
|
|
15510
|
-
* @
|
|
15512
|
+
* Deserializes binary data (in protobuf wire format).
|
|
15513
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15514
|
+
* @return {!proto.clarifai.api.ListStatusCodesRequest}
|
|
15511
15515
|
*/
|
|
15512
|
-
proto.clarifai.api.
|
|
15513
|
-
|
|
15514
|
-
|
|
15516
|
+
proto.clarifai.api.ListStatusCodesRequest.deserializeBinary = function(bytes) {
|
|
15517
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
15518
|
+
var msg = new proto.clarifai.api.ListStatusCodesRequest;
|
|
15519
|
+
return proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader(msg, reader);
|
|
15515
15520
|
};
|
|
15516
15521
|
|
|
15517
15522
|
|
|
15518
15523
|
/**
|
|
15519
|
-
*
|
|
15520
|
-
*
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
15525
|
+
* given reader into the given message object.
|
|
15526
|
+
* @param {!proto.clarifai.api.ListStatusCodesRequest} msg The message object to deserialize into.
|
|
15527
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15528
|
+
* @return {!proto.clarifai.api.ListStatusCodesRequest}
|
|
15529
|
+
*/
|
|
15530
|
+
proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15531
|
+
while (reader.nextField()) {
|
|
15532
|
+
if (reader.isEndGroup()) {
|
|
15533
|
+
break;
|
|
15534
|
+
}
|
|
15535
|
+
var field = reader.getFieldNumber();
|
|
15536
|
+
switch (field) {
|
|
15537
|
+
default:
|
|
15538
|
+
reader.skipField();
|
|
15539
|
+
break;
|
|
15540
|
+
}
|
|
15541
|
+
}
|
|
15542
|
+
return msg;
|
|
15524
15543
|
};
|
|
15525
15544
|
|
|
15526
15545
|
|
|
15527
15546
|
/**
|
|
15528
|
-
*
|
|
15529
|
-
* @return {!
|
|
15547
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
15548
|
+
* @return {!Uint8Array}
|
|
15530
15549
|
*/
|
|
15531
|
-
proto.clarifai.api.
|
|
15532
|
-
|
|
15550
|
+
proto.clarifai.api.ListStatusCodesRequest.prototype.serializeBinary = function() {
|
|
15551
|
+
var writer = new jspb.BinaryWriter();
|
|
15552
|
+
proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter(this, writer);
|
|
15553
|
+
return writer.getResultBuffer();
|
|
15533
15554
|
};
|
|
15534
15555
|
|
|
15535
15556
|
|
|
15536
15557
|
/**
|
|
15537
|
-
*
|
|
15538
|
-
*
|
|
15558
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
15559
|
+
* format), writing to the given BinaryWriter.
|
|
15560
|
+
* @param {!proto.clarifai.api.ListStatusCodesRequest} message
|
|
15561
|
+
* @param {!jspb.BinaryWriter} writer
|
|
15562
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15539
15563
|
*/
|
|
15540
|
-
proto.clarifai.api.
|
|
15541
|
-
|
|
15564
|
+
proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15565
|
+
var f = undefined;
|
|
15542
15566
|
};
|
|
15543
15567
|
|
|
15544
15568
|
|
|
@@ -15558,8 +15582,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
15558
15582
|
* http://goto/soy-param-migration
|
|
15559
15583
|
* @return {!Object}
|
|
15560
15584
|
*/
|
|
15561
|
-
proto.clarifai.api.
|
|
15562
|
-
return proto.clarifai.api.
|
|
15585
|
+
proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
15586
|
+
return proto.clarifai.api.SingleStatusCodeResponse.toObject(opt_includeInstance, this);
|
|
15563
15587
|
};
|
|
15564
15588
|
|
|
15565
15589
|
|
|
@@ -15568,14 +15592,13 @@ proto.clarifai.api.GetResourcePriceResponse.prototype.toObject = function(opt_in
|
|
|
15568
15592
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15569
15593
|
* the JSPB instance for transitional soy proto support:
|
|
15570
15594
|
* http://goto/soy-param-migration
|
|
15571
|
-
* @param {!proto.clarifai.api.
|
|
15595
|
+
* @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The msg instance to transform.
|
|
15572
15596
|
* @return {!Object}
|
|
15573
15597
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15574
15598
|
*/
|
|
15575
|
-
proto.clarifai.api.
|
|
15599
|
+
proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance, msg) {
|
|
15576
15600
|
var f, obj = {
|
|
15577
|
-
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
15578
|
-
price: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
15601
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
15579
15602
|
};
|
|
15580
15603
|
|
|
15581
15604
|
if (includeInstance) {
|
|
@@ -15589,23 +15612,23 @@ proto.clarifai.api.GetResourcePriceResponse.toObject = function(includeInstance,
|
|
|
15589
15612
|
/**
|
|
15590
15613
|
* Deserializes binary data (in protobuf wire format).
|
|
15591
15614
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15592
|
-
* @return {!proto.clarifai.api.
|
|
15615
|
+
* @return {!proto.clarifai.api.SingleStatusCodeResponse}
|
|
15593
15616
|
*/
|
|
15594
|
-
proto.clarifai.api.
|
|
15617
|
+
proto.clarifai.api.SingleStatusCodeResponse.deserializeBinary = function(bytes) {
|
|
15595
15618
|
var reader = new jspb.BinaryReader(bytes);
|
|
15596
|
-
var msg = new proto.clarifai.api.
|
|
15597
|
-
return proto.clarifai.api.
|
|
15619
|
+
var msg = new proto.clarifai.api.SingleStatusCodeResponse;
|
|
15620
|
+
return proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
15598
15621
|
};
|
|
15599
15622
|
|
|
15600
15623
|
|
|
15601
15624
|
/**
|
|
15602
15625
|
* Deserializes binary data (in protobuf wire format) from the
|
|
15603
15626
|
* given reader into the given message object.
|
|
15604
|
-
* @param {!proto.clarifai.api.
|
|
15627
|
+
* @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The message object to deserialize into.
|
|
15605
15628
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15606
|
-
* @return {!proto.clarifai.api.
|
|
15629
|
+
* @return {!proto.clarifai.api.SingleStatusCodeResponse}
|
|
15607
15630
|
*/
|
|
15608
|
-
proto.clarifai.api.
|
|
15631
|
+
proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
15609
15632
|
while (reader.nextField()) {
|
|
15610
15633
|
if (reader.isEndGroup()) {
|
|
15611
15634
|
break;
|
|
@@ -15617,10 +15640,6 @@ proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader = functi
|
|
|
15617
15640
|
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
15618
15641
|
msg.setStatus(value);
|
|
15619
15642
|
break;
|
|
15620
|
-
case 2:
|
|
15621
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
15622
|
-
msg.setPrice(value);
|
|
15623
|
-
break;
|
|
15624
15643
|
default:
|
|
15625
15644
|
reader.skipField();
|
|
15626
15645
|
break;
|
|
@@ -15634,9 +15653,9 @@ proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader = functi
|
|
|
15634
15653
|
* Serializes the message to binary data (in protobuf wire format).
|
|
15635
15654
|
* @return {!Uint8Array}
|
|
15636
15655
|
*/
|
|
15637
|
-
proto.clarifai.api.
|
|
15656
|
+
proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function() {
|
|
15638
15657
|
var writer = new jspb.BinaryWriter();
|
|
15639
|
-
proto.clarifai.api.
|
|
15658
|
+
proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter(this, writer);
|
|
15640
15659
|
return writer.getResultBuffer();
|
|
15641
15660
|
};
|
|
15642
15661
|
|
|
@@ -15644,11 +15663,11 @@ proto.clarifai.api.GetResourcePriceResponse.prototype.serializeBinary = function
|
|
|
15644
15663
|
/**
|
|
15645
15664
|
* Serializes the given message to binary data (in protobuf wire
|
|
15646
15665
|
* format), writing to the given BinaryWriter.
|
|
15647
|
-
* @param {!proto.clarifai.api.
|
|
15666
|
+
* @param {!proto.clarifai.api.SingleStatusCodeResponse} message
|
|
15648
15667
|
* @param {!jspb.BinaryWriter} writer
|
|
15649
15668
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15650
15669
|
*/
|
|
15651
|
-
proto.clarifai.api.
|
|
15670
|
+
proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
15652
15671
|
var f = undefined;
|
|
15653
15672
|
f = message.getStatus();
|
|
15654
15673
|
if (f != null) {
|
|
@@ -15658,13 +15677,6 @@ proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter = function(m
|
|
|
15658
15677
|
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
15659
15678
|
);
|
|
15660
15679
|
}
|
|
15661
|
-
f = message.getPrice();
|
|
15662
|
-
if (f !== 0) {
|
|
15663
|
-
writer.writeInt64(
|
|
15664
|
-
2,
|
|
15665
|
-
f
|
|
15666
|
-
);
|
|
15667
|
-
}
|
|
15668
15680
|
};
|
|
15669
15681
|
|
|
15670
15682
|
|
|
@@ -15672,7 +15684,7 @@ proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter = function(m
|
|
|
15672
15684
|
* optional status.Status status = 1;
|
|
15673
15685
|
* @return {?proto.clarifai.api.status.Status}
|
|
15674
15686
|
*/
|
|
15675
|
-
proto.clarifai.api.
|
|
15687
|
+
proto.clarifai.api.SingleStatusCodeResponse.prototype.getStatus = function() {
|
|
15676
15688
|
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
15677
15689
|
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
15678
15690
|
};
|
|
@@ -15680,18 +15692,18 @@ proto.clarifai.api.GetResourcePriceResponse.prototype.getStatus = function() {
|
|
|
15680
15692
|
|
|
15681
15693
|
/**
|
|
15682
15694
|
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
15683
|
-
* @return {!proto.clarifai.api.
|
|
15695
|
+
* @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
|
|
15684
15696
|
*/
|
|
15685
|
-
proto.clarifai.api.
|
|
15697
|
+
proto.clarifai.api.SingleStatusCodeResponse.prototype.setStatus = function(value) {
|
|
15686
15698
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
15687
15699
|
};
|
|
15688
15700
|
|
|
15689
15701
|
|
|
15690
15702
|
/**
|
|
15691
15703
|
* Clears the message field making it undefined.
|
|
15692
|
-
* @return {!proto.clarifai.api.
|
|
15704
|
+
* @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
|
|
15693
15705
|
*/
|
|
15694
|
-
proto.clarifai.api.
|
|
15706
|
+
proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() {
|
|
15695
15707
|
return this.setStatus(undefined);
|
|
15696
15708
|
};
|
|
15697
15709
|
|
|
@@ -15700,29 +15712,18 @@ proto.clarifai.api.GetResourcePriceResponse.prototype.clearStatus = function() {
|
|
|
15700
15712
|
* Returns whether this field is set.
|
|
15701
15713
|
* @return {boolean}
|
|
15702
15714
|
*/
|
|
15703
|
-
proto.clarifai.api.
|
|
15715
|
+
proto.clarifai.api.SingleStatusCodeResponse.prototype.hasStatus = function() {
|
|
15704
15716
|
return jspb.Message.getField(this, 1) != null;
|
|
15705
15717
|
};
|
|
15706
15718
|
|
|
15707
15719
|
|
|
15708
|
-
/**
|
|
15709
|
-
* optional int64 price = 2;
|
|
15710
|
-
* @return {number}
|
|
15711
|
-
*/
|
|
15712
|
-
proto.clarifai.api.GetResourcePriceResponse.prototype.getPrice = function() {
|
|
15713
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
15714
|
-
};
|
|
15715
|
-
|
|
15716
15720
|
|
|
15717
15721
|
/**
|
|
15718
|
-
*
|
|
15719
|
-
* @
|
|
15722
|
+
* List of repeated fields within this message type.
|
|
15723
|
+
* @private {!Array<number>}
|
|
15724
|
+
* @const
|
|
15720
15725
|
*/
|
|
15721
|
-
proto.clarifai.api.
|
|
15722
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
15723
|
-
};
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
+
proto.clarifai.api.MultiStatusCodeResponse.repeatedFields_ = [2];
|
|
15726
15727
|
|
|
15727
15728
|
|
|
15728
15729
|
|
|
@@ -15739,8 +15740,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
15739
15740
|
* http://goto/soy-param-migration
|
|
15740
15741
|
* @return {!Object}
|
|
15741
15742
|
*/
|
|
15742
|
-
proto.clarifai.api.
|
|
15743
|
-
return proto.clarifai.api.
|
|
15743
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
15744
|
+
return proto.clarifai.api.MultiStatusCodeResponse.toObject(opt_includeInstance, this);
|
|
15744
15745
|
};
|
|
15745
15746
|
|
|
15746
15747
|
|
|
@@ -15749,13 +15750,15 @@ proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includ
|
|
|
15749
15750
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15750
15751
|
* the JSPB instance for transitional soy proto support:
|
|
15751
15752
|
* http://goto/soy-param-migration
|
|
15752
|
-
* @param {!proto.clarifai.api.
|
|
15753
|
+
* @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The msg instance to transform.
|
|
15753
15754
|
* @return {!Object}
|
|
15754
15755
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15755
15756
|
*/
|
|
15756
|
-
proto.clarifai.api.
|
|
15757
|
+
proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance, msg) {
|
|
15757
15758
|
var f, obj = {
|
|
15758
|
-
|
|
15759
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
15760
|
+
statusesList: jspb.Message.toObjectList(msg.getStatusesList(),
|
|
15761
|
+
proto_clarifai_api_status_status_pb.Status.toObject, includeInstance)
|
|
15759
15762
|
};
|
|
15760
15763
|
|
|
15761
15764
|
if (includeInstance) {
|
|
@@ -15769,23 +15772,23 @@ proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg
|
|
|
15769
15772
|
/**
|
|
15770
15773
|
* Deserializes binary data (in protobuf wire format).
|
|
15771
15774
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15772
|
-
* @return {!proto.clarifai.api.
|
|
15775
|
+
* @return {!proto.clarifai.api.MultiStatusCodeResponse}
|
|
15773
15776
|
*/
|
|
15774
|
-
proto.clarifai.api.
|
|
15777
|
+
proto.clarifai.api.MultiStatusCodeResponse.deserializeBinary = function(bytes) {
|
|
15775
15778
|
var reader = new jspb.BinaryReader(bytes);
|
|
15776
|
-
var msg = new proto.clarifai.api.
|
|
15777
|
-
return proto.clarifai.api.
|
|
15779
|
+
var msg = new proto.clarifai.api.MultiStatusCodeResponse;
|
|
15780
|
+
return proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
15778
15781
|
};
|
|
15779
15782
|
|
|
15780
15783
|
|
|
15781
15784
|
/**
|
|
15782
15785
|
* Deserializes binary data (in protobuf wire format) from the
|
|
15783
15786
|
* given reader into the given message object.
|
|
15784
|
-
* @param {!proto.clarifai.api.
|
|
15787
|
+
* @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The message object to deserialize into.
|
|
15785
15788
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15786
|
-
* @return {!proto.clarifai.api.
|
|
15789
|
+
* @return {!proto.clarifai.api.MultiStatusCodeResponse}
|
|
15787
15790
|
*/
|
|
15788
|
-
proto.clarifai.api.
|
|
15791
|
+
proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
15789
15792
|
while (reader.nextField()) {
|
|
15790
15793
|
if (reader.isEndGroup()) {
|
|
15791
15794
|
break;
|
|
@@ -15793,8 +15796,14 @@ proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(m
|
|
|
15793
15796
|
var field = reader.getFieldNumber();
|
|
15794
15797
|
switch (field) {
|
|
15795
15798
|
case 1:
|
|
15796
|
-
var value =
|
|
15797
|
-
|
|
15799
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
15800
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
15801
|
+
msg.setStatus(value);
|
|
15802
|
+
break;
|
|
15803
|
+
case 2:
|
|
15804
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
15805
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
15806
|
+
msg.addStatuses(value);
|
|
15798
15807
|
break;
|
|
15799
15808
|
default:
|
|
15800
15809
|
reader.skipField();
|
|
@@ -15809,9 +15818,9 @@ proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(m
|
|
|
15809
15818
|
* Serializes the message to binary data (in protobuf wire format).
|
|
15810
15819
|
* @return {!Uint8Array}
|
|
15811
15820
|
*/
|
|
15812
|
-
proto.clarifai.api.
|
|
15821
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function() {
|
|
15813
15822
|
var writer = new jspb.BinaryWriter();
|
|
15814
|
-
proto.clarifai.api.
|
|
15823
|
+
proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter(this, writer);
|
|
15815
15824
|
return writer.getResultBuffer();
|
|
15816
15825
|
};
|
|
15817
15826
|
|
|
@@ -15819,500 +15828,103 @@ proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() {
|
|
|
15819
15828
|
/**
|
|
15820
15829
|
* Serializes the given message to binary data (in protobuf wire
|
|
15821
15830
|
* format), writing to the given BinaryWriter.
|
|
15822
|
-
* @param {!proto.clarifai.api.
|
|
15831
|
+
* @param {!proto.clarifai.api.MultiStatusCodeResponse} message
|
|
15823
15832
|
* @param {!jspb.BinaryWriter} writer
|
|
15824
15833
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15825
15834
|
*/
|
|
15826
|
-
proto.clarifai.api.
|
|
15835
|
+
proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
15827
15836
|
var f = undefined;
|
|
15828
|
-
f = message.
|
|
15829
|
-
if (f
|
|
15830
|
-
writer.
|
|
15837
|
+
f = message.getStatus();
|
|
15838
|
+
if (f != null) {
|
|
15839
|
+
writer.writeMessage(
|
|
15831
15840
|
1,
|
|
15832
|
-
f
|
|
15841
|
+
f,
|
|
15842
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
15843
|
+
);
|
|
15844
|
+
}
|
|
15845
|
+
f = message.getStatusesList();
|
|
15846
|
+
if (f.length > 0) {
|
|
15847
|
+
writer.writeRepeatedMessage(
|
|
15848
|
+
2,
|
|
15849
|
+
f,
|
|
15850
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
15833
15851
|
);
|
|
15834
15852
|
}
|
|
15835
15853
|
};
|
|
15836
15854
|
|
|
15837
15855
|
|
|
15838
15856
|
/**
|
|
15839
|
-
* optional
|
|
15840
|
-
* @return {
|
|
15857
|
+
* optional status.Status status = 1;
|
|
15858
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
15841
15859
|
*/
|
|
15842
|
-
proto.clarifai.api.
|
|
15843
|
-
return /** @type
|
|
15860
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatus = function() {
|
|
15861
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
15862
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
15844
15863
|
};
|
|
15845
15864
|
|
|
15846
15865
|
|
|
15847
15866
|
/**
|
|
15848
|
-
* @param {
|
|
15849
|
-
* @return {!proto.clarifai.api.
|
|
15867
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
15868
|
+
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
15869
|
+
*/
|
|
15870
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatus = function(value) {
|
|
15871
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
15872
|
+
};
|
|
15873
|
+
|
|
15874
|
+
|
|
15875
|
+
/**
|
|
15876
|
+
* Clears the message field making it undefined.
|
|
15877
|
+
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
15850
15878
|
*/
|
|
15851
|
-
proto.clarifai.api.
|
|
15852
|
-
return
|
|
15853
|
-
};
|
|
15854
|
-
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
15862
|
-
|
|
15863
|
-
|
|
15864
|
-
|
|
15865
|
-
|
|
15866
|
-
*
|
|
15867
|
-
* @
|
|
15868
|
-
|
|
15869
|
-
|
|
15870
|
-
|
|
15871
|
-
|
|
15872
|
-
|
|
15873
|
-
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
|
|
15885
|
-
|
|
15886
|
-
|
|
15887
|
-
|
|
15888
|
-
|
|
15889
|
-
|
|
15890
|
-
|
|
15891
|
-
|
|
15892
|
-
|
|
15893
|
-
|
|
15894
|
-
|
|
15895
|
-
|
|
15896
|
-
}
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15900
|
-
* Deserializes binary data (in protobuf wire format).
|
|
15901
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
15902
|
-
* @return {!proto.clarifai.api.ListStatusCodesRequest}
|
|
15903
|
-
*/
|
|
15904
|
-
proto.clarifai.api.ListStatusCodesRequest.deserializeBinary = function(bytes) {
|
|
15905
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
15906
|
-
var msg = new proto.clarifai.api.ListStatusCodesRequest;
|
|
15907
|
-
return proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader(msg, reader);
|
|
15908
|
-
};
|
|
15909
|
-
|
|
15910
|
-
|
|
15911
|
-
/**
|
|
15912
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
15913
|
-
* given reader into the given message object.
|
|
15914
|
-
* @param {!proto.clarifai.api.ListStatusCodesRequest} msg The message object to deserialize into.
|
|
15915
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
15916
|
-
* @return {!proto.clarifai.api.ListStatusCodesRequest}
|
|
15917
|
-
*/
|
|
15918
|
-
proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
15919
|
-
while (reader.nextField()) {
|
|
15920
|
-
if (reader.isEndGroup()) {
|
|
15921
|
-
break;
|
|
15922
|
-
}
|
|
15923
|
-
var field = reader.getFieldNumber();
|
|
15924
|
-
switch (field) {
|
|
15925
|
-
default:
|
|
15926
|
-
reader.skipField();
|
|
15927
|
-
break;
|
|
15928
|
-
}
|
|
15929
|
-
}
|
|
15930
|
-
return msg;
|
|
15931
|
-
};
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
/**
|
|
15935
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
15936
|
-
* @return {!Uint8Array}
|
|
15937
|
-
*/
|
|
15938
|
-
proto.clarifai.api.ListStatusCodesRequest.prototype.serializeBinary = function() {
|
|
15939
|
-
var writer = new jspb.BinaryWriter();
|
|
15940
|
-
proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter(this, writer);
|
|
15941
|
-
return writer.getResultBuffer();
|
|
15942
|
-
};
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
/**
|
|
15946
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
15947
|
-
* format), writing to the given BinaryWriter.
|
|
15948
|
-
* @param {!proto.clarifai.api.ListStatusCodesRequest} message
|
|
15949
|
-
* @param {!jspb.BinaryWriter} writer
|
|
15950
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15951
|
-
*/
|
|
15952
|
-
proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
15953
|
-
var f = undefined;
|
|
15954
|
-
};
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15958
|
-
|
|
15959
|
-
|
|
15960
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
15961
|
-
/**
|
|
15962
|
-
* Creates an object representation of this proto.
|
|
15963
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
15964
|
-
* Optional fields that are not set will be set to undefined.
|
|
15965
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
15966
|
-
* For the list of reserved names please see:
|
|
15967
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
15968
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
15969
|
-
* JSPB instance for transitional soy proto support:
|
|
15970
|
-
* http://goto/soy-param-migration
|
|
15971
|
-
* @return {!Object}
|
|
15972
|
-
*/
|
|
15973
|
-
proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
15974
|
-
return proto.clarifai.api.SingleStatusCodeResponse.toObject(opt_includeInstance, this);
|
|
15975
|
-
};
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
/**
|
|
15979
|
-
* Static version of the {@see toObject} method.
|
|
15980
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
15981
|
-
* the JSPB instance for transitional soy proto support:
|
|
15982
|
-
* http://goto/soy-param-migration
|
|
15983
|
-
* @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The msg instance to transform.
|
|
15984
|
-
* @return {!Object}
|
|
15985
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
15986
|
-
*/
|
|
15987
|
-
proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance, msg) {
|
|
15988
|
-
var f, obj = {
|
|
15989
|
-
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
15990
|
-
};
|
|
15991
|
-
|
|
15992
|
-
if (includeInstance) {
|
|
15993
|
-
obj.$jspbMessageInstance = msg;
|
|
15994
|
-
}
|
|
15995
|
-
return obj;
|
|
15996
|
-
};
|
|
15997
|
-
}
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
/**
|
|
16001
|
-
* Deserializes binary data (in protobuf wire format).
|
|
16002
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16003
|
-
* @return {!proto.clarifai.api.SingleStatusCodeResponse}
|
|
16004
|
-
*/
|
|
16005
|
-
proto.clarifai.api.SingleStatusCodeResponse.deserializeBinary = function(bytes) {
|
|
16006
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
16007
|
-
var msg = new proto.clarifai.api.SingleStatusCodeResponse;
|
|
16008
|
-
return proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
16009
|
-
};
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
/**
|
|
16013
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
16014
|
-
* given reader into the given message object.
|
|
16015
|
-
* @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The message object to deserialize into.
|
|
16016
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16017
|
-
* @return {!proto.clarifai.api.SingleStatusCodeResponse}
|
|
16018
|
-
*/
|
|
16019
|
-
proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
16020
|
-
while (reader.nextField()) {
|
|
16021
|
-
if (reader.isEndGroup()) {
|
|
16022
|
-
break;
|
|
16023
|
-
}
|
|
16024
|
-
var field = reader.getFieldNumber();
|
|
16025
|
-
switch (field) {
|
|
16026
|
-
case 1:
|
|
16027
|
-
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
16028
|
-
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
16029
|
-
msg.setStatus(value);
|
|
16030
|
-
break;
|
|
16031
|
-
default:
|
|
16032
|
-
reader.skipField();
|
|
16033
|
-
break;
|
|
16034
|
-
}
|
|
16035
|
-
}
|
|
16036
|
-
return msg;
|
|
16037
|
-
};
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
/**
|
|
16041
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
16042
|
-
* @return {!Uint8Array}
|
|
16043
|
-
*/
|
|
16044
|
-
proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function() {
|
|
16045
|
-
var writer = new jspb.BinaryWriter();
|
|
16046
|
-
proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter(this, writer);
|
|
16047
|
-
return writer.getResultBuffer();
|
|
16048
|
-
};
|
|
16049
|
-
|
|
16050
|
-
|
|
16051
|
-
/**
|
|
16052
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
16053
|
-
* format), writing to the given BinaryWriter.
|
|
16054
|
-
* @param {!proto.clarifai.api.SingleStatusCodeResponse} message
|
|
16055
|
-
* @param {!jspb.BinaryWriter} writer
|
|
16056
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16057
|
-
*/
|
|
16058
|
-
proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
16059
|
-
var f = undefined;
|
|
16060
|
-
f = message.getStatus();
|
|
16061
|
-
if (f != null) {
|
|
16062
|
-
writer.writeMessage(
|
|
16063
|
-
1,
|
|
16064
|
-
f,
|
|
16065
|
-
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
16066
|
-
);
|
|
16067
|
-
}
|
|
16068
|
-
};
|
|
16069
|
-
|
|
16070
|
-
|
|
16071
|
-
/**
|
|
16072
|
-
* optional status.Status status = 1;
|
|
16073
|
-
* @return {?proto.clarifai.api.status.Status}
|
|
16074
|
-
*/
|
|
16075
|
-
proto.clarifai.api.SingleStatusCodeResponse.prototype.getStatus = function() {
|
|
16076
|
-
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
16077
|
-
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
16078
|
-
};
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
/**
|
|
16082
|
-
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
16083
|
-
* @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
|
|
16084
|
-
*/
|
|
16085
|
-
proto.clarifai.api.SingleStatusCodeResponse.prototype.setStatus = function(value) {
|
|
16086
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
16087
|
-
};
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
/**
|
|
16091
|
-
* Clears the message field making it undefined.
|
|
16092
|
-
* @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
|
|
16093
|
-
*/
|
|
16094
|
-
proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() {
|
|
16095
|
-
return this.setStatus(undefined);
|
|
16096
|
-
};
|
|
16097
|
-
|
|
16098
|
-
|
|
16099
|
-
/**
|
|
16100
|
-
* Returns whether this field is set.
|
|
16101
|
-
* @return {boolean}
|
|
16102
|
-
*/
|
|
16103
|
-
proto.clarifai.api.SingleStatusCodeResponse.prototype.hasStatus = function() {
|
|
16104
|
-
return jspb.Message.getField(this, 1) != null;
|
|
16105
|
-
};
|
|
16106
|
-
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
/**
|
|
16110
|
-
* List of repeated fields within this message type.
|
|
16111
|
-
* @private {!Array<number>}
|
|
16112
|
-
* @const
|
|
16113
|
-
*/
|
|
16114
|
-
proto.clarifai.api.MultiStatusCodeResponse.repeatedFields_ = [2];
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
16119
|
-
/**
|
|
16120
|
-
* Creates an object representation of this proto.
|
|
16121
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
16122
|
-
* Optional fields that are not set will be set to undefined.
|
|
16123
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
16124
|
-
* For the list of reserved names please see:
|
|
16125
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
16126
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
16127
|
-
* JSPB instance for transitional soy proto support:
|
|
16128
|
-
* http://goto/soy-param-migration
|
|
16129
|
-
* @return {!Object}
|
|
16130
|
-
*/
|
|
16131
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
16132
|
-
return proto.clarifai.api.MultiStatusCodeResponse.toObject(opt_includeInstance, this);
|
|
16133
|
-
};
|
|
16134
|
-
|
|
16135
|
-
|
|
16136
|
-
/**
|
|
16137
|
-
* Static version of the {@see toObject} method.
|
|
16138
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
16139
|
-
* the JSPB instance for transitional soy proto support:
|
|
16140
|
-
* http://goto/soy-param-migration
|
|
16141
|
-
* @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The msg instance to transform.
|
|
16142
|
-
* @return {!Object}
|
|
16143
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16144
|
-
*/
|
|
16145
|
-
proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance, msg) {
|
|
16146
|
-
var f, obj = {
|
|
16147
|
-
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
16148
|
-
statusesList: jspb.Message.toObjectList(msg.getStatusesList(),
|
|
16149
|
-
proto_clarifai_api_status_status_pb.Status.toObject, includeInstance)
|
|
16150
|
-
};
|
|
16151
|
-
|
|
16152
|
-
if (includeInstance) {
|
|
16153
|
-
obj.$jspbMessageInstance = msg;
|
|
16154
|
-
}
|
|
16155
|
-
return obj;
|
|
16156
|
-
};
|
|
16157
|
-
}
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
/**
|
|
16161
|
-
* Deserializes binary data (in protobuf wire format).
|
|
16162
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
16163
|
-
* @return {!proto.clarifai.api.MultiStatusCodeResponse}
|
|
16164
|
-
*/
|
|
16165
|
-
proto.clarifai.api.MultiStatusCodeResponse.deserializeBinary = function(bytes) {
|
|
16166
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
16167
|
-
var msg = new proto.clarifai.api.MultiStatusCodeResponse;
|
|
16168
|
-
return proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
16169
|
-
};
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
/**
|
|
16173
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
16174
|
-
* given reader into the given message object.
|
|
16175
|
-
* @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The message object to deserialize into.
|
|
16176
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
16177
|
-
* @return {!proto.clarifai.api.MultiStatusCodeResponse}
|
|
16178
|
-
*/
|
|
16179
|
-
proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
16180
|
-
while (reader.nextField()) {
|
|
16181
|
-
if (reader.isEndGroup()) {
|
|
16182
|
-
break;
|
|
16183
|
-
}
|
|
16184
|
-
var field = reader.getFieldNumber();
|
|
16185
|
-
switch (field) {
|
|
16186
|
-
case 1:
|
|
16187
|
-
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
16188
|
-
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
16189
|
-
msg.setStatus(value);
|
|
16190
|
-
break;
|
|
16191
|
-
case 2:
|
|
16192
|
-
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
16193
|
-
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
16194
|
-
msg.addStatuses(value);
|
|
16195
|
-
break;
|
|
16196
|
-
default:
|
|
16197
|
-
reader.skipField();
|
|
16198
|
-
break;
|
|
16199
|
-
}
|
|
16200
|
-
}
|
|
16201
|
-
return msg;
|
|
16202
|
-
};
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
/**
|
|
16206
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
16207
|
-
* @return {!Uint8Array}
|
|
16208
|
-
*/
|
|
16209
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function() {
|
|
16210
|
-
var writer = new jspb.BinaryWriter();
|
|
16211
|
-
proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter(this, writer);
|
|
16212
|
-
return writer.getResultBuffer();
|
|
16213
|
-
};
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
/**
|
|
16217
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
16218
|
-
* format), writing to the given BinaryWriter.
|
|
16219
|
-
* @param {!proto.clarifai.api.MultiStatusCodeResponse} message
|
|
16220
|
-
* @param {!jspb.BinaryWriter} writer
|
|
16221
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
16222
|
-
*/
|
|
16223
|
-
proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
16224
|
-
var f = undefined;
|
|
16225
|
-
f = message.getStatus();
|
|
16226
|
-
if (f != null) {
|
|
16227
|
-
writer.writeMessage(
|
|
16228
|
-
1,
|
|
16229
|
-
f,
|
|
16230
|
-
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
16231
|
-
);
|
|
16232
|
-
}
|
|
16233
|
-
f = message.getStatusesList();
|
|
16234
|
-
if (f.length > 0) {
|
|
16235
|
-
writer.writeRepeatedMessage(
|
|
16236
|
-
2,
|
|
16237
|
-
f,
|
|
16238
|
-
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
16239
|
-
);
|
|
16240
|
-
}
|
|
16241
|
-
};
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
/**
|
|
16245
|
-
* optional status.Status status = 1;
|
|
16246
|
-
* @return {?proto.clarifai.api.status.Status}
|
|
16247
|
-
*/
|
|
16248
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatus = function() {
|
|
16249
|
-
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
16250
|
-
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
16251
|
-
};
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
/**
|
|
16255
|
-
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
16256
|
-
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
16257
|
-
*/
|
|
16258
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatus = function(value) {
|
|
16259
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
16260
|
-
};
|
|
16261
|
-
|
|
16262
|
-
|
|
16263
|
-
/**
|
|
16264
|
-
* Clears the message field making it undefined.
|
|
16265
|
-
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
16266
|
-
*/
|
|
16267
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatus = function() {
|
|
16268
|
-
return this.setStatus(undefined);
|
|
16269
|
-
};
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
/**
|
|
16273
|
-
* Returns whether this field is set.
|
|
16274
|
-
* @return {boolean}
|
|
16275
|
-
*/
|
|
16276
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.hasStatus = function() {
|
|
16277
|
-
return jspb.Message.getField(this, 1) != null;
|
|
16278
|
-
};
|
|
16279
|
-
|
|
16280
|
-
|
|
16281
|
-
/**
|
|
16282
|
-
* repeated status.Status statuses = 2;
|
|
16283
|
-
* @return {!Array<!proto.clarifai.api.status.Status>}
|
|
16284
|
-
*/
|
|
16285
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatusesList = function() {
|
|
16286
|
-
return /** @type{!Array<!proto.clarifai.api.status.Status>} */ (
|
|
16287
|
-
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
|
|
16288
|
-
};
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
/**
|
|
16292
|
-
* @param {!Array<!proto.clarifai.api.status.Status>} value
|
|
16293
|
-
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
16294
|
-
*/
|
|
16295
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatusesList = function(value) {
|
|
16296
|
-
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
16297
|
-
};
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
/**
|
|
16301
|
-
* @param {!proto.clarifai.api.status.Status=} opt_value
|
|
16302
|
-
* @param {number=} opt_index
|
|
16303
|
-
* @return {!proto.clarifai.api.status.Status}
|
|
16304
|
-
*/
|
|
16305
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.addStatuses = function(opt_value, opt_index) {
|
|
16306
|
-
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.status.Status, opt_index);
|
|
16307
|
-
};
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
/**
|
|
16311
|
-
* Clears the list making it empty but non-null.
|
|
16312
|
-
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
16313
|
-
*/
|
|
16314
|
-
proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatusesList = function() {
|
|
16315
|
-
return this.setStatusesList([]);
|
|
15879
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatus = function() {
|
|
15880
|
+
return this.setStatus(undefined);
|
|
15881
|
+
};
|
|
15882
|
+
|
|
15883
|
+
|
|
15884
|
+
/**
|
|
15885
|
+
* Returns whether this field is set.
|
|
15886
|
+
* @return {boolean}
|
|
15887
|
+
*/
|
|
15888
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.hasStatus = function() {
|
|
15889
|
+
return jspb.Message.getField(this, 1) != null;
|
|
15890
|
+
};
|
|
15891
|
+
|
|
15892
|
+
|
|
15893
|
+
/**
|
|
15894
|
+
* repeated status.Status statuses = 2;
|
|
15895
|
+
* @return {!Array<!proto.clarifai.api.status.Status>}
|
|
15896
|
+
*/
|
|
15897
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatusesList = function() {
|
|
15898
|
+
return /** @type{!Array<!proto.clarifai.api.status.Status>} */ (
|
|
15899
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
|
|
15900
|
+
};
|
|
15901
|
+
|
|
15902
|
+
|
|
15903
|
+
/**
|
|
15904
|
+
* @param {!Array<!proto.clarifai.api.status.Status>} value
|
|
15905
|
+
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
15906
|
+
*/
|
|
15907
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatusesList = function(value) {
|
|
15908
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
15909
|
+
};
|
|
15910
|
+
|
|
15911
|
+
|
|
15912
|
+
/**
|
|
15913
|
+
* @param {!proto.clarifai.api.status.Status=} opt_value
|
|
15914
|
+
* @param {number=} opt_index
|
|
15915
|
+
* @return {!proto.clarifai.api.status.Status}
|
|
15916
|
+
*/
|
|
15917
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.addStatuses = function(opt_value, opt_index) {
|
|
15918
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.status.Status, opt_index);
|
|
15919
|
+
};
|
|
15920
|
+
|
|
15921
|
+
|
|
15922
|
+
/**
|
|
15923
|
+
* Clears the list making it empty but non-null.
|
|
15924
|
+
* @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
|
|
15925
|
+
*/
|
|
15926
|
+
proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatusesList = function() {
|
|
15927
|
+
return this.setStatusesList([]);
|
|
16316
15928
|
};
|
|
16317
15929
|
|
|
16318
15930
|
|
|
@@ -28828,6 +28440,13 @@ proto.clarifai.api.SingleDatasetInputResponse.prototype.hasDatasetInput = functi
|
|
|
28828
28440
|
|
|
28829
28441
|
|
|
28830
28442
|
|
|
28443
|
+
/**
|
|
28444
|
+
* List of repeated fields within this message type.
|
|
28445
|
+
* @private {!Array<number>}
|
|
28446
|
+
* @const
|
|
28447
|
+
*/
|
|
28448
|
+
proto.clarifai.api.ListDatasetVersionsRequest.repeatedFields_ = [5];
|
|
28449
|
+
|
|
28831
28450
|
|
|
28832
28451
|
|
|
28833
28452
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -28862,7 +28481,8 @@ proto.clarifai.api.ListDatasetVersionsRequest.toObject = function(includeInstanc
|
|
|
28862
28481
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
28863
28482
|
datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
28864
28483
|
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
28865
|
-
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
28484
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
28485
|
+
requestOriginsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
28866
28486
|
};
|
|
28867
28487
|
|
|
28868
28488
|
if (includeInstance) {
|
|
@@ -28916,6 +28536,12 @@ proto.clarifai.api.ListDatasetVersionsRequest.deserializeBinaryFromReader = func
|
|
|
28916
28536
|
var value = /** @type {number} */ (reader.readUint32());
|
|
28917
28537
|
msg.setPerPage(value);
|
|
28918
28538
|
break;
|
|
28539
|
+
case 5:
|
|
28540
|
+
var values = /** @type {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
28541
|
+
for (var i = 0; i < values.length; i++) {
|
|
28542
|
+
msg.addRequestOrigins(values[i]);
|
|
28543
|
+
}
|
|
28544
|
+
break;
|
|
28919
28545
|
default:
|
|
28920
28546
|
reader.skipField();
|
|
28921
28547
|
break;
|
|
@@ -28974,6 +28600,13 @@ proto.clarifai.api.ListDatasetVersionsRequest.serializeBinaryToWriter = function
|
|
|
28974
28600
|
f
|
|
28975
28601
|
);
|
|
28976
28602
|
}
|
|
28603
|
+
f = message.getRequestOriginsList();
|
|
28604
|
+
if (f.length > 0) {
|
|
28605
|
+
writer.writePackedEnum(
|
|
28606
|
+
5,
|
|
28607
|
+
f
|
|
28608
|
+
);
|
|
28609
|
+
}
|
|
28977
28610
|
};
|
|
28978
28611
|
|
|
28979
28612
|
|
|
@@ -29068,6 +28701,43 @@ proto.clarifai.api.ListDatasetVersionsRequest.prototype.setPerPage = function(va
|
|
|
29068
28701
|
};
|
|
29069
28702
|
|
|
29070
28703
|
|
|
28704
|
+
/**
|
|
28705
|
+
* repeated DatasetVersionRequestOrigin request_origins = 5;
|
|
28706
|
+
* @return {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>}
|
|
28707
|
+
*/
|
|
28708
|
+
proto.clarifai.api.ListDatasetVersionsRequest.prototype.getRequestOriginsList = function() {
|
|
28709
|
+
return /** @type {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
28710
|
+
};
|
|
28711
|
+
|
|
28712
|
+
|
|
28713
|
+
/**
|
|
28714
|
+
* @param {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>} value
|
|
28715
|
+
* @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this
|
|
28716
|
+
*/
|
|
28717
|
+
proto.clarifai.api.ListDatasetVersionsRequest.prototype.setRequestOriginsList = function(value) {
|
|
28718
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
28719
|
+
};
|
|
28720
|
+
|
|
28721
|
+
|
|
28722
|
+
/**
|
|
28723
|
+
* @param {!proto.clarifai.api.DatasetVersionRequestOrigin} value
|
|
28724
|
+
* @param {number=} opt_index
|
|
28725
|
+
* @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this
|
|
28726
|
+
*/
|
|
28727
|
+
proto.clarifai.api.ListDatasetVersionsRequest.prototype.addRequestOrigins = function(value, opt_index) {
|
|
28728
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
28729
|
+
};
|
|
28730
|
+
|
|
28731
|
+
|
|
28732
|
+
/**
|
|
28733
|
+
* Clears the list making it empty but non-null.
|
|
28734
|
+
* @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this
|
|
28735
|
+
*/
|
|
28736
|
+
proto.clarifai.api.ListDatasetVersionsRequest.prototype.clearRequestOriginsList = function() {
|
|
28737
|
+
return this.setRequestOriginsList([]);
|
|
28738
|
+
};
|
|
28739
|
+
|
|
28740
|
+
|
|
29071
28741
|
|
|
29072
28742
|
|
|
29073
28743
|
|
|
@@ -31609,7 +31279,8 @@ proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance,
|
|
|
31609
31279
|
versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
31610
31280
|
inputsList: jspb.Message.toObjectList(msg.getInputsList(),
|
|
31611
31281
|
proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
|
|
31612
|
-
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f)
|
|
31282
|
+
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
31283
|
+
runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
|
|
31613
31284
|
};
|
|
31614
31285
|
|
|
31615
31286
|
if (includeInstance) {
|
|
@@ -31669,6 +31340,11 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
|
|
|
31669
31340
|
reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
|
|
31670
31341
|
msg.setModel(value);
|
|
31671
31342
|
break;
|
|
31343
|
+
case 6:
|
|
31344
|
+
var value = new proto_clarifai_api_resources_pb.RunnerSelector;
|
|
31345
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
|
|
31346
|
+
msg.setRunnerSelector(value);
|
|
31347
|
+
break;
|
|
31672
31348
|
default:
|
|
31673
31349
|
reader.skipField();
|
|
31674
31350
|
break;
|
|
@@ -31736,6 +31412,14 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(me
|
|
|
31736
31412
|
proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter
|
|
31737
31413
|
);
|
|
31738
31414
|
}
|
|
31415
|
+
f = message.getRunnerSelector();
|
|
31416
|
+
if (f != null) {
|
|
31417
|
+
writer.writeMessage(
|
|
31418
|
+
6,
|
|
31419
|
+
f,
|
|
31420
|
+
proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter
|
|
31421
|
+
);
|
|
31422
|
+
}
|
|
31739
31423
|
};
|
|
31740
31424
|
|
|
31741
31425
|
|
|
@@ -31887,6 +31571,43 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.hasModel = function() {
|
|
|
31887
31571
|
};
|
|
31888
31572
|
|
|
31889
31573
|
|
|
31574
|
+
/**
|
|
31575
|
+
* optional RunnerSelector runner_selector = 6;
|
|
31576
|
+
* @return {?proto.clarifai.api.RunnerSelector}
|
|
31577
|
+
*/
|
|
31578
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.getRunnerSelector = function() {
|
|
31579
|
+
return /** @type{?proto.clarifai.api.RunnerSelector} */ (
|
|
31580
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.RunnerSelector, 6));
|
|
31581
|
+
};
|
|
31582
|
+
|
|
31583
|
+
|
|
31584
|
+
/**
|
|
31585
|
+
* @param {?proto.clarifai.api.RunnerSelector|undefined} value
|
|
31586
|
+
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
|
|
31587
|
+
*/
|
|
31588
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.setRunnerSelector = function(value) {
|
|
31589
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
31590
|
+
};
|
|
31591
|
+
|
|
31592
|
+
|
|
31593
|
+
/**
|
|
31594
|
+
* Clears the message field making it undefined.
|
|
31595
|
+
* @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
|
|
31596
|
+
*/
|
|
31597
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.clearRunnerSelector = function() {
|
|
31598
|
+
return this.setRunnerSelector(undefined);
|
|
31599
|
+
};
|
|
31600
|
+
|
|
31601
|
+
|
|
31602
|
+
/**
|
|
31603
|
+
* Returns whether this field is set.
|
|
31604
|
+
* @return {boolean}
|
|
31605
|
+
*/
|
|
31606
|
+
proto.clarifai.api.PostModelOutputsRequest.prototype.hasRunnerSelector = function() {
|
|
31607
|
+
return jspb.Message.getField(this, 6) != null;
|
|
31608
|
+
};
|
|
31609
|
+
|
|
31610
|
+
|
|
31890
31611
|
|
|
31891
31612
|
|
|
31892
31613
|
|
|
@@ -66772,7 +66493,7 @@ proto.clarifai.api.SingleTaskResponse.prototype.hasTask = function() {
|
|
|
66772
66493
|
* @private {!Array<number>}
|
|
66773
66494
|
* @const
|
|
66774
66495
|
*/
|
|
66775
|
-
proto.clarifai.api.GetTaskCountRequest.repeatedFields_ = [3];
|
|
66496
|
+
proto.clarifai.api.GetTaskCountRequest.repeatedFields_ = [3,4,5];
|
|
66776
66497
|
|
|
66777
66498
|
|
|
66778
66499
|
|
|
@@ -66807,7 +66528,9 @@ proto.clarifai.api.GetTaskCountRequest.toObject = function(includeInstance, msg)
|
|
|
66807
66528
|
var f, obj = {
|
|
66808
66529
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
66809
66530
|
taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
66810
|
-
userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
66531
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
66532
|
+
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
66533
|
+
workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
66811
66534
|
};
|
|
66812
66535
|
|
|
66813
66536
|
if (includeInstance) {
|
|
@@ -66857,6 +66580,14 @@ proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader = function(ms
|
|
|
66857
66580
|
var value = /** @type {string} */ (reader.readString());
|
|
66858
66581
|
msg.addUserIds(value);
|
|
66859
66582
|
break;
|
|
66583
|
+
case 4:
|
|
66584
|
+
var value = /** @type {string} */ (reader.readString());
|
|
66585
|
+
msg.addModelVersionIds(value);
|
|
66586
|
+
break;
|
|
66587
|
+
case 5:
|
|
66588
|
+
var value = /** @type {string} */ (reader.readString());
|
|
66589
|
+
msg.addWorkflowVersionIds(value);
|
|
66590
|
+
break;
|
|
66860
66591
|
default:
|
|
66861
66592
|
reader.skipField();
|
|
66862
66593
|
break;
|
|
@@ -66908,6 +66639,20 @@ proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter = function(messag
|
|
|
66908
66639
|
f
|
|
66909
66640
|
);
|
|
66910
66641
|
}
|
|
66642
|
+
f = message.getModelVersionIdsList();
|
|
66643
|
+
if (f.length > 0) {
|
|
66644
|
+
writer.writeRepeatedString(
|
|
66645
|
+
4,
|
|
66646
|
+
f
|
|
66647
|
+
);
|
|
66648
|
+
}
|
|
66649
|
+
f = message.getWorkflowVersionIdsList();
|
|
66650
|
+
if (f.length > 0) {
|
|
66651
|
+
writer.writeRepeatedString(
|
|
66652
|
+
5,
|
|
66653
|
+
f
|
|
66654
|
+
);
|
|
66655
|
+
}
|
|
66911
66656
|
};
|
|
66912
66657
|
|
|
66913
66658
|
|
|
@@ -67003,6 +66748,80 @@ proto.clarifai.api.GetTaskCountRequest.prototype.clearUserIdsList = function() {
|
|
|
67003
66748
|
};
|
|
67004
66749
|
|
|
67005
66750
|
|
|
66751
|
+
/**
|
|
66752
|
+
* repeated string model_version_ids = 4;
|
|
66753
|
+
* @return {!Array<string>}
|
|
66754
|
+
*/
|
|
66755
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.getModelVersionIdsList = function() {
|
|
66756
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
66757
|
+
};
|
|
66758
|
+
|
|
66759
|
+
|
|
66760
|
+
/**
|
|
66761
|
+
* @param {!Array<string>} value
|
|
66762
|
+
* @return {!proto.clarifai.api.GetTaskCountRequest} returns this
|
|
66763
|
+
*/
|
|
66764
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.setModelVersionIdsList = function(value) {
|
|
66765
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
66766
|
+
};
|
|
66767
|
+
|
|
66768
|
+
|
|
66769
|
+
/**
|
|
66770
|
+
* @param {string} value
|
|
66771
|
+
* @param {number=} opt_index
|
|
66772
|
+
* @return {!proto.clarifai.api.GetTaskCountRequest} returns this
|
|
66773
|
+
*/
|
|
66774
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.addModelVersionIds = function(value, opt_index) {
|
|
66775
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
66776
|
+
};
|
|
66777
|
+
|
|
66778
|
+
|
|
66779
|
+
/**
|
|
66780
|
+
* Clears the list making it empty but non-null.
|
|
66781
|
+
* @return {!proto.clarifai.api.GetTaskCountRequest} returns this
|
|
66782
|
+
*/
|
|
66783
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.clearModelVersionIdsList = function() {
|
|
66784
|
+
return this.setModelVersionIdsList([]);
|
|
66785
|
+
};
|
|
66786
|
+
|
|
66787
|
+
|
|
66788
|
+
/**
|
|
66789
|
+
* repeated string workflow_version_ids = 5;
|
|
66790
|
+
* @return {!Array<string>}
|
|
66791
|
+
*/
|
|
66792
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.getWorkflowVersionIdsList = function() {
|
|
66793
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
66794
|
+
};
|
|
66795
|
+
|
|
66796
|
+
|
|
66797
|
+
/**
|
|
66798
|
+
* @param {!Array<string>} value
|
|
66799
|
+
* @return {!proto.clarifai.api.GetTaskCountRequest} returns this
|
|
66800
|
+
*/
|
|
66801
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.setWorkflowVersionIdsList = function(value) {
|
|
66802
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
66803
|
+
};
|
|
66804
|
+
|
|
66805
|
+
|
|
66806
|
+
/**
|
|
66807
|
+
* @param {string} value
|
|
66808
|
+
* @param {number=} opt_index
|
|
66809
|
+
* @return {!proto.clarifai.api.GetTaskCountRequest} returns this
|
|
66810
|
+
*/
|
|
66811
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.addWorkflowVersionIds = function(value, opt_index) {
|
|
66812
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
66813
|
+
};
|
|
66814
|
+
|
|
66815
|
+
|
|
66816
|
+
/**
|
|
66817
|
+
* Clears the list making it empty but non-null.
|
|
66818
|
+
* @return {!proto.clarifai.api.GetTaskCountRequest} returns this
|
|
66819
|
+
*/
|
|
66820
|
+
proto.clarifai.api.GetTaskCountRequest.prototype.clearWorkflowVersionIdsList = function() {
|
|
66821
|
+
return this.setWorkflowVersionIdsList([]);
|
|
66822
|
+
};
|
|
66823
|
+
|
|
66824
|
+
|
|
67006
66825
|
|
|
67007
66826
|
/**
|
|
67008
66827
|
* List of repeated fields within this message type.
|
|
@@ -78745,14 +78564,17 @@ proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearBulkOperationList
|
|
|
78745
78564
|
* @private {!Array<!Array<number>>}
|
|
78746
78565
|
* @const
|
|
78747
78566
|
*/
|
|
78748
|
-
proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6]];
|
|
78567
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6,7,8,9]];
|
|
78749
78568
|
|
|
78750
78569
|
/**
|
|
78751
78570
|
* @enum {number}
|
|
78752
78571
|
*/
|
|
78753
78572
|
proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase = {
|
|
78754
78573
|
ACTION_CONFIG_NOT_SET: 0,
|
|
78755
|
-
LABEL_SUBMIT_CONFIG: 6
|
|
78574
|
+
LABEL_SUBMIT_CONFIG: 6,
|
|
78575
|
+
REVIEW_APPROVE_CONFIG: 7,
|
|
78576
|
+
REVIEW_REQUEST_CHANGES_CONFIG: 8,
|
|
78577
|
+
REVIEW_REJECT_CONFIG: 9
|
|
78756
78578
|
};
|
|
78757
78579
|
|
|
78758
78580
|
/**
|
|
@@ -78797,7 +78619,10 @@ proto.clarifai.api.PutTaskAssignmentsRequest.toObject = function(includeInstance
|
|
|
78797
78619
|
taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
78798
78620
|
inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
78799
78621
|
action: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
78800
|
-
labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f)
|
|
78622
|
+
labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f),
|
|
78623
|
+
reviewApproveConfig: (f = msg.getReviewApproveConfig()) && proto.clarifai.api.ReviewApproveConfig.toObject(includeInstance, f),
|
|
78624
|
+
reviewRequestChangesConfig: (f = msg.getReviewRequestChangesConfig()) && proto.clarifai.api.ReviewRequestChangesConfig.toObject(includeInstance, f),
|
|
78625
|
+
reviewRejectConfig: (f = msg.getReviewRejectConfig()) && proto.clarifai.api.ReviewRejectConfig.toObject(includeInstance, f)
|
|
78801
78626
|
};
|
|
78802
78627
|
|
|
78803
78628
|
if (includeInstance) {
|
|
@@ -78856,6 +78681,21 @@ proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader = funct
|
|
|
78856
78681
|
reader.readMessage(value,proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader);
|
|
78857
78682
|
msg.setLabelSubmitConfig(value);
|
|
78858
78683
|
break;
|
|
78684
|
+
case 7:
|
|
78685
|
+
var value = new proto.clarifai.api.ReviewApproveConfig;
|
|
78686
|
+
reader.readMessage(value,proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader);
|
|
78687
|
+
msg.setReviewApproveConfig(value);
|
|
78688
|
+
break;
|
|
78689
|
+
case 8:
|
|
78690
|
+
var value = new proto.clarifai.api.ReviewRequestChangesConfig;
|
|
78691
|
+
reader.readMessage(value,proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader);
|
|
78692
|
+
msg.setReviewRequestChangesConfig(value);
|
|
78693
|
+
break;
|
|
78694
|
+
case 9:
|
|
78695
|
+
var value = new proto.clarifai.api.ReviewRejectConfig;
|
|
78696
|
+
reader.readMessage(value,proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader);
|
|
78697
|
+
msg.setReviewRejectConfig(value);
|
|
78698
|
+
break;
|
|
78859
78699
|
default:
|
|
78860
78700
|
reader.skipField();
|
|
78861
78701
|
break;
|
|
@@ -78922,6 +78762,30 @@ proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter = function(
|
|
|
78922
78762
|
proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter
|
|
78923
78763
|
);
|
|
78924
78764
|
}
|
|
78765
|
+
f = message.getReviewApproveConfig();
|
|
78766
|
+
if (f != null) {
|
|
78767
|
+
writer.writeMessage(
|
|
78768
|
+
7,
|
|
78769
|
+
f,
|
|
78770
|
+
proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter
|
|
78771
|
+
);
|
|
78772
|
+
}
|
|
78773
|
+
f = message.getReviewRequestChangesConfig();
|
|
78774
|
+
if (f != null) {
|
|
78775
|
+
writer.writeMessage(
|
|
78776
|
+
8,
|
|
78777
|
+
f,
|
|
78778
|
+
proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter
|
|
78779
|
+
);
|
|
78780
|
+
}
|
|
78781
|
+
f = message.getReviewRejectConfig();
|
|
78782
|
+
if (f != null) {
|
|
78783
|
+
writer.writeMessage(
|
|
78784
|
+
9,
|
|
78785
|
+
f,
|
|
78786
|
+
proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter
|
|
78787
|
+
);
|
|
78788
|
+
}
|
|
78925
78789
|
};
|
|
78926
78790
|
|
|
78927
78791
|
|
|
@@ -79053,6 +78917,117 @@ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasLabelSubmitConfig = fu
|
|
|
79053
78917
|
};
|
|
79054
78918
|
|
|
79055
78919
|
|
|
78920
|
+
/**
|
|
78921
|
+
* optional ReviewApproveConfig review_approve_config = 7;
|
|
78922
|
+
* @return {?proto.clarifai.api.ReviewApproveConfig}
|
|
78923
|
+
*/
|
|
78924
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewApproveConfig = function() {
|
|
78925
|
+
return /** @type{?proto.clarifai.api.ReviewApproveConfig} */ (
|
|
78926
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewApproveConfig, 7));
|
|
78927
|
+
};
|
|
78928
|
+
|
|
78929
|
+
|
|
78930
|
+
/**
|
|
78931
|
+
* @param {?proto.clarifai.api.ReviewApproveConfig|undefined} value
|
|
78932
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
78933
|
+
*/
|
|
78934
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewApproveConfig = function(value) {
|
|
78935
|
+
return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
|
|
78936
|
+
};
|
|
78937
|
+
|
|
78938
|
+
|
|
78939
|
+
/**
|
|
78940
|
+
* Clears the message field making it undefined.
|
|
78941
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
78942
|
+
*/
|
|
78943
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewApproveConfig = function() {
|
|
78944
|
+
return this.setReviewApproveConfig(undefined);
|
|
78945
|
+
};
|
|
78946
|
+
|
|
78947
|
+
|
|
78948
|
+
/**
|
|
78949
|
+
* Returns whether this field is set.
|
|
78950
|
+
* @return {boolean}
|
|
78951
|
+
*/
|
|
78952
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewApproveConfig = function() {
|
|
78953
|
+
return jspb.Message.getField(this, 7) != null;
|
|
78954
|
+
};
|
|
78955
|
+
|
|
78956
|
+
|
|
78957
|
+
/**
|
|
78958
|
+
* optional ReviewRequestChangesConfig review_request_changes_config = 8;
|
|
78959
|
+
* @return {?proto.clarifai.api.ReviewRequestChangesConfig}
|
|
78960
|
+
*/
|
|
78961
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewRequestChangesConfig = function() {
|
|
78962
|
+
return /** @type{?proto.clarifai.api.ReviewRequestChangesConfig} */ (
|
|
78963
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewRequestChangesConfig, 8));
|
|
78964
|
+
};
|
|
78965
|
+
|
|
78966
|
+
|
|
78967
|
+
/**
|
|
78968
|
+
* @param {?proto.clarifai.api.ReviewRequestChangesConfig|undefined} value
|
|
78969
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
78970
|
+
*/
|
|
78971
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewRequestChangesConfig = function(value) {
|
|
78972
|
+
return jspb.Message.setOneofWrapperField(this, 8, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
|
|
78973
|
+
};
|
|
78974
|
+
|
|
78975
|
+
|
|
78976
|
+
/**
|
|
78977
|
+
* Clears the message field making it undefined.
|
|
78978
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
78979
|
+
*/
|
|
78980
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewRequestChangesConfig = function() {
|
|
78981
|
+
return this.setReviewRequestChangesConfig(undefined);
|
|
78982
|
+
};
|
|
78983
|
+
|
|
78984
|
+
|
|
78985
|
+
/**
|
|
78986
|
+
* Returns whether this field is set.
|
|
78987
|
+
* @return {boolean}
|
|
78988
|
+
*/
|
|
78989
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewRequestChangesConfig = function() {
|
|
78990
|
+
return jspb.Message.getField(this, 8) != null;
|
|
78991
|
+
};
|
|
78992
|
+
|
|
78993
|
+
|
|
78994
|
+
/**
|
|
78995
|
+
* optional ReviewRejectConfig review_reject_config = 9;
|
|
78996
|
+
* @return {?proto.clarifai.api.ReviewRejectConfig}
|
|
78997
|
+
*/
|
|
78998
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewRejectConfig = function() {
|
|
78999
|
+
return /** @type{?proto.clarifai.api.ReviewRejectConfig} */ (
|
|
79000
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewRejectConfig, 9));
|
|
79001
|
+
};
|
|
79002
|
+
|
|
79003
|
+
|
|
79004
|
+
/**
|
|
79005
|
+
* @param {?proto.clarifai.api.ReviewRejectConfig|undefined} value
|
|
79006
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
79007
|
+
*/
|
|
79008
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewRejectConfig = function(value) {
|
|
79009
|
+
return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
|
|
79010
|
+
};
|
|
79011
|
+
|
|
79012
|
+
|
|
79013
|
+
/**
|
|
79014
|
+
* Clears the message field making it undefined.
|
|
79015
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
79016
|
+
*/
|
|
79017
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewRejectConfig = function() {
|
|
79018
|
+
return this.setReviewRejectConfig(undefined);
|
|
79019
|
+
};
|
|
79020
|
+
|
|
79021
|
+
|
|
79022
|
+
/**
|
|
79023
|
+
* Returns whether this field is set.
|
|
79024
|
+
* @return {boolean}
|
|
79025
|
+
*/
|
|
79026
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewRejectConfig = function() {
|
|
79027
|
+
return jspb.Message.getField(this, 9) != null;
|
|
79028
|
+
};
|
|
79029
|
+
|
|
79030
|
+
|
|
79056
79031
|
|
|
79057
79032
|
/**
|
|
79058
79033
|
* List of repeated fields within this message type.
|
|
@@ -79214,6 +79189,645 @@ proto.clarifai.api.LabelSubmitConfig.prototype.clearTaskAssignmentsList = functi
|
|
|
79214
79189
|
|
|
79215
79190
|
|
|
79216
79191
|
|
|
79192
|
+
/**
|
|
79193
|
+
* List of repeated fields within this message type.
|
|
79194
|
+
* @private {!Array<number>}
|
|
79195
|
+
* @const
|
|
79196
|
+
*/
|
|
79197
|
+
proto.clarifai.api.ReviewApproveConfig.repeatedFields_ = [1,2];
|
|
79198
|
+
|
|
79199
|
+
|
|
79200
|
+
|
|
79201
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
79202
|
+
/**
|
|
79203
|
+
* Creates an object representation of this proto.
|
|
79204
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
79205
|
+
* Optional fields that are not set will be set to undefined.
|
|
79206
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79207
|
+
* For the list of reserved names please see:
|
|
79208
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79209
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
79210
|
+
* JSPB instance for transitional soy proto support:
|
|
79211
|
+
* http://goto/soy-param-migration
|
|
79212
|
+
* @return {!Object}
|
|
79213
|
+
*/
|
|
79214
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.toObject = function(opt_includeInstance) {
|
|
79215
|
+
return proto.clarifai.api.ReviewApproveConfig.toObject(opt_includeInstance, this);
|
|
79216
|
+
};
|
|
79217
|
+
|
|
79218
|
+
|
|
79219
|
+
/**
|
|
79220
|
+
* Static version of the {@see toObject} method.
|
|
79221
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
79222
|
+
* the JSPB instance for transitional soy proto support:
|
|
79223
|
+
* http://goto/soy-param-migration
|
|
79224
|
+
* @param {!proto.clarifai.api.ReviewApproveConfig} msg The msg instance to transform.
|
|
79225
|
+
* @return {!Object}
|
|
79226
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79227
|
+
*/
|
|
79228
|
+
proto.clarifai.api.ReviewApproveConfig.toObject = function(includeInstance, msg) {
|
|
79229
|
+
var f, obj = {
|
|
79230
|
+
taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
|
|
79231
|
+
proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
|
|
79232
|
+
workersList: jspb.Message.toObjectList(msg.getWorkersList(),
|
|
79233
|
+
proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
|
|
79234
|
+
};
|
|
79235
|
+
|
|
79236
|
+
if (includeInstance) {
|
|
79237
|
+
obj.$jspbMessageInstance = msg;
|
|
79238
|
+
}
|
|
79239
|
+
return obj;
|
|
79240
|
+
};
|
|
79241
|
+
}
|
|
79242
|
+
|
|
79243
|
+
|
|
79244
|
+
/**
|
|
79245
|
+
* Deserializes binary data (in protobuf wire format).
|
|
79246
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
79247
|
+
* @return {!proto.clarifai.api.ReviewApproveConfig}
|
|
79248
|
+
*/
|
|
79249
|
+
proto.clarifai.api.ReviewApproveConfig.deserializeBinary = function(bytes) {
|
|
79250
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
79251
|
+
var msg = new proto.clarifai.api.ReviewApproveConfig;
|
|
79252
|
+
return proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader(msg, reader);
|
|
79253
|
+
};
|
|
79254
|
+
|
|
79255
|
+
|
|
79256
|
+
/**
|
|
79257
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
79258
|
+
* given reader into the given message object.
|
|
79259
|
+
* @param {!proto.clarifai.api.ReviewApproveConfig} msg The message object to deserialize into.
|
|
79260
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
79261
|
+
* @return {!proto.clarifai.api.ReviewApproveConfig}
|
|
79262
|
+
*/
|
|
79263
|
+
proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
79264
|
+
while (reader.nextField()) {
|
|
79265
|
+
if (reader.isEndGroup()) {
|
|
79266
|
+
break;
|
|
79267
|
+
}
|
|
79268
|
+
var field = reader.getFieldNumber();
|
|
79269
|
+
switch (field) {
|
|
79270
|
+
case 1:
|
|
79271
|
+
var value = new proto_clarifai_api_resources_pb.TaskAssignment;
|
|
79272
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
|
|
79273
|
+
msg.addTaskAssignments(value);
|
|
79274
|
+
break;
|
|
79275
|
+
case 2:
|
|
79276
|
+
var value = new proto_clarifai_api_resources_pb.Worker;
|
|
79277
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
|
|
79278
|
+
msg.addWorkers(value);
|
|
79279
|
+
break;
|
|
79280
|
+
default:
|
|
79281
|
+
reader.skipField();
|
|
79282
|
+
break;
|
|
79283
|
+
}
|
|
79284
|
+
}
|
|
79285
|
+
return msg;
|
|
79286
|
+
};
|
|
79287
|
+
|
|
79288
|
+
|
|
79289
|
+
/**
|
|
79290
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
79291
|
+
* @return {!Uint8Array}
|
|
79292
|
+
*/
|
|
79293
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.serializeBinary = function() {
|
|
79294
|
+
var writer = new jspb.BinaryWriter();
|
|
79295
|
+
proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter(this, writer);
|
|
79296
|
+
return writer.getResultBuffer();
|
|
79297
|
+
};
|
|
79298
|
+
|
|
79299
|
+
|
|
79300
|
+
/**
|
|
79301
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
79302
|
+
* format), writing to the given BinaryWriter.
|
|
79303
|
+
* @param {!proto.clarifai.api.ReviewApproveConfig} message
|
|
79304
|
+
* @param {!jspb.BinaryWriter} writer
|
|
79305
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79306
|
+
*/
|
|
79307
|
+
proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter = function(message, writer) {
|
|
79308
|
+
var f = undefined;
|
|
79309
|
+
f = message.getTaskAssignmentsList();
|
|
79310
|
+
if (f.length > 0) {
|
|
79311
|
+
writer.writeRepeatedMessage(
|
|
79312
|
+
1,
|
|
79313
|
+
f,
|
|
79314
|
+
proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
|
|
79315
|
+
);
|
|
79316
|
+
}
|
|
79317
|
+
f = message.getWorkersList();
|
|
79318
|
+
if (f.length > 0) {
|
|
79319
|
+
writer.writeRepeatedMessage(
|
|
79320
|
+
2,
|
|
79321
|
+
f,
|
|
79322
|
+
proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter
|
|
79323
|
+
);
|
|
79324
|
+
}
|
|
79325
|
+
};
|
|
79326
|
+
|
|
79327
|
+
|
|
79328
|
+
/**
|
|
79329
|
+
* repeated TaskAssignment task_assignments = 1;
|
|
79330
|
+
* @return {!Array<!proto.clarifai.api.TaskAssignment>}
|
|
79331
|
+
*/
|
|
79332
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.getTaskAssignmentsList = function() {
|
|
79333
|
+
return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
|
|
79334
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
|
|
79335
|
+
};
|
|
79336
|
+
|
|
79337
|
+
|
|
79338
|
+
/**
|
|
79339
|
+
* @param {!Array<!proto.clarifai.api.TaskAssignment>} value
|
|
79340
|
+
* @return {!proto.clarifai.api.ReviewApproveConfig} returns this
|
|
79341
|
+
*/
|
|
79342
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.setTaskAssignmentsList = function(value) {
|
|
79343
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
79344
|
+
};
|
|
79345
|
+
|
|
79346
|
+
|
|
79347
|
+
/**
|
|
79348
|
+
* @param {!proto.clarifai.api.TaskAssignment=} opt_value
|
|
79349
|
+
* @param {number=} opt_index
|
|
79350
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
79351
|
+
*/
|
|
79352
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.addTaskAssignments = function(opt_value, opt_index) {
|
|
79353
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
|
|
79354
|
+
};
|
|
79355
|
+
|
|
79356
|
+
|
|
79357
|
+
/**
|
|
79358
|
+
* Clears the list making it empty but non-null.
|
|
79359
|
+
* @return {!proto.clarifai.api.ReviewApproveConfig} returns this
|
|
79360
|
+
*/
|
|
79361
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.clearTaskAssignmentsList = function() {
|
|
79362
|
+
return this.setTaskAssignmentsList([]);
|
|
79363
|
+
};
|
|
79364
|
+
|
|
79365
|
+
|
|
79366
|
+
/**
|
|
79367
|
+
* repeated Worker workers = 2;
|
|
79368
|
+
* @return {!Array<!proto.clarifai.api.Worker>}
|
|
79369
|
+
*/
|
|
79370
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.getWorkersList = function() {
|
|
79371
|
+
return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
|
|
79372
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
|
|
79373
|
+
};
|
|
79374
|
+
|
|
79375
|
+
|
|
79376
|
+
/**
|
|
79377
|
+
* @param {!Array<!proto.clarifai.api.Worker>} value
|
|
79378
|
+
* @return {!proto.clarifai.api.ReviewApproveConfig} returns this
|
|
79379
|
+
*/
|
|
79380
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.setWorkersList = function(value) {
|
|
79381
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
79382
|
+
};
|
|
79383
|
+
|
|
79384
|
+
|
|
79385
|
+
/**
|
|
79386
|
+
* @param {!proto.clarifai.api.Worker=} opt_value
|
|
79387
|
+
* @param {number=} opt_index
|
|
79388
|
+
* @return {!proto.clarifai.api.Worker}
|
|
79389
|
+
*/
|
|
79390
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.addWorkers = function(opt_value, opt_index) {
|
|
79391
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
|
|
79392
|
+
};
|
|
79393
|
+
|
|
79394
|
+
|
|
79395
|
+
/**
|
|
79396
|
+
* Clears the list making it empty but non-null.
|
|
79397
|
+
* @return {!proto.clarifai.api.ReviewApproveConfig} returns this
|
|
79398
|
+
*/
|
|
79399
|
+
proto.clarifai.api.ReviewApproveConfig.prototype.clearWorkersList = function() {
|
|
79400
|
+
return this.setWorkersList([]);
|
|
79401
|
+
};
|
|
79402
|
+
|
|
79403
|
+
|
|
79404
|
+
|
|
79405
|
+
/**
|
|
79406
|
+
* List of repeated fields within this message type.
|
|
79407
|
+
* @private {!Array<number>}
|
|
79408
|
+
* @const
|
|
79409
|
+
*/
|
|
79410
|
+
proto.clarifai.api.ReviewRequestChangesConfig.repeatedFields_ = [1,2];
|
|
79411
|
+
|
|
79412
|
+
|
|
79413
|
+
|
|
79414
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
79415
|
+
/**
|
|
79416
|
+
* Creates an object representation of this proto.
|
|
79417
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
79418
|
+
* Optional fields that are not set will be set to undefined.
|
|
79419
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79420
|
+
* For the list of reserved names please see:
|
|
79421
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79422
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
79423
|
+
* JSPB instance for transitional soy proto support:
|
|
79424
|
+
* http://goto/soy-param-migration
|
|
79425
|
+
* @return {!Object}
|
|
79426
|
+
*/
|
|
79427
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.toObject = function(opt_includeInstance) {
|
|
79428
|
+
return proto.clarifai.api.ReviewRequestChangesConfig.toObject(opt_includeInstance, this);
|
|
79429
|
+
};
|
|
79430
|
+
|
|
79431
|
+
|
|
79432
|
+
/**
|
|
79433
|
+
* Static version of the {@see toObject} method.
|
|
79434
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
79435
|
+
* the JSPB instance for transitional soy proto support:
|
|
79436
|
+
* http://goto/soy-param-migration
|
|
79437
|
+
* @param {!proto.clarifai.api.ReviewRequestChangesConfig} msg The msg instance to transform.
|
|
79438
|
+
* @return {!Object}
|
|
79439
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79440
|
+
*/
|
|
79441
|
+
proto.clarifai.api.ReviewRequestChangesConfig.toObject = function(includeInstance, msg) {
|
|
79442
|
+
var f, obj = {
|
|
79443
|
+
taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
|
|
79444
|
+
proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
|
|
79445
|
+
workersList: jspb.Message.toObjectList(msg.getWorkersList(),
|
|
79446
|
+
proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
|
|
79447
|
+
};
|
|
79448
|
+
|
|
79449
|
+
if (includeInstance) {
|
|
79450
|
+
obj.$jspbMessageInstance = msg;
|
|
79451
|
+
}
|
|
79452
|
+
return obj;
|
|
79453
|
+
};
|
|
79454
|
+
}
|
|
79455
|
+
|
|
79456
|
+
|
|
79457
|
+
/**
|
|
79458
|
+
* Deserializes binary data (in protobuf wire format).
|
|
79459
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
79460
|
+
* @return {!proto.clarifai.api.ReviewRequestChangesConfig}
|
|
79461
|
+
*/
|
|
79462
|
+
proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinary = function(bytes) {
|
|
79463
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
79464
|
+
var msg = new proto.clarifai.api.ReviewRequestChangesConfig;
|
|
79465
|
+
return proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader(msg, reader);
|
|
79466
|
+
};
|
|
79467
|
+
|
|
79468
|
+
|
|
79469
|
+
/**
|
|
79470
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
79471
|
+
* given reader into the given message object.
|
|
79472
|
+
* @param {!proto.clarifai.api.ReviewRequestChangesConfig} msg The message object to deserialize into.
|
|
79473
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
79474
|
+
* @return {!proto.clarifai.api.ReviewRequestChangesConfig}
|
|
79475
|
+
*/
|
|
79476
|
+
proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
79477
|
+
while (reader.nextField()) {
|
|
79478
|
+
if (reader.isEndGroup()) {
|
|
79479
|
+
break;
|
|
79480
|
+
}
|
|
79481
|
+
var field = reader.getFieldNumber();
|
|
79482
|
+
switch (field) {
|
|
79483
|
+
case 1:
|
|
79484
|
+
var value = new proto_clarifai_api_resources_pb.TaskAssignment;
|
|
79485
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
|
|
79486
|
+
msg.addTaskAssignments(value);
|
|
79487
|
+
break;
|
|
79488
|
+
case 2:
|
|
79489
|
+
var value = new proto_clarifai_api_resources_pb.Worker;
|
|
79490
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
|
|
79491
|
+
msg.addWorkers(value);
|
|
79492
|
+
break;
|
|
79493
|
+
default:
|
|
79494
|
+
reader.skipField();
|
|
79495
|
+
break;
|
|
79496
|
+
}
|
|
79497
|
+
}
|
|
79498
|
+
return msg;
|
|
79499
|
+
};
|
|
79500
|
+
|
|
79501
|
+
|
|
79502
|
+
/**
|
|
79503
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
79504
|
+
* @return {!Uint8Array}
|
|
79505
|
+
*/
|
|
79506
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.serializeBinary = function() {
|
|
79507
|
+
var writer = new jspb.BinaryWriter();
|
|
79508
|
+
proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter(this, writer);
|
|
79509
|
+
return writer.getResultBuffer();
|
|
79510
|
+
};
|
|
79511
|
+
|
|
79512
|
+
|
|
79513
|
+
/**
|
|
79514
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
79515
|
+
* format), writing to the given BinaryWriter.
|
|
79516
|
+
* @param {!proto.clarifai.api.ReviewRequestChangesConfig} message
|
|
79517
|
+
* @param {!jspb.BinaryWriter} writer
|
|
79518
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79519
|
+
*/
|
|
79520
|
+
proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter = function(message, writer) {
|
|
79521
|
+
var f = undefined;
|
|
79522
|
+
f = message.getTaskAssignmentsList();
|
|
79523
|
+
if (f.length > 0) {
|
|
79524
|
+
writer.writeRepeatedMessage(
|
|
79525
|
+
1,
|
|
79526
|
+
f,
|
|
79527
|
+
proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
|
|
79528
|
+
);
|
|
79529
|
+
}
|
|
79530
|
+
f = message.getWorkersList();
|
|
79531
|
+
if (f.length > 0) {
|
|
79532
|
+
writer.writeRepeatedMessage(
|
|
79533
|
+
2,
|
|
79534
|
+
f,
|
|
79535
|
+
proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter
|
|
79536
|
+
);
|
|
79537
|
+
}
|
|
79538
|
+
};
|
|
79539
|
+
|
|
79540
|
+
|
|
79541
|
+
/**
|
|
79542
|
+
* repeated TaskAssignment task_assignments = 1;
|
|
79543
|
+
* @return {!Array<!proto.clarifai.api.TaskAssignment>}
|
|
79544
|
+
*/
|
|
79545
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.getTaskAssignmentsList = function() {
|
|
79546
|
+
return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
|
|
79547
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
|
|
79548
|
+
};
|
|
79549
|
+
|
|
79550
|
+
|
|
79551
|
+
/**
|
|
79552
|
+
* @param {!Array<!proto.clarifai.api.TaskAssignment>} value
|
|
79553
|
+
* @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
|
|
79554
|
+
*/
|
|
79555
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.setTaskAssignmentsList = function(value) {
|
|
79556
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
79557
|
+
};
|
|
79558
|
+
|
|
79559
|
+
|
|
79560
|
+
/**
|
|
79561
|
+
* @param {!proto.clarifai.api.TaskAssignment=} opt_value
|
|
79562
|
+
* @param {number=} opt_index
|
|
79563
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
79564
|
+
*/
|
|
79565
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.addTaskAssignments = function(opt_value, opt_index) {
|
|
79566
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
|
|
79567
|
+
};
|
|
79568
|
+
|
|
79569
|
+
|
|
79570
|
+
/**
|
|
79571
|
+
* Clears the list making it empty but non-null.
|
|
79572
|
+
* @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
|
|
79573
|
+
*/
|
|
79574
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.clearTaskAssignmentsList = function() {
|
|
79575
|
+
return this.setTaskAssignmentsList([]);
|
|
79576
|
+
};
|
|
79577
|
+
|
|
79578
|
+
|
|
79579
|
+
/**
|
|
79580
|
+
* repeated Worker workers = 2;
|
|
79581
|
+
* @return {!Array<!proto.clarifai.api.Worker>}
|
|
79582
|
+
*/
|
|
79583
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.getWorkersList = function() {
|
|
79584
|
+
return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
|
|
79585
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
|
|
79586
|
+
};
|
|
79587
|
+
|
|
79588
|
+
|
|
79589
|
+
/**
|
|
79590
|
+
* @param {!Array<!proto.clarifai.api.Worker>} value
|
|
79591
|
+
* @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
|
|
79592
|
+
*/
|
|
79593
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.setWorkersList = function(value) {
|
|
79594
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
79595
|
+
};
|
|
79596
|
+
|
|
79597
|
+
|
|
79598
|
+
/**
|
|
79599
|
+
* @param {!proto.clarifai.api.Worker=} opt_value
|
|
79600
|
+
* @param {number=} opt_index
|
|
79601
|
+
* @return {!proto.clarifai.api.Worker}
|
|
79602
|
+
*/
|
|
79603
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.addWorkers = function(opt_value, opt_index) {
|
|
79604
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
|
|
79605
|
+
};
|
|
79606
|
+
|
|
79607
|
+
|
|
79608
|
+
/**
|
|
79609
|
+
* Clears the list making it empty but non-null.
|
|
79610
|
+
* @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
|
|
79611
|
+
*/
|
|
79612
|
+
proto.clarifai.api.ReviewRequestChangesConfig.prototype.clearWorkersList = function() {
|
|
79613
|
+
return this.setWorkersList([]);
|
|
79614
|
+
};
|
|
79615
|
+
|
|
79616
|
+
|
|
79617
|
+
|
|
79618
|
+
/**
|
|
79619
|
+
* List of repeated fields within this message type.
|
|
79620
|
+
* @private {!Array<number>}
|
|
79621
|
+
* @const
|
|
79622
|
+
*/
|
|
79623
|
+
proto.clarifai.api.ReviewRejectConfig.repeatedFields_ = [1,2];
|
|
79624
|
+
|
|
79625
|
+
|
|
79626
|
+
|
|
79627
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
79628
|
+
/**
|
|
79629
|
+
* Creates an object representation of this proto.
|
|
79630
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
79631
|
+
* Optional fields that are not set will be set to undefined.
|
|
79632
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79633
|
+
* For the list of reserved names please see:
|
|
79634
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79635
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
79636
|
+
* JSPB instance for transitional soy proto support:
|
|
79637
|
+
* http://goto/soy-param-migration
|
|
79638
|
+
* @return {!Object}
|
|
79639
|
+
*/
|
|
79640
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.toObject = function(opt_includeInstance) {
|
|
79641
|
+
return proto.clarifai.api.ReviewRejectConfig.toObject(opt_includeInstance, this);
|
|
79642
|
+
};
|
|
79643
|
+
|
|
79644
|
+
|
|
79645
|
+
/**
|
|
79646
|
+
* Static version of the {@see toObject} method.
|
|
79647
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
79648
|
+
* the JSPB instance for transitional soy proto support:
|
|
79649
|
+
* http://goto/soy-param-migration
|
|
79650
|
+
* @param {!proto.clarifai.api.ReviewRejectConfig} msg The msg instance to transform.
|
|
79651
|
+
* @return {!Object}
|
|
79652
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79653
|
+
*/
|
|
79654
|
+
proto.clarifai.api.ReviewRejectConfig.toObject = function(includeInstance, msg) {
|
|
79655
|
+
var f, obj = {
|
|
79656
|
+
taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
|
|
79657
|
+
proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
|
|
79658
|
+
workersList: jspb.Message.toObjectList(msg.getWorkersList(),
|
|
79659
|
+
proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
|
|
79660
|
+
};
|
|
79661
|
+
|
|
79662
|
+
if (includeInstance) {
|
|
79663
|
+
obj.$jspbMessageInstance = msg;
|
|
79664
|
+
}
|
|
79665
|
+
return obj;
|
|
79666
|
+
};
|
|
79667
|
+
}
|
|
79668
|
+
|
|
79669
|
+
|
|
79670
|
+
/**
|
|
79671
|
+
* Deserializes binary data (in protobuf wire format).
|
|
79672
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
79673
|
+
* @return {!proto.clarifai.api.ReviewRejectConfig}
|
|
79674
|
+
*/
|
|
79675
|
+
proto.clarifai.api.ReviewRejectConfig.deserializeBinary = function(bytes) {
|
|
79676
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
79677
|
+
var msg = new proto.clarifai.api.ReviewRejectConfig;
|
|
79678
|
+
return proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader(msg, reader);
|
|
79679
|
+
};
|
|
79680
|
+
|
|
79681
|
+
|
|
79682
|
+
/**
|
|
79683
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
79684
|
+
* given reader into the given message object.
|
|
79685
|
+
* @param {!proto.clarifai.api.ReviewRejectConfig} msg The message object to deserialize into.
|
|
79686
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
79687
|
+
* @return {!proto.clarifai.api.ReviewRejectConfig}
|
|
79688
|
+
*/
|
|
79689
|
+
proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
79690
|
+
while (reader.nextField()) {
|
|
79691
|
+
if (reader.isEndGroup()) {
|
|
79692
|
+
break;
|
|
79693
|
+
}
|
|
79694
|
+
var field = reader.getFieldNumber();
|
|
79695
|
+
switch (field) {
|
|
79696
|
+
case 1:
|
|
79697
|
+
var value = new proto_clarifai_api_resources_pb.TaskAssignment;
|
|
79698
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
|
|
79699
|
+
msg.addTaskAssignments(value);
|
|
79700
|
+
break;
|
|
79701
|
+
case 2:
|
|
79702
|
+
var value = new proto_clarifai_api_resources_pb.Worker;
|
|
79703
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
|
|
79704
|
+
msg.addWorkers(value);
|
|
79705
|
+
break;
|
|
79706
|
+
default:
|
|
79707
|
+
reader.skipField();
|
|
79708
|
+
break;
|
|
79709
|
+
}
|
|
79710
|
+
}
|
|
79711
|
+
return msg;
|
|
79712
|
+
};
|
|
79713
|
+
|
|
79714
|
+
|
|
79715
|
+
/**
|
|
79716
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
79717
|
+
* @return {!Uint8Array}
|
|
79718
|
+
*/
|
|
79719
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.serializeBinary = function() {
|
|
79720
|
+
var writer = new jspb.BinaryWriter();
|
|
79721
|
+
proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter(this, writer);
|
|
79722
|
+
return writer.getResultBuffer();
|
|
79723
|
+
};
|
|
79724
|
+
|
|
79725
|
+
|
|
79726
|
+
/**
|
|
79727
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
79728
|
+
* format), writing to the given BinaryWriter.
|
|
79729
|
+
* @param {!proto.clarifai.api.ReviewRejectConfig} message
|
|
79730
|
+
* @param {!jspb.BinaryWriter} writer
|
|
79731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
79732
|
+
*/
|
|
79733
|
+
proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter = function(message, writer) {
|
|
79734
|
+
var f = undefined;
|
|
79735
|
+
f = message.getTaskAssignmentsList();
|
|
79736
|
+
if (f.length > 0) {
|
|
79737
|
+
writer.writeRepeatedMessage(
|
|
79738
|
+
1,
|
|
79739
|
+
f,
|
|
79740
|
+
proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
|
|
79741
|
+
);
|
|
79742
|
+
}
|
|
79743
|
+
f = message.getWorkersList();
|
|
79744
|
+
if (f.length > 0) {
|
|
79745
|
+
writer.writeRepeatedMessage(
|
|
79746
|
+
2,
|
|
79747
|
+
f,
|
|
79748
|
+
proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter
|
|
79749
|
+
);
|
|
79750
|
+
}
|
|
79751
|
+
};
|
|
79752
|
+
|
|
79753
|
+
|
|
79754
|
+
/**
|
|
79755
|
+
* repeated TaskAssignment task_assignments = 1;
|
|
79756
|
+
* @return {!Array<!proto.clarifai.api.TaskAssignment>}
|
|
79757
|
+
*/
|
|
79758
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.getTaskAssignmentsList = function() {
|
|
79759
|
+
return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
|
|
79760
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
|
|
79761
|
+
};
|
|
79762
|
+
|
|
79763
|
+
|
|
79764
|
+
/**
|
|
79765
|
+
* @param {!Array<!proto.clarifai.api.TaskAssignment>} value
|
|
79766
|
+
* @return {!proto.clarifai.api.ReviewRejectConfig} returns this
|
|
79767
|
+
*/
|
|
79768
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.setTaskAssignmentsList = function(value) {
|
|
79769
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
79770
|
+
};
|
|
79771
|
+
|
|
79772
|
+
|
|
79773
|
+
/**
|
|
79774
|
+
* @param {!proto.clarifai.api.TaskAssignment=} opt_value
|
|
79775
|
+
* @param {number=} opt_index
|
|
79776
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
79777
|
+
*/
|
|
79778
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.addTaskAssignments = function(opt_value, opt_index) {
|
|
79779
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
|
|
79780
|
+
};
|
|
79781
|
+
|
|
79782
|
+
|
|
79783
|
+
/**
|
|
79784
|
+
* Clears the list making it empty but non-null.
|
|
79785
|
+
* @return {!proto.clarifai.api.ReviewRejectConfig} returns this
|
|
79786
|
+
*/
|
|
79787
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.clearTaskAssignmentsList = function() {
|
|
79788
|
+
return this.setTaskAssignmentsList([]);
|
|
79789
|
+
};
|
|
79790
|
+
|
|
79791
|
+
|
|
79792
|
+
/**
|
|
79793
|
+
* repeated Worker workers = 2;
|
|
79794
|
+
* @return {!Array<!proto.clarifai.api.Worker>}
|
|
79795
|
+
*/
|
|
79796
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.getWorkersList = function() {
|
|
79797
|
+
return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
|
|
79798
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
|
|
79799
|
+
};
|
|
79800
|
+
|
|
79801
|
+
|
|
79802
|
+
/**
|
|
79803
|
+
* @param {!Array<!proto.clarifai.api.Worker>} value
|
|
79804
|
+
* @return {!proto.clarifai.api.ReviewRejectConfig} returns this
|
|
79805
|
+
*/
|
|
79806
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.setWorkersList = function(value) {
|
|
79807
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
79808
|
+
};
|
|
79809
|
+
|
|
79810
|
+
|
|
79811
|
+
/**
|
|
79812
|
+
* @param {!proto.clarifai.api.Worker=} opt_value
|
|
79813
|
+
* @param {number=} opt_index
|
|
79814
|
+
* @return {!proto.clarifai.api.Worker}
|
|
79815
|
+
*/
|
|
79816
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.addWorkers = function(opt_value, opt_index) {
|
|
79817
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
|
|
79818
|
+
};
|
|
79819
|
+
|
|
79820
|
+
|
|
79821
|
+
/**
|
|
79822
|
+
* Clears the list making it empty but non-null.
|
|
79823
|
+
* @return {!proto.clarifai.api.ReviewRejectConfig} returns this
|
|
79824
|
+
*/
|
|
79825
|
+
proto.clarifai.api.ReviewRejectConfig.prototype.clearWorkersList = function() {
|
|
79826
|
+
return this.setWorkersList([]);
|
|
79827
|
+
};
|
|
79828
|
+
|
|
79829
|
+
|
|
79830
|
+
|
|
79217
79831
|
/**
|
|
79218
79832
|
* List of repeated fields within this message type.
|
|
79219
79833
|
* @private {!Array<number>}
|
|
@@ -84813,9 +85427,10 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.toObject = function(includeInsta
|
|
|
84813
85427
|
var f, obj = {
|
|
84814
85428
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
84815
85429
|
runnerId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
84816
|
-
|
|
85430
|
+
runnerItemId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
84817
85431
|
runnerItemOutputsList: jspb.Message.toObjectList(msg.getRunnerItemOutputsList(),
|
|
84818
|
-
proto.clarifai.api.RunnerItemOutput.toObject, includeInstance)
|
|
85432
|
+
proto.clarifai.api.RunnerItemOutput.toObject, includeInstance),
|
|
85433
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
|
|
84819
85434
|
};
|
|
84820
85435
|
|
|
84821
85436
|
if (includeInstance) {
|
|
@@ -84863,13 +85478,18 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.deserializeBinaryFromReader = fu
|
|
|
84863
85478
|
break;
|
|
84864
85479
|
case 3:
|
|
84865
85480
|
var value = /** @type {string} */ (reader.readString());
|
|
84866
|
-
msg.
|
|
85481
|
+
msg.setRunnerItemId(value);
|
|
84867
85482
|
break;
|
|
84868
85483
|
case 4:
|
|
84869
85484
|
var value = new proto.clarifai.api.RunnerItemOutput;
|
|
84870
85485
|
reader.readMessage(value,proto.clarifai.api.RunnerItemOutput.deserializeBinaryFromReader);
|
|
84871
85486
|
msg.addRunnerItemOutputs(value);
|
|
84872
85487
|
break;
|
|
85488
|
+
case 5:
|
|
85489
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
85490
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
85491
|
+
msg.setStatus(value);
|
|
85492
|
+
break;
|
|
84873
85493
|
default:
|
|
84874
85494
|
reader.skipField();
|
|
84875
85495
|
break;
|
|
@@ -84914,7 +85534,7 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.serializeBinaryToWriter = functi
|
|
|
84914
85534
|
f
|
|
84915
85535
|
);
|
|
84916
85536
|
}
|
|
84917
|
-
f = message.
|
|
85537
|
+
f = message.getRunnerItemId();
|
|
84918
85538
|
if (f.length > 0) {
|
|
84919
85539
|
writer.writeString(
|
|
84920
85540
|
3,
|
|
@@ -84929,6 +85549,14 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.serializeBinaryToWriter = functi
|
|
|
84929
85549
|
proto.clarifai.api.RunnerItemOutput.serializeBinaryToWriter
|
|
84930
85550
|
);
|
|
84931
85551
|
}
|
|
85552
|
+
f = message.getStatus();
|
|
85553
|
+
if (f != null) {
|
|
85554
|
+
writer.writeMessage(
|
|
85555
|
+
5,
|
|
85556
|
+
f,
|
|
85557
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
85558
|
+
);
|
|
85559
|
+
}
|
|
84932
85560
|
};
|
|
84933
85561
|
|
|
84934
85562
|
|
|
@@ -84988,10 +85616,10 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRunnerId = function
|
|
|
84988
85616
|
|
|
84989
85617
|
|
|
84990
85618
|
/**
|
|
84991
|
-
* optional string
|
|
85619
|
+
* optional string runner_item_id = 3;
|
|
84992
85620
|
* @return {string}
|
|
84993
85621
|
*/
|
|
84994
|
-
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.
|
|
85622
|
+
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getRunnerItemId = function() {
|
|
84995
85623
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
84996
85624
|
};
|
|
84997
85625
|
|
|
@@ -85000,7 +85628,7 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getItemId = function()
|
|
|
85000
85628
|
* @param {string} value
|
|
85001
85629
|
* @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this
|
|
85002
85630
|
*/
|
|
85003
|
-
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.
|
|
85631
|
+
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRunnerItemId = function(value) {
|
|
85004
85632
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
85005
85633
|
};
|
|
85006
85634
|
|
|
@@ -85043,6 +85671,43 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.clearRunnerItemOutputs
|
|
|
85043
85671
|
};
|
|
85044
85672
|
|
|
85045
85673
|
|
|
85674
|
+
/**
|
|
85675
|
+
* optional status.Status status = 5;
|
|
85676
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
85677
|
+
*/
|
|
85678
|
+
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getStatus = function() {
|
|
85679
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
85680
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5));
|
|
85681
|
+
};
|
|
85682
|
+
|
|
85683
|
+
|
|
85684
|
+
/**
|
|
85685
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
85686
|
+
* @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this
|
|
85687
|
+
*/
|
|
85688
|
+
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setStatus = function(value) {
|
|
85689
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
85690
|
+
};
|
|
85691
|
+
|
|
85692
|
+
|
|
85693
|
+
/**
|
|
85694
|
+
* Clears the message field making it undefined.
|
|
85695
|
+
* @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this
|
|
85696
|
+
*/
|
|
85697
|
+
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.clearStatus = function() {
|
|
85698
|
+
return this.setStatus(undefined);
|
|
85699
|
+
};
|
|
85700
|
+
|
|
85701
|
+
|
|
85702
|
+
/**
|
|
85703
|
+
* Returns whether this field is set.
|
|
85704
|
+
* @return {boolean}
|
|
85705
|
+
*/
|
|
85706
|
+
proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.hasStatus = function() {
|
|
85707
|
+
return jspb.Message.getField(this, 5) != null;
|
|
85708
|
+
};
|
|
85709
|
+
|
|
85710
|
+
|
|
85046
85711
|
|
|
85047
85712
|
/**
|
|
85048
85713
|
* List of repeated fields within this message type.
|
|
@@ -85083,7 +85748,7 @@ proto.clarifai.api.MultiRunnerItemResponse.prototype.toObject = function(opt_inc
|
|
|
85083
85748
|
proto.clarifai.api.MultiRunnerItemResponse.toObject = function(includeInstance, msg) {
|
|
85084
85749
|
var f, obj = {
|
|
85085
85750
|
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
85086
|
-
|
|
85751
|
+
runnerItemsList: jspb.Message.toObjectList(msg.getRunnerItemsList(),
|
|
85087
85752
|
proto.clarifai.api.RunnerItem.toObject, includeInstance)
|
|
85088
85753
|
};
|
|
85089
85754
|
|
|
@@ -85129,7 +85794,7 @@ proto.clarifai.api.MultiRunnerItemResponse.deserializeBinaryFromReader = functio
|
|
|
85129
85794
|
case 2:
|
|
85130
85795
|
var value = new proto.clarifai.api.RunnerItem;
|
|
85131
85796
|
reader.readMessage(value,proto.clarifai.api.RunnerItem.deserializeBinaryFromReader);
|
|
85132
|
-
msg.
|
|
85797
|
+
msg.addRunnerItems(value);
|
|
85133
85798
|
break;
|
|
85134
85799
|
default:
|
|
85135
85800
|
reader.skipField();
|
|
@@ -85168,7 +85833,7 @@ proto.clarifai.api.MultiRunnerItemResponse.serializeBinaryToWriter = function(me
|
|
|
85168
85833
|
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
85169
85834
|
);
|
|
85170
85835
|
}
|
|
85171
|
-
f = message.
|
|
85836
|
+
f = message.getRunnerItemsList();
|
|
85172
85837
|
if (f.length > 0) {
|
|
85173
85838
|
writer.writeRepeatedMessage(
|
|
85174
85839
|
2,
|
|
@@ -85217,10 +85882,10 @@ proto.clarifai.api.MultiRunnerItemResponse.prototype.hasStatus = function() {
|
|
|
85217
85882
|
|
|
85218
85883
|
|
|
85219
85884
|
/**
|
|
85220
|
-
* repeated RunnerItem
|
|
85885
|
+
* repeated RunnerItem runner_items = 2;
|
|
85221
85886
|
* @return {!Array<!proto.clarifai.api.RunnerItem>}
|
|
85222
85887
|
*/
|
|
85223
|
-
proto.clarifai.api.MultiRunnerItemResponse.prototype.
|
|
85888
|
+
proto.clarifai.api.MultiRunnerItemResponse.prototype.getRunnerItemsList = function() {
|
|
85224
85889
|
return /** @type{!Array<!proto.clarifai.api.RunnerItem>} */ (
|
|
85225
85890
|
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.RunnerItem, 2));
|
|
85226
85891
|
};
|
|
@@ -85230,7 +85895,7 @@ proto.clarifai.api.MultiRunnerItemResponse.prototype.getItemsList = function() {
|
|
|
85230
85895
|
* @param {!Array<!proto.clarifai.api.RunnerItem>} value
|
|
85231
85896
|
* @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this
|
|
85232
85897
|
*/
|
|
85233
|
-
proto.clarifai.api.MultiRunnerItemResponse.prototype.
|
|
85898
|
+
proto.clarifai.api.MultiRunnerItemResponse.prototype.setRunnerItemsList = function(value) {
|
|
85234
85899
|
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
85235
85900
|
};
|
|
85236
85901
|
|
|
@@ -85240,7 +85905,7 @@ proto.clarifai.api.MultiRunnerItemResponse.prototype.setItemsList = function(val
|
|
|
85240
85905
|
* @param {number=} opt_index
|
|
85241
85906
|
* @return {!proto.clarifai.api.RunnerItem}
|
|
85242
85907
|
*/
|
|
85243
|
-
proto.clarifai.api.MultiRunnerItemResponse.prototype.
|
|
85908
|
+
proto.clarifai.api.MultiRunnerItemResponse.prototype.addRunnerItems = function(opt_value, opt_index) {
|
|
85244
85909
|
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.RunnerItem, opt_index);
|
|
85245
85910
|
};
|
|
85246
85911
|
|
|
@@ -85249,12 +85914,37 @@ proto.clarifai.api.MultiRunnerItemResponse.prototype.addItems = function(opt_val
|
|
|
85249
85914
|
* Clears the list making it empty but non-null.
|
|
85250
85915
|
* @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this
|
|
85251
85916
|
*/
|
|
85252
|
-
proto.clarifai.api.MultiRunnerItemResponse.prototype.
|
|
85253
|
-
return this.
|
|
85917
|
+
proto.clarifai.api.MultiRunnerItemResponse.prototype.clearRunnerItemsList = function() {
|
|
85918
|
+
return this.setRunnerItemsList([]);
|
|
85254
85919
|
};
|
|
85255
85920
|
|
|
85256
85921
|
|
|
85257
85922
|
|
|
85923
|
+
/**
|
|
85924
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
85925
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
85926
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
85927
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
85928
|
+
* @private {!Array<!Array<number>>}
|
|
85929
|
+
* @const
|
|
85930
|
+
*/
|
|
85931
|
+
proto.clarifai.api.RunnerItem.oneofGroups_ = [[4]];
|
|
85932
|
+
|
|
85933
|
+
/**
|
|
85934
|
+
* @enum {number}
|
|
85935
|
+
*/
|
|
85936
|
+
proto.clarifai.api.RunnerItem.RequestCase = {
|
|
85937
|
+
REQUEST_NOT_SET: 0,
|
|
85938
|
+
POST_MODEL_OUTPUTS_REQUEST: 4
|
|
85939
|
+
};
|
|
85940
|
+
|
|
85941
|
+
/**
|
|
85942
|
+
* @return {proto.clarifai.api.RunnerItem.RequestCase}
|
|
85943
|
+
*/
|
|
85944
|
+
proto.clarifai.api.RunnerItem.prototype.getRequestCase = function() {
|
|
85945
|
+
return /** @type {proto.clarifai.api.RunnerItem.RequestCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.RunnerItem.oneofGroups_[0]));
|
|
85946
|
+
};
|
|
85947
|
+
|
|
85258
85948
|
|
|
85259
85949
|
|
|
85260
85950
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -85288,6 +85978,7 @@ proto.clarifai.api.RunnerItem.toObject = function(includeInstance, msg) {
|
|
|
85288
85978
|
var f, obj = {
|
|
85289
85979
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
85290
85980
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
85981
|
+
processingInfo: (f = msg.getProcessingInfo()) && proto_clarifai_api_resources_pb.ProcessingInfo.toObject(includeInstance, f),
|
|
85291
85982
|
postModelOutputsRequest: (f = msg.getPostModelOutputsRequest()) && proto.clarifai.api.PostModelOutputsRequest.toObject(includeInstance, f)
|
|
85292
85983
|
};
|
|
85293
85984
|
|
|
@@ -85334,6 +86025,11 @@ proto.clarifai.api.RunnerItem.deserializeBinaryFromReader = function(msg, reader
|
|
|
85334
86025
|
msg.setDescription(value);
|
|
85335
86026
|
break;
|
|
85336
86027
|
case 3:
|
|
86028
|
+
var value = new proto_clarifai_api_resources_pb.ProcessingInfo;
|
|
86029
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.ProcessingInfo.deserializeBinaryFromReader);
|
|
86030
|
+
msg.setProcessingInfo(value);
|
|
86031
|
+
break;
|
|
86032
|
+
case 4:
|
|
85337
86033
|
var value = new proto.clarifai.api.PostModelOutputsRequest;
|
|
85338
86034
|
reader.readMessage(value,proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader);
|
|
85339
86035
|
msg.setPostModelOutputsRequest(value);
|
|
@@ -85381,11 +86077,19 @@ proto.clarifai.api.RunnerItem.serializeBinaryToWriter = function(message, writer
|
|
|
85381
86077
|
f
|
|
85382
86078
|
);
|
|
85383
86079
|
}
|
|
85384
|
-
f = message.
|
|
86080
|
+
f = message.getProcessingInfo();
|
|
85385
86081
|
if (f != null) {
|
|
85386
86082
|
writer.writeMessage(
|
|
85387
86083
|
3,
|
|
85388
86084
|
f,
|
|
86085
|
+
proto_clarifai_api_resources_pb.ProcessingInfo.serializeBinaryToWriter
|
|
86086
|
+
);
|
|
86087
|
+
}
|
|
86088
|
+
f = message.getPostModelOutputsRequest();
|
|
86089
|
+
if (f != null) {
|
|
86090
|
+
writer.writeMessage(
|
|
86091
|
+
4,
|
|
86092
|
+
f,
|
|
85389
86093
|
proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter
|
|
85390
86094
|
);
|
|
85391
86095
|
}
|
|
@@ -85429,12 +86133,49 @@ proto.clarifai.api.RunnerItem.prototype.setDescription = function(value) {
|
|
|
85429
86133
|
|
|
85430
86134
|
|
|
85431
86135
|
/**
|
|
85432
|
-
* optional
|
|
86136
|
+
* optional ProcessingInfo processing_info = 3;
|
|
86137
|
+
* @return {?proto.clarifai.api.ProcessingInfo}
|
|
86138
|
+
*/
|
|
86139
|
+
proto.clarifai.api.RunnerItem.prototype.getProcessingInfo = function() {
|
|
86140
|
+
return /** @type{?proto.clarifai.api.ProcessingInfo} */ (
|
|
86141
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ProcessingInfo, 3));
|
|
86142
|
+
};
|
|
86143
|
+
|
|
86144
|
+
|
|
86145
|
+
/**
|
|
86146
|
+
* @param {?proto.clarifai.api.ProcessingInfo|undefined} value
|
|
86147
|
+
* @return {!proto.clarifai.api.RunnerItem} returns this
|
|
86148
|
+
*/
|
|
86149
|
+
proto.clarifai.api.RunnerItem.prototype.setProcessingInfo = function(value) {
|
|
86150
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
86151
|
+
};
|
|
86152
|
+
|
|
86153
|
+
|
|
86154
|
+
/**
|
|
86155
|
+
* Clears the message field making it undefined.
|
|
86156
|
+
* @return {!proto.clarifai.api.RunnerItem} returns this
|
|
86157
|
+
*/
|
|
86158
|
+
proto.clarifai.api.RunnerItem.prototype.clearProcessingInfo = function() {
|
|
86159
|
+
return this.setProcessingInfo(undefined);
|
|
86160
|
+
};
|
|
86161
|
+
|
|
86162
|
+
|
|
86163
|
+
/**
|
|
86164
|
+
* Returns whether this field is set.
|
|
86165
|
+
* @return {boolean}
|
|
86166
|
+
*/
|
|
86167
|
+
proto.clarifai.api.RunnerItem.prototype.hasProcessingInfo = function() {
|
|
86168
|
+
return jspb.Message.getField(this, 3) != null;
|
|
86169
|
+
};
|
|
86170
|
+
|
|
86171
|
+
|
|
86172
|
+
/**
|
|
86173
|
+
* optional PostModelOutputsRequest post_model_outputs_request = 4;
|
|
85433
86174
|
* @return {?proto.clarifai.api.PostModelOutputsRequest}
|
|
85434
86175
|
*/
|
|
85435
86176
|
proto.clarifai.api.RunnerItem.prototype.getPostModelOutputsRequest = function() {
|
|
85436
86177
|
return /** @type{?proto.clarifai.api.PostModelOutputsRequest} */ (
|
|
85437
|
-
jspb.Message.getWrapperField(this, proto.clarifai.api.PostModelOutputsRequest,
|
|
86178
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.PostModelOutputsRequest, 4));
|
|
85438
86179
|
};
|
|
85439
86180
|
|
|
85440
86181
|
|
|
@@ -85443,7 +86184,7 @@ proto.clarifai.api.RunnerItem.prototype.getPostModelOutputsRequest = function()
|
|
|
85443
86184
|
* @return {!proto.clarifai.api.RunnerItem} returns this
|
|
85444
86185
|
*/
|
|
85445
86186
|
proto.clarifai.api.RunnerItem.prototype.setPostModelOutputsRequest = function(value) {
|
|
85446
|
-
return jspb.Message.
|
|
86187
|
+
return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.RunnerItem.oneofGroups_[0], value);
|
|
85447
86188
|
};
|
|
85448
86189
|
|
|
85449
86190
|
|
|
@@ -85461,11 +86202,36 @@ proto.clarifai.api.RunnerItem.prototype.clearPostModelOutputsRequest = function(
|
|
|
85461
86202
|
* @return {boolean}
|
|
85462
86203
|
*/
|
|
85463
86204
|
proto.clarifai.api.RunnerItem.prototype.hasPostModelOutputsRequest = function() {
|
|
85464
|
-
return jspb.Message.getField(this,
|
|
86205
|
+
return jspb.Message.getField(this, 4) != null;
|
|
85465
86206
|
};
|
|
85466
86207
|
|
|
85467
86208
|
|
|
85468
86209
|
|
|
86210
|
+
/**
|
|
86211
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
86212
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
86213
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
86214
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
86215
|
+
* @private {!Array<!Array<number>>}
|
|
86216
|
+
* @const
|
|
86217
|
+
*/
|
|
86218
|
+
proto.clarifai.api.RunnerItemOutput.oneofGroups_ = [[1]];
|
|
86219
|
+
|
|
86220
|
+
/**
|
|
86221
|
+
* @enum {number}
|
|
86222
|
+
*/
|
|
86223
|
+
proto.clarifai.api.RunnerItemOutput.ResponseCase = {
|
|
86224
|
+
RESPONSE_NOT_SET: 0,
|
|
86225
|
+
MULTI_OUTPUT_RESPONSE: 1
|
|
86226
|
+
};
|
|
86227
|
+
|
|
86228
|
+
/**
|
|
86229
|
+
* @return {proto.clarifai.api.RunnerItemOutput.ResponseCase}
|
|
86230
|
+
*/
|
|
86231
|
+
proto.clarifai.api.RunnerItemOutput.prototype.getResponseCase = function() {
|
|
86232
|
+
return /** @type {proto.clarifai.api.RunnerItemOutput.ResponseCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.RunnerItemOutput.oneofGroups_[0]));
|
|
86233
|
+
};
|
|
86234
|
+
|
|
85469
86235
|
|
|
85470
86236
|
|
|
85471
86237
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -85594,7 +86360,7 @@ proto.clarifai.api.RunnerItemOutput.prototype.getMultiOutputResponse = function(
|
|
|
85594
86360
|
* @return {!proto.clarifai.api.RunnerItemOutput} returns this
|
|
85595
86361
|
*/
|
|
85596
86362
|
proto.clarifai.api.RunnerItemOutput.prototype.setMultiOutputResponse = function(value) {
|
|
85597
|
-
return jspb.Message.
|
|
86363
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.RunnerItemOutput.oneofGroups_[0], value);
|
|
85598
86364
|
};
|
|
85599
86365
|
|
|
85600
86366
|
|
|
@@ -86330,7 +87096,8 @@ proto.clarifai.api.PutTaskAssignmentsRequestAction = {
|
|
|
86330
87096
|
LABEL_SUBMIT: 2,
|
|
86331
87097
|
REVIEW_START: 10,
|
|
86332
87098
|
REVIEW_APPROVE: 11,
|
|
86333
|
-
REVIEW_REQUEST_CHANGES: 12
|
|
87099
|
+
REVIEW_REQUEST_CHANGES: 12,
|
|
87100
|
+
REVIEW_REJECT: 13
|
|
86334
87101
|
};
|
|
86335
87102
|
|
|
86336
87103
|
goog.object.extend(exports, proto.clarifai.api);
|