clarifai-web-grpc 9.11.2 → 9.11.4

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.
@@ -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.2",
3
+ "version": "9.11.4",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -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
@@ -11197,6 +11197,67 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteModuleVersions =
11197
11197
  };
11198
11198
 
11199
11199
 
11200
+ /**
11201
+ * @const
11202
+ * @type {!grpc.web.MethodDescriptor<
11203
+ * !proto.clarifai.api.GetModuleVersionUsageCountRequest,
11204
+ * !proto.clarifai.api.SingleModuleVersionUsageCountResponse>}
11205
+ */
11206
+ const methodDescriptor_V2_GetModuleVersionUsageCount = new grpc.web.MethodDescriptor(
11207
+ '/clarifai.api.V2/GetModuleVersionUsageCount',
11208
+ grpc.web.MethodType.UNARY,
11209
+ proto.clarifai.api.GetModuleVersionUsageCountRequest,
11210
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse,
11211
+ /**
11212
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} request
11213
+ * @return {!Uint8Array}
11214
+ */
11215
+ function(request) {
11216
+ return request.serializeBinary();
11217
+ },
11218
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinary
11219
+ );
11220
+
11221
+
11222
+ /**
11223
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} request The
11224
+ * request proto
11225
+ * @param {?Object<string, string>} metadata User defined
11226
+ * call metadata
11227
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.SingleModuleVersionUsageCountResponse)}
11228
+ * callback The callback function(error, response)
11229
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.SingleModuleVersionUsageCountResponse>|undefined}
11230
+ * The XHR Node Readable Stream
11231
+ */
11232
+ proto.clarifai.api.V2Client.prototype.getModuleVersionUsageCount =
11233
+ function(request, metadata, callback) {
11234
+ return this.client_.rpcCall(this.hostname_ +
11235
+ '/clarifai.api.V2/GetModuleVersionUsageCount',
11236
+ request,
11237
+ metadata || {},
11238
+ methodDescriptor_V2_GetModuleVersionUsageCount,
11239
+ callback);
11240
+ };
11241
+
11242
+
11243
+ /**
11244
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} request The
11245
+ * request proto
11246
+ * @param {?Object<string, string>=} metadata User defined
11247
+ * call metadata
11248
+ * @return {!Promise<!proto.clarifai.api.SingleModuleVersionUsageCountResponse>}
11249
+ * Promise that resolves to the response
11250
+ */
11251
+ proto.clarifai.api.V2PromiseClient.prototype.getModuleVersionUsageCount =
11252
+ function(request, metadata) {
11253
+ return this.client_.unaryCall(this.hostname_ +
11254
+ '/clarifai.api.V2/GetModuleVersionUsageCount',
11255
+ request,
11256
+ metadata || {},
11257
+ methodDescriptor_V2_GetModuleVersionUsageCount);
11258
+ };
11259
+
11260
+
11200
11261
  /**
11201
11262
  * @const
11202
11263
  * @type {!grpc.web.MethodDescriptor<
@@ -8315,6 +8315,34 @@ export namespace DeleteModuleVersionsRequest {
8315
8315
  }
8316
8316
  }
8317
8317
 
8318
+ export class GetModuleVersionUsageCountRequest extends jspb.Message {
8319
+ getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
8320
+ setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModuleVersionUsageCountRequest;
8321
+ hasUserAppId(): boolean;
8322
+ clearUserAppId(): GetModuleVersionUsageCountRequest;
8323
+
8324
+ getModuleId(): string;
8325
+ setModuleId(value: string): GetModuleVersionUsageCountRequest;
8326
+
8327
+ getModuleVersionId(): string;
8328
+ setModuleVersionId(value: string): GetModuleVersionUsageCountRequest;
8329
+
8330
+ serializeBinary(): Uint8Array;
8331
+ toObject(includeInstance?: boolean): GetModuleVersionUsageCountRequest.AsObject;
8332
+ static toObject(includeInstance: boolean, msg: GetModuleVersionUsageCountRequest): GetModuleVersionUsageCountRequest.AsObject;
8333
+ static serializeBinaryToWriter(message: GetModuleVersionUsageCountRequest, writer: jspb.BinaryWriter): void;
8334
+ static deserializeBinary(bytes: Uint8Array): GetModuleVersionUsageCountRequest;
8335
+ static deserializeBinaryFromReader(message: GetModuleVersionUsageCountRequest, reader: jspb.BinaryReader): GetModuleVersionUsageCountRequest;
8336
+ }
8337
+
8338
+ export namespace GetModuleVersionUsageCountRequest {
8339
+ export type AsObject = {
8340
+ userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
8341
+ moduleId: string,
8342
+ moduleVersionId: string,
8343
+ }
8344
+ }
8345
+
8318
8346
  export class SingleModuleVersionResponse extends jspb.Message {
8319
8347
  getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
8320
8348
  setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModuleVersionResponse;
@@ -8367,6 +8395,30 @@ export namespace MultiModuleVersionResponse {
8367
8395
  }
8368
8396
  }
8369
8397
 
8398
+ export class SingleModuleVersionUsageCountResponse extends jspb.Message {
8399
+ getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
8400
+ setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModuleVersionUsageCountResponse;
8401
+ hasStatus(): boolean;
8402
+ clearStatus(): SingleModuleVersionUsageCountResponse;
8403
+
8404
+ getUsageCount(): number;
8405
+ setUsageCount(value: number): SingleModuleVersionUsageCountResponse;
8406
+
8407
+ serializeBinary(): Uint8Array;
8408
+ toObject(includeInstance?: boolean): SingleModuleVersionUsageCountResponse.AsObject;
8409
+ static toObject(includeInstance: boolean, msg: SingleModuleVersionUsageCountResponse): SingleModuleVersionUsageCountResponse.AsObject;
8410
+ static serializeBinaryToWriter(message: SingleModuleVersionUsageCountResponse, writer: jspb.BinaryWriter): void;
8411
+ static deserializeBinary(bytes: Uint8Array): SingleModuleVersionUsageCountResponse;
8412
+ static deserializeBinaryFromReader(message: SingleModuleVersionUsageCountResponse, reader: jspb.BinaryReader): SingleModuleVersionUsageCountResponse;
8413
+ }
8414
+
8415
+ export namespace SingleModuleVersionUsageCountResponse {
8416
+ export type AsObject = {
8417
+ status?: proto_clarifai_api_status_status_pb.Status.AsObject,
8418
+ usageCount: number,
8419
+ }
8420
+ }
8421
+
8370
8422
  export class GetInstalledModuleVersionRequest extends jspb.Message {
8371
8423
  getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
8372
8424
  setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetInstalledModuleVersionRequest;