clarifai-web-grpc 10.0.3 → 10.0.5

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/VERSION CHANGED
@@ -1 +1 @@
1
- 10.0.3
1
+ 10.0.5
@@ -7672,6 +7672,48 @@ proto.clarifai.api.V2PromiseClient.prototype.postModuleVersions =
7672
7672
  return this.client_.unaryCall(this.hostname_ +
7673
7673
  '/clarifai.api.V2/PostModuleVersions', request, metadata || {}, methodDescriptor_V2_PostModuleVersions);
7674
7674
  };
7675
+ /**
7676
+ * @const
7677
+ * @type {!grpc.web.MethodDescriptor<
7678
+ * !proto.clarifai.api.PatchModuleVersionsRequest,
7679
+ * !proto.clarifai.api.MultiModuleVersionResponse>}
7680
+ */
7681
+ const methodDescriptor_V2_PatchModuleVersions = new grpc.web.MethodDescriptor('/clarifai.api.V2/PatchModuleVersions', grpc.web.MethodType.UNARY, proto.clarifai.api.PatchModuleVersionsRequest, proto.clarifai.api.MultiModuleVersionResponse,
7682
+ /**
7683
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request
7684
+ * @return {!Uint8Array}
7685
+ */
7686
+ function (request) {
7687
+ return request.serializeBinary();
7688
+ }, proto.clarifai.api.MultiModuleVersionResponse.deserializeBinary);
7689
+ /**
7690
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request The
7691
+ * request proto
7692
+ * @param {?Object<string, string>} metadata User defined
7693
+ * call metadata
7694
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiModuleVersionResponse)}
7695
+ * callback The callback function(error, response)
7696
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiModuleVersionResponse>|undefined}
7697
+ * The XHR Node Readable Stream
7698
+ */
7699
+ proto.clarifai.api.V2Client.prototype.patchModuleVersions =
7700
+ function (request, metadata, callback) {
7701
+ return this.client_.rpcCall(this.hostname_ +
7702
+ '/clarifai.api.V2/PatchModuleVersions', request, metadata || {}, methodDescriptor_V2_PatchModuleVersions, callback);
7703
+ };
7704
+ /**
7705
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request The
7706
+ * request proto
7707
+ * @param {?Object<string, string>=} metadata User defined
7708
+ * call metadata
7709
+ * @return {!Promise<!proto.clarifai.api.MultiModuleVersionResponse>}
7710
+ * Promise that resolves to the response
7711
+ */
7712
+ proto.clarifai.api.V2PromiseClient.prototype.patchModuleVersions =
7713
+ function (request, metadata) {
7714
+ return this.client_.unaryCall(this.hostname_ +
7715
+ '/clarifai.api.V2/PatchModuleVersions', request, metadata || {}, methodDescriptor_V2_PatchModuleVersions);
7716
+ };
7675
7717
  /**
7676
7718
  * @const
7677
7719
  * @type {!grpc.web.MethodDescriptor<
@@ -263,6 +263,7 @@ goog.exportSymbol('proto.clarifai.api.PatchModelToolkitsRequest', null, global);
263
263
  goog.exportSymbol('proto.clarifai.api.PatchModelUseCasesRequest', null, global);
264
264
  goog.exportSymbol('proto.clarifai.api.PatchModelVersionsRequest', null, global);
265
265
  goog.exportSymbol('proto.clarifai.api.PatchModelsRequest', null, global);
266
+ goog.exportSymbol('proto.clarifai.api.PatchModuleVersionsRequest', null, global);
266
267
  goog.exportSymbol('proto.clarifai.api.PatchModulesRequest', null, global);
267
268
  goog.exportSymbol('proto.clarifai.api.PatchSearchesRequest', null, global);
268
269
  goog.exportSymbol('proto.clarifai.api.PatchTasksRequest', null, global);
@@ -5997,6 +5998,27 @@ if (goog.DEBUG && !COMPILED) {
5997
5998
  */
5998
5999
  proto.clarifai.api.PostModuleVersionsRequest.displayName = 'proto.clarifai.api.PostModuleVersionsRequest';
5999
6000
  }
