clarifai-web-grpc 10.9.3 → 10.10.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.
@@ -182,7 +182,6 @@ goog.exportSymbol('proto.clarifai.api.ListScopesRequest', null, global);
182
182
  goog.exportSymbol('proto.clarifai.api.ListSearchesRequest', null, global);
183
183
  goog.exportSymbol('proto.clarifai.api.ListStatusCodesRequest', null, global);
184
184
  goog.exportSymbol('proto.clarifai.api.ListTasksRequest', null, global);
185
- goog.exportSymbol('proto.clarifai.api.ListTrendingMetricsViewsRequest', null, global);
186
185
  goog.exportSymbol('proto.clarifai.api.ListUploadsRequest', null, global);
187
186
  goog.exportSymbol('proto.clarifai.api.ListWorkflowEvaluationTemplatesRequest', null, global);
188
187
  goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionsRequest', null, global);
@@ -248,7 +247,6 @@ goog.exportSymbol('proto.clarifai.api.MultiStatusCodeResponse', null, global);
248
247
  goog.exportSymbol('proto.clarifai.api.MultiTaskAssignmentResponse', null, global);
249
248
  goog.exportSymbol('proto.clarifai.api.MultiTaskResponse', null, global);
250
249
  goog.exportSymbol('proto.clarifai.api.MultiTrainingTimeEstimateResponse', null, global);
251
- goog.exportSymbol('proto.clarifai.api.MultiTrendingMetricsViewResponse', null, global);
252
250
  goog.exportSymbol('proto.clarifai.api.MultiUploadResponse', null, global);
253
251
  goog.exportSymbol('proto.clarifai.api.MultiWorkerResponse', null, global);
254
252
  goog.exportSymbol('proto.clarifai.api.MultiWorkflowEvaluationTemplateResponse', null, global);
@@ -347,7 +345,6 @@ goog.exportSymbol('proto.clarifai.api.PostSearchesRequest', null, global);
347
345
  goog.exportSymbol('proto.clarifai.api.PostStatValuesAggregateRequest', null, global);
348
346
  goog.exportSymbol('proto.clarifai.api.PostStatValuesRequest', null, global);
349
347
  goog.exportSymbol('proto.clarifai.api.PostTasksRequest', null, global);
350
- goog.exportSymbol('proto.clarifai.api.PostTrendingMetricsViewRequest', null, global);
351
348
  goog.exportSymbol('proto.clarifai.api.PostUploadsRequest', null, global);
352
349
  goog.exportSymbol('proto.clarifai.api.PostValidatePasswordRequest', null, global);
353
350
  goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsRequest', null, global);
@@ -5830,69 +5827,6 @@ if (goog.DEBUG && !COMPILED) {
5830
5827
  */
5831
5828
  proto.clarifai.api.MultiStatValueAggregateResponse.displayName = 'proto.clarifai.api.MultiStatValueAggregateResponse';
5832
5829
  }
