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.
@@ -85,7 +85,6 @@ goog.exportSymbol('proto.clarifai.api.GetConceptCountsRequest', null, global);
85
85
  goog.exportSymbol('proto.clarifai.api.GetConceptLanguageRequest', null, global);
86
86
  goog.exportSymbol('proto.clarifai.api.GetConceptRequest', null, global);
87
87
  goog.exportSymbol('proto.clarifai.api.GetDatasetInputRequest', null, global);
88
- goog.exportSymbol('proto.clarifai.api.GetDatasetInputsSearchAddJobRequest', null, global);
89
88
  goog.exportSymbol('proto.clarifai.api.GetDatasetRequest', null, global);
90
89
  goog.exportSymbol('proto.clarifai.api.GetDatasetVersionRequest', null, global);
91
90
  goog.exportSymbol('proto.clarifai.api.GetEvaluationRequest', null, global);
@@ -341,7 +340,6 @@ goog.exportSymbol('proto.clarifai.api.SingleCollectorResponse', null, global);
341
340
  goog.exportSymbol('proto.clarifai.api.SingleConceptLanguageResponse', null, global);
342
341
  goog.exportSymbol('proto.clarifai.api.SingleConceptResponse', null, global);
343
342
  goog.exportSymbol('proto.clarifai.api.SingleDatasetInputResponse', null, global);
344
- goog.exportSymbol('proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse', null, global);
345
343
  goog.exportSymbol('proto.clarifai.api.SingleDatasetResponse', null, global);
346
344
  goog.exportSymbol('proto.clarifai.api.SingleDatasetVersionResponse', null, global);
347
345
  goog.exportSymbol('proto.clarifai.api.SingleEvalMetricsResponse', null, global);
@@ -2450,48 +2448,6 @@ if (goog.DEBUG && !COMPILED) {
2450
2448
  */
2451
2449
  proto.clarifai.api.SingleDatasetVersionResponse.displayName = 'proto.clarifai.api.SingleDatasetVersionResponse';
2452
2450
  }
2453
- /**
2454
- * Generated by JsPbCodeGenerator.
2455
- * @param {Array=} opt_data Optional initial data array, typically from a
2456
- * server response, or constructed directly in Javascript. The array is used
2457
- * in place and becomes part of the constructed object. It is not cloned.
2458
- * If no data is provided, the constructed object will be empty, but still
2459
- * valid.
2460
- * @extends {jspb.Message}
2461
- * @constructor
2462
- */
2463
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest = function(opt_data) {
2464
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2465
- };
2466
- goog.inherits(proto.clarifai.api.GetDatasetInputsSearchAddJobRequest, jspb.Message);
2467
- if (goog.DEBUG && !COMPILED) {
2468
- /**
2469
- * @public
2470
- * @override
2471
- */
2472
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.displayName = 'proto.clarifai.api.GetDatasetInputsSearchAddJobRequest';
2473
- }
2474
- /**
2475
- * Generated by JsPbCodeGenerator.
2476
- * @param {Array=} opt_data Optional initial data array, typically from a
2477
- * server response, or constructed directly in Javascript. The array is used
2478
- * in place and becomes part of the constructed object. It is not cloned.
2479
- * If no data is provided, the constructed object will be empty, but still
2480
- * valid.
2481
- * @extends {jspb.Message}
2482
- * @constructor
2483
- */
2484
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse = function(opt_data) {
2485
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2486
- };
2487
- goog.inherits(proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse, jspb.Message);
2488
- if (goog.DEBUG && !COMPILED) {
2489
- /**
2490
- * @public
2491
- * @override
2492
- */
2493
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.displayName = 'proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse';
2494
- }
2495
2451
  /**
2496
2452
  * Generated by JsPbCodeGenerator.
2497
2453
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -16068,7 +16024,8 @@ proto.clarifai.api.ListModelConceptsRequest.toObject = function(includeInstance,
16068
16024
  modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
16069
16025
  versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
16070
16026
  page: jspb.Message.getFieldWithDefault(msg, 4, 0),
16071
- perPage: jspb.Message.getFieldWithDefault(msg, 5, 0)
16027
+ perPage: jspb.Message.getFieldWithDefault(msg, 5, 0),
16028
+ search: jspb.Message.getFieldWithDefault(msg, 6, "")
16072
16029
  };
16073
16030
 
16074
16031
  if (includeInstance) {
@@ -16126,6 +16083,10 @@ proto.clarifai.api.ListModelConceptsRequest.deserializeBinaryFromReader = functi
16126
16083
  var value = /** @type {number} */ (reader.readUint32());
16127
16084
  msg.setPerPage(value);