6001
+ /**
6002
+ * Generated by JsPbCodeGenerator.
6003
+ * @param {Array=} opt_data Optional initial data array, typically from a
6004
+ * server response, or constructed directly in Javascript. The array is used
6005
+ * in place and becomes part of the constructed object. It is not cloned.
6006
+ * If no data is provided, the constructed object will be empty, but still
6007
+ * valid.
6008
+ * @extends {jspb.Message}
6009
+ * @constructor
6010
+ */
6011
+ proto.clarifai.api.PatchModuleVersionsRequest = function (opt_data) {
6012
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModuleVersionsRequest.repeatedFields_, null);
6013
+ };
6014
+ goog.inherits(proto.clarifai.api.PatchModuleVersionsRequest, jspb.Message);
6015
+ if (goog.DEBUG && !COMPILED) {
6016
+ /**
6017
+ * @public
6018
+ * @override
6019
+ */
6020
+ proto.clarifai.api.PatchModuleVersionsRequest.displayName = 'proto.clarifai.api.PatchModuleVersionsRequest';
6021
+ }
6000
6022
  /**
6001
6023
  * Generated by JsPbCodeGenerator.
6002
6024
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -58701,6 +58723,219 @@ proto.clarifai.api.PostModuleVersionsRequest.prototype.addModuleVersions = funct
58701
58723
  proto.clarifai.api.PostModuleVersionsRequest.prototype.clearModuleVersionsList = function () {
58702
58724
  return this.setModuleVersionsList([]);
58703
58725
  };
58726
+ /**
58727
+ * List of repeated fields within this message type.
58728
+ * @private {!Array<number>}
58729
+ * @const
58730
+ */
58731
+ proto.clarifai.api.PatchModuleVersionsRequest.repeatedFields_ = [3];
58732
+ if (jspb.Message.GENERATE_TO_OBJECT) {
58733
+ /**
58734
+ * Creates an object representation of this proto.
58735
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58736
+ * Optional fields that are not set will be set to undefined.
58737
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58738
+ * For the list of reserved names please see:
58739
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
58740
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58741
+ * JSPB instance for transitional soy proto support:
58742
+ * http://goto/soy-param-migration
58743
+ * @return {!Object}
58744
+ */
58745
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.toObject = function (opt_includeInstance) {
58746
+ return proto.clarifai.api.PatchModuleVersionsRequest.toObject(opt_includeInstance, this);
58747
+ };
58748
+ /**
58749
+ * Static version of the {@see toObject} method.
58750
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
58751
+ * the JSPB instance for transitional soy proto support:
58752
+ * http://goto/soy-param-migration
58753
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} msg The msg instance to transform.
58754
+ * @return {!Object}
58755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58756
+ */
58757
+ proto.clarifai.api.PatchModuleVersionsRequest.toObject = function (includeInstance, msg) {
58758
+ var f, obj = {
58759
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
58760
+ moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""),
58761
+ moduleVersionsList: jspb.Message.toObjectList(msg.getModuleVersionsList(), proto_clarifai_api_resources_pb.ModuleVersion.toObject, includeInstance),
58762
+ action: jspb.Message.getFieldWithDefault(msg, 4, "")
58763
+ };
58764
+ if (includeInstance) {
58765
+ obj.$jspbMessageInstance = msg;
58766
+ }
58767
+ return obj;
58768
+ };
58769
+ }
58770
+ /**
58771
+ * Deserializes binary data (in protobuf wire format).
58772
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
58773
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest}
58774
+ */
58775
+ proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinary = function (bytes) {
58776
+ var reader = new jspb.BinaryReader(bytes);
58777
+ var msg = new proto.clarifai.api.PatchModuleVersionsRequest;
58778
+ return proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinaryFromReader(msg, reader);
58779
+ };
58780
+ /**
58781
+ * Deserializes binary data (in protobuf wire format) from the
58782
+ * given reader into the given message object.
58783
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} msg The message object to deserialize into.
58784
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
58785
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest}
58786
+ */
58787
+ proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinaryFromReader = function (msg, reader) {
58788
+ while (reader.nextField()) {
58789
+ if (reader.isEndGroup()) {
58790
+ break;
58791
+ }
58792
+ var field = reader.getFieldNumber();
58793
+ switch (field) {
58794
+ case 1:
58795
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
58796
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
58797
+ msg.setUserAppId(value);
58798
+ break;
58799
+ case 2:
58800
+ var value = /** @type {string} */ (reader.readString());
58801
+ msg.setModuleId(value);
58802
+ break;
58803
+ case 3:
58804
+ var value = new proto_clarifai_api_resources_pb.ModuleVersion;
58805
+ reader.readMessage(value, proto_clarifai_api_resources_pb.ModuleVersion.deserializeBinaryFromReader);
58806
+ msg.addModuleVersions(value);
58807
+ break;
58808
+ case 4:
58809
+ var value = /** @type {string} */ (reader.readString());
58810
+ msg.setAction(value);
58811
+ break;
58812
+ default:
58813
+ reader.skipField();
58814
+ break;
58815
+ }
58816
+ }
58817
+ return msg;
58818
+ };
58819
+ /**
58820
+ * Serializes the message to binary data (in protobuf wire format).
58821
+ * @return {!Uint8Array}
58822
+ */
58823
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.serializeBinary = function () {
58824
+ var writer = new jspb.BinaryWriter();
58825
+ proto.clarifai.api.PatchModuleVersionsRequest.serializeBinaryToWriter(this, writer);
58826
+ return writer.getResultBuffer();
58827
+ };
58828
+ /**
58829
+ * Serializes the given message to binary data (in protobuf wire
58830
+ * format), writing to the given BinaryWriter.
58831
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} message
58832
+ * @param {!jspb.BinaryWriter} writer
58833
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58834
+ */
58835
+ proto.clarifai.api.PatchModuleVersionsRequest.serializeBinaryToWriter = function (message, writer) {
58836
+ var f = undefined;
58837
+ f = message.getUserAppId();
58838
+ if (f != null) {
58839
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
58840
+ }
58841
+ f = message.getModuleId();
58842
+ if (f.length > 0) {
58843
+ writer.writeString(2, f);
58844
+ }
58845
+ f = message.getModuleVersionsList();
58846
+ if (f.length > 0) {
58847
+ writer.writeRepeatedMessage(3, f, proto_clarifai_api_resources_pb.ModuleVersion.serializeBinaryToWriter);
58848
+ }
58849
+ f = message.getAction();
58850
+ if (f.length > 0) {
58851
+ writer.writeString(4, f);
58852
+ }
58853
+ };
58854
+ /**
58855
+ * optional UserAppIDSet user_app_id = 1;
58856
+ * @return {?proto.clarifai.api.UserAppIDSet}
58857
+ */
58858
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getUserAppId = function () {
58859
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
58860
+ };
58861
+ /**
58862
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
58863
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58864
+ */
58865
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setUserAppId = function (value) {
58866
+ return jspb.Message.setWrapperField(this, 1, value);
58867
+ };
58868
+ /**
58869
+ * Clears the message field making it undefined.
58870
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58871
+ */
58872
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.clearUserAppId = function () {
58873
+ return this.setUserAppId(undefined);
58874
+ };
58875
+ /**
58876
+ * Returns whether this field is set.
58877
+ * @return {boolean}
58878
+ */
58879
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.hasUserAppId = function () {
58880
+ return jspb.Message.getField(this, 1) != null;
58881
+ };
58882
+ /**
58883
+ * optional string module_id = 2;
58884
+ * @return {string}
58885
+ */
58886
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getModuleId = function () {
58887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
58888
+ };
58889
+ /**
58890
+ * @param {string} value
58891
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58892
+ */
58893
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setModuleId = function (value) {
58894
+ return jspb.Message.setProto3StringField(this, 2, value);
58895
+ };
58896
+ /**
58897
+ * repeated ModuleVersion module_versions = 3;
58898
+ * @return {!Array<!proto.clarifai.api.ModuleVersion>}
58899
+ */
58900
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getModuleVersionsList = function () {
58901
+ return /** @type{!Array<!proto.clarifai.api.ModuleVersion>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModuleVersion, 3));
58902
+ };
58903
+ /**
58904
+ * @param {!Array<!proto.clarifai.api.ModuleVersion>} value
58905
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58906
+ */
58907
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setModuleVersionsList = function (value) {
58908
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
58909
+ };
58910
+ /**
58911
+ * @param {!proto.clarifai.api.ModuleVersion=} opt_value
58912
+ * @param {number=} opt_index
58913
+ * @return {!proto.clarifai.api.ModuleVersion}
58914
+ */
58915
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.addModuleVersions = function (opt_value, opt_index) {
58916
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModuleVersion, opt_index);
58917
+ };
58918
+ /**
58919
+ * Clears the list making it empty but non-null.
58920
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58921
+ */
58922
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.clearModuleVersionsList = function () {
58923
+ return this.setModuleVersionsList([]);
58924
+ };
58925
+ /**
58926
+ * optional string action = 4;
58927
+ * @return {string}
58928
+ */
58929
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getAction = function () {
58930
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
58931
+ };
58932
+ /**
58933
+ * @param {string} value
58934
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58935
+ */
58936
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setAction = function (value) {
58937
+ return jspb.Message.setProto3StringField(this, 4, value);
58938
+ };
58704
58939
  /**
58705
58940
  * List of repeated fields within this message type.
58706
58941
  * @private {!Array<number>}
@@ -7672,6 +7672,48 @@ proto.clarifai.api.V2PromiseClient.prototype.postModuleVersions =
7672
7672
  return this.client_.unaryCall(this.hostname_ +
7673
7673
  '/clarifai.api.V2/PostModuleVersions', request, metadata || {}, methodDescriptor_V2_PostModuleVersions);
7674
7674
  };
7675
+ /**
7676
+ * @const
7677
+ * @type {!grpc.web.MethodDescriptor<
7678
+ * !proto.clarifai.api.PatchModuleVersionsRequest,
7679
+ * !proto.clarifai.api.MultiModuleVersionResponse>}
7680
+ */
7681
+ const methodDescriptor_V2_PatchModuleVersions = new grpc.web.MethodDescriptor('/clarifai.api.V2/PatchModuleVersions', grpc.web.MethodType.UNARY, proto.clarifai.api.PatchModuleVersionsRequest, proto.clarifai.api.MultiModuleVersionResponse,
7682
+ /**
7683
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request
7684
+ * @return {!Uint8Array}
7685
+ */
7686
+ function (request) {
7687
+ return request.serializeBinary();
7688
+ }, proto.clarifai.api.MultiModuleVersionResponse.deserializeBinary);
7689
+ /**
7690
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request The
7691
+ * request proto
7692
+ * @param {?Object<string, string>} metadata User defined
7693
+ * call metadata
7694
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiModuleVersionResponse)}
7695
+ * callback The callback function(error, response)
7696
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiModuleVersionResponse>|undefined}
7697
+ * The XHR Node Readable Stream
7698
+ */
7699
+ proto.clarifai.api.V2Client.prototype.patchModuleVersions =
7700
+ function (request, metadata, callback) {
7701
+ return this.client_.rpcCall(this.hostname_ +
7702
+ '/clarifai.api.V2/PatchModuleVersions', request, metadata || {}, methodDescriptor_V2_PatchModuleVersions, callback);
7703
+ };
7704
+ /**
7705
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request The
7706
+ * request proto
7707
+ * @param {?Object<string, string>=} metadata User defined
7708
+ * call metadata
7709
+ * @return {!Promise<!proto.clarifai.api.MultiModuleVersionResponse>}
7710
+ * Promise that resolves to the response
7711
+ */
7712
+ proto.clarifai.api.V2PromiseClient.prototype.patchModuleVersions =
7713
+ function (request, metadata) {
7714
+ return this.client_.unaryCall(this.hostname_ +
7715
+ '/clarifai.api.V2/PatchModuleVersions', request, metadata || {}, methodDescriptor_V2_PatchModuleVersions);
7716
+ };
7675
7717
  /**
7676
7718
  * @const
7677
7719
  * @type {!grpc.web.MethodDescriptor<
@@ -263,6 +263,7 @@ goog.exportSymbol('proto.clarifai.api.PatchModelToolkitsRequest', null, global);
263
263
  goog.exportSymbol('proto.clarifai.api.PatchModelUseCasesRequest', null, global);
264
264
  goog.exportSymbol('proto.clarifai.api.PatchModelVersionsRequest', null, global);
265
265
  goog.exportSymbol('proto.clarifai.api.PatchModelsRequest', null, global);
266
+ goog.exportSymbol('proto.clarifai.api.PatchModuleVersionsRequest', null, global);
266
267
  goog.exportSymbol('proto.clarifai.api.PatchModulesRequest', null, global);
267
268
  goog.exportSymbol('proto.clarifai.api.PatchSearchesRequest', null, global);
268
269
  goog.exportSymbol('proto.clarifai.api.PatchTasksRequest', null, global);
@@ -5997,6 +5998,27 @@ if (goog.DEBUG && !COMPILED) {
5997
5998
  */
