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.
@@ -104,6 +104,7 @@ goog.exportSymbol('proto.clarifai.api.GetModelVersionMetricsRequest', null, glob
104
104
  goog.exportSymbol('proto.clarifai.api.GetModelVersionRequest', null, global);
105
105
  goog.exportSymbol('proto.clarifai.api.GetModuleRequest', null, global);
106
106
  goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
107
+ goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
107
108
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
108
109
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global);
109
110
  goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
@@ -356,6 +357,7 @@ goog.exportSymbol('proto.clarifai.api.SingleModelVersionInputExampleResponse', n
356
357
  goog.exportSymbol('proto.clarifai.api.SingleModelVersionResponse', null, global);
357
358
  goog.exportSymbol('proto.clarifai.api.SingleModuleResponse', null, global);
358
359
  goog.exportSymbol('proto.clarifai.api.SingleModuleVersionResponse', null, global);
360
+ goog.exportSymbol('proto.clarifai.api.SingleModuleVersionUsageCountResponse', null, global);
359
361
  goog.exportSymbol('proto.clarifai.api.SinglePasswordValidationResponse', null, global);
360
362
  goog.exportSymbol('proto.clarifai.api.SingleRunnerResponse', null, global);
361
363
  goog.exportSymbol('proto.clarifai.api.SingleSearchResponse', null, global);
@@ -6018,6 +6020,27 @@ if (goog.DEBUG && !COMPILED) {
6018
6020
  */
6019
6021
  proto.clarifai.api.DeleteModuleVersionsRequest.displayName = 'proto.clarifai.api.DeleteModuleVersionsRequest';
6020
6022
  }
6023
+ /**
6024
+ * Generated by JsPbCodeGenerator.
6025
+ * @param {Array=} opt_data Optional initial data array, typically from a
6026
+ * server response, or constructed directly in Javascript. The array is used
6027
+ * in place and becomes part of the constructed object. It is not cloned.
6028
+ * If no data is provided, the constructed object will be empty, but still
6029
+ * valid.
6030
+ * @extends {jspb.Message}
6031
+ * @constructor
6032
+ */
6033
+ proto.clarifai.api.GetModuleVersionUsageCountRequest = function(opt_data) {
6034
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6035
+ };
6036
+ goog.inherits(proto.clarifai.api.GetModuleVersionUsageCountRequest, jspb.Message);
6037
+ if (goog.DEBUG && !COMPILED) {
6038
+ /**
6039
+ * @public
6040
+ * @override
6041
+ */
6042
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.displayName = 'proto.clarifai.api.GetModuleVersionUsageCountRequest';
6043
+ }
6021
6044
  /**
6022
6045
  * Generated by JsPbCodeGenerator.
6023
6046
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6060,6 +6083,27 @@ if (goog.DEBUG && !COMPILED) {
6060
6083
  */
6061
6084
  proto.clarifai.api.MultiModuleVersionResponse.displayName = 'proto.clarifai.api.MultiModuleVersionResponse';
6062
6085
  }