5833
- /**
5834
- * Generated by JsPbCodeGenerator.
5835
- * @param {Array=} opt_data Optional initial data array, typically from a
5836
- * server response, or constructed directly in Javascript. The array is used
5837
- * in place and becomes part of the constructed object. It is not cloned.
5838
- * If no data is provided, the constructed object will be empty, but still
5839
- * valid.
5840
- * @extends {jspb.Message}
5841
- * @constructor
5842
- */
5843
- proto.clarifai.api.PostTrendingMetricsViewRequest = function(opt_data) {
5844
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5845
- };
5846
- goog.inherits(proto.clarifai.api.PostTrendingMetricsViewRequest, jspb.Message);
5847
- if (goog.DEBUG && !COMPILED) {
5848
- /**
5849
- * @public
5850
- * @override
5851
- */
5852
- proto.clarifai.api.PostTrendingMetricsViewRequest.displayName = 'proto.clarifai.api.PostTrendingMetricsViewRequest';
5853
- }
5854
- /**
5855
- * Generated by JsPbCodeGenerator.
5856
- * @param {Array=} opt_data Optional initial data array, typically from a
5857
- * server response, or constructed directly in Javascript. The array is used
5858
- * in place and becomes part of the constructed object. It is not cloned.
5859
- * If no data is provided, the constructed object will be empty, but still
5860
- * valid.
5861
- * @extends {jspb.Message}
5862
- * @constructor
5863
- */
5864
- proto.clarifai.api.ListTrendingMetricsViewsRequest = function(opt_data) {
5865
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5866
- };
5867
- goog.inherits(proto.clarifai.api.ListTrendingMetricsViewsRequest, jspb.Message);
5868
- if (goog.DEBUG && !COMPILED) {
5869
- /**
5870
- * @public
5871
- * @override
5872
- */
5873
- proto.clarifai.api.ListTrendingMetricsViewsRequest.displayName = 'proto.clarifai.api.ListTrendingMetricsViewsRequest';
5874
- }
5875
- /**
5876
- * Generated by JsPbCodeGenerator.
5877
- * @param {Array=} opt_data Optional initial data array, typically from a
5878
- * server response, or constructed directly in Javascript. The array is used
5879
- * in place and becomes part of the constructed object. It is not cloned.
5880
- * If no data is provided, the constructed object will be empty, but still
5881
- * valid.
5882
- * @extends {jspb.Message}
5883
- * @constructor
5884
- */
5885
- proto.clarifai.api.MultiTrendingMetricsViewResponse = function(opt_data) {
5886
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_, null);
5887
- };
5888
- goog.inherits(proto.clarifai.api.MultiTrendingMetricsViewResponse, jspb.Message);
5889
- if (goog.DEBUG && !COMPILED) {
5890
- /**
5891
- * @public
5892
- * @override
5893
- */
5894
- proto.clarifai.api.MultiTrendingMetricsViewResponse.displayName = 'proto.clarifai.api.MultiTrendingMetricsViewResponse';
5895
- }
5896
5830
  /**
5897
5831
  * Generated by JsPbCodeGenerator.
5898
5832
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11585,7 +11519,7 @@ proto.clarifai.api.ListAppsRequest.repeatedFields_ = [10];
11585
11519
  * @private {!Array<!Array<number>>}
11586
11520
  * @const
11587
11521
  */
11588
- proto.clarifai.api.ListAppsRequest.oneofGroups_ = [[6,7,12,13]];
11522
+ proto.clarifai.api.ListAppsRequest.oneofGroups_ = [[6,7,12,13,17]];
11589
11523
 
11590
11524
  /**
11591
11525
  * @enum {number}
@@ -11595,7 +11529,8 @@ proto.clarifai.api.ListAppsRequest.SortByCase = {
11595
11529
  SORT_BY_NAME: 6,
11596
11530
  SORT_BY_MODIFIED_AT: 7,
11597
11531
  SORT_BY_CREATED_AT: 12,
11598
- SORT_BY_STAR_COUNT: 13
11532
+ SORT_BY_STAR_COUNT: 13,
11533
+ SORT_BY_ID: 17
11599
11534
  };
11600
11535
 
11601
11536
  /**
@@ -11645,6 +11580,7 @@ proto.clarifai.api.ListAppsRequest.toObject = function(includeInstance, msg) {
11645
11580
  sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
11646
11581
  sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
11647
11582
  sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
11583
+ sortById: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
11648
11584
  featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
11649
11585
  starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
11650
11586
  templateOnly: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
@@ -11725,6 +11661,10 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function(msg, r
11725
11661
  var value = /** @type {boolean} */ (reader.readBool());
11726
11662
  msg.setSortByStarCount(value);
11727
11663
  break;
11664
+ case 17:
11665
+ var value = /** @type {boolean} */ (reader.readBool());
11666
+ msg.setSortById(value);
11667
+ break;
11728
11668
  case 9:
11729
11669
  var value = /** @type {boolean} */ (reader.readBool());
11730
11670
  msg.setFeaturedOnly(value);
@@ -11846,6 +11786,13 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function(message, w
11846
11786
  f
11847
11787
  );
11848
11788
  }