5998
5999
  proto.clarifai.api.PostModuleVersionsRequest.displayName = 'proto.clarifai.api.PostModuleVersionsRequest';
5999
6000
  }
6001
+ /**
6002
+ * Generated by JsPbCodeGenerator.
6003
+ * @param {Array=} opt_data Optional initial data array, typically from a
6004
+ * server response, or constructed directly in Javascript. The array is used
6005
+ * in place and becomes part of the constructed object. It is not cloned.
6006
+ * If no data is provided, the constructed object will be empty, but still
6007
+ * valid.
6008
+ * @extends {jspb.Message}
6009
+ * @constructor
6010
+ */
6011
+ proto.clarifai.api.PatchModuleVersionsRequest = function (opt_data) {
6012
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModuleVersionsRequest.repeatedFields_, null);
6013
+ };
6014
+ goog.inherits(proto.clarifai.api.PatchModuleVersionsRequest, jspb.Message);
6015
+ if (goog.DEBUG && !COMPILED) {
6016
+ /**
6017
+ * @public
6018
+ * @override
6019
+ */
6020
+ proto.clarifai.api.PatchModuleVersionsRequest.displayName = 'proto.clarifai.api.PatchModuleVersionsRequest';
6021
+ }
6000
6022
  /**
6001
6023
  * Generated by JsPbCodeGenerator.
6002
6024
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -58701,6 +58723,219 @@ proto.clarifai.api.PostModuleVersionsRequest.prototype.addModuleVersions = funct
58701
58723
  proto.clarifai.api.PostModuleVersionsRequest.prototype.clearModuleVersionsList = function () {
58702
58724
  return this.setModuleVersionsList([]);
58703
58725
  };
58726
+ /**
58727
+ * List of repeated fields within this message type.
58728
+ * @private {!Array<number>}
58729
+ * @const
58730
+ */
58731
+ proto.clarifai.api.PatchModuleVersionsRequest.repeatedFields_ = [3];
58732
+ if (jspb.Message.GENERATE_TO_OBJECT) {
58733
+ /**
58734
+ * Creates an object representation of this proto.
58735
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58736
+ * Optional fields that are not set will be set to undefined.
58737
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58738
+ * For the list of reserved names please see:
58739
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
58740
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58741
+ * JSPB instance for transitional soy proto support:
58742
+ * http://goto/soy-param-migration
58743
+ * @return {!Object}
58744
+ */
58745
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.toObject = function (opt_includeInstance) {
58746
+ return proto.clarifai.api.PatchModuleVersionsRequest.toObject(opt_includeInstance, this);
58747
+ };
58748
+ /**
58749
+ * Static version of the {@see toObject} method.
58750
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
58751
+ * the JSPB instance for transitional soy proto support:
58752
+ * http://goto/soy-param-migration
58753
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} msg The msg instance to transform.
58754
+ * @return {!Object}
58755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58756
+ */
58757
+ proto.clarifai.api.PatchModuleVersionsRequest.toObject = function (includeInstance, msg) {
58758
+ var f, obj = {
58759
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
58760
+ moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""),
58761
+ moduleVersionsList: jspb.Message.toObjectList(msg.getModuleVersionsList(), proto_clarifai_api_resources_pb.ModuleVersion.toObject, includeInstance),
58762
+ action: jspb.Message.getFieldWithDefault(msg, 4, "")
58763
+ };
58764
+ if (includeInstance) {
58765
+ obj.$jspbMessageInstance = msg;
58766
+ }
58767
+ return obj;
58768
+ };
58769
+ }
58770
+ /**
58771
+ * Deserializes binary data (in protobuf wire format).
58772
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
58773
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest}
58774
+ */
58775
+ proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinary = function (bytes) {
58776
+ var reader = new jspb.BinaryReader(bytes);
58777
+ var msg = new proto.clarifai.api.PatchModuleVersionsRequest;
58778
+ return proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinaryFromReader(msg, reader);
58779
+ };
58780
+ /**
58781
+ * Deserializes binary data (in protobuf wire format) from the
58782
+ * given reader into the given message object.
58783
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} msg The message object to deserialize into.
58784
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
58785
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest}
58786
+ */
58787
+ proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinaryFromReader = function (msg, reader) {
58788
+ while (reader.nextField()) {
58789
+ if (reader.isEndGroup()) {
58790
+ break;
58791
+ }
58792
+ var field = reader.getFieldNumber();
58793
+ switch (field) {
58794
+ case 1:
58795
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
58796
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
58797
+ msg.setUserAppId(value);
58798
+ break;
58799
+ case 2:
58800
+ var value = /** @type {string} */ (reader.readString());
58801
+ msg.setModuleId(value);
58802
+ break;
58803
+ case 3:
58804
+ var value = new proto_clarifai_api_resources_pb.ModuleVersion;
58805
+ reader.readMessage(value, proto_clarifai_api_resources_pb.ModuleVersion.deserializeBinaryFromReader);
58806
+ msg.addModuleVersions(value);
58807
+ break;
58808
+ case 4:
58809
+ var value = /** @type {string} */ (reader.readString());
58810
+ msg.setAction(value);
58811
+ break;
58812
+ default:
58813
+ reader.skipField();
58814
+ break;
58815
+ }
58816
+ }
58817
+ return msg;
58818
+ };
58819
+ /**
58820
+ * Serializes the message to binary data (in protobuf wire format).
58821
+ * @return {!Uint8Array}
58822
+ */
58823
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.serializeBinary = function () {
58824
+ var writer = new jspb.BinaryWriter();
58825
+ proto.clarifai.api.PatchModuleVersionsRequest.serializeBinaryToWriter(this, writer);
58826
+ return writer.getResultBuffer();
58827
+ };
58828
+ /**
58829
+ * Serializes the given message to binary data (in protobuf wire
58830
+ * format), writing to the given BinaryWriter.
58831
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} message
58832
+ * @param {!jspb.BinaryWriter} writer
58833
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58834
+ */
58835
+ proto.clarifai.api.PatchModuleVersionsRequest.serializeBinaryToWriter = function (message, writer) {
58836
+ var f = undefined;
58837
+ f = message.getUserAppId();
58838
+ if (f != null) {
58839
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
58840
+ }
58841
+ f = message.getModuleId();
58842
+ if (f.length > 0) {
58843
+ writer.writeString(2, f);
58844
+ }
58845
+ f = message.getModuleVersionsList();
58846
+ if (f.length > 0) {
58847
+ writer.writeRepeatedMessage(3, f, proto_clarifai_api_resources_pb.ModuleVersion.serializeBinaryToWriter);
58848
+ }
58849
+ f = message.getAction();
58850
+ if (f.length > 0) {
58851
+ writer.writeString(4, f);
58852
+ }
58853
+ };
58854
+ /**
58855
+ * optional UserAppIDSet user_app_id = 1;
58856
+ * @return {?proto.clarifai.api.UserAppIDSet}
58857
+ */
58858
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getUserAppId = function () {
58859
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
58860
+ };
58861
+ /**
58862
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
58863
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58864
+ */
58865
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setUserAppId = function (value) {
58866
+ return jspb.Message.setWrapperField(this, 1, value);
58867
+ };
58868
+ /**
58869
+ * Clears the message field making it undefined.
58870
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58871
+ */
58872
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.clearUserAppId = function () {
58873
+ return this.setUserAppId(undefined);
58874
+ };
58875
+ /**
58876
+ * Returns whether this field is set.
58877
+ * @return {boolean}
58878
+ */
58879
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.hasUserAppId = function () {
58880
+ return jspb.Message.getField(this, 1) != null;
58881
+ };
58882
+ /**
58883
+ * optional string module_id = 2;
58884
+ * @return {string}
58885
+ */
58886
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getModuleId = function () {
58887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
58888
+ };
58889
+ /**
58890
+ * @param {string} value
58891
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58892
+ */
58893
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setModuleId = function (value) {
58894
+ return jspb.Message.setProto3StringField(this, 2, value);
58895
+ };
58896
+ /**
58897
+ * repeated ModuleVersion module_versions = 3;
58898
+ * @return {!Array<!proto.clarifai.api.ModuleVersion>}
58899
+ */
58900
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getModuleVersionsList = function () {
58901
+ return /** @type{!Array<!proto.clarifai.api.ModuleVersion>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModuleVersion, 3));
58902
+ };
58903
+ /**
58904
+ * @param {!Array<!proto.clarifai.api.ModuleVersion>} value
58905
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58906
+ */
58907
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setModuleVersionsList = function (value) {
58908
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
58909
+ };
58910
+ /**
58911
+ * @param {!proto.clarifai.api.ModuleVersion=} opt_value
58912
+ * @param {number=} opt_index
58913
+ * @return {!proto.clarifai.api.ModuleVersion}
58914
+ */
58915
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.addModuleVersions = function (opt_value, opt_index) {
58916
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModuleVersion, opt_index);
58917
+ };
58918
+ /**
58919
+ * Clears the list making it empty but non-null.
58920
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58921
+ */
58922
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.clearModuleVersionsList = function () {
58923
+ return this.setModuleVersionsList([]);
58924
+ };
58925
+ /**
58926
+ * optional string action = 4;
58927
+ * @return {string}
58928
+ */
58929
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getAction = function () {
58930
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
58931
+ };
58932
+ /**
58933
+ * @param {string} value
58934
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
58935
+ */
58936
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setAction = function (value) {
58937
+ return jspb.Message.setProto3StringField(this, 4, value);
58938
+ };
58704
58939
  /**
58705
58940
  * List of repeated fields within this message type.
58706
58941
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.0.3",
3
+ "version": "10.0.5",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1276,6 +1276,13 @@ export class V2Client {
1276
1276
  response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void
1277
1277
  ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiModuleVersionResponse>;
1278
1278
 
1279
+ patchModuleVersions(
1280
+ request: proto_clarifai_api_service_pb.PatchModuleVersionsRequest,
1281
+ metadata: grpcWeb.Metadata | undefined,
1282
+ callback: (err: grpcWeb.RpcError,
1283
+ response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void
1284
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiModuleVersionResponse>;
1285
+
1279
1286
  deleteModuleVersions(
1280
1287
  request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest,
1281
1288
  metadata: grpcWeb.Metadata | undefined,
@@ -2426,6 +2433,11 @@ export class V2PromiseClient {
2426
2433
  metadata?: grpcWeb.Metadata
2427
2434
  ): Promise<proto_clarifai_api_service_pb.MultiModuleVersionResponse>;
2428
2435
 
2436
+ patchModuleVersions(
2437
+ request: proto_clarifai_api_service_pb.PatchModuleVersionsRequest,
2438
+ metadata?: grpcWeb.Metadata
2439
+ ): Promise<proto_clarifai_api_service_pb.MultiModuleVersionResponse>;
2440
+
2429
2441
  deleteModuleVersions(
2430
2442
  request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest,
2431
2443
  metadata?: grpcWeb.Metadata
@@ -11136,6 +11136,67 @@ proto.clarifai.api.V2PromiseClient.prototype.postModuleVersions =
11136
11136
  };
11137
11137
 
11138
11138
 
11139
+ /**
11140
+ * @const
11141
+ * @type {!grpc.web.MethodDescriptor<
11142
+ * !proto.clarifai.api.PatchModuleVersionsRequest,
11143
+ * !proto.clarifai.api.MultiModuleVersionResponse>}
11144
+ */
11145
+ const methodDescriptor_V2_PatchModuleVersions = new grpc.web.MethodDescriptor(
11146
+ '/clarifai.api.V2/PatchModuleVersions',
11147
+ grpc.web.MethodType.UNARY,
11148
+ proto.clarifai.api.PatchModuleVersionsRequest,
11149
+ proto.clarifai.api.MultiModuleVersionResponse,
11150
+ /**
11151
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request
11152
+ * @return {!Uint8Array}
11153
+ */
11154
+ function(request) {
11155
+ return request.serializeBinary();
11156
+ },
11157
+ proto.clarifai.api.MultiModuleVersionResponse.deserializeBinary
11158
+ );
11159
+
11160
+
11161
+ /**
11162
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request The
11163
+ * request proto
11164
+ * @param {?Object<string, string>} metadata User defined
11165
+ * call metadata
11166
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiModuleVersionResponse)}
11167
+ * callback The callback function(error, response)
11168
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiModuleVersionResponse>|undefined}
11169
+ * The XHR Node Readable Stream
11170
+ */
11171
+ proto.clarifai.api.V2Client.prototype.patchModuleVersions =
11172
+ function(request, metadata, callback) {
11173
+ return this.client_.rpcCall(this.hostname_ +
11174
+ '/clarifai.api.V2/PatchModuleVersions',
11175
+ request,
11176
+ metadata || {},
11177
+ methodDescriptor_V2_PatchModuleVersions,
11178
+ callback);
11179
+ };
11180
+
11181
+
11182
+ /**
11183
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} request The
11184
+ * request proto
11185
+ * @param {?Object<string, string>=} metadata User defined
11186
+ * call metadata
11187
+ * @return {!Promise<!proto.clarifai.api.MultiModuleVersionResponse>}
11188
+ * Promise that resolves to the response
11189
+ */
11190
+ proto.clarifai.api.V2PromiseClient.prototype.patchModuleVersions =
11191
+ function(request, metadata) {
11192
+ return this.client_.unaryCall(this.hostname_ +
11193
+ '/clarifai.api.V2/PatchModuleVersions',
11194
+ request,
11195
+ metadata || {},
11196
+ methodDescriptor_V2_PatchModuleVersions);
11197
+ };
11198
+
11199
+
11139
11200
  /**
11140
11201
  * @const
11141
11202
  * @type {!grpc.web.MethodDescriptor<
@@ -8285,6 +8285,40 @@ export namespace PostModuleVersionsRequest {
8285
8285
  }
8286
8286
  }
8287
8287
 
8288
+ export class PatchModuleVersionsRequest extends jspb.Message {
8289
+ getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
8290
+ setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModuleVersionsRequest;
8291
+ hasUserAppId(): boolean;
8292
+ clearUserAppId(): PatchModuleVersionsRequest;
8293
+
8294
+ getModuleId(): string;
8295
+ setModuleId(value: string): PatchModuleVersionsRequest;
8296
+
8297
+ getModuleVersionsList(): Array<proto_clarifai_api_resources_pb.ModuleVersion>;
8298
+ setModuleVersionsList(value: Array<proto_clarifai_api_resources_pb.ModuleVersion>): PatchModuleVersionsRequest;
8299
+ clearModuleVersionsList(): PatchModuleVersionsRequest;
8300
+ addModuleVersions(value?: proto_clarifai_api_resources_pb.ModuleVersion, index?: number): proto_clarifai_api_resources_pb.ModuleVersion;
8301
+
8302
+ getAction(): string;
8303
+ setAction(value: string): PatchModuleVersionsRequest;
8304
+
8305
+ serializeBinary(): Uint8Array;
8306
+ toObject(includeInstance?: boolean): PatchModuleVersionsRequest.AsObject;
8307
+ static toObject(includeInstance: boolean, msg: PatchModuleVersionsRequest): PatchModuleVersionsRequest.AsObject;
8308
+ static serializeBinaryToWriter(message: PatchModuleVersionsRequest, writer: jspb.BinaryWriter): void;
8309
+ static deserializeBinary(bytes: Uint8Array): PatchModuleVersionsRequest;
8310
+ static deserializeBinaryFromReader(message: PatchModuleVersionsRequest, reader: jspb.BinaryReader): PatchModuleVersionsRequest;
8311
+ }
8312
+
8313
+ export namespace PatchModuleVersionsRequest {
8314
+ export type AsObject = {
8315
+ userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
8316
+ moduleId: string,
8317
+ moduleVersionsList: Array<proto_clarifai_api_resources_pb.ModuleVersion.AsObject>,
8318
+ action: string,
8319
+ }
8320
+ }
8321
+
8288
8322
  export class DeleteModuleVersionsRequest extends jspb.Message {
8289
8323
  getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
8290
8324
  setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModuleVersionsRequest;
@@ -265,6 +265,7 @@ goog.exportSymbol('proto.clarifai.api.PatchModelToolkitsRequest', null, global);
265
265
  goog.exportSymbol('proto.clarifai.api.PatchModelUseCasesRequest', null, global);
266
266
  goog.exportSymbol('proto.clarifai.api.PatchModelVersionsRequest', null, global);
267
267
  goog.exportSymbol('proto.clarifai.api.PatchModelsRequest', null, global);
268
+ goog.exportSymbol('proto.clarifai.api.PatchModuleVersionsRequest', null, global);
268
269
  goog.exportSymbol('proto.clarifai.api.PatchModulesRequest', null, global);
269
270
  goog.exportSymbol('proto.clarifai.api.PatchSearchesRequest', null, global);
270
271
  goog.exportSymbol('proto.clarifai.api.PatchTasksRequest', null, global);
@@ -5999,6 +6000,27 @@ if (goog.DEBUG && !COMPILED) {
5999
6000
  */
