clarifai-web-grpc 11.2.0 → 11.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +441 -17
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +398 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +441 -17
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +398 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +69 -3
- package/proto/clarifai/api/resources_pb.js +556 -18
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +12 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +61 -0
- package/proto/clarifai/api/service_pb.d.ts +62 -0
- package/proto/clarifai/api/service_pb.js +505 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.2.
|
|
1
|
+
11.2.2
|
|
@@ -99,6 +99,7 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
|
|
|
99
99
|
goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
|
|
100
100
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
|
|
101
101
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
|
|
102
|
+
goog.exportSymbol('proto.clarifai.api.CpuMetrics', null, global);
|
|
102
103
|
goog.exportSymbol('proto.clarifai.api.Data', null, global);
|
|
103
104
|
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
|
|
104
105
|
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
|
|
@@ -4989,6 +4990,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4989
4990
|
*/
|
|
4990
4991
|
proto.clarifai.api.GpuMetrics.displayName = 'proto.clarifai.api.GpuMetrics';
|
|
4991
4992
|
}
|
|
4993
|
+
/**
|
|
4994
|
+
* Generated by JsPbCodeGenerator.
|
|
4995
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4996
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4997
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4998
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4999
|
+
* valid.
|
|
5000
|
+
* @extends {jspb.Message}
|
|
5001
|
+
* @constructor
|
|
5002
|
+
*/
|
|
5003
|
+
proto.clarifai.api.CpuMetrics = function (opt_data) {
|
|
5004
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5005
|
+
};
|
|
5006
|
+
goog.inherits(proto.clarifai.api.CpuMetrics, jspb.Message);
|
|
5007
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5008
|
+
/**
|
|
5009
|
+
* @public
|
|
5010
|
+
* @override
|
|
5011
|
+
*/
|
|
5012
|
+
proto.clarifai.api.CpuMetrics.displayName = 'proto.clarifai.api.CpuMetrics';
|
|
5013
|
+
}
|
|
4992
5014
|
/**
|
|
4993
5015
|
* Generated by JsPbCodeGenerator.
|
|
4994
5016
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -44023,7 +44045,7 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
|
|
|
44023
44045
|
* @private {!Array<number>}
|
|
44024
44046
|
* @const
|
|
44025
44047
|
*/
|
|
44026
|
-
proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3];
|
|
44048
|
+
proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3, 4, 5];
|
|
44027
44049
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44028
44050
|
/**
|
|
44029
44051
|
* Creates an object representation of this proto.
|
|
@@ -44052,8 +44074,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
44052
44074
|
proto.clarifai.api.TaskReviewMetrics.toObject = function (includeInstance, msg) {
|
|
44053
44075
|
var f, obj = {
|
|
44054
44076
|
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44077
|
+
inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
44055
44078
|
inputsCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
44056
|
-
|
|
44079
|
+
inputsReviewableCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
44080
|
+
inputsPercentEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
44057
44081
|
};
|
|
44058
44082
|
if (includeInstance) {
|
|
44059
44083
|
obj.$jspbMessageInstance = msg;
|
|
@@ -44089,15 +44113,27 @@ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function (msg
|
|
|
44089
44113
|
var value = /** @type {number} */ (reader.readUint64());
|
|
44090
44114
|
msg.setInputsCountEstimated(value);
|
|
44091
44115
|
break;
|
|
44116
|
+
case 2:
|
|
44117
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
44118
|
+
msg.setInputsPercentEstimated(value);
|
|
44119
|
+
break;
|
|
44092
44120
|
case 3:
|
|
44093
44121
|
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
44094
44122
|
for (var i = 0; i < values.length; i++) {
|
|
44095
44123
|
msg.addInputsCountEstimatedPerReviewer(values[i]);
|
|
44096
44124
|
}
|
|
44097
44125
|
break;
|
|
44098
|
-
case
|
|
44099
|
-
var
|
|
44100
|
-
|
|
44126
|
+
case 4:
|
|
44127
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
44128
|
+
for (var i = 0; i < values.length; i++) {
|
|
44129
|
+
msg.addInputsReviewableCountEstimatedPerReviewer(values[i]);
|
|
44130
|
+
}
|
|
44131
|
+
break;
|
|
44132
|
+
case 5:
|
|
44133
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
44134
|
+
for (var i = 0; i < values.length; i++) {
|
|
44135
|
+
msg.addInputsPercentEstimatedPerReviewer(values[i]);
|
|
44136
|
+
}
|
|
44101
44137
|
break;
|
|
44102
44138
|
default:
|
|
44103
44139
|
reader.skipField();
|
|
@@ -44128,13 +44164,21 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function (message
|
|
|
44128
44164
|
if (f !== 0) {
|
|
44129
44165
|
writer.writeUint64(1, f);
|
|
44130
44166
|
}
|
|
44167
|
+
f = message.getInputsPercentEstimated();
|
|
44168
|
+
if (f !== 0) {
|
|
44169
|
+
writer.writeUint32(2, f);
|
|
44170
|
+
}
|
|
44131
44171
|
f = message.getInputsCountEstimatedPerReviewerList();
|
|
44132
44172
|
if (f.length > 0) {
|
|
44133
44173
|
writer.writePackedUint64(3, f);
|
|
44134
44174
|
}
|
|
44135
|
-
f = message.
|
|
44136
|
-
if (f
|
|
44137
|
-
writer.
|
|
44175
|
+
f = message.getInputsReviewableCountEstimatedPerReviewerList();
|
|
44176
|
+
if (f.length > 0) {
|
|
44177
|
+
writer.writePackedUint64(4, f);
|
|
44178
|
+
}
|
|
44179
|
+
f = message.getInputsPercentEstimatedPerReviewerList();
|
|
44180
|
+
if (f.length > 0) {
|
|
44181
|
+
writer.writePackedUint32(5, f);
|
|
44138
44182
|
}
|
|
44139
44183
|
};
|
|
44140
44184
|
/**
|
|
@@ -44151,6 +44195,20 @@ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = functio
|
|
|
44151
44195
|
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function (value) {
|
|
44152
44196
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44153
44197
|
};
|
|
44198
|
+
/**
|
|
44199
|
+
* optional uint32 inputs_percent_estimated = 2;
|
|
44200
|
+
* @return {number}
|
|
44201
|
+
*/
|
|
44202
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function () {
|
|
44203
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44204
|
+
};
|
|
44205
|
+
/**
|
|
44206
|
+
* @param {number} value
|
|
44207
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
44208
|
+
*/
|
|
44209
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function (value) {
|
|
44210
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
44211
|
+
};
|
|
44154
44212
|
/**
|
|
44155
44213
|
* repeated uint64 inputs_count_estimated_per_reviewer = 3;
|
|
44156
44214
|
* @return {!Array<number>}
|
|
@@ -44181,18 +44239,62 @@ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsCountEstimatedPerRevie
|
|
|
44181
44239
|
return this.setInputsCountEstimatedPerReviewerList([]);
|
|
44182
44240
|
};
|
|
44183
44241
|
/**
|
|
44184
|
-
*
|
|
44185
|
-
* @return {number}
|
|
44242
|
+
* repeated uint64 inputs_reviewable_count_estimated_per_reviewer = 4;
|
|
44243
|
+
* @return {!Array<number>}
|
|
44186
44244
|
*/
|
|
44187
|
-
proto.clarifai.api.TaskReviewMetrics.prototype.
|
|
44188
|
-
return /** @type {number} */ (jspb.Message.
|
|
44245
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsReviewableCountEstimatedPerReviewerList = function () {
|
|
44246
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
44247
|
+
};
|
|
44248
|
+
/**
|
|
44249
|
+
* @param {!Array<number>} value
|
|
44250
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
44251
|
+
*/
|
|
44252
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsReviewableCountEstimatedPerReviewerList = function (value) {
|
|
44253
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
44189
44254
|
};
|
|
44190
44255
|
/**
|
|
44191
44256
|
* @param {number} value
|
|
44257
|
+
* @param {number=} opt_index
|
|
44192
44258
|
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
44193
44259
|
*/
|
|
44194
|
-
proto.clarifai.api.TaskReviewMetrics.prototype.
|
|
44195
|
-
return jspb.Message.
|
|
44260
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.addInputsReviewableCountEstimatedPerReviewer = function (value, opt_index) {
|
|
44261
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
44262
|
+
};
|
|
44263
|
+
/**
|
|
44264
|
+
* Clears the list making it empty but non-null.
|
|
44265
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
44266
|
+
*/
|
|
44267
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsReviewableCountEstimatedPerReviewerList = function () {
|
|
44268
|
+
return this.setInputsReviewableCountEstimatedPerReviewerList([]);
|
|
44269
|
+
};
|
|
44270
|
+
/**
|
|
44271
|
+
* repeated uint32 inputs_percent_estimated_per_reviewer = 5;
|
|
44272
|
+
* @return {!Array<number>}
|
|
44273
|
+
*/
|
|
44274
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimatedPerReviewerList = function () {
|
|
44275
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
44276
|
+
};
|
|
44277
|
+
/**
|
|
44278
|
+
* @param {!Array<number>} value
|
|
44279
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
44280
|
+
*/
|
|
44281
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimatedPerReviewerList = function (value) {
|
|
44282
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
44283
|
+
};
|
|
44284
|
+
/**
|
|
44285
|
+
* @param {number} value
|
|
44286
|
+
* @param {number=} opt_index
|
|
44287
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
44288
|
+
*/
|
|
44289
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.addInputsPercentEstimatedPerReviewer = function (value, opt_index) {
|
|
44290
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
44291
|
+
};
|
|
44292
|
+
/**
|
|
44293
|
+
* Clears the list making it empty but non-null.
|
|
44294
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
44295
|
+
*/
|
|
44296
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsPercentEstimatedPerReviewerList = function () {
|
|
44297
|
+
return this.setInputsPercentEstimatedPerReviewerList([]);
|
|
44196
44298
|
};
|
|
44197
44299
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44198
44300
|
/**
|
|
@@ -59437,7 +59539,7 @@ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVers
|
|
|
59437
59539
|
* @private {!Array<number>}
|
|
59438
59540
|
* @const
|
|
59439
59541
|
*/
|
|
59440
|
-
proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10];
|
|
59542
|
+
proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10, 12];
|
|
59441
59543
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59442
59544
|
/**
|
|
59443
59545
|
* Creates an object representation of this proto.
|
|
@@ -59475,7 +59577,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
59475
59577
|
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
59476
59578
|
eventType: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
59477
59579
|
gpuMetricsList: jspb.Message.toObjectList(msg.getGpuMetricsList(), proto.clarifai.api.GpuMetrics.toObject, includeInstance),
|
|
59478
|
-
hostname: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
59580
|
+
hostname: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
59581
|
+
cpuMetricsList: jspb.Message.toObjectList(msg.getCpuMetricsList(), proto.clarifai.api.CpuMetrics.toObject, includeInstance)
|
|
59479
59582
|
};
|
|
59480
59583
|
if (includeInstance) {
|
|
59481
59584
|
obj.$jspbMessageInstance = msg;
|
|
@@ -59554,6 +59657,11 @@ proto.clarifai.api.ComputePlaneMetrics.deserializeBinaryFromReader = function (m
|
|
|
59554
59657
|
var value = /** @type {string} */ (reader.readString());
|
|
59555
59658
|
msg.setHostname(value);
|
|
59556
59659
|
break;
|
|
59660
|
+
case 12:
|
|
59661
|
+
var value = new proto.clarifai.api.CpuMetrics;
|
|
59662
|
+
reader.readMessage(value, proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader);
|
|
59663
|
+
msg.addCpuMetrics(value);
|
|
59664
|
+
break;
|
|
59557
59665
|
default:
|
|
59558
59666
|
reader.skipField();
|
|
59559
59667
|
break;
|
|
@@ -59623,6 +59731,10 @@ proto.clarifai.api.ComputePlaneMetrics.serializeBinaryToWriter = function (messa
|
|
|
59623
59731
|
if (f.length > 0) {
|
|
59624
59732
|
writer.writeString(11, f);
|
|
59625
59733
|
}
|
|
59734
|
+
f = message.getCpuMetricsList();
|
|
59735
|
+
if (f.length > 0) {
|
|
59736
|
+
writer.writeRepeatedMessage(12, f, proto.clarifai.api.CpuMetrics.serializeBinaryToWriter);
|
|
59737
|
+
}
|
|
59626
59738
|
};
|
|
59627
59739
|
/**
|
|
59628
59740
|
* optional ComputeSourceMetadata meta = 1;
|
|
@@ -59821,6 +59933,35 @@ proto.clarifai.api.ComputePlaneMetrics.prototype.getHostname = function () {
|
|
|
59821
59933
|
proto.clarifai.api.ComputePlaneMetrics.prototype.setHostname = function (value) {
|
|
59822
59934
|
return jspb.Message.setProto3StringField(this, 11, value);
|
|
59823
59935
|
};
|
|
59936
|
+
/**
|
|
59937
|
+
* repeated CpuMetrics cpu_metrics = 12;
|
|
59938
|
+
* @return {!Array<!proto.clarifai.api.CpuMetrics>}
|
|
59939
|
+
*/
|
|
59940
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getCpuMetricsList = function () {
|
|
59941
|
+
return /** @type{!Array<!proto.clarifai.api.CpuMetrics>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.CpuMetrics, 12));
|
|
59942
|
+
};
|
|
59943
|
+
/**
|
|
59944
|
+
* @param {!Array<!proto.clarifai.api.CpuMetrics>} value
|
|
59945
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
59946
|
+
*/
|
|
59947
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setCpuMetricsList = function (value) {
|
|
59948
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
59949
|
+
};
|
|
59950
|
+
/**
|
|
59951
|
+
* @param {!proto.clarifai.api.CpuMetrics=} opt_value
|
|
59952
|
+
* @param {number=} opt_index
|
|
59953
|
+
* @return {!proto.clarifai.api.CpuMetrics}
|
|
59954
|
+
*/
|
|
59955
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.addCpuMetrics = function (opt_value, opt_index) {
|
|
59956
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.CpuMetrics, opt_index);
|
|
59957
|
+
};
|
|
59958
|
+
/**
|
|
59959
|
+
* Clears the list making it empty but non-null.
|
|
59960
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
59961
|
+
*/
|
|
59962
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.clearCpuMetricsList = function () {
|
|
59963
|
+
return this.setCpuMetricsList([]);
|
|
59964
|
+
};
|
|
59824
59965
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59825
59966
|
/**
|
|
59826
59967
|
* Creates an object representation of this proto.
|
|
@@ -60020,6 +60161,220 @@ proto.clarifai.api.GpuMetrics.prototype.getMemoryUtilizationPct = function () {
|
|
|
60020
60161
|
proto.clarifai.api.GpuMetrics.prototype.setMemoryUtilizationPct = function (value) {
|
|
60021
60162
|
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
60022
60163
|
};
|
|
60164
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60165
|
+
/**
|
|
60166
|
+
* Creates an object representation of this proto.
|
|
60167
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60168
|
+
* Optional fields that are not set will be set to undefined.
|
|
60169
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60170
|
+
* For the list of reserved names please see:
|
|
60171
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60172
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60173
|
+
* JSPB instance for transitional soy proto support:
|
|
60174
|
+
* http://goto/soy-param-migration
|
|
60175
|
+
* @return {!Object}
|
|
60176
|
+
*/
|
|
60177
|
+
proto.clarifai.api.CpuMetrics.prototype.toObject = function (opt_includeInstance) {
|
|
60178
|
+
return proto.clarifai.api.CpuMetrics.toObject(opt_includeInstance, this);
|
|
60179
|
+
};
|
|
60180
|
+
/**
|
|
60181
|
+
* Static version of the {@see toObject} method.
|
|
60182
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60183
|
+
* the JSPB instance for transitional soy proto support:
|
|
60184
|
+
* http://goto/soy-param-migration
|
|
60185
|
+
* @param {!proto.clarifai.api.CpuMetrics} msg The msg instance to transform.
|
|
60186
|
+
* @return {!Object}
|
|
60187
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60188
|
+
*/
|
|
60189
|
+
proto.clarifai.api.CpuMetrics.toObject = function (includeInstance, msg) {
|
|
60190
|
+
var f, obj = {
|
|
60191
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
60192
|
+
cpuUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
60193
|
+
memoryUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
60194
|
+
millicores: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
60195
|
+
memoryBytes: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
60196
|
+
};
|
|
60197
|
+
if (includeInstance) {
|
|
60198
|
+
obj.$jspbMessageInstance = msg;
|
|
60199
|
+
}
|
|
60200
|
+
return obj;
|
|
60201
|
+
};
|
|
60202
|
+
}
|
|
60203
|
+
/**
|
|
60204
|
+
* Deserializes binary data (in protobuf wire format).
|
|
60205
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60206
|
+
* @return {!proto.clarifai.api.CpuMetrics}
|
|
60207
|
+
*/
|
|
60208
|
+
proto.clarifai.api.CpuMetrics.deserializeBinary = function (bytes) {
|
|
60209
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
60210
|
+
var msg = new proto.clarifai.api.CpuMetrics;
|
|
60211
|
+
return proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader(msg, reader);
|
|
60212
|
+
};
|
|
60213
|
+
/**
|
|
60214
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
60215
|
+
* given reader into the given message object.
|
|
60216
|
+
* @param {!proto.clarifai.api.CpuMetrics} msg The message object to deserialize into.
|
|
60217
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60218
|
+
* @return {!proto.clarifai.api.CpuMetrics}
|
|
60219
|
+
*/
|
|
60220
|
+
proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader = function (msg, reader) {
|
|
60221
|
+
while (reader.nextField()) {
|
|
60222
|
+
if (reader.isEndGroup()) {
|
|
60223
|
+
break;
|
|
60224
|
+
}
|
|
60225
|
+
var field = reader.getFieldNumber();
|
|
60226
|
+
switch (field) {
|
|
60227
|
+
case 1:
|
|
60228
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
60229
|
+
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
60230
|
+
msg.setTimestamp(value);
|
|
60231
|
+
break;
|
|
60232
|
+
case 2:
|
|
60233
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
60234
|
+
msg.setCpuUtilizationPct(value);
|
|
60235
|
+
break;
|
|
60236
|
+
case 3:
|
|
60237
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
60238
|
+
msg.setMemoryUtilizationPct(value);
|
|
60239
|
+
break;
|
|
60240
|
+
case 4:
|
|
60241
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
60242
|
+
msg.setMillicores(value);
|
|
60243
|
+
break;
|
|
60244
|
+
case 5:
|
|
60245
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
60246
|
+
msg.setMemoryBytes(value);
|
|
60247
|
+
break;
|
|
60248
|
+
default:
|
|
60249
|
+
reader.skipField();
|
|
60250
|
+
break;
|
|
60251
|
+
}
|
|
60252
|
+
}
|
|
60253
|
+
return msg;
|
|
60254
|
+
};
|
|
60255
|
+
/**
|
|
60256
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
60257
|
+
* @return {!Uint8Array}
|
|
60258
|
+
*/
|
|
60259
|
+
proto.clarifai.api.CpuMetrics.prototype.serializeBinary = function () {
|
|
60260
|
+
var writer = new jspb.BinaryWriter();
|
|
60261
|
+
proto.clarifai.api.CpuMetrics.serializeBinaryToWriter(this, writer);
|
|
60262
|
+
return writer.getResultBuffer();
|
|
60263
|
+
};
|
|
60264
|
+
/**
|
|
60265
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
60266
|
+
* format), writing to the given BinaryWriter.
|
|
60267
|
+
* @param {!proto.clarifai.api.CpuMetrics} message
|
|
60268
|
+
* @param {!jspb.BinaryWriter} writer
|
|
60269
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60270
|
+
*/
|
|
60271
|
+
proto.clarifai.api.CpuMetrics.serializeBinaryToWriter = function (message, writer) {
|
|
60272
|
+
var f = undefined;
|
|
60273
|
+
f = message.getTimestamp();
|
|
60274
|
+
if (f != null) {
|
|
60275
|
+
writer.writeMessage(1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
60276
|
+
}
|
|
60277
|
+
f = message.getCpuUtilizationPct();
|
|
60278
|
+
if (f !== 0.0) {
|
|
60279
|
+
writer.writeFloat(2, f);
|
|
60280
|
+
}
|
|
60281
|
+
f = message.getMemoryUtilizationPct();
|
|
60282
|
+
if (f !== 0.0) {
|
|
60283
|
+
writer.writeFloat(3, f);
|
|
60284
|
+
}
|
|
60285
|
+
f = message.getMillicores();
|
|
60286
|
+
if (f !== 0) {
|
|
60287
|
+
writer.writeInt64(4, f);
|
|
60288
|
+
}
|
|
60289
|
+
f = message.getMemoryBytes();
|
|
60290
|
+
if (f !== 0) {
|
|
60291
|
+
writer.writeInt64(5, f);
|
|
60292
|
+
}
|
|
60293
|
+
};
|
|
60294
|
+
/**
|
|
60295
|
+
* optional google.protobuf.Timestamp timestamp = 1;
|
|
60296
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
60297
|
+
*/
|
|
60298
|
+
proto.clarifai.api.CpuMetrics.prototype.getTimestamp = function () {
|
|
60299
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
60300
|
+
};
|
|
60301
|
+
/**
|
|
60302
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
60303
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
60304
|
+
*/
|
|
60305
|
+
proto.clarifai.api.CpuMetrics.prototype.setTimestamp = function (value) {
|
|
60306
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
60307
|
+
};
|
|
60308
|
+
/**
|
|
60309
|
+
* Clears the message field making it undefined.
|
|
60310
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
60311
|
+
*/
|
|
60312
|
+
proto.clarifai.api.CpuMetrics.prototype.clearTimestamp = function () {
|
|
60313
|
+
return this.setTimestamp(undefined);
|
|
60314
|
+
};
|
|
60315
|
+
/**
|
|
60316
|
+
* Returns whether this field is set.
|
|
60317
|
+
* @return {boolean}
|
|
60318
|
+
*/
|
|
60319
|
+
proto.clarifai.api.CpuMetrics.prototype.hasTimestamp = function () {
|
|
60320
|
+
return jspb.Message.getField(this, 1) != null;
|
|
60321
|
+
};
|
|
60322
|
+
/**
|
|
60323
|
+
* optional float cpu_utilization_pct = 2;
|
|
60324
|
+
* @return {number}
|
|
60325
|
+
*/
|
|
60326
|
+
proto.clarifai.api.CpuMetrics.prototype.getCpuUtilizationPct = function () {
|
|
60327
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
60328
|
+
};
|
|
60329
|
+
/**
|
|
60330
|
+
* @param {number} value
|
|
60331
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
60332
|
+
*/
|
|
60333
|
+
proto.clarifai.api.CpuMetrics.prototype.setCpuUtilizationPct = function (value) {
|
|
60334
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
60335
|
+
};
|
|
60336
|
+
/**
|
|
60337
|
+
* optional float memory_utilization_pct = 3;
|
|
60338
|
+
* @return {number}
|
|
60339
|
+
*/
|
|
60340
|
+
proto.clarifai.api.CpuMetrics.prototype.getMemoryUtilizationPct = function () {
|
|
60341
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
60342
|
+
};
|
|
60343
|
+
/**
|
|
60344
|
+
* @param {number} value
|
|
60345
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
60346
|
+
*/
|
|
60347
|
+
proto.clarifai.api.CpuMetrics.prototype.setMemoryUtilizationPct = function (value) {
|
|
60348
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
60349
|
+
};
|
|
60350
|
+
/**
|
|
60351
|
+
* optional int64 millicores = 4;
|
|
60352
|
+
* @return {number}
|
|
60353
|
+
*/
|
|
60354
|
+
proto.clarifai.api.CpuMetrics.prototype.getMillicores = function () {
|
|
60355
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
60356
|
+
};
|
|
60357
|
+
/**
|
|
60358
|
+
* @param {number} value
|
|
60359
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
60360
|
+
*/
|
|
60361
|
+
proto.clarifai.api.CpuMetrics.prototype.setMillicores = function (value) {
|
|
60362
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
60363
|
+
};
|
|
60364
|
+
/**
|
|
60365
|
+
* optional int64 memory_bytes = 5;
|
|
60366
|
+
* @return {number}
|
|
60367
|
+
*/
|
|
60368
|
+
proto.clarifai.api.CpuMetrics.prototype.getMemoryBytes = function () {
|
|
60369
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
60370
|
+
};
|
|
60371
|
+
/**
|
|
60372
|
+
* @param {number} value
|
|
60373
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
60374
|
+
*/
|
|
60375
|
+
proto.clarifai.api.CpuMetrics.prototype.setMemoryBytes = function (value) {
|
|
60376
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
60377
|
+
};
|
|
60023
60378
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60024
60379
|
/**
|
|
60025
60380
|
* Creates an object representation of this proto.
|
|
@@ -60244,7 +60599,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
60244
60599
|
workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
60245
60600
|
computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
60246
60601
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
60247
|
-
runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
60602
|
+
runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
60603
|
+
pipelineId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
60604
|
+
pipelineVersionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
60605
|
+
pipelineVersionRunId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
60248
60606
|
};
|
|
60249
60607
|
if (includeInstance) {
|
|
60250
60608
|
obj.$jspbMessageInstance = msg;
|
|
@@ -60305,6 +60663,18 @@ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function
|
|
|
60305
60663
|
var value = /** @type {string} */ (reader.readString());
|
|
60306
60664
|
msg.setRunnerId(value);
|
|
60307
60665
|
break;
|
|
60666
|
+
case 9:
|
|
60667
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60668
|
+
msg.setPipelineId(value);
|
|
60669
|
+
break;
|
|
60670
|
+
case 10:
|
|
60671
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60672
|
+
msg.setPipelineVersionId(value);
|
|
60673
|
+
break;
|
|
60674
|
+
case 11:
|
|
60675
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60676
|
+
msg.setPipelineVersionRunId(value);
|
|
60677
|
+
break;
|
|
60308
60678
|
default:
|
|
60309
60679
|
reader.skipField();
|
|
60310
60680
|
break;
|
|
@@ -60358,6 +60728,18 @@ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function (mes
|
|
|
60358
60728
|
if (f.length > 0) {
|
|
60359
60729
|
writer.writeString(8, f);
|
|
60360
60730
|
}
|
|
60731
|
+
f = message.getPipelineId();
|
|
60732
|
+
if (f.length > 0) {
|
|
60733
|
+
writer.writeString(9, f);
|
|
60734
|
+
}
|
|
60735
|
+
f = message.getPipelineVersionId();
|
|
60736
|
+
if (f.length > 0) {
|
|
60737
|
+
writer.writeString(10, f);
|
|
60738
|
+
}
|
|
60739
|
+
f = message.getPipelineVersionRunId();
|
|
60740
|
+
if (f.length > 0) {
|
|
60741
|
+
writer.writeString(11, f);
|
|
60742
|
+
}
|
|
60361
60743
|
};
|
|
60362
60744
|
/**
|
|
60363
60745
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -60471,6 +60853,48 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.getRunnerId = function () {
|
|
|
60471
60853
|
proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function (value) {
|
|
60472
60854
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
60473
60855
|
};
|
|
60856
|
+
/**
|
|
60857
|
+
* optional string pipeline_id = 9;
|
|
60858
|
+
* @return {string}
|
|
60859
|
+
*/
|
|
60860
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineId = function () {
|
|
60861
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
60862
|
+
};
|
|
60863
|
+
/**
|
|
60864
|
+
* @param {string} value
|
|
60865
|
+
* @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
|
|
60866
|
+
*/
|
|
60867
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineId = function (value) {
|
|
60868
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
60869
|
+
};
|
|
60870
|
+
/**
|
|
60871
|
+
* optional string pipeline_version_id = 10;
|
|
60872
|
+
* @return {string}
|
|
60873
|
+
*/
|
|
60874
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionId = function () {
|
|
60875
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
60876
|
+
};
|
|
60877
|
+
/**
|
|
60878
|
+
* @param {string} value
|
|
60879
|
+
* @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
|
|
60880
|
+
*/
|
|
60881
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionId = function (value) {
|
|
60882
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
60883
|
+
};
|
|
60884
|
+
/**
|
|
60885
|
+
* optional string pipeline_version_run_id = 11;
|
|
60886
|
+
* @return {string}
|
|
60887
|
+
*/
|
|
60888
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionRunId = function () {
|
|
60889
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
60890
|
+
};
|
|
60891
|
+
/**
|
|
60892
|
+
* @param {string} value
|
|
60893
|
+
* @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
|
|
60894
|
+
*/
|
|
60895
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionRunId = function (value) {
|
|
60896
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
60897
|
+
};
|
|
60474
60898
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60475
60899
|
/**
|
|
60476
60900
|
* Creates an object representation of this proto.
|
|
@@ -9012,6 +9012,48 @@ proto.clarifai.api.V2PromiseClient.prototype.postRunners =
|
|
|
9012
9012
|
return this.client_.unaryCall(this.hostname_ +
|
|
9013
9013
|
'/clarifai.api.V2/PostRunners', request, metadata || {}, methodDescriptor_V2_PostRunners);
|
|
9014
9014
|
};
|
|
9015
|
+
/**
|
|
9016
|
+
* @const
|
|
9017
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9018
|
+
* !proto.clarifai.api.PatchRunnersRequest,
|
|
9019
|
+
* !proto.clarifai.api.MultiRunnerResponse>}
|
|
9020
|
+
*/
|
|
9021
|
+
const methodDescriptor_V2_PatchRunners = new grpc.web.MethodDescriptor('/clarifai.api.V2/PatchRunners', grpc.web.MethodType.UNARY, proto.clarifai.api.PatchRunnersRequest, proto.clarifai.api.MultiRunnerResponse,
|
|
9022
|
+
/**
|
|
9023
|
+
* @param {!proto.clarifai.api.PatchRunnersRequest} request
|
|
9024
|
+
* @return {!Uint8Array}
|
|
9025
|
+
*/
|
|
9026
|
+
function (request) {
|
|
9027
|
+
return request.serializeBinary();
|
|
9028
|
+
}, proto.clarifai.api.MultiRunnerResponse.deserializeBinary);
|
|
9029
|
+
/**
|
|
9030
|
+
* @param {!proto.clarifai.api.PatchRunnersRequest} request The
|
|
9031
|
+
* request proto
|
|
9032
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9033
|
+
* call metadata
|
|
9034
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiRunnerResponse)}
|
|
9035
|
+
* callback The callback function(error, response)
|
|
9036
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiRunnerResponse>|undefined}
|
|
9037
|
+
* The XHR Node Readable Stream
|
|
9038
|
+
*/
|
|
9039
|
+
proto.clarifai.api.V2Client.prototype.patchRunners =
|
|
9040
|
+
function (request, metadata, callback) {
|
|
9041
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9042
|
+
'/clarifai.api.V2/PatchRunners', request, metadata || {}, methodDescriptor_V2_PatchRunners, callback);
|
|
9043
|
+
};
|
|
9044
|
+
/**
|
|
9045
|
+
* @param {!proto.clarifai.api.PatchRunnersRequest} request The
|
|
9046
|
+
* request proto
|
|
9047
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9048
|
+
* call metadata
|
|
9049
|
+
* @return {!Promise<!proto.clarifai.api.MultiRunnerResponse>}
|
|
9050
|
+
* Promise that resolves to the response
|
|
9051
|
+
*/
|
|
9052
|
+
proto.clarifai.api.V2PromiseClient.prototype.patchRunners =
|
|
9053
|
+
function (request, metadata) {
|
|
9054
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9055
|
+
'/clarifai.api.V2/PatchRunners', request, metadata || {}, methodDescriptor_V2_PatchRunners);
|
|
9056
|
+
};
|
|
9015
9057
|
/**
|
|
9016
9058
|
* @const
|
|
9017
9059
|
* @type {!grpc.web.MethodDescriptor<
|