clarifai-web-grpc 11.1.0 → 11.1.2

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.
@@ -308,6 +308,7 @@ goog.exportSymbol('proto.clarifai.api.PostBulkOperationsRequest', null, global);
308
308
  goog.exportSymbol('proto.clarifai.api.PostCollaboratorsRequest', null, global);
309
309
  goog.exportSymbol('proto.clarifai.api.PostCollectorsRequest', null, global);
310
310
  goog.exportSymbol('proto.clarifai.api.PostComputeClustersRequest', null, global);
311
+ goog.exportSymbol('proto.clarifai.api.PostComputePlaneMetricsRequest', null, global);
311
312
  goog.exportSymbol('proto.clarifai.api.PostConceptLanguagesRequest', null, global);
312
313
  goog.exportSymbol('proto.clarifai.api.PostConceptRelationsRequest', null, global);
313
314
  goog.exportSymbol('proto.clarifai.api.PostConceptsRequest', null, global);
@@ -326,6 +327,7 @@ goog.exportSymbol('proto.clarifai.api.PostInstalledModuleVersionsRequest', null,
326
327
  goog.exportSymbol('proto.clarifai.api.PostKeysRequest', null, global);
327
328
  goog.exportSymbol('proto.clarifai.api.PostKnowledgeGraphsRequest', null, global);
328
329
  goog.exportSymbol('proto.clarifai.api.PostLabelOrdersRequest', null, global);
330
+ goog.exportSymbol('proto.clarifai.api.PostLogEntriesRequest', null, global);
329
331
  goog.exportSymbol('proto.clarifai.api.PostModelOutputsRequest', null, global);
330
332
  goog.exportSymbol('proto.clarifai.api.PostModelVersionEvaluationsRequest', null, global);
331
333
  goog.exportSymbol('proto.clarifai.api.PostModelVersionMetricsRequest', null, global);
@@ -411,6 +413,7 @@ goog.exportSymbol('proto.clarifai.api.SingleUserResponse', null, global);
411
413
  goog.exportSymbol('proto.clarifai.api.SingleWorkflowResponse', null, global);
412
414
  goog.exportSymbol('proto.clarifai.api.SingleWorkflowVersionResponse', null, global);
413
415
  goog.exportSymbol('proto.clarifai.api.StreamInputsRequest', null, global);
416
+ goog.exportSymbol('proto.clarifai.api.StreamLogEntriesRequest', null, global);
414
417
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionPublishRequest', null, global);
415
418
  goog.exportSymbol('proto.clarifai.api.WorkflowVersionUnPublishRequest', null, global);
416
419
  /**
@@ -2513,6 +2516,48 @@ if (goog.DEBUG && !COMPILED) {
2513
2516
  */
2514
2517
  proto.clarifai.api.ListModelInputsRequest.displayName = 'proto.clarifai.api.ListModelInputsRequest';
2515
2518
  }
2519
+ /**
2520
+ * Generated by JsPbCodeGenerator.
2521
+ * @param {Array=} opt_data Optional initial data array, typically from a
2522
+ * server response, or constructed directly in Javascript. The array is used
2523
+ * in place and becomes part of the constructed object. It is not cloned.
2524
+ * If no data is provided, the constructed object will be empty, but still
2525
+ * valid.
2526
+ * @extends {jspb.Message}
2527
+ * @constructor
2528
+ */
2529
+ proto.clarifai.api.PostComputePlaneMetricsRequest = function (opt_data) {
2530
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostComputePlaneMetricsRequest.repeatedFields_, null);
2531
+ };
2532
+ goog.inherits(proto.clarifai.api.PostComputePlaneMetricsRequest, jspb.Message);
2533
+ if (goog.DEBUG && !COMPILED) {
2534
+ /**
2535
+ * @public
2536
+ * @override
2537
+ */
2538
+ proto.clarifai.api.PostComputePlaneMetricsRequest.displayName = 'proto.clarifai.api.PostComputePlaneMetricsRequest';
2539
+ }
2540
+ /**
2541
+ * Generated by JsPbCodeGenerator.
2542
+ * @param {Array=} opt_data Optional initial data array, typically from a
2543
+ * server response, or constructed directly in Javascript. The array is used
2544
+ * in place and becomes part of the constructed object. It is not cloned.
2545
+ * If no data is provided, the constructed object will be empty, but still
2546
+ * valid.
2547
+ * @extends {jspb.Message}
2548
+ * @constructor
2549
+ */
2550
+ proto.clarifai.api.PostLogEntriesRequest = function (opt_data) {
2551
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostLogEntriesRequest.repeatedFields_, null);
2552
+ };
2553
+ goog.inherits(proto.clarifai.api.PostLogEntriesRequest, jspb.Message);
2554
+ if (goog.DEBUG && !COMPILED) {
2555
+ /**
2556
+ * @public
2557
+ * @override
2558
+ */
2559
+ proto.clarifai.api.PostLogEntriesRequest.displayName = 'proto.clarifai.api.PostLogEntriesRequest';
2560
+ }
2516
2561
  /**
2517
2562
  * Generated by JsPbCodeGenerator.
2518
2563
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2534,6 +2579,27 @@ if (goog.DEBUG && !COMPILED) {
2534
2579
  */