16128
16085
  break;
16086
+ case 6:
16087
+ var value = /** @type {string} */ (reader.readString());
16088
+ msg.setSearch(value);
16089
+ break;
16129
16090
  default:
16130
16091
  reader.skipField();
16131
16092
  break;
@@ -16191,6 +16152,13 @@ proto.clarifai.api.ListModelConceptsRequest.serializeBinaryToWriter = function(m
16191
16152
  f
16192
16153
  );
16193
16154
  }
16155
+ f = message.getSearch();
16156
+ if (f.length > 0) {
16157
+ writer.writeString(
16158
+ 6,
16159
+ f
16160
+ );
16161
+ }
16194
16162
  };
16195
16163
 
16196
16164
 
@@ -16303,6 +16271,24 @@ proto.clarifai.api.ListModelConceptsRequest.prototype.setPerPage = function(valu
16303
16271
  };
16304
16272
 
16305
16273
 
16274
+ /**
16275
+ * optional string search = 6;
16276
+ * @return {string}
16277
+ */
16278
+ proto.clarifai.api.ListModelConceptsRequest.prototype.getSearch = function() {
16279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
16280
+ };
16281
+
16282
+
16283
+ /**
16284
+ * @param {string} value
16285
+ * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this
16286
+ */
16287
+ proto.clarifai.api.ListModelConceptsRequest.prototype.setSearch = function(value) {
16288
+ return jspb.Message.setProto3StringField(this, 6, value);
16289
+ };
16290
+
16291
+
16306
16292
 
16307
16293
 
16308
16294
 
@@ -27669,7 +27655,7 @@ proto.clarifai.api.MultiDatasetInputResponse.toObject = function(includeInstance
27669
27655
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
27670
27656
  datasetInputsList: jspb.Message.toObjectList(msg.getDatasetInputsList(),
27671
27657
  proto_clarifai_api_resources_pb.DatasetInput.toObject, includeInstance),
27672
- datasetInputsSearchAddJob: (f = msg.getDatasetInputsSearchAddJob()) && proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.toObject(includeInstance, f)
27658
+ bulkOperation: (f = msg.getBulkOperation()) && proto_clarifai_api_resources_pb.BulkOperation.toObject(includeInstance, f)
27673
27659
  };
27674
27660
 
27675
27661
  if (includeInstance) {
@@ -27716,10 +27702,10 @@ proto.clarifai.api.MultiDatasetInputResponse.deserializeBinaryFromReader = funct
27716
27702
  reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInput.deserializeBinaryFromReader);
27717
27703
  msg.addDatasetInputs(value);
27718
27704
  break;
27719
- case 3:
27720
- var value = new proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob;
27721
- reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.deserializeBinaryFromReader);
27722
- msg.setDatasetInputsSearchAddJob(value);
27705
+ case 4:
27706
+ var value = new proto_clarifai_api_resources_pb.BulkOperation;
27707
+ reader.readMessage(value,proto_clarifai_api_resources_pb.BulkOperation.deserializeBinaryFromReader);
27708
+ msg.setBulkOperation(value);
27723
27709
  break;
27724
27710
  default:
27725
27711
  reader.skipField();
@@ -27766,12 +27752,12 @@ proto.clarifai.api.MultiDatasetInputResponse.serializeBinaryToWriter = function(
27766
27752
  proto_clarifai_api_resources_pb.DatasetInput.serializeBinaryToWriter
27767
27753
  );
27768
27754
  }
27769
- f = message.getDatasetInputsSearchAddJob();
27755
+ f = message.getBulkOperation();
27770
27756
  if (f != null) {
27771
27757
  writer.writeMessage(
27772
- 3,
27758
+ 4,
27773
27759
  f,
27774
- proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.serializeBinaryToWriter
27760
+ proto_clarifai_api_resources_pb.BulkOperation.serializeBinaryToWriter
27775
27761
  );
27776
27762
  }
27777
27763
  };
@@ -27853,21 +27839,21 @@ proto.clarifai.api.MultiDatasetInputResponse.prototype.clearDatasetInputsList =
27853
27839
 
27854
27840
 
27855
27841
  /**
27856
- * optional DatasetInputsSearchAddJob dataset_inputs_search_add_job = 3;
27857
- * @return {?proto.clarifai.api.DatasetInputsSearchAddJob}
27842
+ * optional BulkOperation bulk_operation = 4;
27843
+ * @return {?proto.clarifai.api.BulkOperation}
27858
27844
  */
