clarifai-web-grpc 9.10.8 → 9.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,7 +83,6 @@ goog.exportSymbol('proto.clarifai.api.GetConceptCountsRequest', null, global);
83
83
  goog.exportSymbol('proto.clarifai.api.GetConceptLanguageRequest', null, global);
84
84
  goog.exportSymbol('proto.clarifai.api.GetConceptRequest', null, global);
85
85
  goog.exportSymbol('proto.clarifai.api.GetDatasetInputRequest', null, global);
86
- goog.exportSymbol('proto.clarifai.api.GetDatasetInputsSearchAddJobRequest', null, global);
87
86
  goog.exportSymbol('proto.clarifai.api.GetDatasetRequest', null, global);
88
87
  goog.exportSymbol('proto.clarifai.api.GetDatasetVersionRequest', null, global);
89
88
  goog.exportSymbol('proto.clarifai.api.GetEvaluationRequest', null, global);
@@ -339,7 +338,6 @@ goog.exportSymbol('proto.clarifai.api.SingleCollectorResponse', null, global);
339
338
  goog.exportSymbol('proto.clarifai.api.SingleConceptLanguageResponse', null, global);
340
339
  goog.exportSymbol('proto.clarifai.api.SingleConceptResponse', null, global);
341
340
  goog.exportSymbol('proto.clarifai.api.SingleDatasetInputResponse', null, global);
342
- goog.exportSymbol('proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse', null, global);
343
341
  goog.exportSymbol('proto.clarifai.api.SingleDatasetResponse', null, global);
344
342
  goog.exportSymbol('proto.clarifai.api.SingleDatasetVersionResponse', null, global);
345
343
  goog.exportSymbol('proto.clarifai.api.SingleEvalMetricsResponse', null, global);
@@ -2448,48 +2446,6 @@ if (goog.DEBUG && !COMPILED) {
2448
2446
  */
2449
2447
  proto.clarifai.api.SingleDatasetVersionResponse.displayName = 'proto.clarifai.api.SingleDatasetVersionResponse';
2450
2448
  }
2451
- /**
2452
- * Generated by JsPbCodeGenerator.
2453
- * @param {Array=} opt_data Optional initial data array, typically from a
2454
- * server response, or constructed directly in Javascript. The array is used
2455
- * in place and becomes part of the constructed object. It is not cloned.
2456
- * If no data is provided, the constructed object will be empty, but still
2457
- * valid.
2458
- * @extends {jspb.Message}
2459
- * @constructor
2460
- */
2461
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest = function (opt_data) {
2462
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2463
- };
2464
- goog.inherits(proto.clarifai.api.GetDatasetInputsSearchAddJobRequest, jspb.Message);
2465
- if (goog.DEBUG && !COMPILED) {
2466
- /**
2467
- * @public
2468
- * @override
2469
- */
2470
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.displayName = 'proto.clarifai.api.GetDatasetInputsSearchAddJobRequest';
2471
- }
2472
- /**
2473
- * Generated by JsPbCodeGenerator.
2474
- * @param {Array=} opt_data Optional initial data array, typically from a
2475
- * server response, or constructed directly in Javascript. The array is used
2476
- * in place and becomes part of the constructed object. It is not cloned.
2477
- * If no data is provided, the constructed object will be empty, but still
2478
- * valid.
2479
- * @extends {jspb.Message}
2480
- * @constructor
2481
- */
2482
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse = function (opt_data) {
2483
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2484
- };
2485
- goog.inherits(proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse, jspb.Message);
2486
- if (goog.DEBUG && !COMPILED) {
2487
- /**
2488
- * @public
2489
- * @override
2490
- */
2491
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.displayName = 'proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse';
2492
- }
2493
2449
  /**
2494
2450
  * Generated by JsPbCodeGenerator.
2495
2451
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -14203,7 +14159,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
14203
14159
  modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
14204
14160
  versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
14205
14161
  page: jspb.Message.getFieldWithDefault(msg, 4, 0),
14206
- perPage: jspb.Message.getFieldWithDefault(msg, 5, 0)
14162
+ perPage: jspb.Message.getFieldWithDefault(msg, 5, 0),
14163
+ search: jspb.Message.getFieldWithDefault(msg, 6, "")
14207
14164
  };
14208
14165
  if (includeInstance) {
14209
14166
  obj.$jspbMessageInstance = msg;
@@ -14256,6 +14213,10 @@ proto.clarifai.api.ListModelConceptsRequest.deserializeBinaryFromReader = functi
14256
14213
  var value = /** @type {number} */ (reader.readUint32());
