clarifai-web-grpc 10.9.4 → 10.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +1016 -224
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +0 -84
- package/dist/cjs/proto/clarifai/api/service_pb.js +64 -595
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +1016 -224
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +0 -84
- package/dist/esm/proto/clarifai/api/service_pb.js +64 -595
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +183 -40
- package/proto/clarifai/api/resources_pb.js +1270 -268
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +0 -24
- package/proto/clarifai/api/service_grpc_web_pb.js +0 -122
- package/proto/clarifai/api/service_pb.d.ts +9 -86
- package/proto/clarifai/api/service_pb.js +82 -732
- package/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/proto/clarifai/api/status/status_code_pb.js +1 -0
|
@@ -180,7 +180,6 @@ goog.exportSymbol('proto.clarifai.api.ListScopesRequest', null, global);
|
|
|
180
180
|
goog.exportSymbol('proto.clarifai.api.ListSearchesRequest', null, global);
|
|
181
181
|
goog.exportSymbol('proto.clarifai.api.ListStatusCodesRequest', null, global);
|
|
182
182
|
goog.exportSymbol('proto.clarifai.api.ListTasksRequest', null, global);
|
|
183
|
-
goog.exportSymbol('proto.clarifai.api.ListTrendingMetricsViewsRequest', null, global);
|
|
184
183
|
goog.exportSymbol('proto.clarifai.api.ListUploadsRequest', null, global);
|
|
185
184
|
goog.exportSymbol('proto.clarifai.api.ListWorkflowEvaluationTemplatesRequest', null, global);
|
|
186
185
|
goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionsRequest', null, global);
|
|
@@ -246,7 +245,6 @@ goog.exportSymbol('proto.clarifai.api.MultiStatusCodeResponse', null, global);
|
|
|
246
245
|
goog.exportSymbol('proto.clarifai.api.MultiTaskAssignmentResponse', null, global);
|
|
247
246
|
goog.exportSymbol('proto.clarifai.api.MultiTaskResponse', null, global);
|
|
248
247
|
goog.exportSymbol('proto.clarifai.api.MultiTrainingTimeEstimateResponse', null, global);
|
|
249
|
-
goog.exportSymbol('proto.clarifai.api.MultiTrendingMetricsViewResponse', null, global);
|
|
250
248
|
goog.exportSymbol('proto.clarifai.api.MultiUploadResponse', null, global);
|
|
251
249
|
goog.exportSymbol('proto.clarifai.api.MultiWorkerResponse', null, global);
|
|
252
250
|
goog.exportSymbol('proto.clarifai.api.MultiWorkflowEvaluationTemplateResponse', null, global);
|
|
@@ -345,7 +343,6 @@ goog.exportSymbol('proto.clarifai.api.PostSearchesRequest', null, global);
|
|
|
345
343
|
goog.exportSymbol('proto.clarifai.api.PostStatValuesAggregateRequest', null, global);
|
|
346
344
|
goog.exportSymbol('proto.clarifai.api.PostStatValuesRequest', null, global);
|
|
347
345
|
goog.exportSymbol('proto.clarifai.api.PostTasksRequest', null, global);
|
|
348
|
-
goog.exportSymbol('proto.clarifai.api.PostTrendingMetricsViewRequest', null, global);
|
|
349
346
|
goog.exportSymbol('proto.clarifai.api.PostUploadsRequest', null, global);
|
|
350
347
|
goog.exportSymbol('proto.clarifai.api.PostValidatePasswordRequest', null, global);
|
|
351
348
|
goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsRequest', null, global);
|
|
@@ -5828,69 +5825,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5828
5825
|
*/
|
|
5829
5826
|
proto.clarifai.api.MultiStatValueAggregateResponse.displayName = 'proto.clarifai.api.MultiStatValueAggregateResponse';
|
|
5830
5827
|
}
|
|
5831
|
-
/**
|
|
5832
|
-
* Generated by JsPbCodeGenerator.
|
|
5833
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5834
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5835
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5836
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5837
|
-
* valid.
|
|
5838
|
-
* @extends {jspb.Message}
|
|
5839
|
-
* @constructor
|
|
5840
|
-
*/
|
|
5841
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest = function (opt_data) {
|
|
5842
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5843
|
-
};
|
|
5844
|
-
goog.inherits(proto.clarifai.api.PostTrendingMetricsViewRequest, jspb.Message);
|
|
5845
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5846
|
-
/**
|
|
5847
|
-
* @public
|
|
5848
|
-
* @override
|
|
5849
|
-
*/
|
|
5850
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.displayName = 'proto.clarifai.api.PostTrendingMetricsViewRequest';
|
|
5851
|
-
}
|
|
5852
|
-
/**
|
|
5853
|
-
* Generated by JsPbCodeGenerator.
|
|
5854
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5855
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5856
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5857
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5858
|
-
* valid.
|
|
5859
|
-
* @extends {jspb.Message}
|
|
5860
|
-
* @constructor
|
|
5861
|
-
*/
|
|
5862
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest = function (opt_data) {
|
|
5863
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5864
|
-
};
|
|
5865
|
-
goog.inherits(proto.clarifai.api.ListTrendingMetricsViewsRequest, jspb.Message);
|
|
5866
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5867
|
-
/**
|
|
5868
|
-
* @public
|
|
5869
|
-
* @override
|
|
5870
|
-
*/
|
|
5871
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.displayName = 'proto.clarifai.api.ListTrendingMetricsViewsRequest';
|
|
5872
|
-
}
|
|
5873
|
-
/**
|
|
5874
|
-
* Generated by JsPbCodeGenerator.
|
|
5875
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5876
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5877
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5878
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5879
|
-
* valid.
|
|
5880
|
-
* @extends {jspb.Message}
|
|
5881
|
-
* @constructor
|
|
5882
|
-
*/
|
|
5883
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse = function (opt_data) {
|
|
5884
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_, null);
|
|
5885
|
-
};
|
|
5886
|
-
goog.inherits(proto.clarifai.api.MultiTrendingMetricsViewResponse, jspb.Message);
|
|
5887
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5888
|
-
/**
|
|
5889
|
-
* @public
|
|
5890
|
-
* @override
|
|
5891
|
-
*/
|
|
5892
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.displayName = 'proto.clarifai.api.MultiTrendingMetricsViewResponse';
|
|
5893
|
-
}
|
|
5894
5828
|
/**
|
|
5895
5829
|
* Generated by JsPbCodeGenerator.
|
|
5896
5830
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -10823,7 +10757,7 @@ proto.clarifai.api.ListAppsRequest.repeatedFields_ = [10];
|
|
|
10823
10757
|
* @private {!Array<!Array<number>>}
|
|
10824
10758
|
* @const
|
|
10825
10759
|
*/
|
|
10826
|
-
proto.clarifai.api.ListAppsRequest.oneofGroups_ = [[6, 7, 12, 13]];
|
|
10760
|
+
proto.clarifai.api.ListAppsRequest.oneofGroups_ = [[6, 7, 12, 13, 17]];
|
|
10827
10761
|
/**
|
|
10828
10762
|
* @enum {number}
|
|
10829
10763
|
*/
|
|
@@ -10832,7 +10766,8 @@ proto.clarifai.api.ListAppsRequest.SortByCase = {
|
|
|
10832
10766
|
SORT_BY_NAME: 6,
|
|
10833
10767
|
SORT_BY_MODIFIED_AT: 7,
|
|
10834
10768
|
SORT_BY_CREATED_AT: 12,
|
|
10835
|
-
SORT_BY_STAR_COUNT: 13
|
|
10769
|
+
SORT_BY_STAR_COUNT: 13,
|
|
10770
|
+
SORT_BY_ID: 17
|
|
10836
10771
|
};
|
|
10837
10772
|
/**
|
|
10838
10773
|
* @return {proto.clarifai.api.ListAppsRequest.SortByCase}
|
|
@@ -10876,6 +10811,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
10876
10811
|
sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
10877
10812
|
sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
10878
10813
|
sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
|
|
10814
|
+
sortById: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
10879
10815
|
featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
10880
10816
|
starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
10881
10817
|
templateOnly: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
|
|
@@ -10951,6 +10887,10 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function (msg,
|
|
|
10951
10887
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
10952
10888
|
msg.setSortByStarCount(value);
|
|
10953
10889
|
break;
|
|
10890
|
+
case 17:
|
|
10891
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
10892
|
+
msg.setSortById(value);
|
|
10893
|
+
break;
|
|
10954
10894
|
case 9:
|
|
10955
10895
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
10956
10896
|
msg.setFeaturedOnly(value);
|
|
@@ -11040,6 +10980,10 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function (message,
|
|
|
11040
10980
|
if (f != null) {
|
|
11041
10981
|
writer.writeBool(13, f);
|
|
11042
10982
|
}
|
|
10983
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 17));
|
|
10984
|
+
if (f != null) {
|
|
10985
|
+
writer.writeBool(17, f);
|
|
10986
|
+
}
|
|
11043
10987
|
f = message.getFeaturedOnly();
|
|
11044
10988
|
if (f) {
|
|
11045
10989
|
writer.writeBool(9, f);
|
|
@@ -11280,6 +11224,34 @@ proto.clarifai.api.ListAppsRequest.prototype.clearSortByStarCount = function ()
|
|
|
11280
11224
|
proto.clarifai.api.ListAppsRequest.prototype.hasSortByStarCount = function () {
|
|
11281
11225
|
return jspb.Message.getField(this, 13) != null;
|
|
11282
11226
|
};
|
|
11227
|
+
/**
|
|
11228
|
+
* optional bool sort_by_id = 17;
|
|
11229
|
+
* @return {boolean}
|
|
11230
|
+
*/
|
|
11231
|
+
proto.clarifai.api.ListAppsRequest.prototype.getSortById = function () {
|
|
11232
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
|
|
11233
|
+
};
|
|
11234
|
+
/**
|
|
11235
|
+
* @param {boolean} value
|
|
11236
|
+
* @return {!proto.clarifai.api.ListAppsRequest} returns this
|
|
11237
|
+
*/
|
|
11238
|
+
proto.clarifai.api.ListAppsRequest.prototype.setSortById = function (value) {
|
|
11239
|
+
return jspb.Message.setOneofField(this, 17, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value);
|
|
11240
|
+
};
|
|
11241
|
+
/**
|
|
11242
|
+
* Clears the field making it undefined.
|
|
11243
|
+
* @return {!proto.clarifai.api.ListAppsRequest} returns this
|
|
11244
|
+
*/
|
|
11245
|
+
proto.clarifai.api.ListAppsRequest.prototype.clearSortById = function () {
|
|
11246
|
+
return jspb.Message.setOneofField(this, 17, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined);
|
|
11247
|
+
};
|
|
11248
|
+
/**
|
|
11249
|
+
* Returns whether this field is set.
|
|
11250
|
+
* @return {boolean}
|
|
11251
|
+
*/
|
|
11252
|
+
proto.clarifai.api.ListAppsRequest.prototype.hasSortById = function () {
|
|
11253
|
+
return jspb.Message.getField(this, 17) != null;
|
|
11254
|
+
};
|
|
11283
11255
|
/**
|
|
11284
11256
|
* optional bool featured_only = 9;
|
|
11285
11257
|
* @return {boolean}
|
|
@@ -57700,532 +57672,6 @@ proto.clarifai.api.MultiStatValueAggregateResponse.prototype.addStatValueAggrega
|
|
|
57700
57672
|
proto.clarifai.api.MultiStatValueAggregateResponse.prototype.clearStatValueAggregateResultsList = function () {
|
|
57701
57673
|
return this.setStatValueAggregateResultsList([]);
|
|
57702
57674
|
};
|
|
57703
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57704
|
-
/**
|
|
57705
|
-
* Creates an object representation of this proto.
|
|
57706
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
57707
|
-
* Optional fields that are not set will be set to undefined.
|
|
57708
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
57709
|
-
* For the list of reserved names please see:
|
|
57710
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
57711
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
57712
|
-
* JSPB instance for transitional soy proto support:
|
|
57713
|
-
* http://goto/soy-param-migration
|
|
57714
|
-
* @return {!Object}
|
|
57715
|
-
*/
|
|
57716
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.toObject = function (opt_includeInstance) {
|
|
57717
|
-
return proto.clarifai.api.PostTrendingMetricsViewRequest.toObject(opt_includeInstance, this);
|
|
57718
|
-
};
|
|
57719
|
-
/**
|
|
57720
|
-
* Static version of the {@see toObject} method.
|
|
57721
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
57722
|
-
* the JSPB instance for transitional soy proto support:
|
|
57723
|
-
* http://goto/soy-param-migration
|
|
57724
|
-
* @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The msg instance to transform.
|
|
57725
|
-
* @return {!Object}
|
|
57726
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
57727
|
-
*/
|
|
57728
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.toObject = function (includeInstance, msg) {
|
|
57729
|
-
var f, obj = {
|
|
57730
|
-
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
57731
|
-
viewType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
57732
|
-
objectId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
57733
|
-
};
|
|
57734
|
-
if (includeInstance) {
|
|
57735
|
-
obj.$jspbMessageInstance = msg;
|
|
57736
|
-
}
|
|
57737
|
-
return obj;
|
|
57738
|
-
};
|
|
57739
|
-
}
|
|
57740
|
-
/**
|
|
57741
|
-
* Deserializes binary data (in protobuf wire format).
|
|
57742
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
57743
|
-
* @return {!proto.clarifai.api.PostTrendingMetricsViewRequest}
|
|
57744
|
-
*/
|
|
57745
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinary = function (bytes) {
|
|
57746
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
57747
|
-
var msg = new proto.clarifai.api.PostTrendingMetricsViewRequest;
|
|
57748
|
-
return proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader(msg, reader);
|
|
57749
|
-
};
|
|
57750
|
-
/**
|
|
57751
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
57752
|
-
* given reader into the given message object.
|
|
57753
|
-
* @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The message object to deserialize into.
|
|
57754
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
57755
|
-
* @return {!proto.clarifai.api.PostTrendingMetricsViewRequest}
|
|
57756
|
-
*/
|
|
57757
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
57758
|
-
while (reader.nextField()) {
|
|
57759
|
-
if (reader.isEndGroup()) {
|
|
57760
|
-
break;
|
|
57761
|
-
}
|
|
57762
|
-
var field = reader.getFieldNumber();
|
|
57763
|
-
switch (field) {
|
|
57764
|
-
case 1:
|
|
57765
|
-
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
57766
|
-
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
57767
|
-
msg.setUserAppId(value);
|
|
57768
|
-
break;
|
|
57769
|
-
case 2:
|
|
57770
|
-
var value = /** @type {string} */ (reader.readString());
|
|
57771
|
-
msg.setViewType(value);
|
|
57772
|
-
break;
|
|
57773
|
-
case 3:
|
|
57774
|
-
var value = /** @type {string} */ (reader.readString());
|
|
57775
|
-
msg.setObjectId(value);
|
|
57776
|
-
break;
|
|
57777
|
-
default:
|
|
57778
|
-
reader.skipField();
|
|
57779
|
-
break;
|
|
57780
|
-
}
|
|
57781
|
-
}
|
|
57782
|
-
return msg;
|
|
57783
|
-
};
|
|
57784
|
-
/**
|
|
57785
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
57786
|
-
* @return {!Uint8Array}
|
|
57787
|
-
*/
|
|
57788
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.serializeBinary = function () {
|
|
57789
|
-
var writer = new jspb.BinaryWriter();
|
|
57790
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter(this, writer);
|
|
57791
|
-
return writer.getResultBuffer();
|
|
57792
|
-
};
|
|
57793
|
-
/**
|
|
57794
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
57795
|
-
* format), writing to the given BinaryWriter.
|
|
57796
|
-
* @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} message
|
|
57797
|
-
* @param {!jspb.BinaryWriter} writer
|
|
57798
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
57799
|
-
*/
|
|
57800
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter = function (message, writer) {
|
|
57801
|
-
var f = undefined;
|
|
57802
|
-
f = message.getUserAppId();
|
|
57803
|
-
if (f != null) {
|
|
57804
|
-
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
57805
|
-
}
|
|
57806
|
-
f = message.getViewType();
|
|
57807
|
-
if (f.length > 0) {
|
|
57808
|
-
writer.writeString(2, f);
|
|
57809
|
-
}
|
|
57810
|
-
f = message.getObjectId();
|
|
57811
|
-
if (f.length > 0) {
|
|
57812
|
-
writer.writeString(3, f);
|
|
57813
|
-
}
|
|
57814
|
-
};
|
|
57815
|
-
/**
|
|
57816
|
-
* optional UserAppIDSet user_app_id = 1;
|
|
57817
|
-
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
57818
|
-
*/
|
|
57819
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getUserAppId = function () {
|
|
57820
|
-
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
57821
|
-
};
|
|
57822
|
-
/**
|
|
57823
|
-
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
57824
|
-
* @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
|
|
57825
|
-
*/
|
|
57826
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setUserAppId = function (value) {
|
|
57827
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
57828
|
-
};
|
|
57829
|
-
/**
|
|
57830
|
-
* Clears the message field making it undefined.
|
|
57831
|
-
* @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
|
|
57832
|
-
*/
|
|
57833
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.clearUserAppId = function () {
|
|
57834
|
-
return this.setUserAppId(undefined);
|
|
57835
|
-
};
|
|
57836
|
-
/**
|
|
57837
|
-
* Returns whether this field is set.
|
|
57838
|
-
* @return {boolean}
|
|
57839
|
-
*/
|
|
57840
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.hasUserAppId = function () {
|
|
57841
|
-
return jspb.Message.getField(this, 1) != null;
|
|
57842
|
-
};
|
|
57843
|
-
/**
|
|
57844
|
-
* optional string view_type = 2;
|
|
57845
|
-
* @return {string}
|
|
57846
|
-
*/
|
|
57847
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getViewType = function () {
|
|
57848
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
57849
|
-
};
|
|
57850
|
-
/**
|
|
57851
|
-
* @param {string} value
|
|
57852
|
-
* @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
|
|
57853
|
-
*/
|
|
57854
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setViewType = function (value) {
|
|
57855
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
57856
|
-
};
|
|
57857
|
-
/**
|
|
57858
|
-
* optional string object_id = 3;
|
|
57859
|
-
* @return {string}
|
|
57860
|
-
*/
|
|
57861
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getObjectId = function () {
|
|
57862
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
57863
|
-
};
|
|
57864
|
-
/**
|
|
57865
|
-
* @param {string} value
|
|
57866
|
-
* @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this
|
|
57867
|
-
*/
|
|
57868
|
-
proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setObjectId = function (value) {
|
|
57869
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
57870
|
-
};
|
|
57871
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57872
|
-
/**
|
|
57873
|
-
* Creates an object representation of this proto.
|
|
57874
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
57875
|
-
* Optional fields that are not set will be set to undefined.
|
|
57876
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
57877
|
-
* For the list of reserved names please see:
|
|
57878
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
57879
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
57880
|
-
* JSPB instance for transitional soy proto support:
|
|
57881
|
-
* http://goto/soy-param-migration
|
|
57882
|
-
* @return {!Object}
|
|
57883
|
-
*/
|
|
57884
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
57885
|
-
return proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject(opt_includeInstance, this);
|
|
57886
|
-
};
|
|
57887
|
-
/**
|
|
57888
|
-
* Static version of the {@see toObject} method.
|
|
57889
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
57890
|
-
* the JSPB instance for transitional soy proto support:
|
|
57891
|
-
* http://goto/soy-param-migration
|
|
57892
|
-
* @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The msg instance to transform.
|
|
57893
|
-
* @return {!Object}
|
|
57894
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
57895
|
-
*/
|
|
57896
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject = function (includeInstance, msg) {
|
|
57897
|
-
var f, obj = {
|
|
57898
|
-
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
57899
|
-
viewType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
57900
|
-
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
57901
|
-
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
57902
|
-
};
|
|
57903
|
-
if (includeInstance) {
|
|
57904
|
-
obj.$jspbMessageInstance = msg;
|
|
57905
|
-
}
|
|
57906
|
-
return obj;
|
|
57907
|
-
};
|
|
57908
|
-
}
|
|
57909
|
-
/**
|
|
57910
|
-
* Deserializes binary data (in protobuf wire format).
|
|
57911
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
57912
|
-
* @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest}
|
|
57913
|
-
*/
|
|
57914
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinary = function (bytes) {
|
|
57915
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
57916
|
-
var msg = new proto.clarifai.api.ListTrendingMetricsViewsRequest;
|
|
57917
|
-
return proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader(msg, reader);
|
|
57918
|
-
};
|
|
57919
|
-
/**
|
|
57920
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
57921
|
-
* given reader into the given message object.
|
|
57922
|
-
* @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The message object to deserialize into.
|
|
57923
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
57924
|
-
* @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest}
|
|
57925
|
-
*/
|
|
57926
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
57927
|
-
while (reader.nextField()) {
|
|
57928
|
-
if (reader.isEndGroup()) {
|
|
57929
|
-
break;
|
|
57930
|
-
}
|
|
57931
|
-
var field = reader.getFieldNumber();
|
|
57932
|
-
switch (field) {
|
|
57933
|
-
case 1:
|
|
57934
|
-
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
57935
|
-
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
57936
|
-
msg.setUserAppId(value);
|
|
57937
|
-
break;
|
|
57938
|
-
case 2:
|
|
57939
|
-
var value = /** @type {string} */ (reader.readString());
|
|
57940
|
-
msg.setViewType(value);
|
|
57941
|
-
break;
|
|
57942
|
-
case 3:
|
|
57943
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
57944
|
-
msg.setPage(value);
|
|
57945
|
-
break;
|
|
57946
|
-
case 4:
|
|
57947
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
57948
|
-
msg.setPerPage(value);
|
|
57949
|
-
break;
|
|
57950
|
-
default:
|
|
57951
|
-
reader.skipField();
|
|
57952
|
-
break;
|
|
57953
|
-
}
|
|
57954
|
-
}
|
|
57955
|
-
return msg;
|
|
57956
|
-
};
|
|
57957
|
-
/**
|
|
57958
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
57959
|
-
* @return {!Uint8Array}
|
|
57960
|
-
*/
|
|
57961
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.serializeBinary = function () {
|
|
57962
|
-
var writer = new jspb.BinaryWriter();
|
|
57963
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter(this, writer);
|
|
57964
|
-
return writer.getResultBuffer();
|
|
57965
|
-
};
|
|
57966
|
-
/**
|
|
57967
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
57968
|
-
* format), writing to the given BinaryWriter.
|
|
57969
|
-
* @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} message
|
|
57970
|
-
* @param {!jspb.BinaryWriter} writer
|
|
57971
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
57972
|
-
*/
|
|
57973
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
57974
|
-
var f = undefined;
|
|
57975
|
-
f = message.getUserAppId();
|
|
57976
|
-
if (f != null) {
|
|
57977
|
-
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
57978
|
-
}
|
|
57979
|
-
f = message.getViewType();
|
|
57980
|
-
if (f.length > 0) {
|
|
57981
|
-
writer.writeString(2, f);
|
|
57982
|
-
}
|
|
57983
|
-
f = message.getPage();
|
|
57984
|
-
if (f !== 0) {
|
|
57985
|
-
writer.writeUint32(3, f);
|
|
57986
|
-
}
|
|
57987
|
-
f = message.getPerPage();
|
|
57988
|
-
if (f !== 0) {
|
|
57989
|
-
writer.writeUint32(4, f);
|
|
57990
|
-
}
|
|
57991
|
-
};
|
|
57992
|
-
/**
|
|
57993
|
-
* optional UserAppIDSet user_app_id = 1;
|
|
57994
|
-
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
57995
|
-
*/
|
|
57996
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getUserAppId = function () {
|
|
57997
|
-
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
57998
|
-
};
|
|
57999
|
-
/**
|
|
58000
|
-
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
58001
|
-
* @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
|
|
58002
|
-
*/
|
|
58003
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setUserAppId = function (value) {
|
|
58004
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
58005
|
-
};
|
|
58006
|
-
/**
|
|
58007
|
-
* Clears the message field making it undefined.
|
|
58008
|
-
* @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
|
|
58009
|
-
*/
|
|
58010
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.clearUserAppId = function () {
|
|
58011
|
-
return this.setUserAppId(undefined);
|
|
58012
|
-
};
|
|
58013
|
-
/**
|
|
58014
|
-
* Returns whether this field is set.
|
|
58015
|
-
* @return {boolean}
|
|
58016
|
-
*/
|
|
58017
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.hasUserAppId = function () {
|
|
58018
|
-
return jspb.Message.getField(this, 1) != null;
|
|
58019
|
-
};
|
|
58020
|
-
/**
|
|
58021
|
-
* optional string view_type = 2;
|
|
58022
|
-
* @return {string}
|
|
58023
|
-
*/
|
|
58024
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getViewType = function () {
|
|
58025
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
58026
|
-
};
|
|
58027
|
-
/**
|
|
58028
|
-
* @param {string} value
|
|
58029
|
-
* @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
|
|
58030
|
-
*/
|
|
58031
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setViewType = function (value) {
|
|
58032
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
58033
|
-
};
|
|
58034
|
-
/**
|
|
58035
|
-
* optional uint32 page = 3;
|
|
58036
|
-
* @return {number}
|
|
58037
|
-
*/
|
|
58038
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPage = function () {
|
|
58039
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
58040
|
-
};
|
|
58041
|
-
/**
|
|
58042
|
-
* @param {number} value
|
|
58043
|
-
* @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
|
|
58044
|
-
*/
|
|
58045
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPage = function (value) {
|
|
58046
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
58047
|
-
};
|
|
58048
|
-
/**
|
|
58049
|
-
* optional uint32 per_page = 4;
|
|
58050
|
-
* @return {number}
|
|
58051
|
-
*/
|
|
58052
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPerPage = function () {
|
|
58053
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
58054
|
-
};
|
|
58055
|
-
/**
|
|
58056
|
-
* @param {number} value
|
|
58057
|
-
* @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this
|
|
58058
|
-
*/
|
|
58059
|
-
proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPerPage = function (value) {
|
|
58060
|
-
return jspb.Message.setProto3IntField(this, 4, value);
|
|
58061
|
-
};
|
|
58062
|
-
/**
|
|
58063
|
-
* List of repeated fields within this message type.
|
|
58064
|
-
* @private {!Array<number>}
|
|
58065
|
-
* @const
|
|
58066
|
-
*/
|
|
58067
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_ = [2];
|
|
58068
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
58069
|
-
/**
|
|
58070
|
-
* Creates an object representation of this proto.
|
|
58071
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
58072
|
-
* Optional fields that are not set will be set to undefined.
|
|
58073
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
58074
|
-
* For the list of reserved names please see:
|
|
58075
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
58076
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
58077
|
-
* JSPB instance for transitional soy proto support:
|
|
58078
|
-
* http://goto/soy-param-migration
|
|
58079
|
-
* @return {!Object}
|
|
58080
|
-
*/
|
|
58081
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.toObject = function (opt_includeInstance) {
|
|
58082
|
-
return proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject(opt_includeInstance, this);
|
|
58083
|
-
};
|
|
58084
|
-
/**
|
|
58085
|
-
* Static version of the {@see toObject} method.
|
|
58086
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
58087
|
-
* the JSPB instance for transitional soy proto support:
|
|
58088
|
-
* http://goto/soy-param-migration
|
|
58089
|
-
* @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The msg instance to transform.
|
|
58090
|
-
* @return {!Object}
|
|
58091
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58092
|
-
*/
|
|
58093
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject = function (includeInstance, msg) {
|
|
58094
|
-
var f, obj = {
|
|
58095
|
-
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
58096
|
-
metricsList: jspb.Message.toObjectList(msg.getMetricsList(), proto_clarifai_api_resources_pb.TrendingMetric.toObject, includeInstance)
|
|
58097
|
-
};
|
|
58098
|
-
if (includeInstance) {
|
|
58099
|
-
obj.$jspbMessageInstance = msg;
|
|
58100
|
-
}
|
|
58101
|
-
return obj;
|
|
58102
|
-
};
|
|
58103
|
-
}
|
|
58104
|
-
/**
|
|
58105
|
-
* Deserializes binary data (in protobuf wire format).
|
|
58106
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
58107
|
-
* @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse}
|
|
58108
|
-
*/
|
|
58109
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinary = function (bytes) {
|
|
58110
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
58111
|
-
var msg = new proto.clarifai.api.MultiTrendingMetricsViewResponse;
|
|
58112
|
-
return proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader(msg, reader);
|
|
58113
|
-
};
|
|
58114
|
-
/**
|
|
58115
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
58116
|
-
* given reader into the given message object.
|
|
58117
|
-
* @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The message object to deserialize into.
|
|
58118
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
58119
|
-
* @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse}
|
|
58120
|
-
*/
|
|
58121
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
58122
|
-
while (reader.nextField()) {
|
|
58123
|
-
if (reader.isEndGroup()) {
|
|
58124
|
-
break;
|
|
58125
|
-
}
|
|
58126
|
-
var field = reader.getFieldNumber();
|
|
58127
|
-
switch (field) {
|
|
58128
|
-
case 1:
|
|
58129
|
-
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
58130
|
-
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
58131
|
-
msg.setStatus(value);
|
|
58132
|
-
break;
|
|
58133
|
-
case 2:
|
|
58134
|
-
var value = new proto_clarifai_api_resources_pb.TrendingMetric;
|
|
58135
|
-
reader.readMessage(value, proto_clarifai_api_resources_pb.TrendingMetric.deserializeBinaryFromReader);
|
|
58136
|
-
msg.addMetrics(value);
|
|
58137
|
-
break;
|
|
58138
|
-
default:
|
|
58139
|
-
reader.skipField();
|
|
58140
|
-
break;
|
|
58141
|
-
}
|
|
58142
|
-
}
|
|
58143
|
-
return msg;
|
|
58144
|
-
};
|
|
58145
|
-
/**
|
|
58146
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
58147
|
-
* @return {!Uint8Array}
|
|
58148
|
-
*/
|
|
58149
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.serializeBinary = function () {
|
|
58150
|
-
var writer = new jspb.BinaryWriter();
|
|
58151
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter(this, writer);
|
|
58152
|
-
return writer.getResultBuffer();
|
|
58153
|
-
};
|
|
58154
|
-
/**
|
|
58155
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
58156
|
-
* format), writing to the given BinaryWriter.
|
|
58157
|
-
* @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} message
|
|
58158
|
-
* @param {!jspb.BinaryWriter} writer
|
|
58159
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
58160
|
-
*/
|
|
58161
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter = function (message, writer) {
|
|
58162
|
-
var f = undefined;
|
|
58163
|
-
f = message.getStatus();
|
|
58164
|
-
if (f != null) {
|
|
58165
|
-
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
58166
|
-
}
|
|
58167
|
-
f = message.getMetricsList();
|
|
58168
|
-
if (f.length > 0) {
|
|
58169
|
-
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.TrendingMetric.serializeBinaryToWriter);
|
|
58170
|
-
}
|
|
58171
|
-
};
|
|
58172
|
-
/**
|
|
58173
|
-
* optional status.Status status = 1;
|
|
58174
|
-
* @return {?proto.clarifai.api.status.Status}
|
|
58175
|
-
*/
|
|
58176
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getStatus = function () {
|
|
58177
|
-
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
58178
|
-
};
|
|
58179
|
-
/**
|
|
58180
|
-
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
58181
|
-
* @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
|
|
58182
|
-
*/
|
|
58183
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setStatus = function (value) {
|
|
58184
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
58185
|
-
};
|
|
58186
|
-
/**
|
|
58187
|
-
* Clears the message field making it undefined.
|
|
58188
|
-
* @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
|
|
58189
|
-
*/
|
|
58190
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearStatus = function () {
|
|
58191
|
-
return this.setStatus(undefined);
|
|
58192
|
-
};
|
|
58193
|
-
/**
|
|
58194
|
-
* Returns whether this field is set.
|
|
58195
|
-
* @return {boolean}
|
|
58196
|
-
*/
|
|
58197
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.hasStatus = function () {
|
|
58198
|
-
return jspb.Message.getField(this, 1) != null;
|
|
58199
|
-
};
|
|
58200
|
-
/**
|
|
58201
|
-
* repeated TrendingMetric metrics = 2;
|
|
58202
|
-
* @return {!Array<!proto.clarifai.api.TrendingMetric>}
|
|
58203
|
-
*/
|
|
58204
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getMetricsList = function () {
|
|
58205
|
-
return /** @type{!Array<!proto.clarifai.api.TrendingMetric>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TrendingMetric, 2));
|
|
58206
|
-
};
|
|
58207
|
-
/**
|
|
58208
|
-
* @param {!Array<!proto.clarifai.api.TrendingMetric>} value
|
|
58209
|
-
* @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
|
|
58210
|
-
*/
|
|
58211
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setMetricsList = function (value) {
|
|
58212
|
-
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
58213
|
-
};
|
|
58214
|
-
/**
|
|
58215
|
-
* @param {!proto.clarifai.api.TrendingMetric=} opt_value
|
|
58216
|
-
* @param {number=} opt_index
|
|
58217
|
-
* @return {!proto.clarifai.api.TrendingMetric}
|
|
58218
|
-
*/
|
|
58219
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.addMetrics = function (opt_value, opt_index) {
|
|
58220
|
-
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.TrendingMetric, opt_index);
|
|
58221
|
-
};
|
|
58222
|
-
/**
|
|
58223
|
-
* Clears the list making it empty but non-null.
|
|
58224
|
-
* @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this
|
|
58225
|
-
*/
|
|
58226
|
-
proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearMetricsList = function () {
|
|
58227
|
-
return this.setMetricsList([]);
|
|
58228
|
-
};
|
|
58229
57675
|
/**
|
|
58230
57676
|
* List of repeated fields within this message type.
|
|
58231
57677
|
* @private {!Array<number>}
|
|
@@ -68473,7 +67919,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
68473
67919
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
68474
67920
|
page: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
68475
67921
|
perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
68476
|
-
computeClusterId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
67922
|
+
computeClusterId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
67923
|
+
minReplicas: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
68477
67924
|
};
|
|
68478
67925
|
if (includeInstance) {
|
|
68479
67926
|
obj.$jspbMessageInstance = msg;
|
|
@@ -68526,6 +67973,10 @@ proto.clarifai.api.ListRunnersRequest.deserializeBinaryFromReader = function (ms
|
|
|
68526
67973
|
var value = /** @type {string} */ (reader.readString());
|
|
68527
67974
|
msg.setComputeClusterId(value);
|
|
68528
67975
|
break;
|
|
67976
|
+
case 6:
|
|
67977
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
67978
|
+
msg.setMinReplicas(value);
|
|
67979
|
+
break;
|
|
68529
67980
|
default:
|
|
68530
67981
|
reader.skipField();
|
|
68531
67982
|
break;
|
|
@@ -68571,6 +68022,10 @@ proto.clarifai.api.ListRunnersRequest.serializeBinaryToWriter = function (messag
|
|
|
68571
68022
|
if (f.length > 0) {
|
|
68572
68023
|
writer.writeString(5, f);
|
|
68573
68024
|
}
|
|
68025
|
+
f = message.getMinReplicas();
|
|
68026
|
+
if (f !== 0) {
|
|
68027
|
+
writer.writeUint32(6, f);
|
|
68028
|
+
}
|
|
68574
68029
|
};
|
|
68575
68030
|
/**
|
|
68576
68031
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -68656,6 +68111,20 @@ proto.clarifai.api.ListRunnersRequest.prototype.getComputeClusterId = function (
|
|
|
68656
68111
|
proto.clarifai.api.ListRunnersRequest.prototype.setComputeClusterId = function (value) {
|
|
68657
68112
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
68658
68113
|
};
|
|
68114
|
+
/**
|
|
68115
|
+
* optional uint32 min_replicas = 6;
|
|
68116
|
+
* @return {number}
|
|
68117
|
+
*/
|
|
68118
|
+
proto.clarifai.api.ListRunnersRequest.prototype.getMinReplicas = function () {
|
|
68119
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
68120
|
+
};
|
|
68121
|
+
/**
|
|
68122
|
+
* @param {number} value
|
|
68123
|
+
* @return {!proto.clarifai.api.ListRunnersRequest} returns this
|
|
68124
|
+
*/
|
|
68125
|
+
proto.clarifai.api.ListRunnersRequest.prototype.setMinReplicas = function (value) {
|
|
68126
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
68127
|
+
};
|
|
68659
68128
|
/**
|
|
68660
68129
|
* List of repeated fields within this message type.
|
|
68661
68130
|
* @private {!Array<number>}
|