clarifai-web-grpc 9.11.1 → 9.11.3

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.
@@ -7714,6 +7714,48 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteModuleVersions =
7714
7714
  return this.client_.unaryCall(this.hostname_ +
7715
7715
  '/clarifai.api.V2/DeleteModuleVersions', request, metadata || {}, methodDescriptor_V2_DeleteModuleVersions);
7716
7716
  };
7717
+ /**
7718
+ * @const
7719
+ * @type {!grpc.web.MethodDescriptor<
7720
+ * !proto.clarifai.api.GetModuleVersionUsageCountRequest,
7721
+ * !proto.clarifai.api.SingleModuleVersionUsageCountResponse>}
7722
+ */
7723
+ const methodDescriptor_V2_GetModuleVersionUsageCount = new grpc.web.MethodDescriptor('/clarifai.api.V2/GetModuleVersionUsageCount', grpc.web.MethodType.UNARY, proto.clarifai.api.GetModuleVersionUsageCountRequest, proto.clarifai.api.SingleModuleVersionUsageCountResponse,
7724
+ /**
7725
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} request
7726
+ * @return {!Uint8Array}
7727
+ */
7728
+ function (request) {
7729
+ return request.serializeBinary();
7730
+ }, proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinary);
7731
+ /**
7732
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} request The
7733
+ * request proto
7734
+ * @param {?Object<string, string>} metadata User defined
7735
+ * call metadata
7736
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.SingleModuleVersionUsageCountResponse)}
7737
+ * callback The callback function(error, response)
7738
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.SingleModuleVersionUsageCountResponse>|undefined}
7739
+ * The XHR Node Readable Stream
7740
+ */
7741
+ proto.clarifai.api.V2Client.prototype.getModuleVersionUsageCount =
7742
+ function (request, metadata, callback) {
7743
+ return this.client_.rpcCall(this.hostname_ +
7744
+ '/clarifai.api.V2/GetModuleVersionUsageCount', request, metadata || {}, methodDescriptor_V2_GetModuleVersionUsageCount, callback);
7745
+ };
7746
+ /**
7747
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} request The
7748
+ * request proto
7749
+ * @param {?Object<string, string>=} metadata User defined
7750
+ * call metadata
7751
+ * @return {!Promise<!proto.clarifai.api.SingleModuleVersionUsageCountResponse>}
7752
+ * Promise that resolves to the response
7753
+ */
7754
+ proto.clarifai.api.V2PromiseClient.prototype.getModuleVersionUsageCount =
7755
+ function (request, metadata) {
7756
+ return this.client_.unaryCall(this.hostname_ +
7757
+ '/clarifai.api.V2/GetModuleVersionUsageCount', request, metadata || {}, methodDescriptor_V2_GetModuleVersionUsageCount);
7758
+ };
7717
7759
  /**
7718
7760
  * @const
7719
7761
  * @type {!grpc.web.MethodDescriptor<
@@ -102,6 +102,7 @@ goog.exportSymbol('proto.clarifai.api.GetModelVersionMetricsRequest', null, glob
102
102
  goog.exportSymbol('proto.clarifai.api.GetModelVersionRequest', null, global);
103
103
  goog.exportSymbol('proto.clarifai.api.GetModuleRequest', null, global);
104
104
  goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
105
+ goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
105
106
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
106
107
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global);
107
108
  goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
@@ -354,6 +355,7 @@ goog.exportSymbol('proto.clarifai.api.SingleModelVersionInputExampleResponse', n
354
355
  goog.exportSymbol('proto.clarifai.api.SingleModelVersionResponse', null, global);
355
356
  goog.exportSymbol('proto.clarifai.api.SingleModuleResponse', null, global);
356
357
  goog.exportSymbol('proto.clarifai.api.SingleModuleVersionResponse', null, global);
358
+ goog.exportSymbol('proto.clarifai.api.SingleModuleVersionUsageCountResponse', null, global);
357
359
  goog.exportSymbol('proto.clarifai.api.SinglePasswordValidationResponse', null, global);
358
360
  goog.exportSymbol('proto.clarifai.api.SingleRunnerResponse', null, global);
359
361
  goog.exportSymbol('proto.clarifai.api.SingleSearchResponse', null, global);
@@ -6016,6 +6018,27 @@ if (goog.DEBUG && !COMPILED) {
6016
6018
  */