11789
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 17));
11790
+ if (f != null) {
11791
+ writer.writeBool(
11792
+ 17,
11793
+ f
11794
+ );
11795
+ }
11849
11796
  f = message.getFeaturedOnly();
11850
11797
  if (f) {
11851
11798
  writer.writeBool(
@@ -12170,6 +12117,42 @@ proto.clarifai.api.ListAppsRequest.prototype.hasSortByStarCount = function() {
12170
12117
  };
12171
12118
 
12172
12119
 
12120
+ /**
12121
+ * optional bool sort_by_id = 17;
12122
+ * @return {boolean}
12123
+ */
12124
+ proto.clarifai.api.ListAppsRequest.prototype.getSortById = function() {
12125
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
12126
+ };
12127
+
12128
+
12129
+ /**
12130
+ * @param {boolean} value
12131
+ * @return {!proto.clarifai.api.ListAppsRequest} returns this
12132
+ */
12133
+ proto.clarifai.api.ListAppsRequest.prototype.setSortById = function(value) {
12134
+ return jspb.Message.setOneofField(this, 17, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value);
12135
+ };
12136
+
12137
+
12138
+ /**
12139
+ * Clears the field making it undefined.
12140
+ * @return {!proto.clarifai.api.ListAppsRequest} returns this
12141
+ */
12142
+ proto.clarifai.api.ListAppsRequest.prototype.clearSortById = function() {
12143
+ return jspb.Message.setOneofField(this, 17, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined);
12144
+ };
12145
+
12146
+
12147
+ /**
12148
+ * Returns whether this field is set.
12149
+ * @return {boolean}
12150
+ */
12151
+ proto.clarifai.api.ListAppsRequest.prototype.hasSortById = function() {
12152
+ return jspb.Message.getField(this, 17) != null;
12153
+ };
12154
+
12155
+
12173
12156
  /**
12174
12157
  * optional bool featured_only = 9;
12175
12158
  * @return {boolean}
@@ -70855,669 +70838,6 @@ proto.clarifai.api.MultiStatValueAggregateResponse.prototype.clearStatValueAggre
70855
70838
 
70856
70839
 
70857
70840
 
70858
-
70859
-
70860
- if (jspb.Message.GENERATE_TO_OBJECT) {
70861
- /**
70862
- * Creates an object representation of this proto.
70863
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
70864
- * Optional fields that are not set will be set to undefined.
70865
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70866
- * For the list of reserved names please see:
70867
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70868
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70869
- * JSPB instance for transitional soy proto support:
70870
- * http://goto/soy-param-migration
70871
- * @return {!Object}
70872
- */
70873
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.toObject = function(opt_includeInstance) {
70874
- return proto.clarifai.api.PostTrendingMetricsViewRequest.toObject(opt_includeInstance, this);
70875
- };
70876
-
70877
-
70878
- /**
70879
- * Static version of the {@see toObject} method.
70880
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70881
- * the JSPB instance for transitional soy proto support:
70882
- * http://goto/soy-param-migration
70883
- * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The msg instance to transform.
70884
- * @return {!Object}
70885
- * @suppress {unusedLocalVariables} f is only used for nested messages
70886
- */
70887
- proto.clarifai.api.PostTrendingMetricsViewRequest.toObject = function(includeInstance, msg) {
70888
- var f, obj = {
70889
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
70890
- viewType: jspb.Message.getFieldWithDefault(msg, 2, ""),
70891
- objectId: jspb.Message.getFieldWithDefault(msg, 3, "")
70892
- };
70893
-
70894
- if (includeInstance) {
70895
- obj.$jspbMessageInstance = msg;
70896
- }
70897
- return obj;
70898
- };
70899
- }
70900
-
70901
-
70902
- /**
70903
- * Deserializes binary data (in protobuf wire format).
70904
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
70905
- * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest}
70906
- */
70907
- proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinary = function(bytes) {
70908
- var reader = new jspb.BinaryReader(bytes);
70909
- var msg = new proto.clarifai.api.PostTrendingMetricsViewRequest;
70910
- return proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader(msg, reader);
70911
- };
70912
-
70913
-
70914
- /**
70915
- * Deserializes binary data (in protobuf wire format) from the
70916
- * given reader into the given message object.
70917
- * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The message object to deserialize into.
70918
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
70919
- * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest}
70920
- */
70921
- proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader = function(msg, reader) {
70922
- while (reader.nextField()) {
70923
- if (reader.isEndGroup()) {
70924
- break;
70925
- }
70926
- var field = reader.getFieldNumber();
70927
- switch (field) {
70928
- case 1:
70929
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
70930
- reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
70931
- msg.setUserAppId(value);
70932
- break;
70933
- case 2:
70934
- var value = /** @type {string} */ (reader.readString());
70935
- msg.setViewType(value);
70936
- break;
70937
- case 3:
70938
- var value = /** @type {string} */ (reader.readString());
70939
- msg.setObjectId(value);
70940
- break;
70941
- default:
70942
- reader.skipField();
70943
- break;
70944
- }
70945
- }
70946
- return msg;
70947
- };
70948
-
70949
-
70950
- /**
70951
- * Serializes the message to binary data (in protobuf wire format).
70952
- * @return {!Uint8Array}
70953
- */
70954
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.serializeBinary = function() {
70955
- var writer = new jspb.BinaryWriter();
70956
- proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter(this, writer);
70957
- return writer.getResultBuffer();
70958
- };
70959
-
70960
-
70961
- /**
70962
- * Serializes the given message to binary data (in protobuf wire
70963
- * format), writing to the given BinaryWriter.
70964
- * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} message
70965
- * @param {!jspb.BinaryWriter} writer
70966
- * @suppress {unusedLocalVariables} f is only used for nested messages
70967
- */
70968
- proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter = function(message, writer) {
70969
- var f = undefined;
70970
- f = message.getUserAppId();
70971
- if (f != null) {
70972
- writer.writeMessage(
70973
- 1,
70974
- f,
70975
- proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
70976
- );
70977
- }
70978
- f = message.getViewType();
70979
- if (f.length > 0) {
70980
- writer.writeString(
70981
- 2,
70982
- f
70983
- );
70984
- }
70985
- f = message.getObjectId();
70986
- if (f.length > 0) {
70987
- writer.writeString(
70988
- 3,
70989
- f
70990
- );
70991
- }
70992
- };
70993
-
70994
-
70995
- /**
70996
- * optional UserAppIDSet user_app_id = 1;
70997
- * @return {?proto.clarifai.api.UserAppIDSet}
70998
- */
70999
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getUserAppId = function() {
71000
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
71001
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
71002
- };
71003
-
71004
-
71005
- /**
71006
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
71007
- * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
71008
- */
71009
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setUserAppId = function(value) {
71010
- return jspb.Message.setWrapperField(this, 1, value);
71011
- };
71012
-
71013
-
71014
- /**
71015
- * Clears the message field making it undefined.
71016
- * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
71017
- */
71018
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.clearUserAppId = function() {
71019
- return this.setUserAppId(undefined);
71020
- };
71021
-
71022
-
71023
- /**
71024
- * Returns whether this field is set.
71025
- * @return {boolean}
71026
- */
71027
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.hasUserAppId = function() {
71028
- return jspb.Message.getField(this, 1) != null;
71029
- };
71030
-
71031
-
71032
- /**
71033
- * optional string view_type = 2;
71034
- * @return {string}
71035
- */
71036
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getViewType = function() {
71037
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71038
- };
71039
-
71040
-
71041
- /**
71042
- * @param {string} value
71043
- * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
71044
- */
71045
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setViewType = function(value) {
71046
- return jspb.Message.setProto3StringField(this, 2, value);
71047
- };
71048
-
71049
-
71050
- /**
71051
- * optional string object_id = 3;
71052
- * @return {string}
71053
- */
71054
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getObjectId = function() {
71055
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
71056
- };
71057
-
71058
-
71059
- /**
71060
- * @param {string} value
71061
- * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
71062
- */
71063
- proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setObjectId = function(value) {
71064
- return jspb.Message.setProto3StringField(this, 3, value);
71065
- };
71066
-
71067
-
71068
-
71069
-
71070
-
71071
- if (jspb.Message.GENERATE_TO_OBJECT) {
71072
- /**
71073
- * Creates an object representation of this proto.
71074
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
71075
- * Optional fields that are not set will be set to undefined.
71076
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71077
- * For the list of reserved names please see:
71078
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71079
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71080
- * JSPB instance for transitional soy proto support:
71081
- * http://goto/soy-param-migration
71082
- * @return {!Object}
71083
- */
71084
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.toObject = function(opt_includeInstance) {
71085
- return proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject(opt_includeInstance, this);
71086
- };
71087
-
71088
-
71089
- /**
71090
- * Static version of the {@see toObject} method.
71091
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71092
- * the JSPB instance for transitional soy proto support:
71093
- * http://goto/soy-param-migration
71094
- * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The msg instance to transform.
71095
- * @return {!Object}
71096
- * @suppress {unusedLocalVariables} f is only used for nested messages
71097
- */
71098
- proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject = function(includeInstance, msg) {
71099
- var f, obj = {
71100
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
71101
- viewType: jspb.Message.getFieldWithDefault(msg, 2, ""),
71102
- page: jspb.Message.getFieldWithDefault(msg, 3, 0),
71103
- perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
71104
- };
71105
-
71106
- if (includeInstance) {
71107
- obj.$jspbMessageInstance = msg;
71108
- }
71109
- return obj;
71110
- };
71111
- }
71112
-
71113
-
71114
- /**
71115
- * Deserializes binary data (in protobuf wire format).
71116
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
71117
- * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest}
71118
- */
71119
- proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinary = function(bytes) {
71120
- var reader = new jspb.BinaryReader(bytes);
71121
- var msg = new proto.clarifai.api.ListTrendingMetricsViewsRequest;
71122
- return proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader(msg, reader);
71123
- };
71124
-
71125
-
71126
- /**
71127
- * Deserializes binary data (in protobuf wire format) from the
71128
- * given reader into the given message object.
71129
- * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The message object to deserialize into.
71130
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71131
- * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest}
71132
- */
71133
- proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader = function(msg, reader) {
71134
- while (reader.nextField()) {
71135
- if (reader.isEndGroup()) {
71136
- break;
71137
- }
71138
- var field = reader.getFieldNumber();
71139
- switch (field) {
71140
- case 1:
71141
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
71142
- reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
71143
- msg.setUserAppId(value);
71144
- break;
71145
- case 2:
71146
- var value = /** @type {string} */ (reader.readString());
71147
- msg.setViewType(value);
71148
- break;
71149
- case 3:
71150
- var value = /** @type {number} */ (reader.readUint32());
71151
- msg.setPage(value);
71152
- break;
71153
- case 4:
71154
- var value = /** @type {number} */ (reader.readUint32());
71155
- msg.setPerPage(value);
71156
- break;
71157
- default:
71158
- reader.skipField();
71159
- break;
71160
- }
71161
- }
71162
- return msg;
71163
- };
71164
-
71165
-
71166
- /**
71167
- * Serializes the message to binary data (in protobuf wire format).
71168
- * @return {!Uint8Array}
71169
- */
71170
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.serializeBinary = function() {
71171
- var writer = new jspb.BinaryWriter();
71172
- proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter(this, writer);
71173
- return writer.getResultBuffer();
71174
- };
71175
-
71176
-
71177
- /**
71178
- * Serializes the given message to binary data (in protobuf wire
71179
- * format), writing to the given BinaryWriter.
71180
- * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} message
71181
- * @param {!jspb.BinaryWriter} writer
71182
- * @suppress {unusedLocalVariables} f is only used for nested messages
71183
- */
71184
- proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter = function(message, writer) {
71185
- var f = undefined;
71186
- f = message.getUserAppId();
71187
- if (f != null) {
71188
- writer.writeMessage(
71189
- 1,
71190
- f,
71191
- proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
71192
- );
71193
- }
71194
- f = message.getViewType();
71195
- if (f.length > 0) {
71196
- writer.writeString(
71197
- 2,
71198
- f
71199
- );
71200
- }
71201
- f = message.getPage();
71202
- if (f !== 0) {
71203
- writer.writeUint32(
71204
- 3,
71205
- f
71206
- );
71207
- }
71208
- f = message.getPerPage();
71209
- if (f !== 0) {
71210
- writer.writeUint32(
71211
- 4,
71212
- f
71213
- );
71214
- }
71215
- };
71216
-
71217
-
71218
- /**
71219
- * optional UserAppIDSet user_app_id = 1;
71220
- * @return {?proto.clarifai.api.UserAppIDSet}
71221
- */
71222
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getUserAppId = function() {
71223
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
71224
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
71225
- };
71226
-
71227
-
71228
- /**
71229
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
71230
- * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
71231
- */
71232
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setUserAppId = function(value) {
71233
- return jspb.Message.setWrapperField(this, 1, value);
71234
- };
71235
-
71236
-
71237
- /**
71238
- * Clears the message field making it undefined.
71239
- * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
71240
- */
71241
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.clearUserAppId = function() {
71242
- return this.setUserAppId(undefined);
71243
- };
71244
-
71245
-
71246
- /**
71247
- * Returns whether this field is set.
71248
- * @return {boolean}
71249
- */
71250
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.hasUserAppId = function() {
71251
- return jspb.Message.getField(this, 1) != null;
71252
- };
71253
-
71254
-
71255
- /**
71256
- * optional string view_type = 2;
71257
- * @return {string}
71258
- */
71259
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getViewType = function() {
71260
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
71261
- };
71262
-
71263
-
71264
- /**
71265
- * @param {string} value
71266
- * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
71267
- */
71268
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setViewType = function(value) {
71269
- return jspb.Message.setProto3StringField(this, 2, value);
71270
- };
71271
-
71272
-
71273
- /**
71274
- * optional uint32 page = 3;
71275
- * @return {number}
71276
- */
71277
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPage = function() {
71278
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
71279
- };
71280
-
71281
-
71282
- /**
71283
- * @param {number} value
71284
- * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
71285
- */
71286
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPage = function(value) {
71287
- return jspb.Message.setProto3IntField(this, 3, value);
71288
- };
71289
-
71290
-
71291
- /**
71292
- * optional uint32 per_page = 4;
71293
- * @return {number}
71294
- */
71295
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPerPage = function() {
71296
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
71297
- };
71298
-
71299
-
71300
- /**
71301
- * @param {number} value
71302
- * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
71303
- */
71304
- proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPerPage = function(value) {
71305
- return jspb.Message.setProto3IntField(this, 4, value);
71306
- };
71307
-
71308
-
71309
-
71310
- /**
71311
- * List of repeated fields within this message type.
71312
- * @private {!Array<number>}
71313
- * @const
71314
- */
71315
- proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_ = [2];
71316
-
71317
-
71318
-
71319
- if (jspb.Message.GENERATE_TO_OBJECT) {
71320
- /**
71321
- * Creates an object representation of this proto.
71322
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
71323
- * Optional fields that are not set will be set to undefined.
71324
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71325
- * For the list of reserved names please see:
71326
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
71327
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
71328
- * JSPB instance for transitional soy proto support:
71329
- * http://goto/soy-param-migration
71330
- * @return {!Object}
71331
- */
71332
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.toObject = function(opt_includeInstance) {
71333
- return proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject(opt_includeInstance, this);
71334
- };
71335
-
71336
-
71337
- /**
71338
- * Static version of the {@see toObject} method.
71339
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
71340
- * the JSPB instance for transitional soy proto support:
71341
- * http://goto/soy-param-migration
71342
- * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The msg instance to transform.
71343
- * @return {!Object}
71344
- * @suppress {unusedLocalVariables} f is only used for nested messages
71345
- */
71346
- proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject = function(includeInstance, msg) {
71347
- var f, obj = {
71348
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
71349
- metricsList: jspb.Message.toObjectList(msg.getMetricsList(),
71350
- proto_clarifai_api_resources_pb.TrendingMetric.toObject, includeInstance)
71351
- };
71352
-
71353
- if (includeInstance) {
71354
- obj.$jspbMessageInstance = msg;
71355
- }
71356
- return obj;
71357
- };
71358
- }
71359
-
71360
-
71361
- /**
71362
- * Deserializes binary data (in protobuf wire format).
71363
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
71364
- * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse}
71365
- */
71366
- proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinary = function(bytes) {
71367
- var reader = new jspb.BinaryReader(bytes);
71368
- var msg = new proto.clarifai.api.MultiTrendingMetricsViewResponse;
71369
- return proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader(msg, reader);
71370
- };
71371
-
71372
-
71373
- /**
71374
- * Deserializes binary data (in protobuf wire format) from the
71375
- * given reader into the given message object.
71376
- * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The message object to deserialize into.
71377
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
71378
- * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse}
71379
- */
71380
- proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader = function(msg, reader) {
71381
- while (reader.nextField()) {
71382
- if (reader.isEndGroup()) {
71383
- break;
71384
- }
71385
- var field = reader.getFieldNumber();
71386
- switch (field) {
71387
- case 1:
71388
- var value = new proto_clarifai_api_status_status_pb.Status;
71389
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
71390
- msg.setStatus(value);
71391
- break;
71392
- case 2:
71393
- var value = new proto_clarifai_api_resources_pb.TrendingMetric;
71394
- reader.readMessage(value,proto_clarifai_api_resources_pb.TrendingMetric.deserializeBinaryFromReader);
71395
- msg.addMetrics(value);
71396
- break;
71397
- default:
71398
- reader.skipField();
71399
- break;
71400
- }
71401
- }
71402
- return msg;
71403
- };
71404
-
71405
-
71406
- /**
71407
- * Serializes the message to binary data (in protobuf wire format).
71408
- * @return {!Uint8Array}
71409
- */
71410
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.serializeBinary = function() {
71411
- var writer = new jspb.BinaryWriter();
71412
- proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter(this, writer);
71413
- return writer.getResultBuffer();
71414
- };
71415
-
71416
-
71417
- /**
71418
- * Serializes the given message to binary data (in protobuf wire
71419
- * format), writing to the given BinaryWriter.
71420
- * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} message
71421
- * @param {!jspb.BinaryWriter} writer
71422
- * @suppress {unusedLocalVariables} f is only used for nested messages
71423
- */
71424
- proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter = function(message, writer) {
71425
- var f = undefined;
71426
- f = message.getStatus();
71427
- if (f != null) {
71428
- writer.writeMessage(
71429
- 1,
71430
- f,
71431
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
71432
- );
71433
- }
71434
- f = message.getMetricsList();
71435
- if (f.length > 0) {
71436
- writer.writeRepeatedMessage(
71437
- 2,
71438
- f,
71439
- proto_clarifai_api_resources_pb.TrendingMetric.serializeBinaryToWriter
71440
- );
71441
- }
71442
- };
71443
-
71444
-
71445
- /**
71446
- * optional status.Status status = 1;
71447
- * @return {?proto.clarifai.api.status.Status}
71448
- */
71449
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getStatus = function() {
71450
- return /** @type{?proto.clarifai.api.status.Status} */ (
71451
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
71452
- };
71453
-
71454
-
71455
- /**
71456
- * @param {?proto.clarifai.api.status.Status|undefined} value
71457
- * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
71458
- */
71459
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setStatus = function(value) {
71460
- return jspb.Message.setWrapperField(this, 1, value);
71461
- };
71462
-
71463
-
71464
- /**
71465
- * Clears the message field making it undefined.
71466
- * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
71467
- */
71468
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearStatus = function() {
71469
- return this.setStatus(undefined);
71470
- };
71471
-
71472
-
71473
- /**
71474
- * Returns whether this field is set.
71475
- * @return {boolean}
71476
- */
71477
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.hasStatus = function() {
71478
- return jspb.Message.getField(this, 1) != null;
71479
- };
71480
-
71481
-
71482
- /**
71483
- * repeated TrendingMetric metrics = 2;
71484
- * @return {!Array<!proto.clarifai.api.TrendingMetric>}
71485
- */
71486
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getMetricsList = function() {
71487
- return /** @type{!Array<!proto.clarifai.api.TrendingMetric>} */ (
71488
- jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TrendingMetric, 2));
71489
- };
71490
-
71491
-
71492
- /**
71493
- * @param {!Array<!proto.clarifai.api.TrendingMetric>} value
71494
- * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
71495
- */
71496
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setMetricsList = function(value) {
71497
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
71498
- };
71499
-
71500
-
71501
- /**
71502
- * @param {!proto.clarifai.api.TrendingMetric=} opt_value
71503
- * @param {number=} opt_index
71504
- * @return {!proto.clarifai.api.TrendingMetric}
71505
- */
71506
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.addMetrics = function(opt_value, opt_index) {
71507
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.TrendingMetric, opt_index);
71508
- };
71509
-
71510
-
71511
- /**
71512
- * Clears the list making it empty but non-null.
71513
- * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
71514
- */
71515
- proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearMetricsList = function() {
71516
- return this.setMetricsList([]);
71517
- };
71518
-
71519
-
71520
-
71521
70841
  /**
71522
70842
  * List of repeated fields within this message type.
71523
70843
  * @private {!Array<number>}
@@ -84430,7 +83750,8 @@ proto.clarifai.api.ListRunnersRequest.toObject = function(includeInstance, msg)
84430
83750
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
84431
83751
  page: jspb.Message.getFieldWithDefault(msg, 3, 0),
84432
83752
  perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
84433
- computeClusterId: jspb.Message.getFieldWithDefault(msg, 5, "")
83753
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 5, ""),
83754
+ minReplicas: jspb.Message.getFieldWithDefault(msg, 6, 0)
84434
83755
  };
84435
83756
 
84436
83757
  if (includeInstance) {
@@ -84488,6 +83809,10 @@ proto.clarifai.api.ListRunnersRequest.deserializeBinaryFromReader = function(msg
84488
83809
  var value = /** @type {string} */ (reader.readString());