14257
14214
  msg.setPerPage(value);
14258
14215
  break;
14216
+ case 6:
14217
+ var value = /** @type {string} */ (reader.readString());
14218
+ msg.setSearch(value);
14219
+ break;
14259
14220
  default:
14260
14221
  reader.skipField();
14261
14222
  break;
@@ -14301,6 +14262,10 @@ proto.clarifai.api.ListModelConceptsRequest.serializeBinaryToWriter = function (
14301
14262
  if (f !== 0) {
14302
14263
  writer.writeUint32(5, f);
14303
14264
  }
14265
+ f = message.getSearch();
14266
+ if (f.length > 0) {
14267
+ writer.writeString(6, f);
14268
+ }
14304
14269
  };
14305
14270
  /**
14306
14271
  * optional UserAppIDSet user_app_id = 1;
@@ -14386,6 +14351,20 @@ proto.clarifai.api.ListModelConceptsRequest.prototype.getPerPage = function () {
14386
14351
  proto.clarifai.api.ListModelConceptsRequest.prototype.setPerPage = function (value) {
14387
14352
  return jspb.Message.setProto3IntField(this, 5, value);
14388
14353
  };
14354
+ /**
14355
+ * optional string search = 6;
14356
+ * @return {string}
14357
+ */
14358
+ proto.clarifai.api.ListModelConceptsRequest.prototype.getSearch = function () {
14359
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
14360
+ };
14361
+ /**
14362
+ * @param {string} value
14363
+ * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this
14364
+ */
14365
+ proto.clarifai.api.ListModelConceptsRequest.prototype.setSearch = function (value) {
14366
+ return jspb.Message.setProto3StringField(this, 6, value);
14367
+ };
14389
14368
  if (jspb.Message.GENERATE_TO_OBJECT) {
14390
14369
  /**
14391
14370
  * Creates an object representation of this proto.
@@ -23390,7 +23369,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
23390
23369
  var f, obj = {
23391
23370
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
23392
23371
  datasetInputsList: jspb.Message.toObjectList(msg.getDatasetInputsList(), proto_clarifai_api_resources_pb.DatasetInput.toObject, includeInstance),
23393
- datasetInputsSearchAddJob: (f = msg.getDatasetInputsSearchAddJob()) && proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.toObject(includeInstance, f)
23372
+ bulkOperation: (f = msg.getBulkOperation()) && proto_clarifai_api_resources_pb.BulkOperation.toObject(includeInstance, f)
23394
23373
  };
23395
23374
  if (includeInstance) {
23396
23375
  obj.$jspbMessageInstance = msg;
@@ -23432,10 +23411,10 @@ proto.clarifai.api.MultiDatasetInputResponse.deserializeBinaryFromReader = funct
23432
23411
  reader.readMessage(value, proto_clarifai_api_resources_pb.DatasetInput.deserializeBinaryFromReader);
23433
23412
  msg.addDatasetInputs(value);
23434
23413
  break;
23435
- case 3:
23436
- var value = new proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob;
23437
- reader.readMessage(value, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.deserializeBinaryFromReader);
23438
- msg.setDatasetInputsSearchAddJob(value);
23414
+ case 4:
23415
+ var value = new proto_clarifai_api_resources_pb.BulkOperation;
23416
+ reader.readMessage(value, proto_clarifai_api_resources_pb.BulkOperation.deserializeBinaryFromReader);
23417
+ msg.setBulkOperation(value);
23439
23418
  break;
23440
23419
  default:
23441
23420
  reader.skipField();
@@ -23470,9 +23449,9 @@ proto.clarifai.api.MultiDatasetInputResponse.serializeBinaryToWriter = function
23470
23449
  if (f.length > 0) {
23471
23450
  writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.DatasetInput.serializeBinaryToWriter);
23472
23451
  }
23473
- f = message.getDatasetInputsSearchAddJob();
23452
+ f = message.getBulkOperation();
23474
23453
  if (f != null) {
23475
- writer.writeMessage(3, f, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.serializeBinaryToWriter);
23454
+ writer.writeMessage(4, f, proto_clarifai_api_resources_pb.BulkOperation.serializeBinaryToWriter);
23476
23455
  }
23477
23456
  };
23478
23457
  /**
@@ -23533,32 +23512,32 @@ proto.clarifai.api.MultiDatasetInputResponse.prototype.clearDatasetInputsList =
23533
23512
  return this.setDatasetInputsList([]);
23534
23513
  };
23535
23514
  /**
23536
- * optional DatasetInputsSearchAddJob dataset_inputs_search_add_job = 3;
23537
- * @return {?proto.clarifai.api.DatasetInputsSearchAddJob}
23515
+ * optional BulkOperation bulk_operation = 4;
23516
+ * @return {?proto.clarifai.api.BulkOperation}
23538
23517
  */
23539
- proto.clarifai.api.MultiDatasetInputResponse.prototype.getDatasetInputsSearchAddJob = function () {
23540
- return /** @type{?proto.clarifai.api.DatasetInputsSearchAddJob} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob, 3));
23518
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.getBulkOperation = function () {
23519
+ return /** @type{?proto.clarifai.api.BulkOperation} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.BulkOperation, 4));
23541
23520
  };
23542
23521
  /**
23543
- * @param {?proto.clarifai.api.DatasetInputsSearchAddJob|undefined} value
23522
+ * @param {?proto.clarifai.api.BulkOperation|undefined} value
23544
23523
  * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this
23545
23524
  */
23546
- proto.clarifai.api.MultiDatasetInputResponse.prototype.setDatasetInputsSearchAddJob = function (value) {
23547
- return jspb.Message.setWrapperField(this, 3, value);
23525
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.setBulkOperation = function (value) {
23526
+ return jspb.Message.setWrapperField(this, 4, value);
23548
23527
  };
23549
23528
  /**
23550
23529
  * Clears the message field making it undefined.
23551
23530
  * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this
23552
23531
  */
23553
- proto.clarifai.api.MultiDatasetInputResponse.prototype.clearDatasetInputsSearchAddJob = function () {
23554
- return this.setDatasetInputsSearchAddJob(undefined);
23532
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.clearBulkOperation = function () {
23533
+ return this.setBulkOperation(undefined);
23555
23534
  };
23556
23535
  /**
23557
23536
  * Returns whether this field is set.
23558
23537
  * @return {boolean}
23559
23538
  */
23560
- proto.clarifai.api.MultiDatasetInputResponse.prototype.hasDatasetInputsSearchAddJob = function () {
23561
- return jspb.Message.getField(this, 3) != null;
23539
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.hasBulkOperation = function () {
23540
+ return jspb.Message.getField(this, 4) != null;
23562
23541
  };
23563
23542
  if (jspb.Message.GENERATE_TO_OBJECT) {
23564
23543
  /**
@@ -25882,311 +25861,6 @@ proto.clarifai.api.SingleDatasetVersionResponse.prototype.clearDatasetVersion =
25882
25861
  proto.clarifai.api.SingleDatasetVersionResponse.prototype.hasDatasetVersion = function () {
25883
25862
  return jspb.Message.getField(this, 2) != null;
25884
25863
  };
25885
- if (jspb.Message.GENERATE_TO_OBJECT) {
25886
- /**
25887
- * Creates an object representation of this proto.
25888
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
25889
- * Optional fields that are not set will be set to undefined.
25890
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25891
- * For the list of reserved names please see:
25892
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25893
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25894
- * JSPB instance for transitional soy proto support:
25895
- * http://goto/soy-param-migration
25896
- * @return {!Object}
25897
- */
25898
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.toObject = function (opt_includeInstance) {
25899
- return proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.toObject(opt_includeInstance, this);
25900
- };
25901
- /**
25902
- * Static version of the {@see toObject} method.
25903
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25904
- * the JSPB instance for transitional soy proto support:
25905
- * http://goto/soy-param-migration
25906
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} msg The msg instance to transform.
25907
- * @return {!Object}
25908
- * @suppress {unusedLocalVariables} f is only used for nested messages
25909
- */
25910
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.toObject = function (includeInstance, msg) {
25911
- var f, obj = {
25912
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
25913
- jobId: jspb.Message.getFieldWithDefault(msg, 2, "")
25914
- };
25915
- if (includeInstance) {
25916
- obj.$jspbMessageInstance = msg;
25917
- }
25918
- return obj;
25919
- };
25920
- }
25921
- /**
25922
- * Deserializes binary data (in protobuf wire format).
25923
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
25924
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest}
25925
- */
25926
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinary = function (bytes) {
25927
- var reader = new jspb.BinaryReader(bytes);
25928
- var msg = new proto.clarifai.api.GetDatasetInputsSearchAddJobRequest;
25929
- return proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinaryFromReader(msg, reader);
25930
- };
25931
- /**
25932
- * Deserializes binary data (in protobuf wire format) from the
25933
- * given reader into the given message object.
25934
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} msg The message object to deserialize into.
25935
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25936
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest}
25937
- */
25938
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinaryFromReader = function (msg, reader) {
25939
- while (reader.nextField()) {
25940
- if (reader.isEndGroup()) {
25941
- break;
25942
- }
25943
- var field = reader.getFieldNumber();
25944
- switch (field) {
25945
- case 1:
25946
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
25947
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
25948
- msg.setUserAppId(value);
25949
- break;
25950
- case 2:
25951
- var value = /** @type {string} */ (reader.readString());
25952
- msg.setJobId(value);
25953
- break;
25954
- default:
25955
- reader.skipField();
25956
- break;
25957
- }
25958
- }
25959
- return msg;
25960
- };
25961
- /**
25962
- * Serializes the message to binary data (in protobuf wire format).
25963
- * @return {!Uint8Array}
25964
- */
25965
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.serializeBinary = function () {
25966
- var writer = new jspb.BinaryWriter();
25967
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.serializeBinaryToWriter(this, writer);
25968
- return writer.getResultBuffer();
25969
- };
25970
- /**
25971
- * Serializes the given message to binary data (in protobuf wire
25972
- * format), writing to the given BinaryWriter.
25973
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} message
25974
- * @param {!jspb.BinaryWriter} writer
25975
- * @suppress {unusedLocalVariables} f is only used for nested messages
25976
- */
25977
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.serializeBinaryToWriter = function (message, writer) {
25978
- var f = undefined;
25979
- f = message.getUserAppId();
25980
- if (f != null) {
25981
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
25982
- }
25983
- f = message.getJobId();
25984
- if (f.length > 0) {
25985
- writer.writeString(2, f);
25986
- }
25987
- };
25988
- /**
25989
- * optional UserAppIDSet user_app_id = 1;
25990
- * @return {?proto.clarifai.api.UserAppIDSet}
25991
- */
25992
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.getUserAppId = function () {
25993
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
25994
- };
25995
- /**
25996
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
25997
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this
25998
- */
25999
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.setUserAppId = function (value) {
26000
- return jspb.Message.setWrapperField(this, 1, value);
26001
- };
26002
- /**
26003
- * Clears the message field making it undefined.
26004
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this
26005
- */
26006
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.clearUserAppId = function () {
26007
- return this.setUserAppId(undefined);
26008
- };
26009
- /**
26010
- * Returns whether this field is set.
26011
- * @return {boolean}
26012
- */
26013
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.hasUserAppId = function () {
26014
- return jspb.Message.getField(this, 1) != null;
26015
- };
26016
- /**
26017
- * optional string job_id = 2;
26018
- * @return {string}
26019
- */
26020
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.getJobId = function () {
26021
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
26022
- };
26023
- /**
26024
- * @param {string} value
26025
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this
26026
- */
26027
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.setJobId = function (value) {
26028
- return jspb.Message.setProto3StringField(this, 2, value);
26029
- };
26030
- if (jspb.Message.GENERATE_TO_OBJECT) {
26031
- /**
26032
- * Creates an object representation of this proto.
26033
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
26034
- * Optional fields that are not set will be set to undefined.
26035
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
26036
- * For the list of reserved names please see:
26037
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
26038
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
26039
- * JSPB instance for transitional soy proto support:
26040
- * http://goto/soy-param-migration
26041
- * @return {!Object}
26042
- */
26043
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.toObject = function (opt_includeInstance) {
26044
- return proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.toObject(opt_includeInstance, this);
26045
- };
26046
- /**
26047
- * Static version of the {@see toObject} method.
26048
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
26049
- * the JSPB instance for transitional soy proto support:
26050
- * http://goto/soy-param-migration
26051
- * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} msg The msg instance to transform.
26052
- * @return {!Object}
26053
- * @suppress {unusedLocalVariables} f is only used for nested messages
26054
- */
26055
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.toObject = function (includeInstance, msg) {
26056
- var f, obj = {
26057
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
26058
- job: (f = msg.getJob()) && proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.toObject(includeInstance, f)
26059
- };
26060
- if (includeInstance) {
26061
- obj.$jspbMessageInstance = msg;
26062
- }
26063
- return obj;
26064
- };
26065
- }
26066
- /**
26067
- * Deserializes binary data (in protobuf wire format).
26068
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
26069
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse}
26070
- */
26071
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinary = function (bytes) {
26072
- var reader = new jspb.BinaryReader(bytes);
26073
- var msg = new proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse;
26074
- return proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinaryFromReader(msg, reader);
26075
- };
26076
- /**
26077
- * Deserializes binary data (in protobuf wire format) from the
26078
- * given reader into the given message object.
26079
- * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} msg The message object to deserialize into.
26080
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
26081
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse}
26082
- */
26083
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinaryFromReader = function (msg, reader) {
26084
- while (reader.nextField()) {
26085
- if (reader.isEndGroup()) {
26086
- break;
26087
- }
26088
- var field = reader.getFieldNumber();
26089
- switch (field) {
26090
- case 1:
26091
- var value = new proto_clarifai_api_status_status_pb.Status;
26092
- reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
26093
- msg.setStatus(value);
26094
- break;
26095
- case 2:
26096
- var value = new proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob;
26097
- reader.readMessage(value, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.deserializeBinaryFromReader);
26098
- msg.setJob(value);
26099
- break;
26100
- default:
26101
- reader.skipField();
26102
- break;
26103
- }
26104
- }
26105
- return msg;
26106
- };
26107
- /**
26108
- * Serializes the message to binary data (in protobuf wire format).
26109
- * @return {!Uint8Array}
26110
- */
26111
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.serializeBinary = function () {
26112
- var writer = new jspb.BinaryWriter();
26113
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.serializeBinaryToWriter(this, writer);
26114
- return writer.getResultBuffer();
26115
- };
26116
- /**
26117
- * Serializes the given message to binary data (in protobuf wire
26118
- * format), writing to the given BinaryWriter.
26119
- * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} message
26120
- * @param {!jspb.BinaryWriter} writer
26121
- * @suppress {unusedLocalVariables} f is only used for nested messages
26122
- */
26123
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.serializeBinaryToWriter = function (message, writer) {
26124
- var f = undefined;
26125
- f = message.getStatus();
26126
- if (f != null) {
26127
- writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
26128
- }
26129
- f = message.getJob();
26130
- if (f != null) {
26131
- writer.writeMessage(2, f, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.serializeBinaryToWriter);
26132
- }
26133
- };
26134
- /**
26135
- * optional status.Status status = 1;
26136
- * @return {?proto.clarifai.api.status.Status}
26137
- */
26138
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.getStatus = function () {
26139
- return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
26140
- };
26141
- /**
26142
- * @param {?proto.clarifai.api.status.Status|undefined} value
26143
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
26144
- */
26145
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.setStatus = function (value) {
26146
- return jspb.Message.setWrapperField(this, 1, value);
26147
- };
26148
- /**
26149
- * Clears the message field making it undefined.
26150
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
26151
- */
26152
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.clearStatus = function () {
26153
- return this.setStatus(undefined);
26154
- };
26155
- /**
26156
- * Returns whether this field is set.
26157
- * @return {boolean}
26158
- */
26159
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.hasStatus = function () {
26160
- return jspb.Message.getField(this, 1) != null;
26161
- };
26162
- /**
26163
- * optional DatasetInputsSearchAddJob job = 2;
26164
- * @return {?proto.clarifai.api.DatasetInputsSearchAddJob}
26165
- */
26166
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.getJob = function () {
26167
- return /** @type{?proto.clarifai.api.DatasetInputsSearchAddJob} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob, 2));
26168
- };
26169
- /**
26170
- * @param {?proto.clarifai.api.DatasetInputsSearchAddJob|undefined} value
26171
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
26172
- */
26173
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.setJob = function (value) {
26174
- return jspb.Message.setWrapperField(this, 2, value);
26175
- };
26176
- /**
26177
- * Clears the message field making it undefined.
26178
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
26179
- */
26180
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.clearJob = function () {
26181
- return this.setJob(undefined);
26182
- };
26183
- /**
26184
- * Returns whether this field is set.
26185
- * @return {boolean}
26186
- */
26187
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.hasJob = function () {
26188
- return jspb.Message.getField(this, 2) != null;
26189
- };
26190
25864
  /**
26191
25865
  * List of repeated fields within this message type.
26192
25866
  * @private {!Array<number>}