6086
+ /**
6087
+ * Generated by JsPbCodeGenerator.
6088
+ * @param {Array=} opt_data Optional initial data array, typically from a
6089
+ * server response, or constructed directly in Javascript. The array is used
6090
+ * in place and becomes part of the constructed object. It is not cloned.
6091
+ * If no data is provided, the constructed object will be empty, but still
6092
+ * valid.
6093
+ * @extends {jspb.Message}
6094
+ * @constructor
6095
+ */
6096
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse = function(opt_data) {
6097
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6098
+ };
6099
+ goog.inherits(proto.clarifai.api.SingleModuleVersionUsageCountResponse, jspb.Message);
6100
+ if (goog.DEBUG && !COMPILED) {
6101
+ /**
6102
+ * @public
6103
+ * @override
6104
+ */
6105
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.displayName = 'proto.clarifai.api.SingleModuleVersionUsageCountResponse';
6106
+ }
6063
6107
  /**
6064
6108
  * Generated by JsPbCodeGenerator.
6065
6109
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -72524,6 +72568,217 @@ proto.clarifai.api.DeleteModuleVersionsRequest.prototype.clearIdsList = function
72524
72568
 
72525
72569
 
72526
72570
 
72571
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72572
+ /**
72573
+ * Creates an object representation of this proto.
72574
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
72575
+ * Optional fields that are not set will be set to undefined.
72576
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
72577
+ * For the list of reserved names please see:
72578
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
72579
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
72580
+ * JSPB instance for transitional soy proto support:
72581
+ * http://goto/soy-param-migration
72582
+ * @return {!Object}
72583
+ */
72584
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.toObject = function(opt_includeInstance) {
72585
+ return proto.clarifai.api.GetModuleVersionUsageCountRequest.toObject(opt_includeInstance, this);
72586
+ };
72587
+
72588
+
72589
+ /**
72590
+ * Static version of the {@see toObject} method.
72591
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72592
+ * the JSPB instance for transitional soy proto support:
72593
+ * http://goto/soy-param-migration
72594
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} msg The msg instance to transform.
72595
+ * @return {!Object}
72596
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72597
+ */
72598
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.toObject = function(includeInstance, msg) {
72599
+ var f, obj = {
72600
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
72601
+ moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""),
72602
+ moduleVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
72603
+ };
72604
+
72605
+ if (includeInstance) {
72606
+ obj.$jspbMessageInstance = msg;
72607
+ }
72608
+ return obj;
72609
+ };
72610
+ }
72611
+
72612
+
72613
+ /**
72614
+ * Deserializes binary data (in protobuf wire format).
72615
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
72616
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest}
72617
+ */
72618
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.deserializeBinary = function(bytes) {
72619
+ var reader = new jspb.BinaryReader(bytes);
72620
+ var msg = new proto.clarifai.api.GetModuleVersionUsageCountRequest;
72621
+ return proto.clarifai.api.GetModuleVersionUsageCountRequest.deserializeBinaryFromReader(msg, reader);
72622
+ };
72623
+
72624
+
72625
+ /**
72626
+ * Deserializes binary data (in protobuf wire format) from the
72627
+ * given reader into the given message object.
72628
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} msg The message object to deserialize into.
72629
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
72630
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest}
72631
+ */
72632
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.deserializeBinaryFromReader = function(msg, reader) {
72633
+ while (reader.nextField()) {
72634
+ if (reader.isEndGroup()) {
72635
+ break;
72636
+ }
72637
+ var field = reader.getFieldNumber();
72638
+ switch (field) {
72639
+ case 1:
72640
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
72641
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
72642
+ msg.setUserAppId(value);
72643
+ break;
72644
+ case 2:
72645
+ var value = /** @type {string} */ (reader.readString());
72646
+ msg.setModuleId(value);
72647
+ break;
72648
+ case 3:
72649
+ var value = /** @type {string} */ (reader.readString());
72650
+ msg.setModuleVersionId(value);
72651
+ break;
72652
+ default:
72653
+ reader.skipField();
72654
+ break;
72655
+ }
72656
+ }
72657
+ return msg;
72658
+ };
72659
+
72660
+
72661
+ /**
72662
+ * Serializes the message to binary data (in protobuf wire format).
72663
+ * @return {!Uint8Array}
72664
+ */
72665
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.serializeBinary = function() {
72666
+ var writer = new jspb.BinaryWriter();
72667
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.serializeBinaryToWriter(this, writer);
72668
+ return writer.getResultBuffer();
72669
+ };
72670
+
72671
+
72672
+ /**
72673
+ * Serializes the given message to binary data (in protobuf wire
72674
+ * format), writing to the given BinaryWriter.
72675
+ * @param {!proto.clarifai.api.GetModuleVersionUsageCountRequest} message
72676
+ * @param {!jspb.BinaryWriter} writer
72677
+ * @suppress {unusedLocalVariables} f is only used for nested messages
72678
+ */
72679
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.serializeBinaryToWriter = function(message, writer) {
72680
+ var f = undefined;
72681
+ f = message.getUserAppId();
72682
+ if (f != null) {
72683
+ writer.writeMessage(
72684
+ 1,
72685
+ f,
72686
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
72687
+ );
72688
+ }
72689
+ f = message.getModuleId();
72690
+ if (f.length > 0) {
72691
+ writer.writeString(
72692
+ 2,
72693
+ f
72694
+ );
72695
+ }
72696
+ f = message.getModuleVersionId();
72697
+ if (f.length > 0) {
72698
+ writer.writeString(
72699
+ 3,
72700
+ f
72701
+ );
72702
+ }
72703
+ };
72704
+
72705
+
72706
+ /**
72707
+ * optional UserAppIDSet user_app_id = 1;
72708
+ * @return {?proto.clarifai.api.UserAppIDSet}
72709
+ */
72710
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.getUserAppId = function() {
72711
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
72712
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
72713
+ };
72714
+
72715
+
72716
+ /**
72717
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
72718
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
72719
+ */
72720
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.setUserAppId = function(value) {
72721
+ return jspb.Message.setWrapperField(this, 1, value);
72722
+ };
72723
+
72724
+
72725
+ /**
72726
+ * Clears the message field making it undefined.
72727
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
72728
+ */
72729
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.clearUserAppId = function() {
72730
+ return this.setUserAppId(undefined);
72731
+ };
72732
+
72733
+
72734
+ /**
72735
+ * Returns whether this field is set.
72736
+ * @return {boolean}
72737
+ */
72738
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.hasUserAppId = function() {
72739
+ return jspb.Message.getField(this, 1) != null;
72740
+ };
72741
+
72742
+
72743
+ /**
72744
+ * optional string module_id = 2;
72745
+ * @return {string}
72746
+ */
72747
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.getModuleId = function() {
72748
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
72749
+ };
72750
+
72751
+
72752
+ /**
72753
+ * @param {string} value
72754
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
72755
+ */
72756
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.setModuleId = function(value) {
72757
+ return jspb.Message.setProto3StringField(this, 2, value);
72758
+ };
72759
+
72760
+
72761
+ /**
72762
+ * optional string module_version_id = 3;
72763
+ * @return {string}
72764
+ */
72765
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.getModuleVersionId = function() {
72766
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
72767
+ };
72768
+
72769
+
72770
+ /**
72771
+ * @param {string} value
72772
+ * @return {!proto.clarifai.api.GetModuleVersionUsageCountRequest} returns this
72773
+ */
72774
+ proto.clarifai.api.GetModuleVersionUsageCountRequest.prototype.setModuleVersionId = function(value) {
72775
+ return jspb.Message.setProto3StringField(this, 3, value);
72776
+ };
72777
+
72778
+
72779
+
72780
+
72781
+
72527
72782
  if (jspb.Message.GENERATE_TO_OBJECT) {
72528
72783
  /**
72529
72784
  * Creates an object representation of this proto.
@@ -72937,6 +73192,187 @@ proto.clarifai.api.MultiModuleVersionResponse.prototype.clearModuleVersionsList
72937
73192
 
72938
73193
 
72939
73194
 
73195
+ if (jspb.Message.GENERATE_TO_OBJECT) {
73196
+ /**
73197
+ * Creates an object representation of this proto.
73198
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
73199
+ * Optional fields that are not set will be set to undefined.
73200
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
73201
+ * For the list of reserved names please see:
73202
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
73203
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
73204
+ * JSPB instance for transitional soy proto support:
73205
+ * http://goto/soy-param-migration
73206
+ * @return {!Object}
73207
+ */
73208
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.toObject = function(opt_includeInstance) {
73209
+ return proto.clarifai.api.SingleModuleVersionUsageCountResponse.toObject(opt_includeInstance, this);
73210
+ };
73211
+
73212
+
73213
+ /**
73214
+ * Static version of the {@see toObject} method.
73215
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
73216
+ * the JSPB instance for transitional soy proto support:
73217
+ * http://goto/soy-param-migration
73218
+ * @param {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} msg The msg instance to transform.
73219
+ * @return {!Object}
73220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
73221
+ */
73222
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.toObject = function(includeInstance, msg) {
73223
+ var f, obj = {
73224
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
73225
+ usageCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
73226
+ };
73227
+
73228
+ if (includeInstance) {
73229
+ obj.$jspbMessageInstance = msg;
73230
+ }
73231
+ return obj;
73232
+ };
73233
+ }
73234
+
73235
+
73236
+ /**
73237
+ * Deserializes binary data (in protobuf wire format).
73238
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
73239
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse}
73240
+ */
73241
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinary = function(bytes) {
73242
+ var reader = new jspb.BinaryReader(bytes);
73243
+ var msg = new proto.clarifai.api.SingleModuleVersionUsageCountResponse;
73244
+ return proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinaryFromReader(msg, reader);
73245
+ };
73246
+
73247
+
73248
+ /**
73249
+ * Deserializes binary data (in protobuf wire format) from the
73250
+ * given reader into the given message object.
73251
+ * @param {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} msg The message object to deserialize into.
73252
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
73253
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse}
73254
+ */
73255
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.deserializeBinaryFromReader = function(msg, reader) {
73256
+ while (reader.nextField()) {
73257
+ if (reader.isEndGroup()) {
73258
+ break;
73259
+ }
73260
+ var field = reader.getFieldNumber();
73261
+ switch (field) {
73262
+ case 1:
73263
+ var value = new proto_clarifai_api_status_status_pb.Status;
73264
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
73265
+ msg.setStatus(value);
73266
+ break;
73267
+ case 2:
73268
+ var value = /** @type {number} */ (reader.readUint32());
73269
+ msg.setUsageCount(value);
73270
+ break;
73271
+ default:
73272
+ reader.skipField();
73273
+ break;
73274
+ }
73275
+ }
73276
+ return msg;
73277
+ };
73278
+
73279
+
73280
+ /**
73281
+ * Serializes the message to binary data (in protobuf wire format).
73282
+ * @return {!Uint8Array}
73283
+ */
73284
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.serializeBinary = function() {
73285
+ var writer = new jspb.BinaryWriter();
73286
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.serializeBinaryToWriter(this, writer);
73287
+ return writer.getResultBuffer();
73288
+ };
73289
+
73290
+
73291
+ /**
73292
+ * Serializes the given message to binary data (in protobuf wire
73293
+ * format), writing to the given BinaryWriter.
73294
+ * @param {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} message
73295
+ * @param {!jspb.BinaryWriter} writer
73296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
73297
+ */
73298
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.serializeBinaryToWriter = function(message, writer) {
73299
+ var f = undefined;
73300
+ f = message.getStatus();
73301
+ if (f != null) {
73302
+ writer.writeMessage(
73303
+ 1,
73304
+ f,
73305
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
73306
+ );
73307
+ }
73308
+ f = message.getUsageCount();
73309
+ if (f !== 0) {
73310
+ writer.writeUint32(
73311
+ 2,
73312
+ f
73313
+ );
73314
+ }
73315
+ };
73316
+
73317
+
73318
+ /**
73319
+ * optional status.Status status = 1;
73320
+ * @return {?proto.clarifai.api.status.Status}
73321
+ */
73322
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.getStatus = function() {
73323
+ return /** @type{?proto.clarifai.api.status.Status} */ (
73324
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
73325
+ };
73326
+
73327
+
73328
+ /**
73329
+ * @param {?proto.clarifai.api.status.Status|undefined} value
73330
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} returns this
73331
+ */
73332
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.setStatus = function(value) {
73333
+ return jspb.Message.setWrapperField(this, 1, value);
73334
+ };
73335
+
73336
+
73337
+ /**
73338
+ * Clears the message field making it undefined.
73339
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} returns this
73340
+ */
73341
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.clearStatus = function() {
73342
+ return this.setStatus(undefined);
73343
+ };
73344
+
73345
+
73346
+ /**
73347
+ * Returns whether this field is set.
73348
+ * @return {boolean}
73349
+ */
73350
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.hasStatus = function() {
73351
+ return jspb.Message.getField(this, 1) != null;
73352
+ };
73353
+
73354
+
73355
+ /**
73356
+ * optional uint32 usage_count = 2;
73357
+ * @return {number}
73358
+ */
73359
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.getUsageCount = function() {
73360
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
73361
+ };
73362
+
73363
+
73364
+ /**
73365
+ * @param {number} value
73366
+ * @return {!proto.clarifai.api.SingleModuleVersionUsageCountResponse} returns this
73367
+ */
73368
+ proto.clarifai.api.SingleModuleVersionUsageCountResponse.prototype.setUsageCount = function(value) {
73369
+ return jspb.Message.setProto3IntField(this, 2, value);
73370
+ };
73371
+
73372
+
73373
+
73374
+
73375
+
72940
73376
  if (jspb.Message.GENERATE_TO_OBJECT) {
72941
73377
  /**
72942
73378
  * Creates an object representation of this proto.