84489
83810
  msg.setComputeClusterId(value);
84490
83811
  break;
83812
+ case 6:
83813
+ var value = /** @type {number} */ (reader.readUint32());
83814
+ msg.setMinReplicas(value);
83815
+ break;
84491
83816
  default:
84492
83817
  reader.skipField();
84493
83818
  break;
@@ -84553,6 +83878,13 @@ proto.clarifai.api.ListRunnersRequest.serializeBinaryToWriter = function(message
84553
83878
  f
84554
83879
  );
84555
83880
  }
83881
+ f = message.getMinReplicas();
83882
+ if (f !== 0) {
83883
+ writer.writeUint32(
83884
+ 6,
83885
+ f
83886
+ );
83887
+ }
84556
83888
  };
84557
83889
 
84558
83890
 
@@ -84665,6 +83997,24 @@ proto.clarifai.api.ListRunnersRequest.prototype.setComputeClusterId = function(v
84665
83997
  };
84666
83998
 
84667
83999
 
84000
+ /**
84001
+ * optional uint32 min_replicas = 6;
84002
+ * @return {number}
84003
+ */
84004
+ proto.clarifai.api.ListRunnersRequest.prototype.getMinReplicas = function() {
84005
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
84006
+ };
84007
+
84008
+
84009
+ /**
84010
+ * @param {number} value
84011
+ * @return {!proto.clarifai.api.ListRunnersRequest} returns this
84012
+ */
84013
+ proto.clarifai.api.ListRunnersRequest.prototype.setMinReplicas = function(value) {
84014
+ return jspb.Message.setProto3IntField(this, 6, value);
84015
+ };
84016
+
84017
+
84668
84018
 
84669
84019
  /**
84670
84020
  * List of repeated fields within this message type.