6017
6019
  proto.clarifai.api.DeleteModuleVersionsRequest.displayName = 'proto.clarifai.api.DeleteModuleVersionsRequest';
6018
6020
  }
6021
+ /**
6022
+ * Generated by JsPbCodeGenerator.
6023
+ * @param {Array=} opt_data Optional initial data array, typically from a
6024
+ * server response, or constructed directly in Javascript. The array is used
6025
+ * in place and becomes part of the constructed object. It is not cloned.
6026
+ * If no data is provided, the constructed object will be empty, but still
6027
+ * valid.
6028
+ * @extends {jspb.Message}
6029
+ * @constructor
6030
+ */
6031
+ proto.clarifai.api.GetModuleVersionUsageCountRequest = function (opt_data) {
6032
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6033
+ };
6034
+ goog.inherits(proto.clarifai.api.GetModuleVersionUsageCountRequest, jspb.Message);
6035
+ if (goog.DEBUG && !COMPILED) {
6036
+ /**
6037
+ * @public
6038
+ * @override
6039
+ */
6040
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.displayName = 'proto.clarifai.api.GetModuleVersionUsageCountRequest';
6041
+ }
6019
6042
  /**
6020
6043
  * Generated by JsPbCodeGenerator.
6021
6044
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6058,6 +6081,27 @@ if (goog.DEBUG && !COMPILED) {
6058
6081
  */
6059
6082
  proto.clarifai.api.MultiModuleVersionResponse.displayName = 'proto.clarifai.api.MultiModuleVersionResponse';
6060
6083
  }
