clarifai-web-grpc 9.11.2 → 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.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +357 -0
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +357 -0
- package/package.json +1 -1
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +12 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +61 -0
- package/proto/clarifai/api/service_pb.d.ts +52 -0
- package/proto/clarifai/api/service_pb.js +436 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.11.
|
|
1
|
+
9.11.3
|
|
@@ -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.
|
|
@@ -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<
|