2535
2580
  proto.clarifai.api.ListLogEntriesRequest.displayName = 'proto.clarifai.api.ListLogEntriesRequest';
2536
2581
  }
2582
+ /**
2583
+ * Generated by JsPbCodeGenerator.
2584
+ * @param {Array=} opt_data Optional initial data array, typically from a
2585
+ * server response, or constructed directly in Javascript. The array is used
2586
+ * in place and becomes part of the constructed object. It is not cloned.
2587
+ * If no data is provided, the constructed object will be empty, but still
2588
+ * valid.
2589
+ * @extends {jspb.Message}
2590
+ * @constructor
2591
+ */
2592
+ proto.clarifai.api.StreamLogEntriesRequest = function (opt_data) {
2593
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2594
+ };
2595
+ goog.inherits(proto.clarifai.api.StreamLogEntriesRequest, jspb.Message);
2596
+ if (goog.DEBUG && !COMPILED) {
2597
+ /**
2598
+ * @public
2599
+ * @override
2600
+ */
2601
+ proto.clarifai.api.StreamLogEntriesRequest.displayName = 'proto.clarifai.api.StreamLogEntriesRequest';
2602
+ }
2537
2603
  /**
2538
2604
  * Generated by JsPbCodeGenerator.
2539
2605
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -27273,6 +27339,264 @@ proto.clarifai.api.ListModelInputsRequest.prototype.getPerPage = function () {
27273
27339
  proto.clarifai.api.ListModelInputsRequest.prototype.setPerPage = function (value) {
27274
27340
  return jspb.Message.setProto3IntField(this, 5, value);
27275
27341
  };
27342
+ /**
27343
+ * List of repeated fields within this message type.
27344
+ * @private {!Array<number>}
27345
+ * @const
27346
+ */
27347
+ proto.clarifai.api.PostComputePlaneMetricsRequest.repeatedFields_ = [1];
27348
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27349
+ /**
27350
+ * Creates an object representation of this proto.
27351
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27352
+ * Optional fields that are not set will be set to undefined.
27353
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27354
+ * For the list of reserved names please see:
27355
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27356
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27357
+ * JSPB instance for transitional soy proto support:
27358
+ * http://goto/soy-param-migration
27359
+ * @return {!Object}
27360
+ */
27361
+ proto.clarifai.api.PostComputePlaneMetricsRequest.prototype.toObject = function (opt_includeInstance) {
27362
+ return proto.clarifai.api.PostComputePlaneMetricsRequest.toObject(opt_includeInstance, this);
27363
+ };
27364
+ /**
27365
+ * Static version of the {@see toObject} method.
27366
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27367
+ * the JSPB instance for transitional soy proto support:
27368
+ * http://goto/soy-param-migration
27369
+ * @param {!proto.clarifai.api.PostComputePlaneMetricsRequest} msg The msg instance to transform.
27370
+ * @return {!Object}
27371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27372
+ */
27373
+ proto.clarifai.api.PostComputePlaneMetricsRequest.toObject = function (includeInstance, msg) {
27374
+ var f, obj = {
27375
+ computePlaneMetricsList: jspb.Message.toObjectList(msg.getComputePlaneMetricsList(), proto_clarifai_api_resources_pb.ComputePlaneMetrics.toObject, includeInstance)
27376
+ };
27377
+ if (includeInstance) {
27378
+ obj.$jspbMessageInstance = msg;
27379
+ }
27380
+ return obj;
27381
+ };
27382
+ }
27383
+ /**
27384
+ * Deserializes binary data (in protobuf wire format).
27385
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
27386
+ * @return {!proto.clarifai.api.PostComputePlaneMetricsRequest}
27387
+ */
27388
+ proto.clarifai.api.PostComputePlaneMetricsRequest.deserializeBinary = function (bytes) {
27389
+ var reader = new jspb.BinaryReader(bytes);
27390
+ var msg = new proto.clarifai.api.PostComputePlaneMetricsRequest;
27391
+ return proto.clarifai.api.PostComputePlaneMetricsRequest.deserializeBinaryFromReader(msg, reader);
27392
+ };
27393
+ /**
27394
+ * Deserializes binary data (in protobuf wire format) from the
27395
+ * given reader into the given message object.
27396
+ * @param {!proto.clarifai.api.PostComputePlaneMetricsRequest} msg The message object to deserialize into.
27397
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27398
+ * @return {!proto.clarifai.api.PostComputePlaneMetricsRequest}
27399
+ */
27400
+ proto.clarifai.api.PostComputePlaneMetricsRequest.deserializeBinaryFromReader = function (msg, reader) {
27401
+ while (reader.nextField()) {
27402
+ if (reader.isEndGroup()) {
27403
+ break;
27404
+ }
27405
+ var field = reader.getFieldNumber();
27406
+ switch (field) {
27407
+ case 1:
27408
+ var value = new proto_clarifai_api_resources_pb.ComputePlaneMetrics;
27409
+ reader.readMessage(value, proto_clarifai_api_resources_pb.ComputePlaneMetrics.deserializeBinaryFromReader);
27410
+ msg.addComputePlaneMetrics(value);
27411
+ break;
27412
+ default:
27413
+ reader.skipField();
27414
+ break;
27415
+ }
27416
+ }
27417
+ return msg;
27418
+ };
27419
+ /**
27420
+ * Serializes the message to binary data (in protobuf wire format).
27421
+ * @return {!Uint8Array}
27422
+ */
27423
+ proto.clarifai.api.PostComputePlaneMetricsRequest.prototype.serializeBinary = function () {
27424
+ var writer = new jspb.BinaryWriter();
27425
+ proto.clarifai.api.PostComputePlaneMetricsRequest.serializeBinaryToWriter(this, writer);
27426
+ return writer.getResultBuffer();
27427
+ };
27428
+ /**
27429
+ * Serializes the given message to binary data (in protobuf wire
27430
+ * format), writing to the given BinaryWriter.
27431
+ * @param {!proto.clarifai.api.PostComputePlaneMetricsRequest} message
27432
+ * @param {!jspb.BinaryWriter} writer
27433
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27434
+ */
27435
+ proto.clarifai.api.PostComputePlaneMetricsRequest.serializeBinaryToWriter = function (message, writer) {
27436
+ var f = undefined;
27437
+ f = message.getComputePlaneMetricsList();
27438
+ if (f.length > 0) {
27439
+ writer.writeRepeatedMessage(1, f, proto_clarifai_api_resources_pb.ComputePlaneMetrics.serializeBinaryToWriter);
27440
+ }
27441
+ };
27442
+ /**
27443
+ * repeated ComputePlaneMetrics compute_plane_metrics = 1;
27444
+ * @return {!Array<!proto.clarifai.api.ComputePlaneMetrics>}
27445
+ */
27446
+ proto.clarifai.api.PostComputePlaneMetricsRequest.prototype.getComputePlaneMetricsList = function () {
27447
+ return /** @type{!Array<!proto.clarifai.api.ComputePlaneMetrics>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ComputePlaneMetrics, 1));
27448
+ };
27449
+ /**
27450
+ * @param {!Array<!proto.clarifai.api.ComputePlaneMetrics>} value
27451
+ * @return {!proto.clarifai.api.PostComputePlaneMetricsRequest} returns this
27452
+ */
27453
+ proto.clarifai.api.PostComputePlaneMetricsRequest.prototype.setComputePlaneMetricsList = function (value) {
27454
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
27455
+ };
27456
+ /**
27457
+ * @param {!proto.clarifai.api.ComputePlaneMetrics=} opt_value
27458
+ * @param {number=} opt_index
27459
+ * @return {!proto.clarifai.api.ComputePlaneMetrics}
27460
+ */
27461
+ proto.clarifai.api.PostComputePlaneMetricsRequest.prototype.addComputePlaneMetrics = function (opt_value, opt_index) {
27462
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.ComputePlaneMetrics, opt_index);
27463
+ };
27464
+ /**
27465
+ * Clears the list making it empty but non-null.
27466
+ * @return {!proto.clarifai.api.PostComputePlaneMetricsRequest} returns this
27467
+ */
27468
+ proto.clarifai.api.PostComputePlaneMetricsRequest.prototype.clearComputePlaneMetricsList = function () {
27469
+ return this.setComputePlaneMetricsList([]);
27470
+ };
27471
+ /**
27472
+ * List of repeated fields within this message type.
27473
+ * @private {!Array<number>}
27474
+ * @const
27475
+ */
27476
+ proto.clarifai.api.PostLogEntriesRequest.repeatedFields_ = [1];
27477
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27478
+ /**
27479
+ * Creates an object representation of this proto.
27480
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27481
+ * Optional fields that are not set will be set to undefined.
27482
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27483
+ * For the list of reserved names please see:
27484
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27485
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27486
+ * JSPB instance for transitional soy proto support:
27487
+ * http://goto/soy-param-migration
27488
+ * @return {!Object}
27489
+ */
27490
+ proto.clarifai.api.PostLogEntriesRequest.prototype.toObject = function (opt_includeInstance) {
27491
+ return proto.clarifai.api.PostLogEntriesRequest.toObject(opt_includeInstance, this);
27492
+ };
27493
+ /**
27494
+ * Static version of the {@see toObject} method.
27495
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27496
+ * the JSPB instance for transitional soy proto support:
27497
+ * http://goto/soy-param-migration
27498
+ * @param {!proto.clarifai.api.PostLogEntriesRequest} msg The msg instance to transform.
27499
+ * @return {!Object}
27500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27501
+ */
27502
+ proto.clarifai.api.PostLogEntriesRequest.toObject = function (includeInstance, msg) {
27503
+ var f, obj = {
27504
+ logEntriesList: jspb.Message.toObjectList(msg.getLogEntriesList(), proto_clarifai_api_resources_pb.LogEntry.toObject, includeInstance)
27505
+ };
27506
+ if (includeInstance) {
27507
+ obj.$jspbMessageInstance = msg;
27508
+ }
27509
+ return obj;
27510
+ };
27511
+ }
27512
+ /**
27513
+ * Deserializes binary data (in protobuf wire format).
27514
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
27515
+ * @return {!proto.clarifai.api.PostLogEntriesRequest}
27516
+ */
27517
+ proto.clarifai.api.PostLogEntriesRequest.deserializeBinary = function (bytes) {
27518
+ var reader = new jspb.BinaryReader(bytes);
27519
+ var msg = new proto.clarifai.api.PostLogEntriesRequest;
27520
+ return proto.clarifai.api.PostLogEntriesRequest.deserializeBinaryFromReader(msg, reader);
27521
+ };
27522
+ /**
27523
+ * Deserializes binary data (in protobuf wire format) from the
27524
+ * given reader into the given message object.
27525
+ * @param {!proto.clarifai.api.PostLogEntriesRequest} msg The message object to deserialize into.
27526
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27527
+ * @return {!proto.clarifai.api.PostLogEntriesRequest}
27528
+ */
27529
+ proto.clarifai.api.PostLogEntriesRequest.deserializeBinaryFromReader = function (msg, reader) {
27530
+ while (reader.nextField()) {
27531
+ if (reader.isEndGroup()) {
27532
+ break;
27533
+ }
27534
+ var field = reader.getFieldNumber();
27535
+ switch (field) {
27536
+ case 1:
27537
+ var value = new proto_clarifai_api_resources_pb.LogEntry;
27538
+ reader.readMessage(value, proto_clarifai_api_resources_pb.LogEntry.deserializeBinaryFromReader);
27539
+ msg.addLogEntries(value);
27540
+ break;
27541
+ default:
27542
+ reader.skipField();
27543
+ break;
27544
+ }
27545
+ }
27546
+ return msg;
27547
+ };
27548
+ /**
27549
+ * Serializes the message to binary data (in protobuf wire format).
27550
+ * @return {!Uint8Array}
27551
+ */
27552
+ proto.clarifai.api.PostLogEntriesRequest.prototype.serializeBinary = function () {
27553
+ var writer = new jspb.BinaryWriter();
27554
+ proto.clarifai.api.PostLogEntriesRequest.serializeBinaryToWriter(this, writer);
27555
+ return writer.getResultBuffer();
27556
+ };
27557
+ /**
27558
+ * Serializes the given message to binary data (in protobuf wire
27559
+ * format), writing to the given BinaryWriter.
27560
+ * @param {!proto.clarifai.api.PostLogEntriesRequest} message
27561
+ * @param {!jspb.BinaryWriter} writer
27562
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27563
+ */
27564
+ proto.clarifai.api.PostLogEntriesRequest.serializeBinaryToWriter = function (message, writer) {
27565
+ var f = undefined;
27566
+ f = message.getLogEntriesList();
27567
+ if (f.length > 0) {
27568
+ writer.writeRepeatedMessage(1, f, proto_clarifai_api_resources_pb.LogEntry.serializeBinaryToWriter);
27569
+ }
27570
+ };
27571
+ /**
27572
+ * repeated LogEntry log_entries = 1;
27573
+ * @return {!Array<!proto.clarifai.api.LogEntry>}
27574
+ */
27575
+ proto.clarifai.api.PostLogEntriesRequest.prototype.getLogEntriesList = function () {
27576
+ return /** @type{!Array<!proto.clarifai.api.LogEntry>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LogEntry, 1));
27577
+ };
27578
+ /**
27579
+ * @param {!Array<!proto.clarifai.api.LogEntry>} value
27580
+ * @return {!proto.clarifai.api.PostLogEntriesRequest} returns this
27581
+ */
27582
+ proto.clarifai.api.PostLogEntriesRequest.prototype.setLogEntriesList = function (value) {
27583
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
27584
+ };
27585
+ /**
27586
+ * @param {!proto.clarifai.api.LogEntry=} opt_value
27587
+ * @param {number=} opt_index
27588
+ * @return {!proto.clarifai.api.LogEntry}
27589
+ */
27590
+ proto.clarifai.api.PostLogEntriesRequest.prototype.addLogEntries = function (opt_value, opt_index) {
27591
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.LogEntry, opt_index);
27592
+ };
27593
+ /**
27594
+ * Clears the list making it empty but non-null.
27595
+ * @return {!proto.clarifai.api.PostLogEntriesRequest} returns this
27596
+ */
27597
+ proto.clarifai.api.PostLogEntriesRequest.prototype.clearLogEntriesList = function () {
27598
+ return this.setLogEntriesList([]);
27599
+ };
27276
27600
  if (jspb.Message.GENERATE_TO_OBJECT) {
27277
27601
  /**
27278
27602
  * Creates an object representation of this proto.
@@ -27602,6 +27926,289 @@ proto.clarifai.api.ListLogEntriesRequest.prototype.getRunnerId = function () {
27602
27926
  proto.clarifai.api.ListLogEntriesRequest.prototype.setRunnerId = function (value) {
27603
27927
  return jspb.Message.setProto3StringField(this, 11, value);
27604
27928
  };
27929
+ if (jspb.Message.GENERATE_TO_OBJECT) {
27930
+ /**
27931
+ * Creates an object representation of this proto.
27932
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
27933
+ * Optional fields that are not set will be set to undefined.
27934
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
27935
+ * For the list of reserved names please see:
27936
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
27937
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
27938
+ * JSPB instance for transitional soy proto support:
27939
+ * http://goto/soy-param-migration
27940
+ * @return {!Object}
27941
+ */
27942
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.toObject = function (opt_includeInstance) {
27943
+ return proto.clarifai.api.StreamLogEntriesRequest.toObject(opt_includeInstance, this);
27944
+ };
27945
+ /**
27946
+ * Static version of the {@see toObject} method.
27947
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
27948
+ * the JSPB instance for transitional soy proto support:
27949
+ * http://goto/soy-param-migration
27950
+ * @param {!proto.clarifai.api.StreamLogEntriesRequest} msg The msg instance to transform.
27951
+ * @return {!Object}
27952
+ * @suppress {unusedLocalVariables} f is only used for nested messages
27953
+ */
27954
+ proto.clarifai.api.StreamLogEntriesRequest.toObject = function (includeInstance, msg) {
27955
+ var f, obj = {
27956
+ logType: jspb.Message.getFieldWithDefault(msg, 1, ""),
27957
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
27958
+ modelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
27959
+ modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
27960
+ workflowId: jspb.Message.getFieldWithDefault(msg, 5, ""),
27961
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
27962
+ nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
27963
+ runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
27964
+ };
27965
+ if (includeInstance) {
27966
+ obj.$jspbMessageInstance = msg;
27967
+ }
27968
+ return obj;
27969
+ };
27970
+ }
27971
+ /**
27972
+ * Deserializes binary data (in protobuf wire format).
27973
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
27974
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest}
27975
+ */
27976
+ proto.clarifai.api.StreamLogEntriesRequest.deserializeBinary = function (bytes) {
27977
+ var reader = new jspb.BinaryReader(bytes);
27978
+ var msg = new proto.clarifai.api.StreamLogEntriesRequest;
27979
+ return proto.clarifai.api.StreamLogEntriesRequest.deserializeBinaryFromReader(msg, reader);
27980
+ };
27981
+ /**
27982
+ * Deserializes binary data (in protobuf wire format) from the
27983
+ * given reader into the given message object.
27984
+ * @param {!proto.clarifai.api.StreamLogEntriesRequest} msg The message object to deserialize into.
27985
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
27986
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest}
27987
+ */
27988
+ proto.clarifai.api.StreamLogEntriesRequest.deserializeBinaryFromReader = function (msg, reader) {
27989
+ while (reader.nextField()) {
27990
+ if (reader.isEndGroup()) {
27991
+ break;
27992
+ }
27993
+ var field = reader.getFieldNumber();
27994
+ switch (field) {
27995
+ case 1:
27996
+ var value = /** @type {string} */ (reader.readString());
27997
+ msg.setLogType(value);
27998
+ break;
27999
+ case 2:
28000
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
28001
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
28002
+ msg.setUserAppId(value);
28003
+ break;
28004
+ case 3:
28005
+ var value = /** @type {string} */ (reader.readString());
28006
+ msg.setModelId(value);
28007
+ break;
28008
+ case 4:
28009
+ var value = /** @type {string} */ (reader.readString());
28010
+ msg.setModelVersionId(value);
28011
+ break;
28012
+ case 5:
28013
+ var value = /** @type {string} */ (reader.readString());
28014
+ msg.setWorkflowId(value);
28015
+ break;
28016
+ case 6:
28017
+ var value = /** @type {string} */ (reader.readString());
28018
+ msg.setComputeClusterId(value);
28019
+ break;
28020
+ case 7:
28021
+ var value = /** @type {string} */ (reader.readString());
28022
+ msg.setNodepoolId(value);
28023
+ break;
28024
+ case 8:
28025
+ var value = /** @type {string} */ (reader.readString());
28026
+ msg.setRunnerId(value);
28027
+ break;
28028
+ default:
28029
+ reader.skipField();
28030
+ break;
28031
+ }
28032
+ }
28033
+ return msg;
28034
+ };
28035
+ /**
28036
+ * Serializes the message to binary data (in protobuf wire format).
28037
+ * @return {!Uint8Array}
28038
+ */
28039
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.serializeBinary = function () {
28040
+ var writer = new jspb.BinaryWriter();
28041
+ proto.clarifai.api.StreamLogEntriesRequest.serializeBinaryToWriter(this, writer);
28042
+ return writer.getResultBuffer();
28043
+ };
28044
+ /**
28045
+ * Serializes the given message to binary data (in protobuf wire
28046
+ * format), writing to the given BinaryWriter.
28047
+ * @param {!proto.clarifai.api.StreamLogEntriesRequest} message
28048
+ * @param {!jspb.BinaryWriter} writer
28049
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28050
+ */
28051
+ proto.clarifai.api.StreamLogEntriesRequest.serializeBinaryToWriter = function (message, writer) {
28052
+ var f = undefined;
28053
+ f = message.getLogType();
28054
+ if (f.length > 0) {
28055
+ writer.writeString(1, f);
28056
+ }
28057
+ f = message.getUserAppId();
28058
+ if (f != null) {
28059
+ writer.writeMessage(2, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
28060
+ }
28061
+ f = message.getModelId();
28062
+ if (f.length > 0) {
28063
+ writer.writeString(3, f);
28064
+ }
28065
+ f = message.getModelVersionId();
28066
+ if (f.length > 0) {
28067
+ writer.writeString(4, f);
28068
+ }
28069
+ f = message.getWorkflowId();
28070
+ if (f.length > 0) {
28071
+ writer.writeString(5, f);
28072
+ }
28073
+ f = message.getComputeClusterId();
28074
+ if (f.length > 0) {
28075
+ writer.writeString(6, f);
28076
+ }
28077
+ f = message.getNodepoolId();
28078
+ if (f.length > 0) {
28079
+ writer.writeString(7, f);
28080
+ }
28081
+ f = message.getRunnerId();
28082
+ if (f.length > 0) {
28083
+ writer.writeString(8, f);
28084
+ }
28085
+ };
28086
+ /**
28087
+ * optional string log_type = 1;
28088
+ * @return {string}
28089
+ */
28090
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getLogType = function () {
28091
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
28092
+ };
28093
+ /**
28094
+ * @param {string} value
28095
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28096
+ */
28097
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setLogType = function (value) {
28098
+ return jspb.Message.setProto3StringField(this, 1, value);
28099
+ };
28100
+ /**
28101
+ * optional UserAppIDSet user_app_id = 2;
28102
+ * @return {?proto.clarifai.api.UserAppIDSet}
28103
+ */
28104
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getUserAppId = function () {
28105
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 2));
28106
+ };
28107
+ /**
28108
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
28109
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28110
+ */
28111
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setUserAppId = function (value) {
28112
+ return jspb.Message.setWrapperField(this, 2, value);
28113
+ };
28114
+ /**
28115
+ * Clears the message field making it undefined.
28116
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28117
+ */
28118
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.clearUserAppId = function () {
28119
+ return this.setUserAppId(undefined);
28120
+ };
28121
+ /**
28122
+ * Returns whether this field is set.
28123
+ * @return {boolean}
28124
+ */
28125
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.hasUserAppId = function () {
28126
+ return jspb.Message.getField(this, 2) != null;
28127
+ };
28128
+ /**
28129
+ * optional string model_id = 3;
28130
+ * @return {string}
28131
+ */
28132
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getModelId = function () {
28133
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
28134
+ };
28135
+ /**
28136
+ * @param {string} value
28137
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28138
+ */
28139
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setModelId = function (value) {
28140
+ return jspb.Message.setProto3StringField(this, 3, value);
28141
+ };
28142
+ /**
28143
+ * optional string model_version_id = 4;
28144
+ * @return {string}
28145
+ */
28146
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getModelVersionId = function () {
28147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
28148
+ };
28149
+ /**
28150
+ * @param {string} value
28151
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28152
+ */
28153
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setModelVersionId = function (value) {
28154
+ return jspb.Message.setProto3StringField(this, 4, value);
28155
+ };
28156
+ /**
28157
+ * optional string workflow_id = 5;
28158
+ * @return {string}
28159
+ */
28160
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getWorkflowId = function () {
28161
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
28162
+ };
28163
+ /**
28164
+ * @param {string} value
28165
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28166
+ */
28167
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setWorkflowId = function (value) {
28168
+ return jspb.Message.setProto3StringField(this, 5, value);
28169
+ };
28170
+ /**
28171
+ * optional string compute_cluster_id = 6;
28172
+ * @return {string}
28173
+ */
28174
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getComputeClusterId = function () {
28175
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
28176
+ };
28177
+ /**
28178
+ * @param {string} value
28179
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28180
+ */
28181
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setComputeClusterId = function (value) {
28182
+ return jspb.Message.setProto3StringField(this, 6, value);
28183
+ };
28184
+ /**
28185
+ * optional string nodepool_id = 7;
28186
+ * @return {string}
28187
+ */
28188
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getNodepoolId = function () {
28189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
28190
+ };
28191
+ /**
28192
+ * @param {string} value
28193
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28194
+ */
28195
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setNodepoolId = function (value) {
28196
+ return jspb.Message.setProto3StringField(this, 7, value);
28197
+ };
28198
+ /**
28199
+ * optional string runner_id = 8;
28200
+ * @return {string}
28201
+ */
28202
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getRunnerId = function () {
28203
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
28204
+ };
28205
+ /**
28206
+ * @param {string} value
28207
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
28208
+ */
28209
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setRunnerId = function (value) {
28210
+ return jspb.Message.setProto3StringField(this, 8, value);
28211
+ };
27605
28212
  if (jspb.Message.GENERATE_TO_OBJECT) {
27606
28213
  /**
27607
28214
  * 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": "11.1.0",
3
+ "version": "11.1.2",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",