27859
- proto.clarifai.api.MultiDatasetInputResponse.prototype.getDatasetInputsSearchAddJob = function() {
27860
- return /** @type{?proto.clarifai.api.DatasetInputsSearchAddJob} */ (
27861
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob, 3));
27845
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.getBulkOperation = function() {
27846
+ return /** @type{?proto.clarifai.api.BulkOperation} */ (
27847
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.BulkOperation, 4));
27862
27848
  };
27863
27849
 
27864
27850
 
27865
27851
  /**
27866
- * @param {?proto.clarifai.api.DatasetInputsSearchAddJob|undefined} value
27852
+ * @param {?proto.clarifai.api.BulkOperation|undefined} value
27867
27853
  * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this
27868
27854
  */
27869
- proto.clarifai.api.MultiDatasetInputResponse.prototype.setDatasetInputsSearchAddJob = function(value) {
27870
- return jspb.Message.setWrapperField(this, 3, value);
27855
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.setBulkOperation = function(value) {
27856
+ return jspb.Message.setWrapperField(this, 4, value);
27871
27857
  };
27872
27858
 
27873
27859
 
@@ -27875,8 +27861,8 @@ proto.clarifai.api.MultiDatasetInputResponse.prototype.setDatasetInputsSearchAdd
27875
27861
  * Clears the message field making it undefined.
27876
27862
  * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this
27877
27863
  */
27878
- proto.clarifai.api.MultiDatasetInputResponse.prototype.clearDatasetInputsSearchAddJob = function() {
27879
- return this.setDatasetInputsSearchAddJob(undefined);
27864
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.clearBulkOperation = function() {
27865
+ return this.setBulkOperation(undefined);
27880
27866
  };
27881
27867
 
27882
27868
 
@@ -27884,8 +27870,8 @@ proto.clarifai.api.MultiDatasetInputResponse.prototype.clearDatasetInputsSearchA
27884
27870
  * Returns whether this field is set.
27885
27871
  * @return {boolean}
27886
27872
  */
27887
- proto.clarifai.api.MultiDatasetInputResponse.prototype.hasDatasetInputsSearchAddJob = function() {
27888
- return jspb.Message.getField(this, 3) != null;
27873
+ proto.clarifai.api.MultiDatasetInputResponse.prototype.hasBulkOperation = function() {
27874
+ return jspb.Message.getField(this, 4) != null;
27889
27875
  };
27890
27876
 
27891
27877
 
@@ -30830,389 +30816,6 @@ proto.clarifai.api.SingleDatasetVersionResponse.prototype.hasDatasetVersion = fu
30830
30816
 
30831
30817
 
30832
30818
 
30833
-
30834
-
30835
- if (jspb.Message.GENERATE_TO_OBJECT) {
30836
- /**
30837
- * Creates an object representation of this proto.
30838
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
30839
- * Optional fields that are not set will be set to undefined.
30840
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30841
- * For the list of reserved names please see:
30842
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30843
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30844
- * JSPB instance for transitional soy proto support:
30845
- * http://goto/soy-param-migration
30846
- * @return {!Object}
30847
- */
30848
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.toObject = function(opt_includeInstance) {
30849
- return proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.toObject(opt_includeInstance, this);
30850
- };
30851
-
30852
-
30853
- /**
30854
- * Static version of the {@see toObject} method.
30855
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30856
- * the JSPB instance for transitional soy proto support:
30857
- * http://goto/soy-param-migration
30858
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} msg The msg instance to transform.
30859
- * @return {!Object}
30860
- * @suppress {unusedLocalVariables} f is only used for nested messages
30861
- */
30862
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.toObject = function(includeInstance, msg) {
30863
- var f, obj = {
30864
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
30865
- jobId: jspb.Message.getFieldWithDefault(msg, 2, "")
30866
- };
30867
-
30868
- if (includeInstance) {
30869
- obj.$jspbMessageInstance = msg;
30870
- }
30871
- return obj;
30872
- };
30873
- }
30874
-
30875
-
30876
- /**
30877
- * Deserializes binary data (in protobuf wire format).
30878
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
30879
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest}
30880
- */
30881
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinary = function(bytes) {
30882
- var reader = new jspb.BinaryReader(bytes);
30883
- var msg = new proto.clarifai.api.GetDatasetInputsSearchAddJobRequest;
30884
- return proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinaryFromReader(msg, reader);
30885
- };
30886
-
30887
-
30888
- /**
30889
- * Deserializes binary data (in protobuf wire format) from the
30890
- * given reader into the given message object.
30891
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} msg The message object to deserialize into.
30892
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30893
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest}
30894
- */
30895
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinaryFromReader = function(msg, reader) {
30896
- while (reader.nextField()) {
30897
- if (reader.isEndGroup()) {
30898
- break;
30899
- }
30900
- var field = reader.getFieldNumber();
30901
- switch (field) {
30902
- case 1:
30903
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
30904
- reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
30905
- msg.setUserAppId(value);
30906
- break;
30907
- case 2:
30908
- var value = /** @type {string} */ (reader.readString());
30909
- msg.setJobId(value);
30910
- break;
30911
- default:
30912
- reader.skipField();
30913
- break;
30914
- }
30915
- }
30916
- return msg;
30917
- };
30918
-
30919
-
30920
- /**
30921
- * Serializes the message to binary data (in protobuf wire format).
30922
- * @return {!Uint8Array}
30923
- */
30924
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.serializeBinary = function() {
30925
- var writer = new jspb.BinaryWriter();
30926
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.serializeBinaryToWriter(this, writer);
30927
- return writer.getResultBuffer();
30928
- };
30929
-
30930
-
30931
- /**
30932
- * Serializes the given message to binary data (in protobuf wire
30933
- * format), writing to the given BinaryWriter.
30934
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} message
30935
- * @param {!jspb.BinaryWriter} writer
30936
- * @suppress {unusedLocalVariables} f is only used for nested messages
30937
- */
30938
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.serializeBinaryToWriter = function(message, writer) {
30939
- var f = undefined;
30940
- f = message.getUserAppId();
30941
- if (f != null) {
30942
- writer.writeMessage(
30943
- 1,
30944
- f,
30945
- proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
30946
- );
30947
- }
30948
- f = message.getJobId();
30949
- if (f.length > 0) {
30950
- writer.writeString(
30951
- 2,
30952
- f
30953
- );
30954
- }
30955
- };
30956
-
30957
-
30958
- /**
30959
- * optional UserAppIDSet user_app_id = 1;
30960
- * @return {?proto.clarifai.api.UserAppIDSet}
30961
- */
30962
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.getUserAppId = function() {
30963
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
30964
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
30965
- };
30966
-
30967
-
30968
- /**
30969
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
30970
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this
30971
- */
30972
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.setUserAppId = function(value) {
30973
- return jspb.Message.setWrapperField(this, 1, value);
30974
- };
30975
-
30976
-
30977
- /**
30978
- * Clears the message field making it undefined.
30979
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this
30980
- */
30981
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.clearUserAppId = function() {
30982
- return this.setUserAppId(undefined);
30983
- };
30984
-
30985
-
30986
- /**
30987
- * Returns whether this field is set.
30988
- * @return {boolean}
30989
- */
30990
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.hasUserAppId = function() {
30991
- return jspb.Message.getField(this, 1) != null;
30992
- };
30993
-
30994
-
30995
- /**
30996
- * optional string job_id = 2;
30997
- * @return {string}
30998
- */
30999
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.getJobId = function() {
31000
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31001
- };
31002
-
31003
-
31004
- /**
31005
- * @param {string} value
31006
- * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this
31007
- */
31008
- proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.setJobId = function(value) {
31009
- return jspb.Message.setProto3StringField(this, 2, value);
31010
- };
31011
-
31012
-
31013
-
31014
-
31015
-
31016
- if (jspb.Message.GENERATE_TO_OBJECT) {
31017
- /**
31018
- * Creates an object representation of this proto.
31019
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
31020
- * Optional fields that are not set will be set to undefined.
31021
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31022
- * For the list of reserved names please see:
31023
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31024
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31025
- * JSPB instance for transitional soy proto support:
31026
- * http://goto/soy-param-migration
31027
- * @return {!Object}
31028
- */
31029
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.toObject = function(opt_includeInstance) {
31030
- return proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.toObject(opt_includeInstance, this);
31031
- };
31032
-
31033
-
31034
- /**
31035
- * Static version of the {@see toObject} method.
31036
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31037
- * the JSPB instance for transitional soy proto support:
31038
- * http://goto/soy-param-migration
31039
- * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} msg The msg instance to transform.
31040
- * @return {!Object}
31041
- * @suppress {unusedLocalVariables} f is only used for nested messages
31042
- */
31043
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.toObject = function(includeInstance, msg) {
31044
- var f, obj = {
31045
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
31046
- job: (f = msg.getJob()) && proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.toObject(includeInstance, f)
31047
- };
31048
-
31049
- if (includeInstance) {
31050
- obj.$jspbMessageInstance = msg;
31051
- }
31052
- return obj;
31053
- };
31054
- }
31055
-
31056
-
31057
- /**
31058
- * Deserializes binary data (in protobuf wire format).
31059
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
31060
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse}
31061
- */
31062
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinary = function(bytes) {
31063
- var reader = new jspb.BinaryReader(bytes);
31064
- var msg = new proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse;
31065
- return proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinaryFromReader(msg, reader);
31066
- };
31067
-
31068
-
31069
- /**
31070
- * Deserializes binary data (in protobuf wire format) from the
31071
- * given reader into the given message object.
31072
- * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} msg The message object to deserialize into.
31073
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31074
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse}
31075
- */
31076
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinaryFromReader = function(msg, reader) {
31077
- while (reader.nextField()) {
31078
- if (reader.isEndGroup()) {
31079
- break;
31080
- }
31081
- var field = reader.getFieldNumber();
31082
- switch (field) {
31083
- case 1:
31084
- var value = new proto_clarifai_api_status_status_pb.Status;
31085
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
31086
- msg.setStatus(value);
31087
- break;
31088
- case 2:
31089
- var value = new proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob;
31090
- reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.deserializeBinaryFromReader);
31091
- msg.setJob(value);
31092
- break;
31093
- default:
31094
- reader.skipField();
31095
- break;
31096
- }
31097
- }
31098
- return msg;
31099
- };
31100
-
31101
-
31102
- /**
31103
- * Serializes the message to binary data (in protobuf wire format).
31104
- * @return {!Uint8Array}
31105
- */
31106
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.serializeBinary = function() {
31107
- var writer = new jspb.BinaryWriter();
31108
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.serializeBinaryToWriter(this, writer);
31109
- return writer.getResultBuffer();
31110
- };
31111
-
31112
-
31113
- /**
31114
- * Serializes the given message to binary data (in protobuf wire
31115
- * format), writing to the given BinaryWriter.
31116
- * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} message
31117
- * @param {!jspb.BinaryWriter} writer
31118
- * @suppress {unusedLocalVariables} f is only used for nested messages
31119
- */
31120
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.serializeBinaryToWriter = function(message, writer) {
31121
- var f = undefined;
31122
- f = message.getStatus();
31123
- if (f != null) {
31124
- writer.writeMessage(
31125
- 1,
31126
- f,
31127
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
31128
- );
31129
- }
31130
- f = message.getJob();
31131
- if (f != null) {
31132
- writer.writeMessage(
31133
- 2,
31134
- f,
31135
- proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.serializeBinaryToWriter
31136
- );
31137
- }
31138
- };
31139
-
31140
-
31141
- /**
31142
- * optional status.Status status = 1;
31143
- * @return {?proto.clarifai.api.status.Status}
31144
- */
31145
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.getStatus = function() {
31146
- return /** @type{?proto.clarifai.api.status.Status} */ (
31147
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
31148
- };
31149
-
31150
-
31151
- /**
31152
- * @param {?proto.clarifai.api.status.Status|undefined} value
31153
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
31154
- */
31155
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.setStatus = function(value) {
31156
- return jspb.Message.setWrapperField(this, 1, value);
31157
- };
31158
-
31159
-
31160
- /**
31161
- * Clears the message field making it undefined.
31162
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
31163
- */
31164
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.clearStatus = function() {
31165
- return this.setStatus(undefined);
31166
- };
31167
-
31168
-
31169
- /**
31170
- * Returns whether this field is set.
31171
- * @return {boolean}
31172
- */
31173
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.hasStatus = function() {
31174
- return jspb.Message.getField(this, 1) != null;
31175
- };
31176
-
31177
-
31178
- /**
31179
- * optional DatasetInputsSearchAddJob job = 2;
31180
- * @return {?proto.clarifai.api.DatasetInputsSearchAddJob}
31181
- */
31182
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.getJob = function() {
31183
- return /** @type{?proto.clarifai.api.DatasetInputsSearchAddJob} */ (
31184
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob, 2));
31185
- };
31186
-
31187
-
31188
- /**
31189
- * @param {?proto.clarifai.api.DatasetInputsSearchAddJob|undefined} value
31190
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
31191
- */
31192
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.setJob = function(value) {
31193
- return jspb.Message.setWrapperField(this, 2, value);
31194
- };
31195
-
31196
-
31197
- /**
31198
- * Clears the message field making it undefined.
31199
- * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this
31200
- */
31201
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.clearJob = function() {
31202
- return this.setJob(undefined);
31203
- };
31204
-
31205
-
31206
- /**
31207
- * Returns whether this field is set.
31208
- * @return {boolean}
31209
- */
31210
- proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.hasJob = function() {
31211
- return jspb.Message.getField(this, 2) != null;
31212
- };
31213
-
31214
-
31215
-
31216
30819
  /**
31217
30820
  * List of repeated fields within this message type.
31218
30821
  * @private {!Array<number>}