6084
+ /**
6085
+ * Generated by JsPbCodeGenerator.
6086
+ * @param {Array=} opt_data Optional initial data array, typically from a
6087
+ * server response, or constructed directly in Javascript. The array is used
6088
+ * in place and becomes part of the constructed object. It is not cloned.
6089
+ * If no data is provided, the constructed object will be empty, but still
6090
+ * valid.
6091
+ * @extends {jspb.Message}
6092
+ * @constructor
6093
+ */
6094
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse = function (opt_data) {
6095
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6096
+ };
6097
+ goog.inherits(proto.clarifai.api.SingleModuleVersionUsageCountResponse, jspb.Message);
6098
+ if (goog.DEBUG && !COMPILED) {
6099
+ /**
6100
+ * @public
6101
+ * @override
6102
+ */
6103
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.displayName = 'proto.clarifai.api.SingleModuleVersionUsageCountResponse';
6104
+ }
6061
6105
  /**
6062
6106
  * Generated by JsPbCodeGenerator.
6063
6107
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -58846,6 +58890,174 @@ proto.clarifai.api.DeleteModuleVersionsRequest.prototype.addIds = function (valu
58846
58890
  proto.clarifai.api.DeleteModuleVersionsRequest.prototype.clearIdsList = function () {
58847
58891
  return this.setIdsList([]);
58848
58892
  };
58893
+ if (jspb.Message.GENERATE_TO_OBJECT) {
58894
+ /**
58895
+ * Creates an object representation of this proto.
58896
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58897
+ * Optional fields that are not set will be set to undefined.
58898
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58899
+ * For the list of reserved names please see:
58900
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
58901
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
58902
+ * JSPB instance for transitional soy proto support:
58903
+ * http://goto/soy-param-migration
58904
+ * @return {!Object}
58905
+ */
58906
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.toObject = function (opt_includeInstance) {
58907
+ return proto.clarifai.api.GetModuleVersionUsageCountRequest.toObject(opt_includeInstance, this);
58908
+ };
58909
+ /**
58910
+ * Static version of the {@see toObject} method.
58911
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
58912
+ * the JSPB instance for transitional soy proto support:
58913
+ * http://goto/soy-param-migration
58914
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} msg The msg instance to transform.
58915
+ * @return {!Object}
58916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58917
+ */
58918
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.toObject = function (includeInstance, msg) {
58919
+ var f, obj = {
58920
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
58921
+ moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""),
58922
+ moduleVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
58923
+ };
58924
+ if (includeInstance) {
58925
+ obj.$jspbMessageInstance = msg;
58926
+ }
58927
+ return obj;
58928
+ };
58929
+ }
58930
+ /**
58931
+ * Deserializes binary data (in protobuf wire format).
58932
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
58933
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest}
58934
+ */
58935
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.deserializeBinary = function (bytes) {
58936
+ var reader = new jspb.BinaryReader(bytes);
58937
+ var msg = new proto.clarifai.api.GetModuleVersionUsageCountRequest;
58938
+ return proto.clarifai.api.GetModuleVersionUsageCountRequest.deserializeBinaryFromReader(msg, reader);
58939
+ };
58940
+ /**
58941
+ * Deserializes binary data (in protobuf wire format) from the
58942
+ * given reader into the given message object.
58943
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} msg The message object to deserialize into.
58944
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
58945
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest}
58946
+ */
58947
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.deserializeBinaryFromReader = function (msg, reader) {
58948
+ while (reader.nextField()) {
58949
+ if (reader.isEndGroup()) {
58950
+ break;
58951
+ }
58952
+ var field = reader.getFieldNumber();
58953
+ switch (field) {
58954
+ case 1:
58955
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
58956
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
58957
+ msg.setUserAppId(value);
58958
+ break;
58959
+ case 2:
58960
+ var value = /** @type {string} */ (reader.readString());
58961
+ msg.setModuleId(value);
58962
+ break;
58963
+ case 3:
58964
+ var value = /** @type {string} */ (reader.readString());
58965
+ msg.setModuleVersionId(value);
58966
+ break;
58967
+ default:
58968
+ reader.skipField();
58969
+ break;
58970
+ }
58971
+ }
58972
+ return msg;
58973
+ };
58974
+ /**
58975
+ * Serializes the message to binary data (in protobuf wire format).
58976
+ * @return {!Uint8Array}
58977
+ */
58978
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.serializeBinary = function () {
58979
+ var writer = new jspb.BinaryWriter();
58980
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.serializeBinaryToWriter(this, writer);
58981
+ return writer.getResultBuffer();
58982
+ };
58983
+ /**
58984
+ * Serializes the given message to binary data (in protobuf wire
58985
+ * format), writing to the given BinaryWriter.
58986
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} message
58987
+ * @param {!jspb.BinaryWriter} writer
58988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
58989
+ */
58990
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.serializeBinaryToWriter = function (message, writer) {
58991
+ var f = undefined;
58992
+ f = message.getUserAppId();
58993
+ if (f != null) {
58994
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
58995
+ }
58996
+ f = message.getModuleId();
58997
+ if (f.length > 0) {
58998
+ writer.writeString(2, f);
58999
+ }
59000
+ f = message.getModuleVersionId();
59001
+ if (f.length > 0) {
59002
+ writer.writeString(3, f);
59003
+ }
59004
+ };
59005
+ /**
59006
+ * optional UserAppIDSet user_app_id = 1;
59007
+ * @return {?proto.clarifai.api.UserAppIDSet}
59008
+ */
59009
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.getUserAppId = function () {
59010
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
59011
+ };
59012
+ /**
59013
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
59014
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
59015
+ */
59016
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.setUserAppId = function (value) {
59017
+ return jspb.Message.setWrapperField(this, 1, value);
59018
+ };
59019
+ /**
59020
+ * Clears the message field making it undefined.
59021
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
59022
+ */
59023
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.clearUserAppId = function () {
59024
+ return this.setUserAppId(undefined);
59025
+ };
59026
+ /**
59027
+ * Returns whether this field is set.
59028
+ * @return {boolean}
59029
+ */
59030
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.hasUserAppId = function () {
59031
+ return jspb.Message.getField(this, 1) != null;
59032
+ };
59033
+ /**
59034
+ * optional string module_id = 2;
59035
+ * @return {string}
59036
+ */
59037
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.getModuleId = function () {
59038
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
59039
+ };
59040
+ /**
59041
+ * @param {string} value
59042
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
59043
+ */
59044
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.setModuleId = function (value) {
59045
+ return jspb.Message.setProto3StringField(this, 2, value);
59046
+ };
59047
+ /**
59048
+ * optional string module_version_id = 3;
59049
+ * @return {string}
59050
+ */
59051
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.getModuleVersionId = function () {
59052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
59053
+ };
59054
+ /**
59055
+ * @param {string} value
59056
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
59057
+ */
59058
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.setModuleVersionId = function (value) {
59059
+ return jspb.Message.setProto3StringField(this, 3, value);
59060
+ };
58849
59061
  if (jspb.Message.GENERATE_TO_OBJECT) {
58850
59062
  /**
58851
59063
  * Creates an object representation of this proto.
@@ -59173,6 +59385,151 @@ proto.clarifai.api.MultiModuleVersionResponse.prototype.addModuleVersions = func
59173
59385
  proto.clarifai.api.MultiModuleVersionResponse.prototype.clearModuleVersionsList = function () {
59174
59386
  return this.setModuleVersionsList([]);
59175
59387
  };
59388
+ if (jspb.Message.GENERATE_TO_OBJECT) {
59389
+ /**
59390
+ * Creates an object representation of this proto.
59391
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
59392
+ * Optional fields that are not set will be set to undefined.
59393
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
59394
+ * For the list of reserved names please see:
59395
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59396
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
59397
+ * JSPB instance for transitional soy proto support:
59398
+ * http://goto/soy-param-migration
59399
+ * @return {!Object}
59400
+ */
59401
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.toObject = function (opt_includeInstance) {
59402
+ return proto.clarifai.api.SingleModuleVersionUsageCountResponse.toObject(opt_includeInstance, this);
59403
+ };
59404
+ /**
59405
+ * Static version of the {@see toObject} method.
59406
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
59407
+ * the JSPB instance for transitional soy proto support:
59408
+ * http://goto/soy-param-migration
59409
+ * @param {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} msg The msg instance to transform.
59410
+ * @return {!Object}
59411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59412
+ */
59413
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.toObject = function (includeInstance, msg) {
59414
+ var f, obj = {
59415
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
59416
+ usageCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
59417
+ };
59418
+ if (includeInstance) {
59419
+ obj.$jspbMessageInstance = msg;
59420
+ }
59421
+ return obj;
59422
+ };
59423
+ }
59424
+ /**
59425
+ * Deserializes binary data (in protobuf wire format).
59426
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
59427
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse}
59428
+ */
59429
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinary = function (bytes) {
59430
+ var reader = new jspb.BinaryReader(bytes);
59431
+ var msg = new proto.clarifai.api.SingleModuleVersionUsageCountResponse;
59432
+ return proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinaryFromReader(msg, reader);
59433
+ };
59434
+ /**
59435
+ * Deserializes binary data (in protobuf wire format) from the
59436
+ * given reader into the given message object.
59437
+ * @param {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} msg The message object to deserialize into.
59438
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
59439
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse}
59440
+ */
59441
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinaryFromReader = function (msg, reader) {
59442
+ while (reader.nextField()) {
59443
+ if (reader.isEndGroup()) {
59444
+ break;
59445
+ }
59446
+ var field = reader.getFieldNumber();
59447
+ switch (field) {
59448
+ case 1:
59449
+ var value = new proto_clarifai_api_status_status_pb.Status;
59450
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
59451
+ msg.setStatus(value);
59452
+ break;
59453
+ case 2:
59454
+ var value = /** @type {number} */ (reader.readUint32());
59455
+ msg.setUsageCount(value);
59456
+ break;
59457
+ default:
59458
+ reader.skipField();
59459
+ break;
59460
+ }
59461
+ }
59462
+ return msg;
59463
+ };
59464
+ /**
59465
+ * Serializes the message to binary data (in protobuf wire format).
59466
+ * @return {!Uint8Array}
59467
+ */
59468
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.serializeBinary = function () {
59469
+ var writer = new jspb.BinaryWriter();
59470
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.serializeBinaryToWriter(this, writer);
59471
+ return writer.getResultBuffer();
59472
+ };
59473
+ /**
59474
+ * Serializes the given message to binary data (in protobuf wire
59475
+ * format), writing to the given BinaryWriter.
59476
+ * @param {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} message
59477
+ * @param {!jspb.BinaryWriter} writer
59478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59479
+ */
59480
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.serializeBinaryToWriter = function (message, writer) {
59481
+ var f = undefined;
59482
+ f = message.getStatus();
59483
+ if (f != null) {
59484
+ writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
59485
+ }
59486
+ f = message.getUsageCount();
59487
+ if (f !== 0) {
59488
+ writer.writeUint32(2, f);
59489
+ }
59490
+ };
59491
+ /**
59492
+ * optional status.Status status = 1;
59493
+ * @return {?proto.clarifai.api.status.Status}
59494
+ */
59495
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.getStatus = function () {
59496
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
59497
+ };
59498
+ /**
59499
+ * @param {?proto.clarifai.api.status.Status|undefined} value
59500
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} returns this
59501
+ */
59502
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.setStatus = function (value) {
59503
+ return jspb.Message.setWrapperField(this, 1, value);
59504
+ };
59505
+ /**
59506
+ * Clears the message field making it undefined.
59507
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} returns this
59508
+ */
59509
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.clearStatus = function () {
59510
+ return this.setStatus(undefined);
59511
+ };
59512
+ /**
59513
+ * Returns whether this field is set.
59514
+ * @return {boolean}
59515
+ */
59516
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.hasStatus = function () {
59517
+ return jspb.Message.getField(this, 1) != null;
59518
+ };
59519
+ /**
59520
+ * optional uint32 usage_count = 2;
59521
+ * @return {number}
59522
+ */
59523
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.getUsageCount = function () {
59524
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
59525
+ };
59526
+ /**
59527
+ * @param {number} value
59528
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} returns this
59529
+ */
59530
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.setUsageCount = function (value) {
59531
+ return jspb.Message.setProto3IntField(this, 2, value);
59532
+ };
59176
59533
  if (jspb.Message.GENERATE_TO_OBJECT) {
59177
59534
  /**
59178
59535
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "9.11.1",
3
+ "version": "9.11.3",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -5293,6 +5293,11 @@ export class AppDuplication extends jspb.Message {
5293
5293
  getId(): string;
5294
5294
  setId(value: string): AppDuplication;
5295
5295
 
5296
+ getDestinationApp(): App | undefined;
5297
+ setDestinationApp(value?: App): AppDuplication;
5298
+ hasDestinationApp(): boolean;
5299
+ clearDestinationApp(): AppDuplication;
5300
+
5296
5301
  getExistingAppId(): string;
5297
5302
  setExistingAppId(value: string): AppDuplication;
5298
5303
 
@@ -5302,9 +5307,6 @@ export class AppDuplication extends jspb.Message {
5302
5307
  getNewAppName(): string;
5303
5308
  setNewAppName(value: string): AppDuplication;
5304
5309
 
5305
- getNewAppDescription(): string;
5306
- setNewAppDescription(value: string): AppDuplication;
5307
-
5308
5310
  getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
5309
5311
  setStatus(value?: proto_clarifai_api_status_status_pb.Status): AppDuplication;
5310
5312
  hasStatus(): boolean;
@@ -5341,10 +5343,10 @@ export class AppDuplication extends jspb.Message {
5341
5343
  export namespace AppDuplication {
5342
5344
  export type AsObject = {
5343
5345
  id: string,
5346
+ destinationApp?: App.AsObject,
5344
5347
  existingAppId: string,
5345
5348
  newAppId: string,
5346
5349
  newAppName: string,
5347
- newAppDescription: string,
5348
5350
  status?: proto_clarifai_api_status_status_pb.Status.AsObject,
5349
5351
  createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
5350
5352
  lastModifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
@@ -45390,10 +45390,10 @@ proto.clarifai.api.AppDuplication.prototype.toObject = function(opt_includeInsta
45390
45390
  proto.clarifai.api.AppDuplication.toObject = function(includeInstance, msg) {
45391
45391
  var f, obj = {
45392
45392
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
45393
+ destinationApp: (f = msg.getDestinationApp()) && proto.clarifai.api.App.toObject(includeInstance, f),
45393
45394
  existingAppId: jspb.Message.getFieldWithDefault(msg, 8, ""),
45394
45395
  newAppId: jspb.Message.getFieldWithDefault(msg, 2, ""),
45395
45396
  newAppName: jspb.Message.getFieldWithDefault(msg, 3, ""),
45396
- newAppDescription: jspb.Message.getFieldWithDefault(msg, 10, ""),
45397
45397
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
45398
45398
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
45399
45399
  lastModifiedAt: (f = msg.getLastModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
@@ -45440,6 +45440,11 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
45440
45440
  var value = /** @type {string} */ (reader.readString());
45441
45441
  msg.setId(value);
45442
45442
  break;
45443
+ case 10:
45444
+ var value = new proto.clarifai.api.App;
45445
+ reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader);
45446
+ msg.setDestinationApp(value);
45447
+ break;
45443
45448
  case 8:
