clarifai-web-grpc 11.8.6 → 11.9.0

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.
@@ -329,6 +329,7 @@ proto.clarifai.api.status.StatusCode = {
329
329
  FILETYPE_UNSUPPORTED: 46003,
330
330
  LOGIN_EVENT_ERROR: 46004,
331
331
  SIFT_UNCATEGORIZED_ERROR: 46005,
332
+ USER_FLAGGED: 46006,
332
333
  APP_COUNT_INVALID_MESSAGE: 47001,
333
334
  APP_COUNT_UPDATE_INCREMENT_FAILED: 47002,
334
335
  APP_COUNT_REBUILD_FAILED: 47003,
@@ -277,6 +277,7 @@ goog.exportSymbol('proto.clarifai.api.Role', null, global);
277
277
  goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
278
278
  goog.exportSymbol('proto.clarifai.api.Runner', null, global);
279
279
  goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
280
+ goog.exportSymbol('proto.clarifai.api.RunnerMetrics', null, global);
280
281
  goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
281
282
  goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
282
283
  goog.exportSymbol('proto.clarifai.api.Search', null, global);
@@ -4730,6 +4731,27 @@ if (goog.DEBUG && !COMPILED) {
4730
4731
  */
4731
4732
  proto.clarifai.api.BookmarkOrigin.displayName = 'proto.clarifai.api.BookmarkOrigin';
4732
4733
  }
4734
+ /**
4735
+ * Generated by JsPbCodeGenerator.
4736
+ * @param {Array=} opt_data Optional initial data array, typically from a
4737
+ * server response, or constructed directly in Javascript. The array is used
4738
+ * in place and becomes part of the constructed object. It is not cloned.
4739
+ * If no data is provided, the constructed object will be empty, but still
4740
+ * valid.
4741
+ * @extends {jspb.Message}
4742
+ * @constructor
4743
+ */
4744
+ proto.clarifai.api.RunnerMetrics = function (opt_data) {
4745
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4746
+ };
4747
+ goog.inherits(proto.clarifai.api.RunnerMetrics, jspb.Message);
4748
+ if (goog.DEBUG && !COMPILED) {
4749
+ /**
4750
+ * @public
4751
+ * @override
4752
+ */
4753
+ proto.clarifai.api.RunnerMetrics.displayName = 'proto.clarifai.api.RunnerMetrics';
4754
+ }
4733
4755
  /**
4734
4756
  * Generated by JsPbCodeGenerator.
4735
4757
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -14537,7 +14559,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
14537
14559
  proto.clarifai.api.FrameInfo.toObject = function (includeInstance, msg) {
14538
14560
  var f, obj = {
14539
14561
  index: jspb.Message.getFieldWithDefault(msg, 1, 0),
14540
- time: jspb.Message.getFieldWithDefault(msg, 2, 0)
14562
+ time: jspb.Message.getFieldWithDefault(msg, 2, 0),
14563
+ number: jspb.Message.getFieldWithDefault(msg, 3, 0)
14541
14564
  };
14542
14565
  if (includeInstance) {
14543
14566
  obj.$jspbMessageInstance = msg;
@@ -14577,6 +14600,10 @@ proto.clarifai.api.FrameInfo.deserializeBinaryFromReader = function (msg, reader
14577
14600
  var value = /** @type {number} */ (reader.readUint32());
14578
14601
  msg.setTime(value);
14579
14602
  break;
14603
+ case 3:
14604
+ var value = /** @type {number} */ (reader.readUint32());
14605
+ msg.setNumber(value);
14606
+ break;
14580
14607
  default:
14581
14608
  reader.skipField();
14582
14609
  break;
@@ -14610,6 +14637,10 @@ proto.clarifai.api.FrameInfo.serializeBinaryToWriter = function (message, writer
14610
14637
  if (f !== 0) {
14611
14638
  writer.writeUint32(2, f);
14612
14639
  }
14640
+ f = message.getNumber();
14641
+ if (f !== 0) {
14642
+ writer.writeUint32(3, f);
14643
+ }
14613
14644
  };
14614
14645
  /**
14615
14646
  * optional uint32 index = 1;
@@ -14639,6 +14670,20 @@ proto.clarifai.api.FrameInfo.prototype.getTime = function () {
14639
14670
  proto.clarifai.api.FrameInfo.prototype.setTime = function (value) {
14640
14671
  return jspb.Message.setProto3IntField(this, 2, value);
14641
14672
  };
14673
+ /**
14674
+ * optional uint32 number = 3;
14675
+ * @return {number}
14676
+ */
14677
+ proto.clarifai.api.FrameInfo.prototype.getNumber = function () {
14678
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
14679
+ };
14680
+ /**
14681
+ * @param {number} value
14682
+ * @return {!proto.clarifai.api.FrameInfo} returns this
14683
+ */
14684
+ proto.clarifai.api.FrameInfo.prototype.setNumber = function (value) {
14685
+ return jspb.Message.setProto3IntField(this, 3, value);
14686
+ };
14642
14687
  if (jspb.Message.GENERATE_TO_OBJECT) {
14643
14688
  /**
14644
14689
  * Creates an object representation of this proto.
@@ -56851,6 +56896,136 @@ proto.clarifai.api.BookmarkOrigin.prototype.getResourceType = function () {
56851
56896
  proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function (value) {
56852
56897
  return jspb.Message.setProto3EnumField(this, 4, value);
56853
56898
  };
56899
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56900
+ /**
56901
+ * Creates an object representation of this proto.
56902
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56903
+ * Optional fields that are not set will be set to undefined.
56904
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
56905
+ * For the list of reserved names please see:
56906
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
56907
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56908
+ * JSPB instance for transitional soy proto support:
56909
+ * http://goto/soy-param-migration
56910
+ * @return {!Object}
56911
+ */
56912
+ proto.clarifai.api.RunnerMetrics.prototype.toObject = function (opt_includeInstance) {
56913
+ return proto.clarifai.api.RunnerMetrics.toObject(opt_includeInstance, this);
56914
+ };
56915
+ /**
56916
+ * Static version of the {@see toObject} method.
56917
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
56918
+ * the JSPB instance for transitional soy proto support:
56919
+ * http://goto/soy-param-migration
56920
+ * @param {!proto.clarifai.api.RunnerMetrics} msg The msg instance to transform.
56921
+ * @return {!Object}
56922
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56923
+ */
56924
+ proto.clarifai.api.RunnerMetrics.toObject = function (includeInstance, msg) {
56925
+ var f, obj = {
56926
+ podsTotal: jspb.Message.getFieldWithDefault(msg, 1, 0),
56927
+ podsRunning: jspb.Message.getFieldWithDefault(msg, 2, 0)
56928
+ };
56929
+ if (includeInstance) {
56930
+ obj.$jspbMessageInstance = msg;
56931
+ }
56932
+ return obj;
56933
+ };
56934
+ }
56935
+ /**
56936
+ * Deserializes binary data (in protobuf wire format).
56937
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
56938
+ * @return {!proto.clarifai.api.RunnerMetrics}
56939
+ */
56940
+ proto.clarifai.api.RunnerMetrics.deserializeBinary = function (bytes) {
56941
+ var reader = new jspb.BinaryReader(bytes);
56942
+ var msg = new proto.clarifai.api.RunnerMetrics;
56943
+ return proto.clarifai.api.RunnerMetrics.deserializeBinaryFromReader(msg, reader);
56944
+ };
56945
+ /**
56946
+ * Deserializes binary data (in protobuf wire format) from the
56947
+ * given reader into the given message object.
56948
+ * @param {!proto.clarifai.api.RunnerMetrics} msg The message object to deserialize into.
56949
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
56950
+ * @return {!proto.clarifai.api.RunnerMetrics}
56951
+ */
56952
+ proto.clarifai.api.RunnerMetrics.deserializeBinaryFromReader = function (msg, reader) {
56953
+ while (reader.nextField()) {
56954
+ if (reader.isEndGroup()) {
56955
+ break;
56956
+ }
56957
+ var field = reader.getFieldNumber();
56958
+ switch (field) {
56959
+ case 1:
56960
+ var value = /** @type {number} */ (reader.readUint32());
56961
+ msg.setPodsTotal(value);
56962
+ break;
56963
+ case 2:
56964
+ var value = /** @type {number} */ (reader.readUint32());
56965
+ msg.setPodsRunning(value);
56966
+ break;
56967
+ default:
56968
+ reader.skipField();
56969
+ break;
56970
+ }
56971
+ }
56972
+ return msg;
56973
+ };
56974
+ /**
56975
+ * Serializes the message to binary data (in protobuf wire format).
56976
+ * @return {!Uint8Array}
56977
+ */
56978
+ proto.clarifai.api.RunnerMetrics.prototype.serializeBinary = function () {
56979
+ var writer = new jspb.BinaryWriter();
56980
+ proto.clarifai.api.RunnerMetrics.serializeBinaryToWriter(this, writer);
56981
+ return writer.getResultBuffer();
56982
+ };
56983
+ /**
56984
+ * Serializes the given message to binary data (in protobuf wire
56985
+ * format), writing to the given BinaryWriter.
56986
+ * @param {!proto.clarifai.api.RunnerMetrics} message
56987
+ * @param {!jspb.BinaryWriter} writer
56988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
56989
+ */
56990
+ proto.clarifai.api.RunnerMetrics.serializeBinaryToWriter = function (message, writer) {
56991
+ var f = undefined;
56992
+ f = message.getPodsTotal();
56993
+ if (f !== 0) {
56994
+ writer.writeUint32(1, f);
56995
+ }
56996
+ f = message.getPodsRunning();
56997
+ if (f !== 0) {
56998
+ writer.writeUint32(2, f);
56999
+ }
57000
+ };
57001
+ /**
57002
+ * optional uint32 pods_total = 1;
57003
+ * @return {number}
57004
+ */
57005
+ proto.clarifai.api.RunnerMetrics.prototype.getPodsTotal = function () {
57006
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
57007
+ };
57008
+ /**
57009
+ * @param {number} value
57010
+ * @return {!proto.clarifai.api.RunnerMetrics} returns this
57011
+ */
57012
+ proto.clarifai.api.RunnerMetrics.prototype.setPodsTotal = function (value) {
57013
+ return jspb.Message.setProto3IntField(this, 1, value);
57014
+ };
57015
+ /**
57016
+ * optional uint32 pods_running = 2;
57017
+ * @return {number}
57018
+ */
57019
+ proto.clarifai.api.RunnerMetrics.prototype.getPodsRunning = function () {
57020
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
57021
+ };
57022
+ /**
57023
+ * @param {number} value
57024
+ * @return {!proto.clarifai.api.RunnerMetrics} returns this
57025
+ */
57026
+ proto.clarifai.api.RunnerMetrics.prototype.setPodsRunning = function (value) {
57027
+ return jspb.Message.setProto3IntField(this, 2, value);
57028
+ };
56854
57029
  /**
56855
57030
  * List of repeated fields within this message type.
56856
57031
  * @private {!Array<number>}
@@ -56894,7 +57069,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
56894
57069
  nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
56895
57070
  computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
56896
57071
  numReplicas: jspb.Message.getFieldWithDefault(msg, 11, 0),
56897
- specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance)
57072
+ specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance),
57073
+ runnerMetrics: (f = msg.getRunnerMetrics()) && proto.clarifai.api.RunnerMetrics.toObject(includeInstance, f)
56898
57074
  };
56899
57075
  if (includeInstance) {
56900
57076
  obj.$jspbMessageInstance = msg;
@@ -56977,6 +57153,11 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
56977
57153
  reader.readMessage(value, proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
56978
57154
  msg.addSpecialHandling(value);
56979
57155
  break;
57156
+ case 13:
57157
+ var value = new proto.clarifai.api.RunnerMetrics;
57158
+ reader.readMessage(value, proto.clarifai.api.RunnerMetrics.deserializeBinaryFromReader);
57159
+ msg.setRunnerMetrics(value);
57160
+ break;
56980
57161
  default:
56981
57162
  reader.skipField();
56982
57163
  break;
@@ -57046,6 +57227,10 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
57046
57227
  if (f.length > 0) {
57047
57228
  writer.writeRepeatedMessage(12, f, proto.clarifai.api.SpecialHandling.serializeBinaryToWriter);
57048
57229
  }
57230
+ f = message.getRunnerMetrics();
57231
+ if (f != null) {
57232
+ writer.writeMessage(13, f, proto.clarifai.api.RunnerMetrics.serializeBinaryToWriter);
57233
+ }
57049
57234
  };
57050
57235
  /**
57051
57236
  * optional string id = 1;
@@ -57315,6 +57500,34 @@ proto.clarifai.api.Runner.prototype.addSpecialHandling = function (opt_value, op
57315
57500
  proto.clarifai.api.Runner.prototype.clearSpecialHandlingList = function () {
57316
57501
  return this.setSpecialHandlingList([]);
57317
57502
  };
57503
+ /**
57504
+ * optional RunnerMetrics runner_metrics = 13;
57505
+ * @return {?proto.clarifai.api.RunnerMetrics}
57506
+ */
57507
+ proto.clarifai.api.Runner.prototype.getRunnerMetrics = function () {
57508
+ return /** @type{?proto.clarifai.api.RunnerMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.RunnerMetrics, 13));
57509
+ };
57510
+ /**
57511
+ * @param {?proto.clarifai.api.RunnerMetrics|undefined} value
57512
+ * @return {!proto.clarifai.api.Runner} returns this
57513
+ */
57514
+ proto.clarifai.api.Runner.prototype.setRunnerMetrics = function (value) {
57515
+ return jspb.Message.setWrapperField(this, 13, value);
57516
+ };
57517
+ /**
57518
+ * Clears the message field making it undefined.
57519
+ * @return {!proto.clarifai.api.Runner} returns this
57520
+ */
57521
+ proto.clarifai.api.Runner.prototype.clearRunnerMetrics = function () {
57522
+ return this.setRunnerMetrics(undefined);
57523
+ };
57524
+ /**
57525
+ * Returns whether this field is set.
57526
+ * @return {boolean}
57527
+ */
57528
+ proto.clarifai.api.Runner.prototype.hasRunnerMetrics = function () {
57529
+ return jspb.Message.getField(this, 13) != null;
57530
+ };
57318
57531
  /**
57319
57532
  * List of repeated fields within this message type.
57320
57533
  * @private {!Array<number>}
@@ -826,6 +826,48 @@ proto.clarifai.api.V2PromiseClient.prototype.listAnnotations =
826
826
  return this.client_.unaryCall(this.hostname_ +
827
827
  '/clarifai.api.V2/ListAnnotations', request, metadata || {}, methodDescriptor_V2_ListAnnotations);
828
828
  };
829
+ /**
830
+ * @const
831
+ * @type {!grpc.web.MethodDescriptor<
832
+ * !proto.clarifai.api.PostTrackAnnotationsSearchesRequest,
833
+ * !proto.clarifai.api.MultiAnnotationResponse>}
834
+ */
835
+ const methodDescriptor_V2_PostTrackAnnotationsSearches = new grpc.web.MethodDescriptor('/clarifai.api.V2/PostTrackAnnotationsSearches', grpc.web.MethodType.UNARY, proto.clarifai.api.PostTrackAnnotationsSearchesRequest, proto.clarifai.api.MultiAnnotationResponse,
836
+ /**
837
+ * @param {!proto.clarifai.api.PostTrackAnnotationsSearchesRequest} request
838
+ * @return {!Uint8Array}
839
+ */
840
+ function (request) {
841
+ return request.serializeBinary();
842
+ }, proto.clarifai.api.MultiAnnotationResponse.deserializeBinary);
843
+ /**
844
+ * @param {!proto.clarifai.api.PostTrackAnnotationsSearchesRequest} request The
845
+ * request proto
846
+ * @param {?Object<string, string>} metadata User defined
847
+ * call metadata
848
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiAnnotationResponse)}
849
+ * callback The callback function(error, response)
850
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiAnnotationResponse>|undefined}
851
+ * The XHR Node Readable Stream
852
+ */
853
+ proto.clarifai.api.V2Client.prototype.postTrackAnnotationsSearches =
854
+ function (request, metadata, callback) {
855
+ return this.client_.rpcCall(this.hostname_ +
856
+ '/clarifai.api.V2/PostTrackAnnotationsSearches', request, metadata || {}, methodDescriptor_V2_PostTrackAnnotationsSearches, callback);
857
+ };
858
+ /**
859
+ * @param {!proto.clarifai.api.PostTrackAnnotationsSearchesRequest} request The
860
+ * request proto
861
+ * @param {?Object<string, string>=} metadata User defined
862
+ * call metadata
863
+ * @return {!Promise<!proto.clarifai.api.MultiAnnotationResponse>}
864
+ * Promise that resolves to the response
865
+ */
866
+ proto.clarifai.api.V2PromiseClient.prototype.postTrackAnnotationsSearches =
867
+ function (request, metadata) {
868
+ return this.client_.unaryCall(this.hostname_ +
869
+ '/clarifai.api.V2/PostTrackAnnotationsSearches', request, metadata || {}, methodDescriptor_V2_PostTrackAnnotationsSearches);
870
+ };
829
871
  /**
830
872
  * @const
831
873
  * @type {!grpc.web.MethodDescriptor<