6000
6001
  proto.clarifai.api.PostModuleVersionsRequest.displayName = 'proto.clarifai.api.PostModuleVersionsRequest';
6001
6002
  }
6003
+ /**
6004
+ * Generated by JsPbCodeGenerator.
6005
+ * @param {Array=} opt_data Optional initial data array, typically from a
6006
+ * server response, or constructed directly in Javascript. The array is used
6007
+ * in place and becomes part of the constructed object. It is not cloned.
6008
+ * If no data is provided, the constructed object will be empty, but still
6009
+ * valid.
6010
+ * @extends {jspb.Message}
6011
+ * @constructor
6012
+ */
6013
+ proto.clarifai.api.PatchModuleVersionsRequest = function(opt_data) {
6014
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModuleVersionsRequest.repeatedFields_, null);
6015
+ };
6016
+ goog.inherits(proto.clarifai.api.PatchModuleVersionsRequest, jspb.Message);
6017
+ if (goog.DEBUG && !COMPILED) {
6018
+ /**
6019
+ * @public
6020
+ * @override
6021
+ */
6022
+ proto.clarifai.api.PatchModuleVersionsRequest.displayName = 'proto.clarifai.api.PatchModuleVersionsRequest';
6023
+ }
6002
6024
  /**
6003
6025
  * Generated by JsPbCodeGenerator.
6004
6026
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -72329,6 +72351,277 @@ proto.clarifai.api.PostModuleVersionsRequest.prototype.clearModuleVersionsList =
72329
72351
 
72330
72352
 
72331
72353
 
72354
+ /**
72355
+ * List of repeated fields within this message type.
72356
+ * @private {!Array<number>}
72357
+ * @const
72358
+ */
72359
+ proto.clarifai.api.PatchModuleVersionsRequest.repeatedFields_ = [3];
72360
+
72361
+
72362
+
72363
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72364
+ /**
72365
+ * Creates an object representation of this proto.
72366
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
72367
+ * Optional fields that are not set will be set to undefined.
72368
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
72369
+ * For the list of reserved names please see:
72370
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
72371
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
72372
+ * JSPB instance for transitional soy proto support:
72373
+ * http://goto/soy-param-migration
72374
+ * @return {!Object}
72375
+ */
72376
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.toObject = function(opt_includeInstance) {
72377
+ return proto.clarifai.api.PatchModuleVersionsRequest.toObject(opt_includeInstance, this);
72378
+ };
72379
+
72380
+
72381
+ /**
72382
+ * Static version of the {@see toObject} method.
72383
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72384
+ * the JSPB instance for transitional soy proto support:
72385
+ * http://goto/soy-param-migration
72386
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} msg The msg instance to transform.
72387
+ * @return {!Object}
72388
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72389
+ */
72390
+ proto.clarifai.api.PatchModuleVersionsRequest.toObject = function(includeInstance, msg) {
72391
+ var f, obj = {
72392
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
72393
+ moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""),
72394
+ moduleVersionsList: jspb.Message.toObjectList(msg.getModuleVersionsList(),
72395
+ proto_clarifai_api_resources_pb.ModuleVersion.toObject, includeInstance),
72396
+ action: jspb.Message.getFieldWithDefault(msg, 4, "")
72397
+ };
72398
+
72399
+ if (includeInstance) {
72400
+ obj.$jspbMessageInstance = msg;
72401
+ }
72402
+ return obj;
72403
+ };
72404
+ }
72405
+
72406
+
72407
+ /**
72408
+ * Deserializes binary data (in protobuf wire format).
72409
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
72410
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest}
72411
+ */
72412
+ proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinary = function(bytes) {
72413
+ var reader = new jspb.BinaryReader(bytes);
72414
+ var msg = new proto.clarifai.api.PatchModuleVersionsRequest;
72415
+ return proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinaryFromReader(msg, reader);
72416
+ };
72417
+
72418
+
72419
+ /**
72420
+ * Deserializes binary data (in protobuf wire format) from the
72421
+ * given reader into the given message object.
72422
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} msg The message object to deserialize into.
72423
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
72424
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest}
72425
+ */
72426
+ proto.clarifai.api.PatchModuleVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
72427
+ while (reader.nextField()) {
72428
+ if (reader.isEndGroup()) {
72429
+ break;
72430
+ }
72431
+ var field = reader.getFieldNumber();
72432
+ switch (field) {
72433
+ case 1:
72434
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
72435
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
72436
+ msg.setUserAppId(value);
72437
+ break;
72438
+ case 2:
72439
+ var value = /** @type {string} */ (reader.readString());
72440
+ msg.setModuleId(value);
72441
+ break;
72442
+ case 3:
72443
+ var value = new proto_clarifai_api_resources_pb.ModuleVersion;
72444
+ reader.readMessage(value,proto_clarifai_api_resources_pb.ModuleVersion.deserializeBinaryFromReader);
72445
+ msg.addModuleVersions(value);
72446
+ break;
72447
+ case 4:
72448
+ var value = /** @type {string} */ (reader.readString());
72449
+ msg.setAction(value);
72450
+ break;
72451
+ default:
72452
+ reader.skipField();
72453
+ break;
72454
+ }
72455
+ }
72456
+ return msg;
72457
+ };
72458
+
72459
+
72460
+ /**
72461
+ * Serializes the message to binary data (in protobuf wire format).
72462
+ * @return {!Uint8Array}
72463
+ */
72464
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.serializeBinary = function() {
72465
+ var writer = new jspb.BinaryWriter();
72466
+ proto.clarifai.api.PatchModuleVersionsRequest.serializeBinaryToWriter(this, writer);
72467
+ return writer.getResultBuffer();
72468
+ };
72469
+
72470
+
72471
+ /**
72472
+ * Serializes the given message to binary data (in protobuf wire
72473
+ * format), writing to the given BinaryWriter.
72474
+ * @param {!proto.clarifai.api.PatchModuleVersionsRequest} message
72475
+ * @param {!jspb.BinaryWriter} writer
72476
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72477
+ */
72478
+ proto.clarifai.api.PatchModuleVersionsRequest.serializeBinaryToWriter = function(message, writer) {
72479
+ var f = undefined;
72480
+ f = message.getUserAppId();
72481
+ if (f != null) {
72482
+ writer.writeMessage(
72483
+ 1,
72484
+ f,
72485
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
72486
+ );
72487
+ }
72488
+ f = message.getModuleId();
72489
+ if (f.length > 0) {
72490
+ writer.writeString(
72491
+ 2,
72492
+ f
72493
+ );
72494
+ }
72495
+ f = message.getModuleVersionsList();
72496
+ if (f.length > 0) {
72497
+ writer.writeRepeatedMessage(
72498
+ 3,
72499
+ f,
72500
+ proto_clarifai_api_resources_pb.ModuleVersion.serializeBinaryToWriter
72501
+ );
72502
+ }
72503
+ f = message.getAction();
72504
+ if (f.length > 0) {
72505
+ writer.writeString(
72506
+ 4,
72507
+ f
72508
+ );
72509
+ }
72510
+ };
72511
+
72512
+
72513
+ /**
72514
+ * optional UserAppIDSet user_app_id = 1;
72515
+ * @return {?proto.clarifai.api.UserAppIDSet}
72516
+ */
72517
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getUserAppId = function() {
72518
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
72519
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
72520
+ };
72521
+
72522
+
72523
+ /**
72524
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
72525
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
72526
+ */
72527
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setUserAppId = function(value) {
72528
+ return jspb.Message.setWrapperField(this, 1, value);
72529
+ };
72530
+
72531
+
72532
+ /**
72533
+ * Clears the message field making it undefined.
72534
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
72535
+ */
72536
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.clearUserAppId = function() {
72537
+ return this.setUserAppId(undefined);
72538
+ };
72539
+
72540
+
72541
+ /**
72542
+ * Returns whether this field is set.
72543
+ * @return {boolean}
72544
+ */
72545
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.hasUserAppId = function() {
72546
+ return jspb.Message.getField(this, 1) != null;
72547
+ };
72548
+
72549
+
72550
+ /**
72551
+ * optional string module_id = 2;
72552
+ * @return {string}
72553
+ */
72554
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getModuleId = function() {
72555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
72556
+ };
72557
+
72558
+
72559
+ /**
72560
+ * @param {string} value
72561
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
72562
+ */
72563
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setModuleId = function(value) {
72564
+ return jspb.Message.setProto3StringField(this, 2, value);
72565
+ };
72566
+
72567
+
72568
+ /**
72569
+ * repeated ModuleVersion module_versions = 3;
72570
+ * @return {!Array<!proto.clarifai.api.ModuleVersion>}
72571
+ */
72572
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getModuleVersionsList = function() {
72573
+ return /** @type{!Array<!proto.clarifai.api.ModuleVersion>} */ (
72574
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModuleVersion, 3));
72575
+ };
72576
+
72577
+
72578
+ /**
72579
+ * @param {!Array<!proto.clarifai.api.ModuleVersion>} value
72580
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
72581
+ */
72582
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setModuleVersionsList = function(value) {
72583
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
72584
+ };
72585
+
72586
+
72587
+ /**
72588
+ * @param {!proto.clarifai.api.ModuleVersion=} opt_value
72589
+ * @param {number=} opt_index
72590
+ * @return {!proto.clarifai.api.ModuleVersion}
72591
+ */
72592
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.addModuleVersions = function(opt_value, opt_index) {
72593
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModuleVersion, opt_index);
72594
+ };
72595
+
72596
+
72597
+ /**
72598
+ * Clears the list making it empty but non-null.
72599
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
72600
+ */
72601
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.clearModuleVersionsList = function() {
72602
+ return this.setModuleVersionsList([]);
72603
+ };
72604
+
72605
+
72606
+ /**
72607
+ * optional string action = 4;
72608
+ * @return {string}
72609
+ */
72610
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.getAction = function() {
72611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
72612
+ };
72613
+
72614
+
72615
+ /**
72616
+ * @param {string} value
72617
+ * @return {!proto.clarifai.api.PatchModuleVersionsRequest} returns this
72618
+ */
72619
+ proto.clarifai.api.PatchModuleVersionsRequest.prototype.setAction = function(value) {
72620
+ return jspb.Message.setProto3StringField(this, 4, value);
72621
+ };
72622
+
72623
+
72624
+
72332
72625
  /**
72333
72626
  * List of repeated fields within this message type.
72334
72627
  * @private {!Array<number>}