45444
45449
  var value = /** @type {string} */ (reader.readString());
45445
45450
  msg.setExistingAppId(value);
@@ -45452,10 +45457,6 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re
45452
45457
  var value = /** @type {string} */ (reader.readString());
45453
45458
  msg.setNewAppName(value);
45454
45459
  break;
45455
- case 10:
45456
- var value = /** @type {string} */ (reader.readString());
45457
- msg.setNewAppDescription(value);
45458
- break;
45459
45460
  case 4:
45460
45461
  var value = new proto_clarifai_api_status_status_pb.Status;
45461
45462
  reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
@@ -45517,6 +45518,14 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
45517
45518
  f
45518
45519
  );
45519
45520
  }
45521
+ f = message.getDestinationApp();
45522
+ if (f != null) {
45523
+ writer.writeMessage(
45524
+ 10,
45525
+ f,
45526
+ proto.clarifai.api.App.serializeBinaryToWriter
45527
+ );
45528
+ }
45520
45529
  f = message.getExistingAppId();
45521
45530
  if (f.length > 0) {
45522
45531
  writer.writeString(
@@ -45538,13 +45547,6 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr
45538
45547
  f
45539
45548
  );
45540
45549
  }
45541
- f = message.getNewAppDescription();
45542
- if (f.length > 0) {
45543
- writer.writeString(
45544
- 10,
45545
- f
45546
- );
45547
- }
45548
45550
  f = message.getStatus();
