clarifai-web-grpc 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -9
- package/README.md +15 -18
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +1644 -34
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1034 -48
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -21
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/resources_pb.js +1644 -34
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1034 -48
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -21
- package/dist/esm/proto/clarifai/api/status/status_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +6 -15
- package/package.json +2 -2
- package/package.json-E +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +251 -6
- package/proto/clarifai/api/resources_pb.js +2246 -230
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +36 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +183 -0
- package/proto/clarifai/api/service_pb.d.ts +150 -8
- package/proto/clarifai/api/service_pb.js +1278 -62
- package/proto/clarifai/api/status/status_code_pb.d.ts +2 -6
- package/proto/clarifai/api/status/status_code_pb.js +9 -13
- package/proto/clarifai/api/status/status_pb.js +7 -7
- package/proto/clarifai/api/utils/extensions_pb.js +7 -7
- package/proto/clarifai/api/utils/matrix_pb.js +7 -7
- package/proto/clarifai/api/utils/test_proto_pb.js +7 -7
- package/proto/clarifai/auth/scope/scope_pb.js +7 -7
- package/proto/clarifai/auth/types/types_pb.js +7 -7
- package/proto/clarifai/auth/util/extension_pb.js +7 -7
|
@@ -88,6 +88,7 @@ goog.exportSymbol('proto.clarifai.api.GetInputCountRequest', null, global);
|
|
|
88
88
|
goog.exportSymbol('proto.clarifai.api.GetInputRequest', null, global);
|
|
89
89
|
goog.exportSymbol('proto.clarifai.api.GetInputSamplesRequest', null, global);
|
|
90
90
|
goog.exportSymbol('proto.clarifai.api.GetInputsAddJobRequest', null, global);
|
|
91
|
+
goog.exportSymbol('proto.clarifai.api.GetInputsExtractionJobRequest', null, global);
|
|
91
92
|
goog.exportSymbol('proto.clarifai.api.GetInstalledModuleVersionRequest', null, global);
|
|
92
93
|
goog.exportSymbol('proto.clarifai.api.GetKeyRequest', null, global);
|
|
93
94
|
goog.exportSymbol('proto.clarifai.api.GetLabelOrderRequest', null, global);
|
|
@@ -125,6 +126,7 @@ goog.exportSymbol('proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest', n
|
|
|
125
126
|
goog.exportSymbol('proto.clarifai.api.ListDatasetVersionsRequest', null, global);
|
|
126
127
|
goog.exportSymbol('proto.clarifai.api.ListDatasetsRequest', null, global);
|
|
127
128
|
goog.exportSymbol('proto.clarifai.api.ListInputsAddJobsRequest', null, global);
|
|
129
|
+
goog.exportSymbol('proto.clarifai.api.ListInputsExtractionJobsRequest', null, global);
|
|
128
130
|
goog.exportSymbol('proto.clarifai.api.ListInputsRequest', null, global);
|
|
129
131
|
goog.exportSymbol('proto.clarifai.api.ListInstalledModuleVersionsRequest', null, global);
|
|
130
132
|
goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global);
|
|
@@ -175,6 +177,7 @@ goog.exportSymbol('proto.clarifai.api.MultiDatasetVersionResponse', null, global
|
|
|
175
177
|
goog.exportSymbol('proto.clarifai.api.MultiInputAnnotationResponse', null, global);
|
|
176
178
|
goog.exportSymbol('proto.clarifai.api.MultiInputResponse', null, global);
|
|
177
179
|
goog.exportSymbol('proto.clarifai.api.MultiInputsAddJobResponse', null, global);
|
|
180
|
+
goog.exportSymbol('proto.clarifai.api.MultiInputsExtractionJobResponse', null, global);
|
|
178
181
|
goog.exportSymbol('proto.clarifai.api.MultiInstalledModuleVersionResponse', null, global);
|
|
179
182
|
goog.exportSymbol('proto.clarifai.api.MultiKeyResponse', null, global);
|
|
180
183
|
goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global);
|
|
@@ -259,6 +262,7 @@ goog.exportSymbol('proto.clarifai.api.PostConceptsSearchesRequest', null, global
|
|
|
259
262
|
goog.exportSymbol('proto.clarifai.api.PostDatasetInputsRequest', null, global);
|
|
260
263
|
goog.exportSymbol('proto.clarifai.api.PostDatasetVersionsRequest', null, global);
|
|
261
264
|
goog.exportSymbol('proto.clarifai.api.PostDatasetsRequest', null, global);
|
|
265
|
+
goog.exportSymbol('proto.clarifai.api.PostInputsDataSourcesRequest', null, global);
|
|
262
266
|
goog.exportSymbol('proto.clarifai.api.PostInputsRequest', null, global);
|
|
263
267
|
goog.exportSymbol('proto.clarifai.api.PostInputsSearchesRequest', null, global);
|
|
264
268
|
goog.exportSymbol('proto.clarifai.api.PostInstalledModuleVersionsKeyRequest', null, global);
|
|
@@ -307,6 +311,7 @@ goog.exportSymbol('proto.clarifai.api.SingleDatasetVersionResponse', null, globa
|
|
|
307
311
|
goog.exportSymbol('proto.clarifai.api.SingleInputCountResponse', null, global);
|
|
308
312
|
goog.exportSymbol('proto.clarifai.api.SingleInputResponse', null, global);
|
|
309
313
|
goog.exportSymbol('proto.clarifai.api.SingleInputsAddJobResponse', null, global);
|
|
314
|
+
goog.exportSymbol('proto.clarifai.api.SingleInputsExtractionJobResponse', null, global);
|
|
310
315
|
goog.exportSymbol('proto.clarifai.api.SingleInstalledModuleVersionResponse', null, global);
|
|
311
316
|
goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global);
|
|
312
317
|
goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global);
|
|
@@ -6249,6 +6254,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
6249
6254
|
*/
|
|
6250
6255
|
proto.clarifai.api.PutUploadContentPartsRequest.displayName = 'proto.clarifai.api.PutUploadContentPartsRequest';
|
|
6251
6256
|
}
|
|
6257
|
+
/**
|
|
6258
|
+
* Generated by JsPbCodeGenerator.
|
|
6259
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6260
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6261
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6262
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6263
|
+
* valid.
|
|
6264
|
+
* @extends {jspb.Message}
|
|
6265
|
+
* @constructor
|
|
6266
|
+
*/
|
|
6267
|
+
proto.clarifai.api.PostInputsDataSourcesRequest = function(opt_data) {
|
|
6268
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostInputsDataSourcesRequest.repeatedFields_, null);
|
|
6269
|
+
};
|
|
6270
|
+
goog.inherits(proto.clarifai.api.PostInputsDataSourcesRequest, jspb.Message);
|
|
6271
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6272
|
+
/**
|
|
6273
|
+
* @public
|
|
6274
|
+
* @override
|
|
6275
|
+
*/
|
|
6276
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.displayName = 'proto.clarifai.api.PostInputsDataSourcesRequest';
|
|
6277
|
+
}
|
|
6278
|
+
/**
|
|
6279
|
+
* Generated by JsPbCodeGenerator.
|
|
6280
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6281
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6282
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6283
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6284
|
+
* valid.
|
|
6285
|
+
* @extends {jspb.Message}
|
|
6286
|
+
* @constructor
|
|
6287
|
+
*/
|
|
6288
|
+
proto.clarifai.api.GetInputsExtractionJobRequest = function(opt_data) {
|
|
6289
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6290
|
+
};
|
|
6291
|
+
goog.inherits(proto.clarifai.api.GetInputsExtractionJobRequest, jspb.Message);
|
|
6292
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6293
|
+
/**
|
|
6294
|
+
* @public
|
|
6295
|
+
* @override
|
|
6296
|
+
*/
|
|
6297
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.displayName = 'proto.clarifai.api.GetInputsExtractionJobRequest';
|
|
6298
|
+
}
|
|
6299
|
+
/**
|
|
6300
|
+
* Generated by JsPbCodeGenerator.
|
|
6301
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6302
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6303
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6304
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6305
|
+
* valid.
|
|
6306
|
+
* @extends {jspb.Message}
|
|
6307
|
+
* @constructor
|
|
6308
|
+
*/
|
|
6309
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest = function(opt_data) {
|
|
6310
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6311
|
+
};
|
|
6312
|
+
goog.inherits(proto.clarifai.api.ListInputsExtractionJobsRequest, jspb.Message);
|
|
6313
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6314
|
+
/**
|
|
6315
|
+
* @public
|
|
6316
|
+
* @override
|
|
6317
|
+
*/
|
|
6318
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.displayName = 'proto.clarifai.api.ListInputsExtractionJobsRequest';
|
|
6319
|
+
}
|
|
6320
|
+
/**
|
|
6321
|
+
* Generated by JsPbCodeGenerator.
|
|
6322
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6323
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6324
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6325
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6326
|
+
* valid.
|
|
6327
|
+
* @extends {jspb.Message}
|
|
6328
|
+
* @constructor
|
|
6329
|
+
*/
|
|
6330
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse = function(opt_data) {
|
|
6331
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6332
|
+
};
|
|
6333
|
+
goog.inherits(proto.clarifai.api.SingleInputsExtractionJobResponse, jspb.Message);
|
|
6334
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6335
|
+
/**
|
|
6336
|
+
* @public
|
|
6337
|
+
* @override
|
|
6338
|
+
*/
|
|
6339
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.displayName = 'proto.clarifai.api.SingleInputsExtractionJobResponse';
|
|
6340
|
+
}
|
|
6341
|
+
/**
|
|
6342
|
+
* Generated by JsPbCodeGenerator.
|
|
6343
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6344
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6345
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6346
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6347
|
+
* valid.
|
|
6348
|
+
* @extends {jspb.Message}
|
|
6349
|
+
* @constructor
|
|
6350
|
+
*/
|
|
6351
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse = function(opt_data) {
|
|
6352
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiInputsExtractionJobResponse.repeatedFields_, null);
|
|
6353
|
+
};
|
|
6354
|
+
goog.inherits(proto.clarifai.api.MultiInputsExtractionJobResponse, jspb.Message);
|
|
6355
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6356
|
+
/**
|
|
6357
|
+
* @public
|
|
6358
|
+
* @override
|
|
6359
|
+
*/
|
|
6360
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.displayName = 'proto.clarifai.api.MultiInputsExtractionJobResponse';
|
|
6361
|
+
}
|
|
6252
6362
|
|
|
6253
6363
|
|
|
6254
6364
|
|
|
@@ -11726,7 +11836,9 @@ proto.clarifai.api.ListCollaboratorsRequest.prototype.toObject = function(opt_in
|
|
|
11726
11836
|
proto.clarifai.api.ListCollaboratorsRequest.toObject = function(includeInstance, msg) {
|
|
11727
11837
|
var f, obj = {
|
|
11728
11838
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11729
|
-
listAllCollaborators: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
11839
|
+
listAllCollaborators: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
11840
|
+
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
11841
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
11730
11842
|
};
|
|
11731
11843
|
|
|
11732
11844
|
if (includeInstance) {
|
|
@@ -11772,6 +11884,14 @@ proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader = functi
|
|
|
11772
11884
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
11773
11885
|
msg.setListAllCollaborators(value);
|
|
11774
11886
|
break;
|
|
11887
|
+
case 3:
|
|
11888
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11889
|
+
msg.setPage(value);
|
|
11890
|
+
break;
|
|
11891
|
+
case 4:
|
|
11892
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11893
|
+
msg.setPerPage(value);
|
|
11894
|
+
break;
|
|
11775
11895
|
default:
|
|
11776
11896
|
reader.skipField();
|
|
11777
11897
|
break;
|
|
@@ -11816,6 +11936,20 @@ proto.clarifai.api.ListCollaboratorsRequest.serializeBinaryToWriter = function(m
|
|
|
11816
11936
|
f
|
|
11817
11937
|
);
|
|
11818
11938
|
}
|
|
11939
|
+
f = message.getPage();
|
|
11940
|
+
if (f !== 0) {
|
|
11941
|
+
writer.writeUint32(
|
|
11942
|
+
3,
|
|
11943
|
+
f
|
|
11944
|
+
);
|
|
11945
|
+
}
|
|
11946
|
+
f = message.getPerPage();
|
|
11947
|
+
if (f !== 0) {
|
|
11948
|
+
writer.writeUint32(
|
|
11949
|
+
4,
|
|
11950
|
+
f
|
|
11951
|
+
);
|
|
11952
|
+
}
|
|
11819
11953
|
};
|
|
11820
11954
|
|
|
11821
11955
|
|
|
@@ -11874,6 +12008,42 @@ proto.clarifai.api.ListCollaboratorsRequest.prototype.setListAllCollaborators =
|
|
|
11874
12008
|
};
|
|
11875
12009
|
|
|
11876
12010
|
|
|
12011
|
+
/**
|
|
12012
|
+
* optional uint32 page = 3;
|
|
12013
|
+
* @return {number}
|
|
12014
|
+
*/
|
|
12015
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.getPage = function() {
|
|
12016
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
12017
|
+
};
|
|
12018
|
+
|
|
12019
|
+
|
|
12020
|
+
/**
|
|
12021
|
+
* @param {number} value
|
|
12022
|
+
* @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this
|
|
12023
|
+
*/
|
|
12024
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.setPage = function(value) {
|
|
12025
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
12026
|
+
};
|
|
12027
|
+
|
|
12028
|
+
|
|
12029
|
+
/**
|
|
12030
|
+
* optional uint32 per_page = 4;
|
|
12031
|
+
* @return {number}
|
|
12032
|
+
*/
|
|
12033
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.getPerPage = function() {
|
|
12034
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
12035
|
+
};
|
|
12036
|
+
|
|
12037
|
+
|
|
12038
|
+
/**
|
|
12039
|
+
* @param {number} value
|
|
12040
|
+
* @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this
|
|
12041
|
+
*/
|
|
12042
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.setPerPage = function(value) {
|
|
12043
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
12044
|
+
};
|
|
12045
|
+
|
|
12046
|
+
|
|
11877
12047
|
|
|
11878
12048
|
/**
|
|
11879
12049
|
* List of repeated fields within this message type.
|
|
@@ -31200,7 +31370,8 @@ proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) {
|
|
|
31200
31370
|
toolkitsList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f,
|
|
31201
31371
|
useCasesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
31202
31372
|
languagesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f,
|
|
31203
|
-
additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f
|
|
31373
|
+
additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f,
|
|
31374
|
+
dontFetchFromMain: jspb.Message.getBooleanFieldWithDefault(msg, 23, false)
|
|
31204
31375
|
};
|
|
31205
31376
|
|
|
31206
31377
|
if (includeInstance) {
|
|
@@ -31322,6 +31493,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg,
|
|
|
31322
31493
|
var value = /** @type {string} */ (reader.readString());
|
|
31323
31494
|
msg.addAdditionalFields(value);
|
|
31324
31495
|
break;
|
|
31496
|
+
case 23:
|
|
31497
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
31498
|
+
msg.setDontFetchFromMain(value);
|
|
31499
|
+
break;
|
|
31325
31500
|
default:
|
|
31326
31501
|
reader.skipField();
|
|
31327
31502
|
break;
|
|
@@ -31499,6 +31674,13 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message,
|
|
|
31499
31674
|
f
|
|
31500
31675
|
);
|
|
31501
31676
|
}
|
|
31677
|
+
f = message.getDontFetchFromMain();
|
|
31678
|
+
if (f) {
|
|
31679
|
+
writer.writeBool(
|
|
31680
|
+
23,
|
|
31681
|
+
f
|
|
31682
|
+
);
|
|
31683
|
+
}
|
|
31502
31684
|
};
|
|
31503
31685
|
|
|
31504
31686
|
|
|
@@ -32067,6 +32249,24 @@ proto.clarifai.api.ListModelsRequest.prototype.clearAdditionalFieldsList = funct
|
|
|
32067
32249
|
};
|
|
32068
32250
|
|
|
32069
32251
|
|
|
32252
|
+
/**
|
|
32253
|
+
* optional bool dont_fetch_from_main = 23;
|
|
32254
|
+
* @return {boolean}
|
|
32255
|
+
*/
|
|
32256
|
+
proto.clarifai.api.ListModelsRequest.prototype.getDontFetchFromMain = function() {
|
|
32257
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false));
|
|
32258
|
+
};
|
|
32259
|
+
|
|
32260
|
+
|
|
32261
|
+
/**
|
|
32262
|
+
* @param {boolean} value
|
|
32263
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
32264
|
+
*/
|
|
32265
|
+
proto.clarifai.api.ListModelsRequest.prototype.setDontFetchFromMain = function(value) {
|
|
32266
|
+
return jspb.Message.setProto3BooleanField(this, 23, value);
|
|
32267
|
+
};
|
|
32268
|
+
|
|
32269
|
+
|
|
32070
32270
|
|
|
32071
32271
|
/**
|
|
32072
32272
|
* List of repeated fields within this message type.
|
|
@@ -37400,7 +37600,6 @@ proto.clarifai.api.PostModelVersionsRequest.toObject = function(includeInstance,
|
|
|
37400
37600
|
search: (f = msg.getSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
37401
37601
|
trainSearch: (f = msg.getTrainSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
37402
37602
|
testSearch: (f = msg.getTestSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
37403
|
-
evaluateAfterTraining: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
37404
37603
|
description: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
37405
37604
|
datasetVersion: (f = msg.getDatasetVersion()) && proto_clarifai_api_resources_pb.DatasetVersion.toObject(includeInstance, f),
|
|
37406
37605
|
evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f)
|
|
@@ -37469,10 +37668,6 @@ proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = functi
|
|
|
37469
37668
|
reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader);
|
|
37470
37669
|
msg.setTestSearch(value);
|
|
37471
37670
|
break;
|
|
37472
|
-
case 7:
|
|
37473
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
37474
|
-
msg.setEvaluateAfterTraining(value);
|
|
37475
|
-
break;
|
|
37476
37671
|
case 8:
|
|
37477
37672
|
var value = /** @type {string} */ (reader.readString());
|
|
37478
37673
|
msg.setDescription(value);
|
|
@@ -37563,13 +37758,6 @@ proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function(m
|
|
|
37563
37758
|
proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter
|
|
37564
37759
|
);
|
|
37565
37760
|
}
|
|
37566
|
-
f = message.getEvaluateAfterTraining();
|
|
37567
|
-
if (f) {
|
|
37568
|
-
writer.writeBool(
|
|
37569
|
-
7,
|
|
37570
|
-
f
|
|
37571
|
-
);
|
|
37572
|
-
}
|
|
37573
37761
|
f = message.getDescription();
|
|
37574
37762
|
if (f.length > 0) {
|
|
37575
37763
|
writer.writeString(
|
|
@@ -37800,24 +37988,6 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.hasTestSearch = function()
|
|
|
37800
37988
|
};
|
|
37801
37989
|
|
|
37802
37990
|
|
|
37803
|
-
/**
|
|
37804
|
-
* optional bool evaluate_after_training = 7;
|
|
37805
|
-
* @return {boolean}
|
|
37806
|
-
*/
|
|
37807
|
-
proto.clarifai.api.PostModelVersionsRequest.prototype.getEvaluateAfterTraining = function() {
|
|
37808
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
37809
|
-
};
|
|
37810
|
-
|
|
37811
|
-
|
|
37812
|
-
/**
|
|
37813
|
-
* @param {boolean} value
|
|
37814
|
-
* @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
|
|
37815
|
-
*/
|
|
37816
|
-
proto.clarifai.api.PostModelVersionsRequest.prototype.setEvaluateAfterTraining = function(value) {
|
|
37817
|
-
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
37818
|
-
};
|
|
37819
|
-
|
|
37820
|
-
|
|
37821
37991
|
/**
|
|
37822
37992
|
* optional string description = 8;
|
|
37823
37993
|
* @return {string}
|
|
@@ -39429,7 +39599,6 @@ proto.clarifai.api.PostModelVersionMetricsRequest.toObject = function(includeIns
|
|
|
39429
39599
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
39430
39600
|
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
39431
39601
|
versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
39432
|
-
maxExamples: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
39433
39602
|
testSearch: (f = msg.getTestSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
39434
39603
|
evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f)
|
|
39435
39604
|
};
|
|
@@ -39481,10 +39650,6 @@ proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader =
|
|
|
39481
39650
|
var value = /** @type {string} */ (reader.readString());
|
|
39482
39651
|
msg.setVersionId(value);
|
|
39483
39652
|
break;
|
|
39484
|
-
case 4:
|
|
39485
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
39486
|
-
msg.setMaxExamples(value);
|
|
39487
|
-
break;
|
|
39488
39653
|
case 5:
|
|
39489
39654
|
var value = new proto_clarifai_api_resources_pb.Search;
|
|
39490
39655
|
reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader);
|
|
@@ -39546,13 +39711,6 @@ proto.clarifai.api.PostModelVersionMetricsRequest.serializeBinaryToWriter = func
|
|
|
39546
39711
|
f
|
|
39547
39712
|
);
|
|
39548
39713
|
}
|
|
39549
|
-
f = message.getMaxExamples();
|
|
39550
|
-
if (f !== 0) {
|
|
39551
|
-
writer.writeUint32(
|
|
39552
|
-
4,
|
|
39553
|
-
f
|
|
39554
|
-
);
|
|
39555
|
-
}
|
|
39556
39714
|
f = message.getTestSearch();
|
|
39557
39715
|
if (f != null) {
|
|
39558
39716
|
writer.writeMessage(
|
|
@@ -39645,24 +39803,6 @@ proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setVersionId = funct
|
|
|
39645
39803
|
};
|
|
39646
39804
|
|
|
39647
39805
|
|
|
39648
|
-
/**
|
|
39649
|
-
* optional uint32 max_examples = 4;
|
|
39650
|
-
* @return {number}
|
|
39651
|
-
*/
|
|
39652
|
-
proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getMaxExamples = function() {
|
|
39653
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
39654
|
-
};
|
|
39655
|
-
|
|
39656
|
-
|
|
39657
|
-
/**
|
|
39658
|
-
* @param {number} value
|
|
39659
|
-
* @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this
|
|
39660
|
-
*/
|
|
39661
|
-
proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setMaxExamples = function(value) {
|
|
39662
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
39663
|
-
};
|
|
39664
|
-
|
|
39665
|
-
|
|
39666
39806
|
/**
|
|
39667
39807
|
* optional Search test_search = 5;
|
|
39668
39808
|
* @return {?proto.clarifai.api.Search}
|
|
@@ -71102,6 +71242,1082 @@ proto.clarifai.api.PutUploadContentPartsRequest.prototype.clearContentPartsList
|
|
|
71102
71242
|
};
|
|
71103
71243
|
|
|
71104
71244
|
|
|
71245
|
+
|
|
71246
|
+
/**
|
|
71247
|
+
* List of repeated fields within this message type.
|
|
71248
|
+
* @private {!Array<number>}
|
|
71249
|
+
* @const
|
|
71250
|
+
*/
|
|
71251
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.repeatedFields_ = [2];
|
|
71252
|
+
|
|
71253
|
+
|
|
71254
|
+
|
|
71255
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71256
|
+
/**
|
|
71257
|
+
* Creates an object representation of this proto.
|
|
71258
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71259
|
+
* Optional fields that are not set will be set to undefined.
|
|
71260
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71261
|
+
* For the list of reserved names please see:
|
|
71262
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71263
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71264
|
+
* JSPB instance for transitional soy proto support:
|
|
71265
|
+
* http://goto/soy-param-migration
|
|
71266
|
+
* @return {!Object}
|
|
71267
|
+
*/
|
|
71268
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71269
|
+
return proto.clarifai.api.PostInputsDataSourcesRequest.toObject(opt_includeInstance, this);
|
|
71270
|
+
};
|
|
71271
|
+
|
|
71272
|
+
|
|
71273
|
+
/**
|
|
71274
|
+
* Static version of the {@see toObject} method.
|
|
71275
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71276
|
+
* the JSPB instance for transitional soy proto support:
|
|
71277
|
+
* http://goto/soy-param-migration
|
|
71278
|
+
* @param {!proto.clarifai.api.PostInputsDataSourcesRequest} msg The msg instance to transform.
|
|
71279
|
+
* @return {!Object}
|
|
71280
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71281
|
+
*/
|
|
71282
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.toObject = function(includeInstance, msg) {
|
|
71283
|
+
var f, obj = {
|
|
71284
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
71285
|
+
dataSourcesList: jspb.Message.toObjectList(msg.getDataSourcesList(),
|
|
71286
|
+
proto_clarifai_api_resources_pb.InputsDataSource.toObject, includeInstance),
|
|
71287
|
+
callBackUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
71288
|
+
appPat: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
71289
|
+
};
|
|
71290
|
+
|
|
71291
|
+
if (includeInstance) {
|
|
71292
|
+
obj.$jspbMessageInstance = msg;
|
|
71293
|
+
}
|
|
71294
|
+
return obj;
|
|
71295
|
+
};
|
|
71296
|
+
}
|
|
71297
|
+
|
|
71298
|
+
|
|
71299
|
+
/**
|
|
71300
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71301
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71302
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest}
|
|
71303
|
+
*/
|
|
71304
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinary = function(bytes) {
|
|
71305
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71306
|
+
var msg = new proto.clarifai.api.PostInputsDataSourcesRequest;
|
|
71307
|
+
return proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinaryFromReader(msg, reader);
|
|
71308
|
+
};
|
|
71309
|
+
|
|
71310
|
+
|
|
71311
|
+
/**
|
|
71312
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71313
|
+
* given reader into the given message object.
|
|
71314
|
+
* @param {!proto.clarifai.api.PostInputsDataSourcesRequest} msg The message object to deserialize into.
|
|
71315
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71316
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest}
|
|
71317
|
+
*/
|
|
71318
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
71319
|
+
while (reader.nextField()) {
|
|
71320
|
+
if (reader.isEndGroup()) {
|
|
71321
|
+
break;
|
|
71322
|
+
}
|
|
71323
|
+
var field = reader.getFieldNumber();
|
|
71324
|
+
switch (field) {
|
|
71325
|
+
case 1:
|
|
71326
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
71327
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
71328
|
+
msg.setUserAppId(value);
|
|
71329
|
+
break;
|
|
71330
|
+
case 2:
|
|
71331
|
+
var value = new proto_clarifai_api_resources_pb.InputsDataSource;
|
|
71332
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.InputsDataSource.deserializeBinaryFromReader);
|
|
71333
|
+
msg.addDataSources(value);
|
|
71334
|
+
break;
|
|
71335
|
+
case 3:
|
|
71336
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71337
|
+
msg.setCallBackUrl(value);
|
|
71338
|
+
break;
|
|
71339
|
+
case 4:
|
|
71340
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71341
|
+
msg.setAppPat(value);
|
|
71342
|
+
break;
|
|
71343
|
+
default:
|
|
71344
|
+
reader.skipField();
|
|
71345
|
+
break;
|
|
71346
|
+
}
|
|
71347
|
+
}
|
|
71348
|
+
return msg;
|
|
71349
|
+
};
|
|
71350
|
+
|
|
71351
|
+
|
|
71352
|
+
/**
|
|
71353
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71354
|
+
* @return {!Uint8Array}
|
|
71355
|
+
*/
|
|
71356
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.serializeBinary = function() {
|
|
71357
|
+
var writer = new jspb.BinaryWriter();
|
|
71358
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.serializeBinaryToWriter(this, writer);
|
|
71359
|
+
return writer.getResultBuffer();
|
|
71360
|
+
};
|
|
71361
|
+
|
|
71362
|
+
|
|
71363
|
+
/**
|
|
71364
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71365
|
+
* format), writing to the given BinaryWriter.
|
|
71366
|
+
* @param {!proto.clarifai.api.PostInputsDataSourcesRequest} message
|
|
71367
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71368
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71369
|
+
*/
|
|
71370
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
71371
|
+
var f = undefined;
|
|
71372
|
+
f = message.getUserAppId();
|
|
71373
|
+
if (f != null) {
|
|
71374
|
+
writer.writeMessage(
|
|
71375
|
+
1,
|
|
71376
|
+
f,
|
|
71377
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
71378
|
+
);
|
|
71379
|
+
}
|
|
71380
|
+
f = message.getDataSourcesList();
|
|
71381
|
+
if (f.length > 0) {
|
|
71382
|
+
writer.writeRepeatedMessage(
|
|
71383
|
+
2,
|
|
71384
|
+
f,
|
|
71385
|
+
proto_clarifai_api_resources_pb.InputsDataSource.serializeBinaryToWriter
|
|
71386
|
+
);
|
|
71387
|
+
}
|
|
71388
|
+
f = message.getCallBackUrl();
|
|
71389
|
+
if (f.length > 0) {
|
|
71390
|
+
writer.writeString(
|
|
71391
|
+
3,
|
|
71392
|
+
f
|
|
71393
|
+
);
|
|
71394
|
+
}
|
|
71395
|
+
f = message.getAppPat();
|
|
71396
|
+
if (f.length > 0) {
|
|
71397
|
+
writer.writeString(
|
|
71398
|
+
4,
|
|
71399
|
+
f
|
|
71400
|
+
);
|
|
71401
|
+
}
|
|
71402
|
+
};
|
|
71403
|
+
|
|
71404
|
+
|
|
71405
|
+
/**
|
|
71406
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
71407
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
71408
|
+
*/
|
|
71409
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getUserAppId = function() {
|
|
71410
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
71411
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
71412
|
+
};
|
|
71413
|
+
|
|
71414
|
+
|
|
71415
|
+
/**
|
|
71416
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
71417
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
71418
|
+
*/
|
|
71419
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setUserAppId = function(value) {
|
|
71420
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71421
|
+
};
|
|
71422
|
+
|
|
71423
|
+
|
|
71424
|
+
/**
|
|
71425
|
+
* Clears the message field making it undefined.
|
|
71426
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
71427
|
+
*/
|
|
71428
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.clearUserAppId = function() {
|
|
71429
|
+
return this.setUserAppId(undefined);
|
|
71430
|
+
};
|
|
71431
|
+
|
|
71432
|
+
|
|
71433
|
+
/**
|
|
71434
|
+
* Returns whether this field is set.
|
|
71435
|
+
* @return {boolean}
|
|
71436
|
+
*/
|
|
71437
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.hasUserAppId = function() {
|
|
71438
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71439
|
+
};
|
|
71440
|
+
|
|
71441
|
+
|
|
71442
|
+
/**
|
|
71443
|
+
* repeated InputsDataSource data_sources = 2;
|
|
71444
|
+
* @return {!Array<!proto.clarifai.api.InputsDataSource>}
|
|
71445
|
+
*/
|
|
71446
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getDataSourcesList = function() {
|
|
71447
|
+
return /** @type{!Array<!proto.clarifai.api.InputsDataSource>} */ (
|
|
71448
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsDataSource, 2));
|
|
71449
|
+
};
|
|
71450
|
+
|
|
71451
|
+
|
|
71452
|
+
/**
|
|
71453
|
+
* @param {!Array<!proto.clarifai.api.InputsDataSource>} value
|
|
71454
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
71455
|
+
*/
|
|
71456
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setDataSourcesList = function(value) {
|
|
71457
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
71458
|
+
};
|
|
71459
|
+
|
|
71460
|
+
|
|
71461
|
+
/**
|
|
71462
|
+
* @param {!proto.clarifai.api.InputsDataSource=} opt_value
|
|
71463
|
+
* @param {number=} opt_index
|
|
71464
|
+
* @return {!proto.clarifai.api.InputsDataSource}
|
|
71465
|
+
*/
|
|
71466
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.addDataSources = function(opt_value, opt_index) {
|
|
71467
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsDataSource, opt_index);
|
|
71468
|
+
};
|
|
71469
|
+
|
|
71470
|
+
|
|
71471
|
+
/**
|
|
71472
|
+
* Clears the list making it empty but non-null.
|
|
71473
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
71474
|
+
*/
|
|
71475
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.clearDataSourcesList = function() {
|
|
71476
|
+
return this.setDataSourcesList([]);
|
|
71477
|
+
};
|
|
71478
|
+
|
|
71479
|
+
|
|
71480
|
+
/**
|
|
71481
|
+
* optional string call_back_url = 3;
|
|
71482
|
+
* @return {string}
|
|
71483
|
+
*/
|
|
71484
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getCallBackUrl = function() {
|
|
71485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
71486
|
+
};
|
|
71487
|
+
|
|
71488
|
+
|
|
71489
|
+
/**
|
|
71490
|
+
* @param {string} value
|
|
71491
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
71492
|
+
*/
|
|
71493
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setCallBackUrl = function(value) {
|
|
71494
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
71495
|
+
};
|
|
71496
|
+
|
|
71497
|
+
|
|
71498
|
+
/**
|
|
71499
|
+
* optional string app_pat = 4;
|
|
71500
|
+
* @return {string}
|
|
71501
|
+
*/
|
|
71502
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getAppPat = function() {
|
|
71503
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
71504
|
+
};
|
|
71505
|
+
|
|
71506
|
+
|
|
71507
|
+
/**
|
|
71508
|
+
* @param {string} value
|
|
71509
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
71510
|
+
*/
|
|
71511
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setAppPat = function(value) {
|
|
71512
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
71513
|
+
};
|
|
71514
|
+
|
|
71515
|
+
|
|
71516
|
+
|
|
71517
|
+
|
|
71518
|
+
|
|
71519
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71520
|
+
/**
|
|
71521
|
+
* Creates an object representation of this proto.
|
|
71522
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71523
|
+
* Optional fields that are not set will be set to undefined.
|
|
71524
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71525
|
+
* For the list of reserved names please see:
|
|
71526
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71527
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71528
|
+
* JSPB instance for transitional soy proto support:
|
|
71529
|
+
* http://goto/soy-param-migration
|
|
71530
|
+
* @return {!Object}
|
|
71531
|
+
*/
|
|
71532
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71533
|
+
return proto.clarifai.api.GetInputsExtractionJobRequest.toObject(opt_includeInstance, this);
|
|
71534
|
+
};
|
|
71535
|
+
|
|
71536
|
+
|
|
71537
|
+
/**
|
|
71538
|
+
* Static version of the {@see toObject} method.
|
|
71539
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71540
|
+
* the JSPB instance for transitional soy proto support:
|
|
71541
|
+
* http://goto/soy-param-migration
|
|
71542
|
+
* @param {!proto.clarifai.api.GetInputsExtractionJobRequest} msg The msg instance to transform.
|
|
71543
|
+
* @return {!Object}
|
|
71544
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71545
|
+
*/
|
|
71546
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.toObject = function(includeInstance, msg) {
|
|
71547
|
+
var f, obj = {
|
|
71548
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
71549
|
+
inputsExtractionJobId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
71550
|
+
};
|
|
71551
|
+
|
|
71552
|
+
if (includeInstance) {
|
|
71553
|
+
obj.$jspbMessageInstance = msg;
|
|
71554
|
+
}
|
|
71555
|
+
return obj;
|
|
71556
|
+
};
|
|
71557
|
+
}
|
|
71558
|
+
|
|
71559
|
+
|
|
71560
|
+
/**
|
|
71561
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71562
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71563
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest}
|
|
71564
|
+
*/
|
|
71565
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinary = function(bytes) {
|
|
71566
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71567
|
+
var msg = new proto.clarifai.api.GetInputsExtractionJobRequest;
|
|
71568
|
+
return proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinaryFromReader(msg, reader);
|
|
71569
|
+
};
|
|
71570
|
+
|
|
71571
|
+
|
|
71572
|
+
/**
|
|
71573
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71574
|
+
* given reader into the given message object.
|
|
71575
|
+
* @param {!proto.clarifai.api.GetInputsExtractionJobRequest} msg The message object to deserialize into.
|
|
71576
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71577
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest}
|
|
71578
|
+
*/
|
|
71579
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
71580
|
+
while (reader.nextField()) {
|
|
71581
|
+
if (reader.isEndGroup()) {
|
|
71582
|
+
break;
|
|
71583
|
+
}
|
|
71584
|
+
var field = reader.getFieldNumber();
|
|
71585
|
+
switch (field) {
|
|
71586
|
+
case 1:
|
|
71587
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
71588
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
71589
|
+
msg.setUserAppId(value);
|
|
71590
|
+
break;
|
|
71591
|
+
case 2:
|
|
71592
|
+
var value = /** @type {string} */ (reader.readString());
|
|
71593
|
+
msg.setInputsExtractionJobId(value);
|
|
71594
|
+
break;
|
|
71595
|
+
default:
|
|
71596
|
+
reader.skipField();
|
|
71597
|
+
break;
|
|
71598
|
+
}
|
|
71599
|
+
}
|
|
71600
|
+
return msg;
|
|
71601
|
+
};
|
|
71602
|
+
|
|
71603
|
+
|
|
71604
|
+
/**
|
|
71605
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71606
|
+
* @return {!Uint8Array}
|
|
71607
|
+
*/
|
|
71608
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.serializeBinary = function() {
|
|
71609
|
+
var writer = new jspb.BinaryWriter();
|
|
71610
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.serializeBinaryToWriter(this, writer);
|
|
71611
|
+
return writer.getResultBuffer();
|
|
71612
|
+
};
|
|
71613
|
+
|
|
71614
|
+
|
|
71615
|
+
/**
|
|
71616
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71617
|
+
* format), writing to the given BinaryWriter.
|
|
71618
|
+
* @param {!proto.clarifai.api.GetInputsExtractionJobRequest} message
|
|
71619
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71620
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71621
|
+
*/
|
|
71622
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.serializeBinaryToWriter = function(message, writer) {
|
|
71623
|
+
var f = undefined;
|
|
71624
|
+
f = message.getUserAppId();
|
|
71625
|
+
if (f != null) {
|
|
71626
|
+
writer.writeMessage(
|
|
71627
|
+
1,
|
|
71628
|
+
f,
|
|
71629
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
71630
|
+
);
|
|
71631
|
+
}
|
|
71632
|
+
f = message.getInputsExtractionJobId();
|
|
71633
|
+
if (f.length > 0) {
|
|
71634
|
+
writer.writeString(
|
|
71635
|
+
2,
|
|
71636
|
+
f
|
|
71637
|
+
);
|
|
71638
|
+
}
|
|
71639
|
+
};
|
|
71640
|
+
|
|
71641
|
+
|
|
71642
|
+
/**
|
|
71643
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
71644
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
71645
|
+
*/
|
|
71646
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.getUserAppId = function() {
|
|
71647
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
71648
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
71649
|
+
};
|
|
71650
|
+
|
|
71651
|
+
|
|
71652
|
+
/**
|
|
71653
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
71654
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this
|
|
71655
|
+
*/
|
|
71656
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.setUserAppId = function(value) {
|
|
71657
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71658
|
+
};
|
|
71659
|
+
|
|
71660
|
+
|
|
71661
|
+
/**
|
|
71662
|
+
* Clears the message field making it undefined.
|
|
71663
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this
|
|
71664
|
+
*/
|
|
71665
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.clearUserAppId = function() {
|
|
71666
|
+
return this.setUserAppId(undefined);
|
|
71667
|
+
};
|
|
71668
|
+
|
|
71669
|
+
|
|
71670
|
+
/**
|
|
71671
|
+
* Returns whether this field is set.
|
|
71672
|
+
* @return {boolean}
|
|
71673
|
+
*/
|
|
71674
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.hasUserAppId = function() {
|
|
71675
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71676
|
+
};
|
|
71677
|
+
|
|
71678
|
+
|
|
71679
|
+
/**
|
|
71680
|
+
* optional string inputs_extraction_job_id = 2;
|
|
71681
|
+
* @return {string}
|
|
71682
|
+
*/
|
|
71683
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.getInputsExtractionJobId = function() {
|
|
71684
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
71685
|
+
};
|
|
71686
|
+
|
|
71687
|
+
|
|
71688
|
+
/**
|
|
71689
|
+
* @param {string} value
|
|
71690
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this
|
|
71691
|
+
*/
|
|
71692
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.setInputsExtractionJobId = function(value) {
|
|
71693
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
71694
|
+
};
|
|
71695
|
+
|
|
71696
|
+
|
|
71697
|
+
|
|
71698
|
+
|
|
71699
|
+
|
|
71700
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71701
|
+
/**
|
|
71702
|
+
* Creates an object representation of this proto.
|
|
71703
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71704
|
+
* Optional fields that are not set will be set to undefined.
|
|
71705
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71706
|
+
* For the list of reserved names please see:
|
|
71707
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71708
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71709
|
+
* JSPB instance for transitional soy proto support:
|
|
71710
|
+
* http://goto/soy-param-migration
|
|
71711
|
+
* @return {!Object}
|
|
71712
|
+
*/
|
|
71713
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71714
|
+
return proto.clarifai.api.ListInputsExtractionJobsRequest.toObject(opt_includeInstance, this);
|
|
71715
|
+
};
|
|
71716
|
+
|
|
71717
|
+
|
|
71718
|
+
/**
|
|
71719
|
+
* Static version of the {@see toObject} method.
|
|
71720
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71721
|
+
* the JSPB instance for transitional soy proto support:
|
|
71722
|
+
* http://goto/soy-param-migration
|
|
71723
|
+
* @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} msg The msg instance to transform.
|
|
71724
|
+
* @return {!Object}
|
|
71725
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71726
|
+
*/
|
|
71727
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.toObject = function(includeInstance, msg) {
|
|
71728
|
+
var f, obj = {
|
|
71729
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
71730
|
+
page: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
71731
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
71732
|
+
};
|
|
71733
|
+
|
|
71734
|
+
if (includeInstance) {
|
|
71735
|
+
obj.$jspbMessageInstance = msg;
|
|
71736
|
+
}
|
|
71737
|
+
return obj;
|
|
71738
|
+
};
|
|
71739
|
+
}
|
|
71740
|
+
|
|
71741
|
+
|
|
71742
|
+
/**
|
|
71743
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71744
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71745
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest}
|
|
71746
|
+
*/
|
|
71747
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinary = function(bytes) {
|
|
71748
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71749
|
+
var msg = new proto.clarifai.api.ListInputsExtractionJobsRequest;
|
|
71750
|
+
return proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinaryFromReader(msg, reader);
|
|
71751
|
+
};
|
|
71752
|
+
|
|
71753
|
+
|
|
71754
|
+
/**
|
|
71755
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71756
|
+
* given reader into the given message object.
|
|
71757
|
+
* @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} msg The message object to deserialize into.
|
|
71758
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71759
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest}
|
|
71760
|
+
*/
|
|
71761
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
71762
|
+
while (reader.nextField()) {
|
|
71763
|
+
if (reader.isEndGroup()) {
|
|
71764
|
+
break;
|
|
71765
|
+
}
|
|
71766
|
+
var field = reader.getFieldNumber();
|
|
71767
|
+
switch (field) {
|
|
71768
|
+
case 1:
|
|
71769
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
71770
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
71771
|
+
msg.setUserAppId(value);
|
|
71772
|
+
break;
|
|
71773
|
+
case 2:
|
|
71774
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
71775
|
+
msg.setPage(value);
|
|
71776
|
+
break;
|
|
71777
|
+
case 3:
|
|
71778
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
71779
|
+
msg.setPerPage(value);
|
|
71780
|
+
break;
|
|
71781
|
+
default:
|
|
71782
|
+
reader.skipField();
|
|
71783
|
+
break;
|
|
71784
|
+
}
|
|
71785
|
+
}
|
|
71786
|
+
return msg;
|
|
71787
|
+
};
|
|
71788
|
+
|
|
71789
|
+
|
|
71790
|
+
/**
|
|
71791
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71792
|
+
* @return {!Uint8Array}
|
|
71793
|
+
*/
|
|
71794
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.serializeBinary = function() {
|
|
71795
|
+
var writer = new jspb.BinaryWriter();
|
|
71796
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.serializeBinaryToWriter(this, writer);
|
|
71797
|
+
return writer.getResultBuffer();
|
|
71798
|
+
};
|
|
71799
|
+
|
|
71800
|
+
|
|
71801
|
+
/**
|
|
71802
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
71803
|
+
* format), writing to the given BinaryWriter.
|
|
71804
|
+
* @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} message
|
|
71805
|
+
* @param {!jspb.BinaryWriter} writer
|
|
71806
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71807
|
+
*/
|
|
71808
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
71809
|
+
var f = undefined;
|
|
71810
|
+
f = message.getUserAppId();
|
|
71811
|
+
if (f != null) {
|
|
71812
|
+
writer.writeMessage(
|
|
71813
|
+
1,
|
|
71814
|
+
f,
|
|
71815
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
71816
|
+
);
|
|
71817
|
+
}
|
|
71818
|
+
f = message.getPage();
|
|
71819
|
+
if (f !== 0) {
|
|
71820
|
+
writer.writeUint32(
|
|
71821
|
+
2,
|
|
71822
|
+
f
|
|
71823
|
+
);
|
|
71824
|
+
}
|
|
71825
|
+
f = message.getPerPage();
|
|
71826
|
+
if (f !== 0) {
|
|
71827
|
+
writer.writeUint32(
|
|
71828
|
+
3,
|
|
71829
|
+
f
|
|
71830
|
+
);
|
|
71831
|
+
}
|
|
71832
|
+
};
|
|
71833
|
+
|
|
71834
|
+
|
|
71835
|
+
/**
|
|
71836
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
71837
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
71838
|
+
*/
|
|
71839
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getUserAppId = function() {
|
|
71840
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
71841
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
71842
|
+
};
|
|
71843
|
+
|
|
71844
|
+
|
|
71845
|
+
/**
|
|
71846
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
71847
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
71848
|
+
*/
|
|
71849
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setUserAppId = function(value) {
|
|
71850
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
71851
|
+
};
|
|
71852
|
+
|
|
71853
|
+
|
|
71854
|
+
/**
|
|
71855
|
+
* Clears the message field making it undefined.
|
|
71856
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
71857
|
+
*/
|
|
71858
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.clearUserAppId = function() {
|
|
71859
|
+
return this.setUserAppId(undefined);
|
|
71860
|
+
};
|
|
71861
|
+
|
|
71862
|
+
|
|
71863
|
+
/**
|
|
71864
|
+
* Returns whether this field is set.
|
|
71865
|
+
* @return {boolean}
|
|
71866
|
+
*/
|
|
71867
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.hasUserAppId = function() {
|
|
71868
|
+
return jspb.Message.getField(this, 1) != null;
|
|
71869
|
+
};
|
|
71870
|
+
|
|
71871
|
+
|
|
71872
|
+
/**
|
|
71873
|
+
* optional uint32 page = 2;
|
|
71874
|
+
* @return {number}
|
|
71875
|
+
*/
|
|
71876
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getPage = function() {
|
|
71877
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
71878
|
+
};
|
|
71879
|
+
|
|
71880
|
+
|
|
71881
|
+
/**
|
|
71882
|
+
* @param {number} value
|
|
71883
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
71884
|
+
*/
|
|
71885
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setPage = function(value) {
|
|
71886
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
71887
|
+
};
|
|
71888
|
+
|
|
71889
|
+
|
|
71890
|
+
/**
|
|
71891
|
+
* optional uint32 per_page = 3;
|
|
71892
|
+
* @return {number}
|
|
71893
|
+
*/
|
|
71894
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getPerPage = function() {
|
|
71895
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
71896
|
+
};
|
|
71897
|
+
|
|
71898
|
+
|
|
71899
|
+
/**
|
|
71900
|
+
* @param {number} value
|
|
71901
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
71902
|
+
*/
|
|
71903
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setPerPage = function(value) {
|
|
71904
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
71905
|
+
};
|
|
71906
|
+
|
|
71907
|
+
|
|
71908
|
+
|
|
71909
|
+
|
|
71910
|
+
|
|
71911
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
71912
|
+
/**
|
|
71913
|
+
* Creates an object representation of this proto.
|
|
71914
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71915
|
+
* Optional fields that are not set will be set to undefined.
|
|
71916
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
71917
|
+
* For the list of reserved names please see:
|
|
71918
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
71919
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
71920
|
+
* JSPB instance for transitional soy proto support:
|
|
71921
|
+
* http://goto/soy-param-migration
|
|
71922
|
+
* @return {!Object}
|
|
71923
|
+
*/
|
|
71924
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.toObject = function(opt_includeInstance) {
|
|
71925
|
+
return proto.clarifai.api.SingleInputsExtractionJobResponse.toObject(opt_includeInstance, this);
|
|
71926
|
+
};
|
|
71927
|
+
|
|
71928
|
+
|
|
71929
|
+
/**
|
|
71930
|
+
* Static version of the {@see toObject} method.
|
|
71931
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
71932
|
+
* the JSPB instance for transitional soy proto support:
|
|
71933
|
+
* http://goto/soy-param-migration
|
|
71934
|
+
* @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} msg The msg instance to transform.
|
|
71935
|
+
* @return {!Object}
|
|
71936
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
71937
|
+
*/
|
|
71938
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.toObject = function(includeInstance, msg) {
|
|
71939
|
+
var f, obj = {
|
|
71940
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
71941
|
+
inputsExtractionJob: (f = msg.getInputsExtractionJob()) && proto_clarifai_api_resources_pb.InputsExtractionJob.toObject(includeInstance, f)
|
|
71942
|
+
};
|
|
71943
|
+
|
|
71944
|
+
if (includeInstance) {
|
|
71945
|
+
obj.$jspbMessageInstance = msg;
|
|
71946
|
+
}
|
|
71947
|
+
return obj;
|
|
71948
|
+
};
|
|
71949
|
+
}
|
|
71950
|
+
|
|
71951
|
+
|
|
71952
|
+
/**
|
|
71953
|
+
* Deserializes binary data (in protobuf wire format).
|
|
71954
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
71955
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse}
|
|
71956
|
+
*/
|
|
71957
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinary = function(bytes) {
|
|
71958
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
71959
|
+
var msg = new proto.clarifai.api.SingleInputsExtractionJobResponse;
|
|
71960
|
+
return proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinaryFromReader(msg, reader);
|
|
71961
|
+
};
|
|
71962
|
+
|
|
71963
|
+
|
|
71964
|
+
/**
|
|
71965
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
71966
|
+
* given reader into the given message object.
|
|
71967
|
+
* @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} msg The message object to deserialize into.
|
|
71968
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
71969
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse}
|
|
71970
|
+
*/
|
|
71971
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
71972
|
+
while (reader.nextField()) {
|
|
71973
|
+
if (reader.isEndGroup()) {
|
|
71974
|
+
break;
|
|
71975
|
+
}
|
|
71976
|
+
var field = reader.getFieldNumber();
|
|
71977
|
+
switch (field) {
|
|
71978
|
+
case 1:
|
|
71979
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
71980
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
71981
|
+
msg.setStatus(value);
|
|
71982
|
+
break;
|
|
71983
|
+
case 2:
|
|
71984
|
+
var value = new proto_clarifai_api_resources_pb.InputsExtractionJob;
|
|
71985
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.InputsExtractionJob.deserializeBinaryFromReader);
|
|
71986
|
+
msg.setInputsExtractionJob(value);
|
|
71987
|
+
break;
|
|
71988
|
+
default:
|
|
71989
|
+
reader.skipField();
|
|
71990
|
+
break;
|
|
71991
|
+
}
|
|
71992
|
+
}
|
|
71993
|
+
return msg;
|
|
71994
|
+
};
|
|
71995
|
+
|
|
71996
|
+
|
|
71997
|
+
/**
|
|
71998
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
71999
|
+
* @return {!Uint8Array}
|
|
72000
|
+
*/
|
|
72001
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.serializeBinary = function() {
|
|
72002
|
+
var writer = new jspb.BinaryWriter();
|
|
72003
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.serializeBinaryToWriter(this, writer);
|
|
72004
|
+
return writer.getResultBuffer();
|
|
72005
|
+
};
|
|
72006
|
+
|
|
72007
|
+
|
|
72008
|
+
/**
|
|
72009
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
72010
|
+
* format), writing to the given BinaryWriter.
|
|
72011
|
+
* @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} message
|
|
72012
|
+
* @param {!jspb.BinaryWriter} writer
|
|
72013
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
72014
|
+
*/
|
|
72015
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.serializeBinaryToWriter = function(message, writer) {
|
|
72016
|
+
var f = undefined;
|
|
72017
|
+
f = message.getStatus();
|
|
72018
|
+
if (f != null) {
|
|
72019
|
+
writer.writeMessage(
|
|
72020
|
+
1,
|
|
72021
|
+
f,
|
|
72022
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
72023
|
+
);
|
|
72024
|
+
}
|
|
72025
|
+
f = message.getInputsExtractionJob();
|
|
72026
|
+
if (f != null) {
|
|
72027
|
+
writer.writeMessage(
|
|
72028
|
+
2,
|
|
72029
|
+
f,
|
|
72030
|
+
proto_clarifai_api_resources_pb.InputsExtractionJob.serializeBinaryToWriter
|
|
72031
|
+
);
|
|
72032
|
+
}
|
|
72033
|
+
};
|
|
72034
|
+
|
|
72035
|
+
|
|
72036
|
+
/**
|
|
72037
|
+
* optional status.Status status = 1;
|
|
72038
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
72039
|
+
*/
|
|
72040
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.getStatus = function() {
|
|
72041
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
72042
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
72043
|
+
};
|
|
72044
|
+
|
|
72045
|
+
|
|
72046
|
+
/**
|
|
72047
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
72048
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
72049
|
+
*/
|
|
72050
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.setStatus = function(value) {
|
|
72051
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
72052
|
+
};
|
|
72053
|
+
|
|
72054
|
+
|
|
72055
|
+
/**
|
|
72056
|
+
* Clears the message field making it undefined.
|
|
72057
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
72058
|
+
*/
|
|
72059
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.clearStatus = function() {
|
|
72060
|
+
return this.setStatus(undefined);
|
|
72061
|
+
};
|
|
72062
|
+
|
|
72063
|
+
|
|
72064
|
+
/**
|
|
72065
|
+
* Returns whether this field is set.
|
|
72066
|
+
* @return {boolean}
|
|
72067
|
+
*/
|
|
72068
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.hasStatus = function() {
|
|
72069
|
+
return jspb.Message.getField(this, 1) != null;
|
|
72070
|
+
};
|
|
72071
|
+
|
|
72072
|
+
|
|
72073
|
+
/**
|
|
72074
|
+
* optional InputsExtractionJob inputs_extraction_job = 2;
|
|
72075
|
+
* @return {?proto.clarifai.api.InputsExtractionJob}
|
|
72076
|
+
*/
|
|
72077
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.getInputsExtractionJob = function() {
|
|
72078
|
+
return /** @type{?proto.clarifai.api.InputsExtractionJob} */ (
|
|
72079
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InputsExtractionJob, 2));
|
|
72080
|
+
};
|
|
72081
|
+
|
|
72082
|
+
|
|
72083
|
+
/**
|
|
72084
|
+
* @param {?proto.clarifai.api.InputsExtractionJob|undefined} value
|
|
72085
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
72086
|
+
*/
|
|
72087
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.setInputsExtractionJob = function(value) {
|
|
72088
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
72089
|
+
};
|
|
72090
|
+
|
|
72091
|
+
|
|
72092
|
+
/**
|
|
72093
|
+
* Clears the message field making it undefined.
|
|
72094
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
72095
|
+
*/
|
|
72096
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.clearInputsExtractionJob = function() {
|
|
72097
|
+
return this.setInputsExtractionJob(undefined);
|
|
72098
|
+
};
|
|
72099
|
+
|
|
72100
|
+
|
|
72101
|
+
/**
|
|
72102
|
+
* Returns whether this field is set.
|
|
72103
|
+
* @return {boolean}
|
|
72104
|
+
*/
|
|
72105
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.hasInputsExtractionJob = function() {
|
|
72106
|
+
return jspb.Message.getField(this, 2) != null;
|
|
72107
|
+
};
|
|
72108
|
+
|
|
72109
|
+
|
|
72110
|
+
|
|
72111
|
+
/**
|
|
72112
|
+
* List of repeated fields within this message type.
|
|
72113
|
+
* @private {!Array<number>}
|
|
72114
|
+
* @const
|
|
72115
|
+
*/
|
|
72116
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.repeatedFields_ = [2];
|
|
72117
|
+
|
|
72118
|
+
|
|
72119
|
+
|
|
72120
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
72121
|
+
/**
|
|
72122
|
+
* Creates an object representation of this proto.
|
|
72123
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
72124
|
+
* Optional fields that are not set will be set to undefined.
|
|
72125
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
72126
|
+
* For the list of reserved names please see:
|
|
72127
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
72128
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
72129
|
+
* JSPB instance for transitional soy proto support:
|
|
72130
|
+
* http://goto/soy-param-migration
|
|
72131
|
+
* @return {!Object}
|
|
72132
|
+
*/
|
|
72133
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.toObject = function(opt_includeInstance) {
|
|
72134
|
+
return proto.clarifai.api.MultiInputsExtractionJobResponse.toObject(opt_includeInstance, this);
|
|
72135
|
+
};
|
|
72136
|
+
|
|
72137
|
+
|
|
72138
|
+
/**
|
|
72139
|
+
* Static version of the {@see toObject} method.
|
|
72140
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
72141
|
+
* the JSPB instance for transitional soy proto support:
|
|
72142
|
+
* http://goto/soy-param-migration
|
|
72143
|
+
* @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} msg The msg instance to transform.
|
|
72144
|
+
* @return {!Object}
|
|
72145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
72146
|
+
*/
|
|
72147
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.toObject = function(includeInstance, msg) {
|
|
72148
|
+
var f, obj = {
|
|
72149
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
72150
|
+
inputsExtractionJobsList: jspb.Message.toObjectList(msg.getInputsExtractionJobsList(),
|
|
72151
|
+
proto_clarifai_api_resources_pb.InputsExtractionJob.toObject, includeInstance)
|
|
72152
|
+
};
|
|
72153
|
+
|
|
72154
|
+
if (includeInstance) {
|
|
72155
|
+
obj.$jspbMessageInstance = msg;
|
|
72156
|
+
}
|
|
72157
|
+
return obj;
|
|
72158
|
+
};
|
|
72159
|
+
}
|
|
72160
|
+
|
|
72161
|
+
|
|
72162
|
+
/**
|
|
72163
|
+
* Deserializes binary data (in protobuf wire format).
|
|
72164
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
72165
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse}
|
|
72166
|
+
*/
|
|
72167
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinary = function(bytes) {
|
|
72168
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
72169
|
+
var msg = new proto.clarifai.api.MultiInputsExtractionJobResponse;
|
|
72170
|
+
return proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinaryFromReader(msg, reader);
|
|
72171
|
+
};
|
|
72172
|
+
|
|
72173
|
+
|
|
72174
|
+
/**
|
|
72175
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
72176
|
+
* given reader into the given message object.
|
|
72177
|
+
* @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} msg The message object to deserialize into.
|
|
72178
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
72179
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse}
|
|
72180
|
+
*/
|
|
72181
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
72182
|
+
while (reader.nextField()) {
|
|
72183
|
+
if (reader.isEndGroup()) {
|
|
72184
|
+
break;
|
|
72185
|
+
}
|
|
72186
|
+
var field = reader.getFieldNumber();
|
|
72187
|
+
switch (field) {
|
|
72188
|
+
case 1:
|
|
72189
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
72190
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
72191
|
+
msg.setStatus(value);
|
|
72192
|
+
break;
|
|
72193
|
+
case 2:
|
|
72194
|
+
var value = new proto_clarifai_api_resources_pb.InputsExtractionJob;
|
|
72195
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.InputsExtractionJob.deserializeBinaryFromReader);
|
|
72196
|
+
msg.addInputsExtractionJobs(value);
|
|
72197
|
+
break;
|
|
72198
|
+
default:
|
|
72199
|
+
reader.skipField();
|
|
72200
|
+
break;
|
|
72201
|
+
}
|
|
72202
|
+
}
|
|
72203
|
+
return msg;
|
|
72204
|
+
};
|
|
72205
|
+
|
|
72206
|
+
|
|
72207
|
+
/**
|
|
72208
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
72209
|
+
* @return {!Uint8Array}
|
|
72210
|
+
*/
|
|
72211
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.serializeBinary = function() {
|
|
72212
|
+
var writer = new jspb.BinaryWriter();
|
|
72213
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.serializeBinaryToWriter(this, writer);
|
|
72214
|
+
return writer.getResultBuffer();
|
|
72215
|
+
};
|
|
72216
|
+
|
|
72217
|
+
|
|
72218
|
+
/**
|
|
72219
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
72220
|
+
* format), writing to the given BinaryWriter.
|
|
72221
|
+
* @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} message
|
|
72222
|
+
* @param {!jspb.BinaryWriter} writer
|
|
72223
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
72224
|
+
*/
|
|
72225
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.serializeBinaryToWriter = function(message, writer) {
|
|
72226
|
+
var f = undefined;
|
|
72227
|
+
f = message.getStatus();
|
|
72228
|
+
if (f != null) {
|
|
72229
|
+
writer.writeMessage(
|
|
72230
|
+
1,
|
|
72231
|
+
f,
|
|
72232
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
72233
|
+
);
|
|
72234
|
+
}
|
|
72235
|
+
f = message.getInputsExtractionJobsList();
|
|
72236
|
+
if (f.length > 0) {
|
|
72237
|
+
writer.writeRepeatedMessage(
|
|
72238
|
+
2,
|
|
72239
|
+
f,
|
|
72240
|
+
proto_clarifai_api_resources_pb.InputsExtractionJob.serializeBinaryToWriter
|
|
72241
|
+
);
|
|
72242
|
+
}
|
|
72243
|
+
};
|
|
72244
|
+
|
|
72245
|
+
|
|
72246
|
+
/**
|
|
72247
|
+
* optional status.Status status = 1;
|
|
72248
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
72249
|
+
*/
|
|
72250
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.getStatus = function() {
|
|
72251
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
72252
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
72253
|
+
};
|
|
72254
|
+
|
|
72255
|
+
|
|
72256
|
+
/**
|
|
72257
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
72258
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
72259
|
+
*/
|
|
72260
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.setStatus = function(value) {
|
|
72261
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
72262
|
+
};
|
|
72263
|
+
|
|
72264
|
+
|
|
72265
|
+
/**
|
|
72266
|
+
* Clears the message field making it undefined.
|
|
72267
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
72268
|
+
*/
|
|
72269
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.clearStatus = function() {
|
|
72270
|
+
return this.setStatus(undefined);
|
|
72271
|
+
};
|
|
72272
|
+
|
|
72273
|
+
|
|
72274
|
+
/**
|
|
72275
|
+
* Returns whether this field is set.
|
|
72276
|
+
* @return {boolean}
|
|
72277
|
+
*/
|
|
72278
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.hasStatus = function() {
|
|
72279
|
+
return jspb.Message.getField(this, 1) != null;
|
|
72280
|
+
};
|
|
72281
|
+
|
|
72282
|
+
|
|
72283
|
+
/**
|
|
72284
|
+
* repeated InputsExtractionJob inputs_extraction_jobs = 2;
|
|
72285
|
+
* @return {!Array<!proto.clarifai.api.InputsExtractionJob>}
|
|
72286
|
+
*/
|
|
72287
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.getInputsExtractionJobsList = function() {
|
|
72288
|
+
return /** @type{!Array<!proto.clarifai.api.InputsExtractionJob>} */ (
|
|
72289
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsExtractionJob, 2));
|
|
72290
|
+
};
|
|
72291
|
+
|
|
72292
|
+
|
|
72293
|
+
/**
|
|
72294
|
+
* @param {!Array<!proto.clarifai.api.InputsExtractionJob>} value
|
|
72295
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
72296
|
+
*/
|
|
72297
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.setInputsExtractionJobsList = function(value) {
|
|
72298
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
72299
|
+
};
|
|
72300
|
+
|
|
72301
|
+
|
|
72302
|
+
/**
|
|
72303
|
+
* @param {!proto.clarifai.api.InputsExtractionJob=} opt_value
|
|
72304
|
+
* @param {number=} opt_index
|
|
72305
|
+
* @return {!proto.clarifai.api.InputsExtractionJob}
|
|
72306
|
+
*/
|
|
72307
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.addInputsExtractionJobs = function(opt_value, opt_index) {
|
|
72308
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsExtractionJob, opt_index);
|
|
72309
|
+
};
|
|
72310
|
+
|
|
72311
|
+
|
|
72312
|
+
/**
|
|
72313
|
+
* Clears the list making it empty but non-null.
|
|
72314
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
72315
|
+
*/
|
|
72316
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.clearInputsExtractionJobsList = function() {
|
|
72317
|
+
return this.setInputsExtractionJobsList([]);
|
|
72318
|
+
};
|
|
72319
|
+
|
|
72320
|
+
|
|
71105
72321
|
/**
|
|
71106
72322
|
* @enum {number}
|
|
71107
72323
|
*/
|