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
|
@@ -95,6 +95,7 @@ goog.exportSymbol('proto.clarifai.api.GetInputCountRequest', null, global);
|
|
|
95
95
|
goog.exportSymbol('proto.clarifai.api.GetInputRequest', null, global);
|
|
96
96
|
goog.exportSymbol('proto.clarifai.api.GetInputSamplesRequest', null, global);
|
|
97
97
|
goog.exportSymbol('proto.clarifai.api.GetInputsAddJobRequest', null, global);
|
|
98
|
+
goog.exportSymbol('proto.clarifai.api.GetInputsExtractionJobRequest', null, global);
|
|
98
99
|
goog.exportSymbol('proto.clarifai.api.GetInstalledModuleVersionRequest', null, global);
|
|
99
100
|
goog.exportSymbol('proto.clarifai.api.GetKeyRequest', null, global);
|
|
100
101
|
goog.exportSymbol('proto.clarifai.api.GetLabelOrderRequest', null, global);
|
|
@@ -132,6 +133,7 @@ goog.exportSymbol('proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest', n
|
|
|
132
133
|
goog.exportSymbol('proto.clarifai.api.ListDatasetVersionsRequest', null, global);
|
|
133
134
|
goog.exportSymbol('proto.clarifai.api.ListDatasetsRequest', null, global);
|
|
134
135
|
goog.exportSymbol('proto.clarifai.api.ListInputsAddJobsRequest', null, global);
|
|
136
|
+
goog.exportSymbol('proto.clarifai.api.ListInputsExtractionJobsRequest', null, global);
|
|
135
137
|
goog.exportSymbol('proto.clarifai.api.ListInputsRequest', null, global);
|
|
136
138
|
goog.exportSymbol('proto.clarifai.api.ListInstalledModuleVersionsRequest', null, global);
|
|
137
139
|
goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global);
|
|
@@ -182,6 +184,7 @@ goog.exportSymbol('proto.clarifai.api.MultiDatasetVersionResponse', null, global
|
|
|
182
184
|
goog.exportSymbol('proto.clarifai.api.MultiInputAnnotationResponse', null, global);
|
|
183
185
|
goog.exportSymbol('proto.clarifai.api.MultiInputResponse', null, global);
|
|
184
186
|
goog.exportSymbol('proto.clarifai.api.MultiInputsAddJobResponse', null, global);
|
|
187
|
+
goog.exportSymbol('proto.clarifai.api.MultiInputsExtractionJobResponse', null, global);
|
|
185
188
|
goog.exportSymbol('proto.clarifai.api.MultiInstalledModuleVersionResponse', null, global);
|
|
186
189
|
goog.exportSymbol('proto.clarifai.api.MultiKeyResponse', null, global);
|
|
187
190
|
goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global);
|
|
@@ -266,6 +269,7 @@ goog.exportSymbol('proto.clarifai.api.PostConceptsSearchesRequest', null, global
|
|
|
266
269
|
goog.exportSymbol('proto.clarifai.api.PostDatasetInputsRequest', null, global);
|
|
267
270
|
goog.exportSymbol('proto.clarifai.api.PostDatasetVersionsRequest', null, global);
|
|
268
271
|
goog.exportSymbol('proto.clarifai.api.PostDatasetsRequest', null, global);
|
|
272
|
+
goog.exportSymbol('proto.clarifai.api.PostInputsDataSourcesRequest', null, global);
|
|
269
273
|
goog.exportSymbol('proto.clarifai.api.PostInputsRequest', null, global);
|
|
270
274
|
goog.exportSymbol('proto.clarifai.api.PostInputsSearchesRequest', null, global);
|
|
271
275
|
goog.exportSymbol('proto.clarifai.api.PostInstalledModuleVersionsKeyRequest', null, global);
|
|
@@ -314,6 +318,7 @@ goog.exportSymbol('proto.clarifai.api.SingleDatasetVersionResponse', null, globa
|
|
|
314
318
|
goog.exportSymbol('proto.clarifai.api.SingleInputCountResponse', null, global);
|
|
315
319
|
goog.exportSymbol('proto.clarifai.api.SingleInputResponse', null, global);
|
|
316
320
|
goog.exportSymbol('proto.clarifai.api.SingleInputsAddJobResponse', null, global);
|
|
321
|
+
goog.exportSymbol('proto.clarifai.api.SingleInputsExtractionJobResponse', null, global);
|
|
317
322
|
goog.exportSymbol('proto.clarifai.api.SingleInstalledModuleVersionResponse', null, global);
|
|
318
323
|
goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global);
|
|
319
324
|
goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global);
|
|
@@ -6256,6 +6261,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
6256
6261
|
*/
|
|
6257
6262
|
proto.clarifai.api.PutUploadContentPartsRequest.displayName = 'proto.clarifai.api.PutUploadContentPartsRequest';
|
|
6258
6263
|
}
|
|
6264
|
+
/**
|
|
6265
|
+
* Generated by JsPbCodeGenerator.
|
|
6266
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6267
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6268
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6269
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6270
|
+
* valid.
|
|
6271
|
+
* @extends {jspb.Message}
|
|
6272
|
+
* @constructor
|
|
6273
|
+
*/
|
|
6274
|
+
proto.clarifai.api.PostInputsDataSourcesRequest = function (opt_data) {
|
|
6275
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostInputsDataSourcesRequest.repeatedFields_, null);
|
|
6276
|
+
};
|
|
6277
|
+
goog.inherits(proto.clarifai.api.PostInputsDataSourcesRequest, jspb.Message);
|
|
6278
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6279
|
+
/**
|
|
6280
|
+
* @public
|
|
6281
|
+
* @override
|
|
6282
|
+
*/
|
|
6283
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.displayName = 'proto.clarifai.api.PostInputsDataSourcesRequest';
|
|
6284
|
+
}
|
|
6285
|
+
/**
|
|
6286
|
+
* Generated by JsPbCodeGenerator.
|
|
6287
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6288
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6289
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6290
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6291
|
+
* valid.
|
|
6292
|
+
* @extends {jspb.Message}
|
|
6293
|
+
* @constructor
|
|
6294
|
+
*/
|
|
6295
|
+
proto.clarifai.api.GetInputsExtractionJobRequest = function (opt_data) {
|
|
6296
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6297
|
+
};
|
|
6298
|
+
goog.inherits(proto.clarifai.api.GetInputsExtractionJobRequest, jspb.Message);
|
|
6299
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6300
|
+
/**
|
|
6301
|
+
* @public
|
|
6302
|
+
* @override
|
|
6303
|
+
*/
|
|
6304
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.displayName = 'proto.clarifai.api.GetInputsExtractionJobRequest';
|
|
6305
|
+
}
|
|
6306
|
+
/**
|
|
6307
|
+
* Generated by JsPbCodeGenerator.
|
|
6308
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6309
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6310
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6311
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6312
|
+
* valid.
|
|
6313
|
+
* @extends {jspb.Message}
|
|
6314
|
+
* @constructor
|
|
6315
|
+
*/
|
|
6316
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest = function (opt_data) {
|
|
6317
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6318
|
+
};
|
|
6319
|
+
goog.inherits(proto.clarifai.api.ListInputsExtractionJobsRequest, jspb.Message);
|
|
6320
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6321
|
+
/**
|
|
6322
|
+
* @public
|
|
6323
|
+
* @override
|
|
6324
|
+
*/
|
|
6325
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.displayName = 'proto.clarifai.api.ListInputsExtractionJobsRequest';
|
|
6326
|
+
}
|
|
6327
|
+
/**
|
|
6328
|
+
* Generated by JsPbCodeGenerator.
|
|
6329
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6330
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6331
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6332
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6333
|
+
* valid.
|
|
6334
|
+
* @extends {jspb.Message}
|
|
6335
|
+
* @constructor
|
|
6336
|
+
*/
|
|
6337
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse = function (opt_data) {
|
|
6338
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
6339
|
+
};
|
|
6340
|
+
goog.inherits(proto.clarifai.api.SingleInputsExtractionJobResponse, jspb.Message);
|
|
6341
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6342
|
+
/**
|
|
6343
|
+
* @public
|
|
6344
|
+
* @override
|
|
6345
|
+
*/
|
|
6346
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.displayName = 'proto.clarifai.api.SingleInputsExtractionJobResponse';
|
|
6347
|
+
}
|
|
6348
|
+
/**
|
|
6349
|
+
* Generated by JsPbCodeGenerator.
|
|
6350
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6351
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6352
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6353
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6354
|
+
* valid.
|
|
6355
|
+
* @extends {jspb.Message}
|
|
6356
|
+
* @constructor
|
|
6357
|
+
*/
|
|
6358
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse = function (opt_data) {
|
|
6359
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiInputsExtractionJobResponse.repeatedFields_, null);
|
|
6360
|
+
};
|
|
6361
|
+
goog.inherits(proto.clarifai.api.MultiInputsExtractionJobResponse, jspb.Message);
|
|
6362
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6363
|
+
/**
|
|
6364
|
+
* @public
|
|
6365
|
+
* @override
|
|
6366
|
+
*/
|
|
6367
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.displayName = 'proto.clarifai.api.MultiInputsExtractionJobResponse';
|
|
6368
|
+
}
|
|
6259
6369
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6260
6370
|
/**
|
|
6261
6371
|
* Creates an object representation of this proto.
|
|
@@ -10585,7 +10695,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
10585
10695
|
proto.clarifai.api.ListCollaboratorsRequest.toObject = function (includeInstance, msg) {
|
|
10586
10696
|
var f, obj = {
|
|
10587
10697
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
10588
|
-
listAllCollaborators: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
10698
|
+
listAllCollaborators: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
10699
|
+
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
10700
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
10589
10701
|
};
|
|
10590
10702
|
if (includeInstance) {
|
|
10591
10703
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10626,6 +10738,14 @@ proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader = functi
|
|
|
10626
10738
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
10627
10739
|
msg.setListAllCollaborators(value);
|
|
10628
10740
|
break;
|
|
10741
|
+
case 3:
|
|
10742
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
10743
|
+
msg.setPage(value);
|
|
10744
|
+
break;
|
|
10745
|
+
case 4:
|
|
10746
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
10747
|
+
msg.setPerPage(value);
|
|
10748
|
+
break;
|
|
10629
10749
|
default:
|
|
10630
10750
|
reader.skipField();
|
|
10631
10751
|
break;
|
|
@@ -10659,6 +10779,14 @@ proto.clarifai.api.ListCollaboratorsRequest.serializeBinaryToWriter = function (
|
|
|
10659
10779
|
if (f) {
|
|
10660
10780
|
writer.writeBool(2, f);
|
|
10661
10781
|
}
|
|
10782
|
+
f = message.getPage();
|
|
10783
|
+
if (f !== 0) {
|
|
10784
|
+
writer.writeUint32(3, f);
|
|
10785
|
+
}
|
|
10786
|
+
f = message.getPerPage();
|
|
10787
|
+
if (f !== 0) {
|
|
10788
|
+
writer.writeUint32(4, f);
|
|
10789
|
+
}
|
|
10662
10790
|
};
|
|
10663
10791
|
/**
|
|
10664
10792
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -10702,6 +10830,34 @@ proto.clarifai.api.ListCollaboratorsRequest.prototype.getListAllCollaborators =
|
|
|
10702
10830
|
proto.clarifai.api.ListCollaboratorsRequest.prototype.setListAllCollaborators = function (value) {
|
|
10703
10831
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
10704
10832
|
};
|
|
10833
|
+
/**
|
|
10834
|
+
* optional uint32 page = 3;
|
|
10835
|
+
* @return {number}
|
|
10836
|
+
*/
|
|
10837
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.getPage = function () {
|
|
10838
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
10839
|
+
};
|
|
10840
|
+
/**
|
|
10841
|
+
* @param {number} value
|
|
10842
|
+
* @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this
|
|
10843
|
+
*/
|
|
10844
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.setPage = function (value) {
|
|
10845
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
10846
|
+
};
|
|
10847
|
+
/**
|
|
10848
|
+
* optional uint32 per_page = 4;
|
|
10849
|
+
* @return {number}
|
|
10850
|
+
*/
|
|
10851
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.getPerPage = function () {
|
|
10852
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
10853
|
+
};
|
|
10854
|
+
/**
|
|
10855
|
+
* @param {number} value
|
|
10856
|
+
* @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this
|
|
10857
|
+
*/
|
|
10858
|
+
proto.clarifai.api.ListCollaboratorsRequest.prototype.setPerPage = function (value) {
|
|
10859
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
10860
|
+
};
|
|
10705
10861
|
/**
|
|
10706
10862
|
* List of repeated fields within this message type.
|
|
10707
10863
|
* @private {!Array<number>}
|
|
@@ -26023,7 +26179,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
26023
26179
|
toolkitsList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f,
|
|
26024
26180
|
useCasesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
26025
26181
|
languagesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f,
|
|
26026
|
-
additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f
|
|
26182
|
+
additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f,
|
|
26183
|
+
dontFetchFromMain: jspb.Message.getBooleanFieldWithDefault(msg, 23, false)
|
|
26027
26184
|
};
|
|
26028
26185
|
if (includeInstance) {
|
|
26029
26186
|
obj.$jspbMessageInstance = msg;
|
|
@@ -26140,6 +26297,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function (msg
|
|
|
26140
26297
|
var value = /** @type {string} */ (reader.readString());
|
|
26141
26298
|
msg.addAdditionalFields(value);
|
|
26142
26299
|
break;
|
|
26300
|
+
case 23:
|
|
26301
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
26302
|
+
msg.setDontFetchFromMain(value);
|
|
26303
|
+
break;
|
|
26143
26304
|
default:
|
|
26144
26305
|
reader.skipField();
|
|
26145
26306
|
break;
|
|
@@ -26249,6 +26410,10 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function (message
|
|
|
26249
26410
|
if (f.length > 0) {
|
|
26250
26411
|
writer.writeRepeatedString(19, f);
|
|
26251
26412
|
}
|
|
26413
|
+
f = message.getDontFetchFromMain();
|
|
26414
|
+
if (f) {
|
|
26415
|
+
writer.writeBool(23, f);
|
|
26416
|
+
}
|
|
26252
26417
|
};
|
|
26253
26418
|
/**
|
|
26254
26419
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -26690,6 +26855,20 @@ proto.clarifai.api.ListModelsRequest.prototype.addAdditionalFields = function (v
|
|
|
26690
26855
|
proto.clarifai.api.ListModelsRequest.prototype.clearAdditionalFieldsList = function () {
|
|
26691
26856
|
return this.setAdditionalFieldsList([]);
|
|
26692
26857
|
};
|
|
26858
|
+
/**
|
|
26859
|
+
* optional bool dont_fetch_from_main = 23;
|
|
26860
|
+
* @return {boolean}
|
|
26861
|
+
*/
|
|
26862
|
+
proto.clarifai.api.ListModelsRequest.prototype.getDontFetchFromMain = function () {
|
|
26863
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false));
|
|
26864
|
+
};
|
|
26865
|
+
/**
|
|
26866
|
+
* @param {boolean} value
|
|
26867
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
26868
|
+
*/
|
|
26869
|
+
proto.clarifai.api.ListModelsRequest.prototype.setDontFetchFromMain = function (value) {
|
|
26870
|
+
return jspb.Message.setProto3BooleanField(this, 23, value);
|
|
26871
|
+
};
|
|
26693
26872
|
/**
|
|
26694
26873
|
* List of repeated fields within this message type.
|
|
26695
26874
|
* @private {!Array<number>}
|
|
@@ -30926,7 +31105,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
30926
31105
|
search: (f = msg.getSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
30927
31106
|
trainSearch: (f = msg.getTrainSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
30928
31107
|
testSearch: (f = msg.getTestSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
30929
|
-
evaluateAfterTraining: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
30930
31108
|
description: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
30931
31109
|
datasetVersion: (f = msg.getDatasetVersion()) && proto_clarifai_api_resources_pb.DatasetVersion.toObject(includeInstance, f),
|
|
30932
31110
|
evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f)
|
|
@@ -30990,10 +31168,6 @@ proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = functi
|
|
|
30990
31168
|
reader.readMessage(value, proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader);
|
|
30991
31169
|
msg.setTestSearch(value);
|
|
30992
31170
|
break;
|
|
30993
|
-
case 7:
|
|
30994
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
30995
|
-
msg.setEvaluateAfterTraining(value);
|
|
30996
|
-
break;
|
|
30997
31171
|
case 8:
|
|
30998
31172
|
var value = /** @type {string} */ (reader.readString());
|
|
30999
31173
|
msg.setDescription(value);
|
|
@@ -31057,10 +31231,6 @@ proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function (
|
|
|
31057
31231
|
if (f != null) {
|
|
31058
31232
|
writer.writeMessage(6, f, proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter);
|
|
31059
31233
|
}
|
|
31060
|
-
f = message.getEvaluateAfterTraining();
|
|
31061
|
-
if (f) {
|
|
31062
|
-
writer.writeBool(7, f);
|
|
31063
|
-
}
|
|
31064
31234
|
f = message.getDescription();
|
|
31065
31235
|
if (f.length > 0) {
|
|
31066
31236
|
writer.writeString(8, f);
|
|
@@ -31229,20 +31399,6 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.clearTestSearch = function
|
|
|
31229
31399
|
proto.clarifai.api.PostModelVersionsRequest.prototype.hasTestSearch = function () {
|
|
31230
31400
|
return jspb.Message.getField(this, 6) != null;
|
|
31231
31401
|
};
|
|
31232
|
-
/**
|
|
31233
|
-
* optional bool evaluate_after_training = 7;
|
|
31234
|
-
* @return {boolean}
|
|
31235
|
-
*/
|
|
31236
|
-
proto.clarifai.api.PostModelVersionsRequest.prototype.getEvaluateAfterTraining = function () {
|
|
31237
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
31238
|
-
};
|
|
31239
|
-
/**
|
|
31240
|
-
* @param {boolean} value
|
|
31241
|
-
* @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
|
|
31242
|
-
*/
|
|
31243
|
-
proto.clarifai.api.PostModelVersionsRequest.prototype.setEvaluateAfterTraining = function (value) {
|
|
31244
|
-
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
31245
|
-
};
|
|
31246
31402
|
/**
|
|
31247
31403
|
* optional string description = 8;
|
|
31248
31404
|
* @return {string}
|
|
@@ -32531,7 +32687,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
32531
32687
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
32532
32688
|
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
32533
32689
|
versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
32534
|
-
maxExamples: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
32535
32690
|
testSearch: (f = msg.getTestSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
|
|
32536
32691
|
evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f)
|
|
32537
32692
|
};
|
|
@@ -32578,10 +32733,6 @@ proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader =
|
|
|
32578
32733
|
var value = /** @type {string} */ (reader.readString());
|
|
32579
32734
|
msg.setVersionId(value);
|
|
32580
32735
|
break;
|
|
32581
|
-
case 4:
|
|
32582
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
32583
|
-
msg.setMaxExamples(value);
|
|
32584
|
-
break;
|
|
32585
32736
|
case 5:
|
|
32586
32737
|
var value = new proto_clarifai_api_resources_pb.Search;
|
|
32587
32738
|
reader.readMessage(value, proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader);
|
|
@@ -32629,10 +32780,6 @@ proto.clarifai.api.PostModelVersionMetricsRequest.serializeBinaryToWriter = func
|
|
|
32629
32780
|
if (f.length > 0) {
|
|
32630
32781
|
writer.writeString(3, f);
|
|
32631
32782
|
}
|
|
32632
|
-
f = message.getMaxExamples();
|
|
32633
|
-
if (f !== 0) {
|
|
32634
|
-
writer.writeUint32(4, f);
|
|
32635
|
-
}
|
|
32636
32783
|
f = message.getTestSearch();
|
|
32637
32784
|
if (f != null) {
|
|
32638
32785
|
writer.writeMessage(5, f, proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter);
|
|
@@ -32698,20 +32845,6 @@ proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getVersionId = funct
|
|
|
32698
32845
|
proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setVersionId = function (value) {
|
|
32699
32846
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
32700
32847
|
};
|
|
32701
|
-
/**
|
|
32702
|
-
* optional uint32 max_examples = 4;
|
|
32703
|
-
* @return {number}
|
|
32704
|
-
*/
|
|
32705
|
-
proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getMaxExamples = function () {
|
|
32706
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
32707
|
-
};
|
|
32708
|
-
/**
|
|
32709
|
-
* @param {number} value
|
|
32710
|
-
* @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this
|
|
32711
|
-
*/
|
|
32712
|
-
proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setMaxExamples = function (value) {
|
|
32713
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
32714
|
-
};
|
|
32715
32848
|
/**
|
|
32716
32849
|
* optional Search test_search = 5;
|
|
32717
32850
|
* @return {?proto.clarifai.api.Search}
|
|
@@ -57616,6 +57749,859 @@ proto.clarifai.api.PutUploadContentPartsRequest.prototype.addContentParts = func
|
|
|
57616
57749
|
proto.clarifai.api.PutUploadContentPartsRequest.prototype.clearContentPartsList = function () {
|
|
57617
57750
|
return this.setContentPartsList([]);
|
|
57618
57751
|
};
|
|
57752
|
+
/**
|
|
57753
|
+
* List of repeated fields within this message type.
|
|
57754
|
+
* @private {!Array<number>}
|
|
57755
|
+
* @const
|
|
57756
|
+
*/
|
|
57757
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.repeatedFields_ = [2];
|
|
57758
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57759
|
+
/**
|
|
57760
|
+
* Creates an object representation of this proto.
|
|
57761
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
57762
|
+
* Optional fields that are not set will be set to undefined.
|
|
57763
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
57764
|
+
* For the list of reserved names please see:
|
|
57765
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
57766
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
57767
|
+
* JSPB instance for transitional soy proto support:
|
|
57768
|
+
* http://goto/soy-param-migration
|
|
57769
|
+
* @return {!Object}
|
|
57770
|
+
*/
|
|
57771
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.toObject = function (opt_includeInstance) {
|
|
57772
|
+
return proto.clarifai.api.PostInputsDataSourcesRequest.toObject(opt_includeInstance, this);
|
|
57773
|
+
};
|
|
57774
|
+
/**
|
|
57775
|
+
* Static version of the {@see toObject} method.
|
|
57776
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
57777
|
+
* the JSPB instance for transitional soy proto support:
|
|
57778
|
+
* http://goto/soy-param-migration
|
|
57779
|
+
* @param {!proto.clarifai.api.PostInputsDataSourcesRequest} msg The msg instance to transform.
|
|
57780
|
+
* @return {!Object}
|
|
57781
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
57782
|
+
*/
|
|
57783
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.toObject = function (includeInstance, msg) {
|
|
57784
|
+
var f, obj = {
|
|
57785
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
57786
|
+
dataSourcesList: jspb.Message.toObjectList(msg.getDataSourcesList(), proto_clarifai_api_resources_pb.InputsDataSource.toObject, includeInstance),
|
|
57787
|
+
callBackUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
57788
|
+
appPat: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
57789
|
+
};
|
|
57790
|
+
if (includeInstance) {
|
|
57791
|
+
obj.$jspbMessageInstance = msg;
|
|
57792
|
+
}
|
|
57793
|
+
return obj;
|
|
57794
|
+
};
|
|
57795
|
+
}
|
|
57796
|
+
/**
|
|
57797
|
+
* Deserializes binary data (in protobuf wire format).
|
|
57798
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
57799
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest}
|
|
57800
|
+
*/
|
|
57801
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinary = function (bytes) {
|
|
57802
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
57803
|
+
var msg = new proto.clarifai.api.PostInputsDataSourcesRequest;
|
|
57804
|
+
return proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinaryFromReader(msg, reader);
|
|
57805
|
+
};
|
|
57806
|
+
/**
|
|
57807
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
57808
|
+
* given reader into the given message object.
|
|
57809
|
+
* @param {!proto.clarifai.api.PostInputsDataSourcesRequest} msg The message object to deserialize into.
|
|
57810
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
57811
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest}
|
|
57812
|
+
*/
|
|
57813
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
57814
|
+
while (reader.nextField()) {
|
|
57815
|
+
if (reader.isEndGroup()) {
|
|
57816
|
+
break;
|
|
57817
|
+
}
|
|
57818
|
+
var field = reader.getFieldNumber();
|
|
57819
|
+
switch (field) {
|
|
57820
|
+
case 1:
|
|
57821
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
57822
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
57823
|
+
msg.setUserAppId(value);
|
|
57824
|
+
break;
|
|
57825
|
+
case 2:
|
|
57826
|
+
var value = new proto_clarifai_api_resources_pb.InputsDataSource;
|
|
57827
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.InputsDataSource.deserializeBinaryFromReader);
|
|
57828
|
+
msg.addDataSources(value);
|
|
57829
|
+
break;
|
|
57830
|
+
case 3:
|
|
57831
|
+
var value = /** @type {string} */ (reader.readString());
|
|
57832
|
+
msg.setCallBackUrl(value);
|
|
57833
|
+
break;
|
|
57834
|
+
case 4:
|
|
57835
|
+
var value = /** @type {string} */ (reader.readString());
|
|
57836
|
+
msg.setAppPat(value);
|
|
57837
|
+
break;
|
|
57838
|
+
default:
|
|
57839
|
+
reader.skipField();
|
|
57840
|
+
break;
|
|
57841
|
+
}
|
|
57842
|
+
}
|
|
57843
|
+
return msg;
|
|
57844
|
+
};
|
|
57845
|
+
/**
|
|
57846
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
57847
|
+
* @return {!Uint8Array}
|
|
57848
|
+
*/
|
|
57849
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.serializeBinary = function () {
|
|
57850
|
+
var writer = new jspb.BinaryWriter();
|
|
57851
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.serializeBinaryToWriter(this, writer);
|
|
57852
|
+
return writer.getResultBuffer();
|
|
57853
|
+
};
|
|
57854
|
+
/**
|
|
57855
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
57856
|
+
* format), writing to the given BinaryWriter.
|
|
57857
|
+
* @param {!proto.clarifai.api.PostInputsDataSourcesRequest} message
|
|
57858
|
+
* @param {!jspb.BinaryWriter} writer
|
|
57859
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
57860
|
+
*/
|
|
57861
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.serializeBinaryToWriter = function (message, writer) {
|
|
57862
|
+
var f = undefined;
|
|
57863
|
+
f = message.getUserAppId();
|
|
57864
|
+
if (f != null) {
|
|
57865
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
57866
|
+
}
|
|
57867
|
+
f = message.getDataSourcesList();
|
|
57868
|
+
if (f.length > 0) {
|
|
57869
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.InputsDataSource.serializeBinaryToWriter);
|
|
57870
|
+
}
|
|
57871
|
+
f = message.getCallBackUrl();
|
|
57872
|
+
if (f.length > 0) {
|
|
57873
|
+
writer.writeString(3, f);
|
|
57874
|
+
}
|
|
57875
|
+
f = message.getAppPat();
|
|
57876
|
+
if (f.length > 0) {
|
|
57877
|
+
writer.writeString(4, f);
|
|
57878
|
+
}
|
|
57879
|
+
};
|
|
57880
|
+
/**
|
|
57881
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
57882
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
57883
|
+
*/
|
|
57884
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getUserAppId = function () {
|
|
57885
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
57886
|
+
};
|
|
57887
|
+
/**
|
|
57888
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
57889
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
57890
|
+
*/
|
|
57891
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setUserAppId = function (value) {
|
|
57892
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
57893
|
+
};
|
|
57894
|
+
/**
|
|
57895
|
+
* Clears the message field making it undefined.
|
|
57896
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
57897
|
+
*/
|
|
57898
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.clearUserAppId = function () {
|
|
57899
|
+
return this.setUserAppId(undefined);
|
|
57900
|
+
};
|
|
57901
|
+
/**
|
|
57902
|
+
* Returns whether this field is set.
|
|
57903
|
+
* @return {boolean}
|
|
57904
|
+
*/
|
|
57905
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.hasUserAppId = function () {
|
|
57906
|
+
return jspb.Message.getField(this, 1) != null;
|
|
57907
|
+
};
|
|
57908
|
+
/**
|
|
57909
|
+
* repeated InputsDataSource data_sources = 2;
|
|
57910
|
+
* @return {!Array<!proto.clarifai.api.InputsDataSource>}
|
|
57911
|
+
*/
|
|
57912
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getDataSourcesList = function () {
|
|
57913
|
+
return /** @type{!Array<!proto.clarifai.api.InputsDataSource>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsDataSource, 2));
|
|
57914
|
+
};
|
|
57915
|
+
/**
|
|
57916
|
+
* @param {!Array<!proto.clarifai.api.InputsDataSource>} value
|
|
57917
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
57918
|
+
*/
|
|
57919
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setDataSourcesList = function (value) {
|
|
57920
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
57921
|
+
};
|
|
57922
|
+
/**
|
|
57923
|
+
* @param {!proto.clarifai.api.InputsDataSource=} opt_value
|
|
57924
|
+
* @param {number=} opt_index
|
|
57925
|
+
* @return {!proto.clarifai.api.InputsDataSource}
|
|
57926
|
+
*/
|
|
57927
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.addDataSources = function (opt_value, opt_index) {
|
|
57928
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsDataSource, opt_index);
|
|
57929
|
+
};
|
|
57930
|
+
/**
|
|
57931
|
+
* Clears the list making it empty but non-null.
|
|
57932
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
57933
|
+
*/
|
|
57934
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.clearDataSourcesList = function () {
|
|
57935
|
+
return this.setDataSourcesList([]);
|
|
57936
|
+
};
|
|
57937
|
+
/**
|
|
57938
|
+
* optional string call_back_url = 3;
|
|
57939
|
+
* @return {string}
|
|
57940
|
+
*/
|
|
57941
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getCallBackUrl = function () {
|
|
57942
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
57943
|
+
};
|
|
57944
|
+
/**
|
|
57945
|
+
* @param {string} value
|
|
57946
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
57947
|
+
*/
|
|
57948
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setCallBackUrl = function (value) {
|
|
57949
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
57950
|
+
};
|
|
57951
|
+
/**
|
|
57952
|
+
* optional string app_pat = 4;
|
|
57953
|
+
* @return {string}
|
|
57954
|
+
*/
|
|
57955
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getAppPat = function () {
|
|
57956
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
57957
|
+
};
|
|
57958
|
+
/**
|
|
57959
|
+
* @param {string} value
|
|
57960
|
+
* @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this
|
|
57961
|
+
*/
|
|
57962
|
+
proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setAppPat = function (value) {
|
|
57963
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
57964
|
+
};
|
|
57965
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57966
|
+
/**
|
|
57967
|
+
* Creates an object representation of this proto.
|
|
57968
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
57969
|
+
* Optional fields that are not set will be set to undefined.
|
|
57970
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
57971
|
+
* For the list of reserved names please see:
|
|
57972
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
57973
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
57974
|
+
* JSPB instance for transitional soy proto support:
|
|
57975
|
+
* http://goto/soy-param-migration
|
|
57976
|
+
* @return {!Object}
|
|
57977
|
+
*/
|
|
57978
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.toObject = function (opt_includeInstance) {
|
|
57979
|
+
return proto.clarifai.api.GetInputsExtractionJobRequest.toObject(opt_includeInstance, this);
|
|
57980
|
+
};
|
|
57981
|
+
/**
|
|
57982
|
+
* Static version of the {@see toObject} method.
|
|
57983
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
57984
|
+
* the JSPB instance for transitional soy proto support:
|
|
57985
|
+
* http://goto/soy-param-migration
|
|
57986
|
+
* @param {!proto.clarifai.api.GetInputsExtractionJobRequest} msg The msg instance to transform.
|
|
57987
|
+
* @return {!Object}
|
|
57988
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
57989
|
+
*/
|
|
57990
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.toObject = function (includeInstance, msg) {
|
|
57991
|
+
var f, obj = {
|
|
57992
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
57993
|
+
inputsExtractionJobId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
57994
|
+
};
|
|
57995
|
+
if (includeInstance) {
|
|
57996
|
+
obj.$jspbMessageInstance = msg;
|
|
57997
|
+
}
|
|
57998
|
+
return obj;
|
|
57999
|
+
};
|
|
58000
|
+
}
|
|
58001
|
+
/**
|
|
58002
|
+
* Deserializes binary data (in protobuf wire format).
|
|
58003
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
58004
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest}
|
|
58005
|
+
*/
|
|
58006
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinary = function (bytes) {
|
|
58007
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
58008
|
+
var msg = new proto.clarifai.api.GetInputsExtractionJobRequest;
|
|
58009
|
+
return proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinaryFromReader(msg, reader);
|
|
58010
|
+
};
|
|
58011
|
+
/**
|
|
58012
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
58013
|
+
* given reader into the given message object.
|
|
58014
|
+
* @param {!proto.clarifai.api.GetInputsExtractionJobRequest} msg The message object to deserialize into.
|
|
58015
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
58016
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest}
|
|
58017
|
+
*/
|
|
58018
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
58019
|
+
while (reader.nextField()) {
|
|
58020
|
+
if (reader.isEndGroup()) {
|
|
58021
|
+
break;
|
|
58022
|
+
}
|
|
58023
|
+
var field = reader.getFieldNumber();
|
|
58024
|
+
switch (field) {
|
|
58025
|
+
case 1:
|
|
58026
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
58027
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
58028
|
+
msg.setUserAppId(value);
|
|
58029
|
+
break;
|
|
58030
|
+
case 2:
|
|
58031
|
+
var value = /** @type {string} */ (reader.readString());
|
|
58032
|
+
msg.setInputsExtractionJobId(value);
|
|
58033
|
+
break;
|
|
58034
|
+
default:
|
|
58035
|
+
reader.skipField();
|
|
58036
|
+
break;
|
|
58037
|
+
}
|
|
58038
|
+
}
|
|
58039
|
+
return msg;
|
|
58040
|
+
};
|
|
58041
|
+
/**
|
|
58042
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
58043
|
+
* @return {!Uint8Array}
|
|
58044
|
+
*/
|
|
58045
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.serializeBinary = function () {
|
|
58046
|
+
var writer = new jspb.BinaryWriter();
|
|
58047
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.serializeBinaryToWriter(this, writer);
|
|
58048
|
+
return writer.getResultBuffer();
|
|
58049
|
+
};
|
|
58050
|
+
/**
|
|
58051
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
58052
|
+
* format), writing to the given BinaryWriter.
|
|
58053
|
+
* @param {!proto.clarifai.api.GetInputsExtractionJobRequest} message
|
|
58054
|
+
* @param {!jspb.BinaryWriter} writer
|
|
58055
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58056
|
+
*/
|
|
58057
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.serializeBinaryToWriter = function (message, writer) {
|
|
58058
|
+
var f = undefined;
|
|
58059
|
+
f = message.getUserAppId();
|
|
58060
|
+
if (f != null) {
|
|
58061
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
58062
|
+
}
|
|
58063
|
+
f = message.getInputsExtractionJobId();
|
|
58064
|
+
if (f.length > 0) {
|
|
58065
|
+
writer.writeString(2, f);
|
|
58066
|
+
}
|
|
58067
|
+
};
|
|
58068
|
+
/**
|
|
58069
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
58070
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
58071
|
+
*/
|
|
58072
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.getUserAppId = function () {
|
|
58073
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
58074
|
+
};
|
|
58075
|
+
/**
|
|
58076
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
58077
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this
|
|
58078
|
+
*/
|
|
58079
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.setUserAppId = function (value) {
|
|
58080
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
58081
|
+
};
|
|
58082
|
+
/**
|
|
58083
|
+
* Clears the message field making it undefined.
|
|
58084
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this
|
|
58085
|
+
*/
|
|
58086
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.clearUserAppId = function () {
|
|
58087
|
+
return this.setUserAppId(undefined);
|
|
58088
|
+
};
|
|
58089
|
+
/**
|
|
58090
|
+
* Returns whether this field is set.
|
|
58091
|
+
* @return {boolean}
|
|
58092
|
+
*/
|
|
58093
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.hasUserAppId = function () {
|
|
58094
|
+
return jspb.Message.getField(this, 1) != null;
|
|
58095
|
+
};
|
|
58096
|
+
/**
|
|
58097
|
+
* optional string inputs_extraction_job_id = 2;
|
|
58098
|
+
* @return {string}
|
|
58099
|
+
*/
|
|
58100
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.getInputsExtractionJobId = function () {
|
|
58101
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
58102
|
+
};
|
|
58103
|
+
/**
|
|
58104
|
+
* @param {string} value
|
|
58105
|
+
* @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this
|
|
58106
|
+
*/
|
|
58107
|
+
proto.clarifai.api.GetInputsExtractionJobRequest.prototype.setInputsExtractionJobId = function (value) {
|
|
58108
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
58109
|
+
};
|
|
58110
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
58111
|
+
/**
|
|
58112
|
+
* Creates an object representation of this proto.
|
|
58113
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
58114
|
+
* Optional fields that are not set will be set to undefined.
|
|
58115
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
58116
|
+
* For the list of reserved names please see:
|
|
58117
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
58118
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
58119
|
+
* JSPB instance for transitional soy proto support:
|
|
58120
|
+
* http://goto/soy-param-migration
|
|
58121
|
+
* @return {!Object}
|
|
58122
|
+
*/
|
|
58123
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
58124
|
+
return proto.clarifai.api.ListInputsExtractionJobsRequest.toObject(opt_includeInstance, this);
|
|
58125
|
+
};
|
|
58126
|
+
/**
|
|
58127
|
+
* Static version of the {@see toObject} method.
|
|
58128
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
58129
|
+
* the JSPB instance for transitional soy proto support:
|
|
58130
|
+
* http://goto/soy-param-migration
|
|
58131
|
+
* @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} msg The msg instance to transform.
|
|
58132
|
+
* @return {!Object}
|
|
58133
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58134
|
+
*/
|
|
58135
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.toObject = function (includeInstance, msg) {
|
|
58136
|
+
var f, obj = {
|
|
58137
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
58138
|
+
page: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
58139
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
58140
|
+
};
|
|
58141
|
+
if (includeInstance) {
|
|
58142
|
+
obj.$jspbMessageInstance = msg;
|
|
58143
|
+
}
|
|
58144
|
+
return obj;
|
|
58145
|
+
};
|
|
58146
|
+
}
|
|
58147
|
+
/**
|
|
58148
|
+
* Deserializes binary data (in protobuf wire format).
|
|
58149
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
58150
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest}
|
|
58151
|
+
*/
|
|
58152
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinary = function (bytes) {
|
|
58153
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
58154
|
+
var msg = new proto.clarifai.api.ListInputsExtractionJobsRequest;
|
|
58155
|
+
return proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinaryFromReader(msg, reader);
|
|
58156
|
+
};
|
|
58157
|
+
/**
|
|
58158
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
58159
|
+
* given reader into the given message object.
|
|
58160
|
+
* @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} msg The message object to deserialize into.
|
|
58161
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
58162
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest}
|
|
58163
|
+
*/
|
|
58164
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
58165
|
+
while (reader.nextField()) {
|
|
58166
|
+
if (reader.isEndGroup()) {
|
|
58167
|
+
break;
|
|
58168
|
+
}
|
|
58169
|
+
var field = reader.getFieldNumber();
|
|
58170
|
+
switch (field) {
|
|
58171
|
+
case 1:
|
|
58172
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
58173
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
58174
|
+
msg.setUserAppId(value);
|
|
58175
|
+
break;
|
|
58176
|
+
case 2:
|
|
58177
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
58178
|
+
msg.setPage(value);
|
|
58179
|
+
break;
|
|
58180
|
+
case 3:
|
|
58181
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
58182
|
+
msg.setPerPage(value);
|
|
58183
|
+
break;
|
|
58184
|
+
default:
|
|
58185
|
+
reader.skipField();
|
|
58186
|
+
break;
|
|
58187
|
+
}
|
|
58188
|
+
}
|
|
58189
|
+
return msg;
|
|
58190
|
+
};
|
|
58191
|
+
/**
|
|
58192
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
58193
|
+
* @return {!Uint8Array}
|
|
58194
|
+
*/
|
|
58195
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.serializeBinary = function () {
|
|
58196
|
+
var writer = new jspb.BinaryWriter();
|
|
58197
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.serializeBinaryToWriter(this, writer);
|
|
58198
|
+
return writer.getResultBuffer();
|
|
58199
|
+
};
|
|
58200
|
+
/**
|
|
58201
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
58202
|
+
* format), writing to the given BinaryWriter.
|
|
58203
|
+
* @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} message
|
|
58204
|
+
* @param {!jspb.BinaryWriter} writer
|
|
58205
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58206
|
+
*/
|
|
58207
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
58208
|
+
var f = undefined;
|
|
58209
|
+
f = message.getUserAppId();
|
|
58210
|
+
if (f != null) {
|
|
58211
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
58212
|
+
}
|
|
58213
|
+
f = message.getPage();
|
|
58214
|
+
if (f !== 0) {
|
|
58215
|
+
writer.writeUint32(2, f);
|
|
58216
|
+
}
|
|
58217
|
+
f = message.getPerPage();
|
|
58218
|
+
if (f !== 0) {
|
|
58219
|
+
writer.writeUint32(3, f);
|
|
58220
|
+
}
|
|
58221
|
+
};
|
|
58222
|
+
/**
|
|
58223
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
58224
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
58225
|
+
*/
|
|
58226
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getUserAppId = function () {
|
|
58227
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
58228
|
+
};
|
|
58229
|
+
/**
|
|
58230
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
58231
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
58232
|
+
*/
|
|
58233
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setUserAppId = function (value) {
|
|
58234
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
58235
|
+
};
|
|
58236
|
+
/**
|
|
58237
|
+
* Clears the message field making it undefined.
|
|
58238
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
58239
|
+
*/
|
|
58240
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.clearUserAppId = function () {
|
|
58241
|
+
return this.setUserAppId(undefined);
|
|
58242
|
+
};
|
|
58243
|
+
/**
|
|
58244
|
+
* Returns whether this field is set.
|
|
58245
|
+
* @return {boolean}
|
|
58246
|
+
*/
|
|
58247
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.hasUserAppId = function () {
|
|
58248
|
+
return jspb.Message.getField(this, 1) != null;
|
|
58249
|
+
};
|
|
58250
|
+
/**
|
|
58251
|
+
* optional uint32 page = 2;
|
|
58252
|
+
* @return {number}
|
|
58253
|
+
*/
|
|
58254
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getPage = function () {
|
|
58255
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
58256
|
+
};
|
|
58257
|
+
/**
|
|
58258
|
+
* @param {number} value
|
|
58259
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
58260
|
+
*/
|
|
58261
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setPage = function (value) {
|
|
58262
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
58263
|
+
};
|
|
58264
|
+
/**
|
|
58265
|
+
* optional uint32 per_page = 3;
|
|
58266
|
+
* @return {number}
|
|
58267
|
+
*/
|
|
58268
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getPerPage = function () {
|
|
58269
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
58270
|
+
};
|
|
58271
|
+
/**
|
|
58272
|
+
* @param {number} value
|
|
58273
|
+
* @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this
|
|
58274
|
+
*/
|
|
58275
|
+
proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setPerPage = function (value) {
|
|
58276
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
58277
|
+
};
|
|
58278
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
58279
|
+
/**
|
|
58280
|
+
* Creates an object representation of this proto.
|
|
58281
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
58282
|
+
* Optional fields that are not set will be set to undefined.
|
|
58283
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
58284
|
+
* For the list of reserved names please see:
|
|
58285
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
58286
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
58287
|
+
* JSPB instance for transitional soy proto support:
|
|
58288
|
+
* http://goto/soy-param-migration
|
|
58289
|
+
* @return {!Object}
|
|
58290
|
+
*/
|
|
58291
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.toObject = function (opt_includeInstance) {
|
|
58292
|
+
return proto.clarifai.api.SingleInputsExtractionJobResponse.toObject(opt_includeInstance, this);
|
|
58293
|
+
};
|
|
58294
|
+
/**
|
|
58295
|
+
* Static version of the {@see toObject} method.
|
|
58296
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
58297
|
+
* the JSPB instance for transitional soy proto support:
|
|
58298
|
+
* http://goto/soy-param-migration
|
|
58299
|
+
* @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} msg The msg instance to transform.
|
|
58300
|
+
* @return {!Object}
|
|
58301
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58302
|
+
*/
|
|
58303
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.toObject = function (includeInstance, msg) {
|
|
58304
|
+
var f, obj = {
|
|
58305
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
58306
|
+
inputsExtractionJob: (f = msg.getInputsExtractionJob()) && proto_clarifai_api_resources_pb.InputsExtractionJob.toObject(includeInstance, f)
|
|
58307
|
+
};
|
|
58308
|
+
if (includeInstance) {
|
|
58309
|
+
obj.$jspbMessageInstance = msg;
|
|
58310
|
+
}
|
|
58311
|
+
return obj;
|
|
58312
|
+
};
|
|
58313
|
+
}
|
|
58314
|
+
/**
|
|
58315
|
+
* Deserializes binary data (in protobuf wire format).
|
|
58316
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
58317
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse}
|
|
58318
|
+
*/
|
|
58319
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinary = function (bytes) {
|
|
58320
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
58321
|
+
var msg = new proto.clarifai.api.SingleInputsExtractionJobResponse;
|
|
58322
|
+
return proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinaryFromReader(msg, reader);
|
|
58323
|
+
};
|
|
58324
|
+
/**
|
|
58325
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
58326
|
+
* given reader into the given message object.
|
|
58327
|
+
* @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} msg The message object to deserialize into.
|
|
58328
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
58329
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse}
|
|
58330
|
+
*/
|
|
58331
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
58332
|
+
while (reader.nextField()) {
|
|
58333
|
+
if (reader.isEndGroup()) {
|
|
58334
|
+
break;
|
|
58335
|
+
}
|
|
58336
|
+
var field = reader.getFieldNumber();
|
|
58337
|
+
switch (field) {
|
|
58338
|
+
case 1:
|
|
58339
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
58340
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
58341
|
+
msg.setStatus(value);
|
|
58342
|
+
break;
|
|
58343
|
+
case 2:
|
|
58344
|
+
var value = new proto_clarifai_api_resources_pb.InputsExtractionJob;
|
|
58345
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.InputsExtractionJob.deserializeBinaryFromReader);
|
|
58346
|
+
msg.setInputsExtractionJob(value);
|
|
58347
|
+
break;
|
|
58348
|
+
default:
|
|
58349
|
+
reader.skipField();
|
|
58350
|
+
break;
|
|
58351
|
+
}
|
|
58352
|
+
}
|
|
58353
|
+
return msg;
|
|
58354
|
+
};
|
|
58355
|
+
/**
|
|
58356
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
58357
|
+
* @return {!Uint8Array}
|
|
58358
|
+
*/
|
|
58359
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.serializeBinary = function () {
|
|
58360
|
+
var writer = new jspb.BinaryWriter();
|
|
58361
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.serializeBinaryToWriter(this, writer);
|
|
58362
|
+
return writer.getResultBuffer();
|
|
58363
|
+
};
|
|
58364
|
+
/**
|
|
58365
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
58366
|
+
* format), writing to the given BinaryWriter.
|
|
58367
|
+
* @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} message
|
|
58368
|
+
* @param {!jspb.BinaryWriter} writer
|
|
58369
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58370
|
+
*/
|
|
58371
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.serializeBinaryToWriter = function (message, writer) {
|
|
58372
|
+
var f = undefined;
|
|
58373
|
+
f = message.getStatus();
|
|
58374
|
+
if (f != null) {
|
|
58375
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
58376
|
+
}
|
|
58377
|
+
f = message.getInputsExtractionJob();
|
|
58378
|
+
if (f != null) {
|
|
58379
|
+
writer.writeMessage(2, f, proto_clarifai_api_resources_pb.InputsExtractionJob.serializeBinaryToWriter);
|
|
58380
|
+
}
|
|
58381
|
+
};
|
|
58382
|
+
/**
|
|
58383
|
+
* optional status.Status status = 1;
|
|
58384
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
58385
|
+
*/
|
|
58386
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.getStatus = function () {
|
|
58387
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
58388
|
+
};
|
|
58389
|
+
/**
|
|
58390
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
58391
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
58392
|
+
*/
|
|
58393
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.setStatus = function (value) {
|
|
58394
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
58395
|
+
};
|
|
58396
|
+
/**
|
|
58397
|
+
* Clears the message field making it undefined.
|
|
58398
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
58399
|
+
*/
|
|
58400
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.clearStatus = function () {
|
|
58401
|
+
return this.setStatus(undefined);
|
|
58402
|
+
};
|
|
58403
|
+
/**
|
|
58404
|
+
* Returns whether this field is set.
|
|
58405
|
+
* @return {boolean}
|
|
58406
|
+
*/
|
|
58407
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.hasStatus = function () {
|
|
58408
|
+
return jspb.Message.getField(this, 1) != null;
|
|
58409
|
+
};
|
|
58410
|
+
/**
|
|
58411
|
+
* optional InputsExtractionJob inputs_extraction_job = 2;
|
|
58412
|
+
* @return {?proto.clarifai.api.InputsExtractionJob}
|
|
58413
|
+
*/
|
|
58414
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.getInputsExtractionJob = function () {
|
|
58415
|
+
return /** @type{?proto.clarifai.api.InputsExtractionJob} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InputsExtractionJob, 2));
|
|
58416
|
+
};
|
|
58417
|
+
/**
|
|
58418
|
+
* @param {?proto.clarifai.api.InputsExtractionJob|undefined} value
|
|
58419
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
58420
|
+
*/
|
|
58421
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.setInputsExtractionJob = function (value) {
|
|
58422
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
58423
|
+
};
|
|
58424
|
+
/**
|
|
58425
|
+
* Clears the message field making it undefined.
|
|
58426
|
+
* @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this
|
|
58427
|
+
*/
|
|
58428
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.clearInputsExtractionJob = function () {
|
|
58429
|
+
return this.setInputsExtractionJob(undefined);
|
|
58430
|
+
};
|
|
58431
|
+
/**
|
|
58432
|
+
* Returns whether this field is set.
|
|
58433
|
+
* @return {boolean}
|
|
58434
|
+
*/
|
|
58435
|
+
proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.hasInputsExtractionJob = function () {
|
|
58436
|
+
return jspb.Message.getField(this, 2) != null;
|
|
58437
|
+
};
|
|
58438
|
+
/**
|
|
58439
|
+
* List of repeated fields within this message type.
|
|
58440
|
+
* @private {!Array<number>}
|
|
58441
|
+
* @const
|
|
58442
|
+
*/
|
|
58443
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.repeatedFields_ = [2];
|
|
58444
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
58445
|
+
/**
|
|
58446
|
+
* Creates an object representation of this proto.
|
|
58447
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
58448
|
+
* Optional fields that are not set will be set to undefined.
|
|
58449
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
58450
|
+
* For the list of reserved names please see:
|
|
58451
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
58452
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
58453
|
+
* JSPB instance for transitional soy proto support:
|
|
58454
|
+
* http://goto/soy-param-migration
|
|
58455
|
+
* @return {!Object}
|
|
58456
|
+
*/
|
|
58457
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.toObject = function (opt_includeInstance) {
|
|
58458
|
+
return proto.clarifai.api.MultiInputsExtractionJobResponse.toObject(opt_includeInstance, this);
|
|
58459
|
+
};
|
|
58460
|
+
/**
|
|
58461
|
+
* Static version of the {@see toObject} method.
|
|
58462
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
58463
|
+
* the JSPB instance for transitional soy proto support:
|
|
58464
|
+
* http://goto/soy-param-migration
|
|
58465
|
+
* @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} msg The msg instance to transform.
|
|
58466
|
+
* @return {!Object}
|
|
58467
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58468
|
+
*/
|
|
58469
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.toObject = function (includeInstance, msg) {
|
|
58470
|
+
var f, obj = {
|
|
58471
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
58472
|
+
inputsExtractionJobsList: jspb.Message.toObjectList(msg.getInputsExtractionJobsList(), proto_clarifai_api_resources_pb.InputsExtractionJob.toObject, includeInstance)
|
|
58473
|
+
};
|
|
58474
|
+
if (includeInstance) {
|
|
58475
|
+
obj.$jspbMessageInstance = msg;
|
|
58476
|
+
}
|
|
58477
|
+
return obj;
|
|
58478
|
+
};
|
|
58479
|
+
}
|
|
58480
|
+
/**
|
|
58481
|
+
* Deserializes binary data (in protobuf wire format).
|
|
58482
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
58483
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse}
|
|
58484
|
+
*/
|
|
58485
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinary = function (bytes) {
|
|
58486
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
58487
|
+
var msg = new proto.clarifai.api.MultiInputsExtractionJobResponse;
|
|
58488
|
+
return proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinaryFromReader(msg, reader);
|
|
58489
|
+
};
|
|
58490
|
+
/**
|
|
58491
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
58492
|
+
* given reader into the given message object.
|
|
58493
|
+
* @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} msg The message object to deserialize into.
|
|
58494
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
58495
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse}
|
|
58496
|
+
*/
|
|
58497
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
58498
|
+
while (reader.nextField()) {
|
|
58499
|
+
if (reader.isEndGroup()) {
|
|
58500
|
+
break;
|
|
58501
|
+
}
|
|
58502
|
+
var field = reader.getFieldNumber();
|
|
58503
|
+
switch (field) {
|
|
58504
|
+
case 1:
|
|
58505
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
58506
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
58507
|
+
msg.setStatus(value);
|
|
58508
|
+
break;
|
|
58509
|
+
case 2:
|
|
58510
|
+
var value = new proto_clarifai_api_resources_pb.InputsExtractionJob;
|
|
58511
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.InputsExtractionJob.deserializeBinaryFromReader);
|
|
58512
|
+
msg.addInputsExtractionJobs(value);
|
|
58513
|
+
break;
|
|
58514
|
+
default:
|
|
58515
|
+
reader.skipField();
|
|
58516
|
+
break;
|
|
58517
|
+
}
|
|
58518
|
+
}
|
|
58519
|
+
return msg;
|
|
58520
|
+
};
|
|
58521
|
+
/**
|
|
58522
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
58523
|
+
* @return {!Uint8Array}
|
|
58524
|
+
*/
|
|
58525
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.serializeBinary = function () {
|
|
58526
|
+
var writer = new jspb.BinaryWriter();
|
|
58527
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.serializeBinaryToWriter(this, writer);
|
|
58528
|
+
return writer.getResultBuffer();
|
|
58529
|
+
};
|
|
58530
|
+
/**
|
|
58531
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
58532
|
+
* format), writing to the given BinaryWriter.
|
|
58533
|
+
* @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} message
|
|
58534
|
+
* @param {!jspb.BinaryWriter} writer
|
|
58535
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58536
|
+
*/
|
|
58537
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.serializeBinaryToWriter = function (message, writer) {
|
|
58538
|
+
var f = undefined;
|
|
58539
|
+
f = message.getStatus();
|
|
58540
|
+
if (f != null) {
|
|
58541
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
58542
|
+
}
|
|
58543
|
+
f = message.getInputsExtractionJobsList();
|
|
58544
|
+
if (f.length > 0) {
|
|
58545
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.InputsExtractionJob.serializeBinaryToWriter);
|
|
58546
|
+
}
|
|
58547
|
+
};
|
|
58548
|
+
/**
|
|
58549
|
+
* optional status.Status status = 1;
|
|
58550
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
58551
|
+
*/
|
|
58552
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.getStatus = function () {
|
|
58553
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
58554
|
+
};
|
|
58555
|
+
/**
|
|
58556
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
58557
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
58558
|
+
*/
|
|
58559
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.setStatus = function (value) {
|
|
58560
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
58561
|
+
};
|
|
58562
|
+
/**
|
|
58563
|
+
* Clears the message field making it undefined.
|
|
58564
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
58565
|
+
*/
|
|
58566
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.clearStatus = function () {
|
|
58567
|
+
return this.setStatus(undefined);
|
|
58568
|
+
};
|
|
58569
|
+
/**
|
|
58570
|
+
* Returns whether this field is set.
|
|
58571
|
+
* @return {boolean}
|
|
58572
|
+
*/
|
|
58573
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.hasStatus = function () {
|
|
58574
|
+
return jspb.Message.getField(this, 1) != null;
|
|
58575
|
+
};
|
|
58576
|
+
/**
|
|
58577
|
+
* repeated InputsExtractionJob inputs_extraction_jobs = 2;
|
|
58578
|
+
* @return {!Array<!proto.clarifai.api.InputsExtractionJob>}
|
|
58579
|
+
*/
|
|
58580
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.getInputsExtractionJobsList = function () {
|
|
58581
|
+
return /** @type{!Array<!proto.clarifai.api.InputsExtractionJob>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsExtractionJob, 2));
|
|
58582
|
+
};
|
|
58583
|
+
/**
|
|
58584
|
+
* @param {!Array<!proto.clarifai.api.InputsExtractionJob>} value
|
|
58585
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
58586
|
+
*/
|
|
58587
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.setInputsExtractionJobsList = function (value) {
|
|
58588
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
58589
|
+
};
|
|
58590
|
+
/**
|
|
58591
|
+
* @param {!proto.clarifai.api.InputsExtractionJob=} opt_value
|
|
58592
|
+
* @param {number=} opt_index
|
|
58593
|
+
* @return {!proto.clarifai.api.InputsExtractionJob}
|
|
58594
|
+
*/
|
|
58595
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.addInputsExtractionJobs = function (opt_value, opt_index) {
|
|
58596
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsExtractionJob, opt_index);
|
|
58597
|
+
};
|
|
58598
|
+
/**
|
|
58599
|
+
* Clears the list making it empty but non-null.
|
|
58600
|
+
* @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this
|
|
58601
|
+
*/
|
|
58602
|
+
proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.clearInputsExtractionJobsList = function () {
|
|
58603
|
+
return this.setInputsExtractionJobsList([]);
|
|
58604
|
+
};
|
|
57619
58605
|
/**
|
|
57620
58606
|
* @enum {number}
|
|
57621
58607
|
*/
|