45549
45551
  if (f != null) {
45550
45552
  writer.writeMessage(
@@ -45606,6 +45608,43 @@ proto.clarifai.api.AppDuplication.prototype.setId = function(value) {
45606
45608
  };
45607
45609
 
45608
45610
 
45611
+ /**
45612
+ * optional App destination_app = 10;
45613
+ * @return {?proto.clarifai.api.App}
45614
+ */
45615
+ proto.clarifai.api.AppDuplication.prototype.getDestinationApp = function() {
45616
+ return /** @type{?proto.clarifai.api.App} */ (
45617
+ jspb.Message.getWrapperField(this, proto.clarifai.api.App, 10));
45618
+ };
45619
+
45620
+
45621
+ /**
45622
+ * @param {?proto.clarifai.api.App|undefined} value
45623
+ * @return {!proto.clarifai.api.AppDuplication} returns this
45624
+ */
45625
+ proto.clarifai.api.AppDuplication.prototype.setDestinationApp = function(value) {
45626
+ return jspb.Message.setWrapperField(this, 10, value);
45627
+ };
45628
+
45629
+
45630
+ /**
45631
+ * Clears the message field making it undefined.
45632
+ * @return {!proto.clarifai.api.AppDuplication} returns this
45633
+ */
45634
+ proto.clarifai.api.AppDuplication.prototype.clearDestinationApp = function() {
45635
+ return this.setDestinationApp(undefined);
45636
+ };
45637
+
45638
+
45639
+ /**
45640
+ * Returns whether this field is set.
45641
+ * @return {boolean}
45642
+ */
45643
+ proto.clarifai.api.AppDuplication.prototype.hasDestinationApp = function() {
45644
+ return jspb.Message.getField(this, 10) != null;
45645
+ };
45646
+
45647
+
45609
45648
  /**
45610
45649
  * optional string existing_app_id = 8;
45611
45650
  * @return {string}
@@ -45660,24 +45699,6 @@ proto.clarifai.api.AppDuplication.prototype.setNewAppName = function(value) {
45660
45699
  };
45661
45700
 
45662
45701
 
45663
- /**
45664
- * optional string new_app_description = 10;
45665
- * @return {string}
45666
- */
45667
- proto.clarifai.api.AppDuplication.prototype.getNewAppDescription = function() {
45668
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
45669
- };
45670
-
45671
-
45672
- /**
45673
- * @param {string} value
45674
- * @return {!proto.clarifai.api.AppDuplication} returns this
45675
- */
45676
- proto.clarifai.api.AppDuplication.prototype.setNewAppDescription = function(value) {
45677
- return jspb.Message.setProto3StringField(this, 10, value);
45678
- };
45679
-
45680
-
45681
45702
  /**
45682
45703
  * optional status.Status status = 4;
45683
45704
  * @return {?proto.clarifai.api.status.Status}
@@ -1283,6 +1283,13 @@ export class V2Client {
1283
1283
  response: proto_clarifai_api_status_status_pb.BaseResponse) => void
1284
1284
  ): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
1285
1285
 
1286
+ getModuleVersionUsageCount(
1287
+ request: proto_clarifai_api_service_pb.GetModuleVersionUsageCountRequest,
1288
+ metadata: grpcWeb.Metadata | undefined,
1289
+ callback: (err: grpcWeb.RpcError,
1290
+ response: proto_clarifai_api_service_pb.SingleModuleVersionUsageCountResponse) => void
1291
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.SingleModuleVersionUsageCountResponse>;
1292
+
1286
1293
  getInstalledModuleVersion(
1287
1294
  request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest,
1288
1295
  metadata: grpcWeb.Metadata | undefined,
@@ -2424,6 +2431,11 @@ export class V2PromiseClient {
2424
2431
  metadata?: grpcWeb.Metadata
2425
2432
  ): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
2426
2433
 
2434
+ getModuleVersionUsageCount(
2435
+ request: proto_clarifai_api_service_pb.GetModuleVersionUsageCountRequest,
2436
+ metadata?: grpcWeb.Metadata
2437
+ ): Promise<proto_clarifai_api_service_pb.SingleModuleVersionUsageCountResponse>;
2438
+
2427
2439
  getInstalledModuleVersion(
2428
2440
  request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest,
2429
2441
  metadata?: grpcWeb.Metadata