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
|
@@ -101,6 +101,7 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
|
|
|
101
101
|
goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global);
|
|
102
102
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global);
|
|
103
103
|
goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global);
|
|
104
|
+
goog.exportSymbol('proto.clarifai.api.CpuMetrics', null, global);
|
|
104
105
|
goog.exportSymbol('proto.clarifai.api.Data', null, global);
|
|
105
106
|
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global);
|
|
106
107
|
goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global);
|
|
@@ -4991,6 +4992,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4991
4992
|
*/
|
|
4992
4993
|
proto.clarifai.api.GpuMetrics.displayName = 'proto.clarifai.api.GpuMetrics';
|
|
4993
4994
|
}
|
|
4995
|
+
/**
|
|
4996
|
+
* Generated by JsPbCodeGenerator.
|
|
4997
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4998
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4999
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
5000
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
5001
|
+
* valid.
|
|
5002
|
+
* @extends {jspb.Message}
|
|
5003
|
+
* @constructor
|
|
5004
|
+
*/
|
|
5005
|
+
proto.clarifai.api.CpuMetrics = function(opt_data) {
|
|
5006
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5007
|
+
};
|
|
5008
|
+
goog.inherits(proto.clarifai.api.CpuMetrics, jspb.Message);
|
|
5009
|
+
if (goog.DEBUG && !COMPILED) {
|
|
5010
|
+
/**
|
|
5011
|
+
* @public
|
|
5012
|
+
* @override
|
|
5013
|
+
*/
|
|
5014
|
+
proto.clarifai.api.CpuMetrics.displayName = 'proto.clarifai.api.CpuMetrics';
|
|
5015
|
+
}
|
|
4994
5016
|
/**
|
|
4995
5017
|
* Generated by JsPbCodeGenerator.
|
|
4996
5018
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -54787,7 +54809,7 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
|
|
|
54787
54809
|
* @private {!Array<number>}
|
|
54788
54810
|
* @const
|
|
54789
54811
|
*/
|
|
54790
|
-
proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3];
|
|
54812
|
+
proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3,4,5];
|
|
54791
54813
|
|
|
54792
54814
|
|
|
54793
54815
|
|
|
@@ -54821,8 +54843,10 @@ proto.clarifai.api.TaskReviewMetrics.prototype.toObject = function(opt_includeIn
|
|
|
54821
54843
|
proto.clarifai.api.TaskReviewMetrics.toObject = function(includeInstance, msg) {
|
|
54822
54844
|
var f, obj = {
|
|
54823
54845
|
inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
54846
|
+
inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
54824
54847
|
inputsCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
54825
|
-
|
|
54848
|
+
inputsReviewableCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
54849
|
+
inputsPercentEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
54826
54850
|
};
|
|
54827
54851
|
|
|
54828
54852
|
if (includeInstance) {
|
|
@@ -54863,15 +54887,27 @@ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function(msg,
|
|
|
54863
54887
|
var value = /** @type {number} */ (reader.readUint64());
|
|
54864
54888
|
msg.setInputsCountEstimated(value);
|
|
54865
54889
|
break;
|
|
54890
|
+
case 2:
|
|
54891
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
54892
|
+
msg.setInputsPercentEstimated(value);
|
|
54893
|
+
break;
|
|
54866
54894
|
case 3:
|
|
54867
54895
|
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
54868
54896
|
for (var i = 0; i < values.length; i++) {
|
|
54869
54897
|
msg.addInputsCountEstimatedPerReviewer(values[i]);
|
|
54870
54898
|
}
|
|
54871
54899
|
break;
|
|
54872
|
-
case
|
|
54873
|
-
var
|
|
54874
|
-
|
|
54900
|
+
case 4:
|
|
54901
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
54902
|
+
for (var i = 0; i < values.length; i++) {
|
|
54903
|
+
msg.addInputsReviewableCountEstimatedPerReviewer(values[i]);
|
|
54904
|
+
}
|
|
54905
|
+
break;
|
|
54906
|
+
case 5:
|
|
54907
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
54908
|
+
for (var i = 0; i < values.length; i++) {
|
|
54909
|
+
msg.addInputsPercentEstimatedPerReviewer(values[i]);
|
|
54910
|
+
}
|
|
54875
54911
|
break;
|
|
54876
54912
|
default:
|
|
54877
54913
|
reader.skipField();
|
|
@@ -54909,6 +54945,13 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function(message,
|
|
|
54909
54945
|
f
|
|
54910
54946
|
);
|
|
54911
54947
|
}
|
|
54948
|
+
f = message.getInputsPercentEstimated();
|
|
54949
|
+
if (f !== 0) {
|
|
54950
|
+
writer.writeUint32(
|
|
54951
|
+
2,
|
|
54952
|
+
f
|
|
54953
|
+
);
|
|
54954
|
+
}
|
|
54912
54955
|
f = message.getInputsCountEstimatedPerReviewerList();
|
|
54913
54956
|
if (f.length > 0) {
|
|
54914
54957
|
writer.writePackedUint64(
|
|
@@ -54916,10 +54959,17 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function(message,
|
|
|
54916
54959
|
f
|
|
54917
54960
|
);
|
|
54918
54961
|
}
|
|
54919
|
-
f = message.
|
|
54920
|
-
if (f
|
|
54921
|
-
writer.
|
|
54922
|
-
|
|
54962
|
+
f = message.getInputsReviewableCountEstimatedPerReviewerList();
|
|
54963
|
+
if (f.length > 0) {
|
|
54964
|
+
writer.writePackedUint64(
|
|
54965
|
+
4,
|
|
54966
|
+
f
|
|
54967
|
+
);
|
|
54968
|
+
}
|
|
54969
|
+
f = message.getInputsPercentEstimatedPerReviewerList();
|
|
54970
|
+
if (f.length > 0) {
|
|
54971
|
+
writer.writePackedUint32(
|
|
54972
|
+
5,
|
|
54923
54973
|
f
|
|
54924
54974
|
);
|
|
54925
54975
|
}
|
|
@@ -54944,6 +54994,24 @@ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = functio
|
|
|
54944
54994
|
};
|
|
54945
54995
|
|
|
54946
54996
|
|
|
54997
|
+
/**
|
|
54998
|
+
* optional uint32 inputs_percent_estimated = 2;
|
|
54999
|
+
* @return {number}
|
|
55000
|
+
*/
|
|
55001
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function() {
|
|
55002
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
55003
|
+
};
|
|
55004
|
+
|
|
55005
|
+
|
|
55006
|
+
/**
|
|
55007
|
+
* @param {number} value
|
|
55008
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
55009
|
+
*/
|
|
55010
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function(value) {
|
|
55011
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
55012
|
+
};
|
|
55013
|
+
|
|
55014
|
+
|
|
54947
55015
|
/**
|
|
54948
55016
|
* repeated uint64 inputs_count_estimated_per_reviewer = 3;
|
|
54949
55017
|
* @return {!Array<number>}
|
|
@@ -54982,20 +55050,76 @@ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsCountEstimatedPerRevie
|
|
|
54982
55050
|
|
|
54983
55051
|
|
|
54984
55052
|
/**
|
|
54985
|
-
*
|
|
54986
|
-
* @return {number}
|
|
55053
|
+
* repeated uint64 inputs_reviewable_count_estimated_per_reviewer = 4;
|
|
55054
|
+
* @return {!Array<number>}
|
|
54987
55055
|
*/
|
|
54988
|
-
proto.clarifai.api.TaskReviewMetrics.prototype.
|
|
54989
|
-
return /** @type {number} */ (jspb.Message.
|
|
55056
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsReviewableCountEstimatedPerReviewerList = function() {
|
|
55057
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
55058
|
+
};
|
|
55059
|
+
|
|
55060
|
+
|
|
55061
|
+
/**
|
|
55062
|
+
* @param {!Array<number>} value
|
|
55063
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
55064
|
+
*/
|
|
55065
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsReviewableCountEstimatedPerReviewerList = function(value) {
|
|
55066
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
54990
55067
|
};
|
|
54991
55068
|
|
|
54992
55069
|
|
|
54993
55070
|
/**
|
|
54994
55071
|
* @param {number} value
|
|
55072
|
+
* @param {number=} opt_index
|
|
54995
55073
|
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
54996
55074
|
*/
|
|
54997
|
-
proto.clarifai.api.TaskReviewMetrics.prototype.
|
|
54998
|
-
return jspb.Message.
|
|
55075
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.addInputsReviewableCountEstimatedPerReviewer = function(value, opt_index) {
|
|
55076
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
55077
|
+
};
|
|
55078
|
+
|
|
55079
|
+
|
|
55080
|
+
/**
|
|
55081
|
+
* Clears the list making it empty but non-null.
|
|
55082
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
55083
|
+
*/
|
|
55084
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsReviewableCountEstimatedPerReviewerList = function() {
|
|
55085
|
+
return this.setInputsReviewableCountEstimatedPerReviewerList([]);
|
|
55086
|
+
};
|
|
55087
|
+
|
|
55088
|
+
|
|
55089
|
+
/**
|
|
55090
|
+
* repeated uint32 inputs_percent_estimated_per_reviewer = 5;
|
|
55091
|
+
* @return {!Array<number>}
|
|
55092
|
+
*/
|
|
55093
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimatedPerReviewerList = function() {
|
|
55094
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
55095
|
+
};
|
|
55096
|
+
|
|
55097
|
+
|
|
55098
|
+
/**
|
|
55099
|
+
* @param {!Array<number>} value
|
|
55100
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
55101
|
+
*/
|
|
55102
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimatedPerReviewerList = function(value) {
|
|
55103
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
55104
|
+
};
|
|
55105
|
+
|
|
55106
|
+
|
|
55107
|
+
/**
|
|
55108
|
+
* @param {number} value
|
|
55109
|
+
* @param {number=} opt_index
|
|
55110
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
55111
|
+
*/
|
|
55112
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.addInputsPercentEstimatedPerReviewer = function(value, opt_index) {
|
|
55113
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
55114
|
+
};
|
|
55115
|
+
|
|
55116
|
+
|
|
55117
|
+
/**
|
|
55118
|
+
* Clears the list making it empty but non-null.
|
|
55119
|
+
* @return {!proto.clarifai.api.TaskReviewMetrics} returns this
|
|
55120
|
+
*/
|
|
55121
|
+
proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsPercentEstimatedPerReviewerList = function() {
|
|
55122
|
+
return this.setInputsPercentEstimatedPerReviewerList([]);
|
|
54999
55123
|
};
|
|
55000
55124
|
|
|
55001
55125
|
|
|
@@ -74368,7 +74492,7 @@ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVers
|
|
|
74368
74492
|
* @private {!Array<number>}
|
|
74369
74493
|
* @const
|
|
74370
74494
|
*/
|
|
74371
|
-
proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10];
|
|
74495
|
+
proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10,12];
|
|
74372
74496
|
|
|
74373
74497
|
|
|
74374
74498
|
|
|
@@ -74412,7 +74536,9 @@ proto.clarifai.api.ComputePlaneMetrics.toObject = function(includeInstance, msg)
|
|
|
74412
74536
|
eventType: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
74413
74537
|
gpuMetricsList: jspb.Message.toObjectList(msg.getGpuMetricsList(),
|
|
74414
74538
|
proto.clarifai.api.GpuMetrics.toObject, includeInstance),
|
|
74415
|
-
hostname: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
74539
|
+
hostname: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
74540
|
+
cpuMetricsList: jspb.Message.toObjectList(msg.getCpuMetricsList(),
|
|
74541
|
+
proto.clarifai.api.CpuMetrics.toObject, includeInstance)
|
|
74416
74542
|
};
|
|
74417
74543
|
|
|
74418
74544
|
if (includeInstance) {
|
|
@@ -74496,6 +74622,11 @@ proto.clarifai.api.ComputePlaneMetrics.deserializeBinaryFromReader = function(ms
|
|
|
74496
74622
|
var value = /** @type {string} */ (reader.readString());
|
|
74497
74623
|
msg.setHostname(value);
|
|
74498
74624
|
break;
|
|
74625
|
+
case 12:
|
|
74626
|
+
var value = new proto.clarifai.api.CpuMetrics;
|
|
74627
|
+
reader.readMessage(value,proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader);
|
|
74628
|
+
msg.addCpuMetrics(value);
|
|
74629
|
+
break;
|
|
74499
74630
|
default:
|
|
74500
74631
|
reader.skipField();
|
|
74501
74632
|
break;
|
|
@@ -74605,6 +74736,14 @@ proto.clarifai.api.ComputePlaneMetrics.serializeBinaryToWriter = function(messag
|
|
|
74605
74736
|
f
|
|
74606
74737
|
);
|
|
74607
74738
|
}
|
|
74739
|
+
f = message.getCpuMetricsList();
|
|
74740
|
+
if (f.length > 0) {
|
|
74741
|
+
writer.writeRepeatedMessage(
|
|
74742
|
+
12,
|
|
74743
|
+
f,
|
|
74744
|
+
proto.clarifai.api.CpuMetrics.serializeBinaryToWriter
|
|
74745
|
+
);
|
|
74746
|
+
}
|
|
74608
74747
|
};
|
|
74609
74748
|
|
|
74610
74749
|
|
|
@@ -74864,6 +75003,44 @@ proto.clarifai.api.ComputePlaneMetrics.prototype.setHostname = function(value) {
|
|
|
74864
75003
|
};
|
|
74865
75004
|
|
|
74866
75005
|
|
|
75006
|
+
/**
|
|
75007
|
+
* repeated CpuMetrics cpu_metrics = 12;
|
|
75008
|
+
* @return {!Array<!proto.clarifai.api.CpuMetrics>}
|
|
75009
|
+
*/
|
|
75010
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getCpuMetricsList = function() {
|
|
75011
|
+
return /** @type{!Array<!proto.clarifai.api.CpuMetrics>} */ (
|
|
75012
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.CpuMetrics, 12));
|
|
75013
|
+
};
|
|
75014
|
+
|
|
75015
|
+
|
|
75016
|
+
/**
|
|
75017
|
+
* @param {!Array<!proto.clarifai.api.CpuMetrics>} value
|
|
75018
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
75019
|
+
*/
|
|
75020
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setCpuMetricsList = function(value) {
|
|
75021
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
75022
|
+
};
|
|
75023
|
+
|
|
75024
|
+
|
|
75025
|
+
/**
|
|
75026
|
+
* @param {!proto.clarifai.api.CpuMetrics=} opt_value
|
|
75027
|
+
* @param {number=} opt_index
|
|
75028
|
+
* @return {!proto.clarifai.api.CpuMetrics}
|
|
75029
|
+
*/
|
|
75030
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.addCpuMetrics = function(opt_value, opt_index) {
|
|
75031
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.CpuMetrics, opt_index);
|
|
75032
|
+
};
|
|
75033
|
+
|
|
75034
|
+
|
|
75035
|
+
/**
|
|
75036
|
+
* Clears the list making it empty but non-null.
|
|
75037
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
75038
|
+
*/
|
|
75039
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.clearCpuMetricsList = function() {
|
|
75040
|
+
return this.setCpuMetricsList([]);
|
|
75041
|
+
};
|
|
75042
|
+
|
|
75043
|
+
|
|
74867
75044
|
|
|
74868
75045
|
|
|
74869
75046
|
|
|
@@ -75117,6 +75294,277 @@ proto.clarifai.api.GpuMetrics.prototype.setMemoryUtilizationPct = function(value
|
|
|
75117
75294
|
|
|
75118
75295
|
|
|
75119
75296
|
|
|
75297
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
75298
|
+
/**
|
|
75299
|
+
* Creates an object representation of this proto.
|
|
75300
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
75301
|
+
* Optional fields that are not set will be set to undefined.
|
|
75302
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
75303
|
+
* For the list of reserved names please see:
|
|
75304
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
75305
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
75306
|
+
* JSPB instance for transitional soy proto support:
|
|
75307
|
+
* http://goto/soy-param-migration
|
|
75308
|
+
* @return {!Object}
|
|
75309
|
+
*/
|
|
75310
|
+
proto.clarifai.api.CpuMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
75311
|
+
return proto.clarifai.api.CpuMetrics.toObject(opt_includeInstance, this);
|
|
75312
|
+
};
|
|
75313
|
+
|
|
75314
|
+
|
|
75315
|
+
/**
|
|
75316
|
+
* Static version of the {@see toObject} method.
|
|
75317
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
75318
|
+
* the JSPB instance for transitional soy proto support:
|
|
75319
|
+
* http://goto/soy-param-migration
|
|
75320
|
+
* @param {!proto.clarifai.api.CpuMetrics} msg The msg instance to transform.
|
|
75321
|
+
* @return {!Object}
|
|
75322
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75323
|
+
*/
|
|
75324
|
+
proto.clarifai.api.CpuMetrics.toObject = function(includeInstance, msg) {
|
|
75325
|
+
var f, obj = {
|
|
75326
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
75327
|
+
cpuUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
75328
|
+
memoryUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
75329
|
+
millicores: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
75330
|
+
memoryBytes: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
75331
|
+
};
|
|
75332
|
+
|
|
75333
|
+
if (includeInstance) {
|
|
75334
|
+
obj.$jspbMessageInstance = msg;
|
|
75335
|
+
}
|
|
75336
|
+
return obj;
|
|
75337
|
+
};
|
|
75338
|
+
}
|
|
75339
|
+
|
|
75340
|
+
|
|
75341
|
+
/**
|
|
75342
|
+
* Deserializes binary data (in protobuf wire format).
|
|
75343
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
75344
|
+
* @return {!proto.clarifai.api.CpuMetrics}
|
|
75345
|
+
*/
|
|
75346
|
+
proto.clarifai.api.CpuMetrics.deserializeBinary = function(bytes) {
|
|
75347
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
75348
|
+
var msg = new proto.clarifai.api.CpuMetrics;
|
|
75349
|
+
return proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader(msg, reader);
|
|
75350
|
+
};
|
|
75351
|
+
|
|
75352
|
+
|
|
75353
|
+
/**
|
|
75354
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
75355
|
+
* given reader into the given message object.
|
|
75356
|
+
* @param {!proto.clarifai.api.CpuMetrics} msg The message object to deserialize into.
|
|
75357
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
75358
|
+
* @return {!proto.clarifai.api.CpuMetrics}
|
|
75359
|
+
*/
|
|
75360
|
+
proto.clarifai.api.CpuMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
75361
|
+
while (reader.nextField()) {
|
|
75362
|
+
if (reader.isEndGroup()) {
|
|
75363
|
+
break;
|
|
75364
|
+
}
|
|
75365
|
+
var field = reader.getFieldNumber();
|
|
75366
|
+
switch (field) {
|
|
75367
|
+
case 1:
|
|
75368
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
75369
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
75370
|
+
msg.setTimestamp(value);
|
|
75371
|
+
break;
|
|
75372
|
+
case 2:
|
|
75373
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
75374
|
+
msg.setCpuUtilizationPct(value);
|
|
75375
|
+
break;
|
|
75376
|
+
case 3:
|
|
75377
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
75378
|
+
msg.setMemoryUtilizationPct(value);
|
|
75379
|
+
break;
|
|
75380
|
+
case 4:
|
|
75381
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
75382
|
+
msg.setMillicores(value);
|
|
75383
|
+
break;
|
|
75384
|
+
case 5:
|
|
75385
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
75386
|
+
msg.setMemoryBytes(value);
|
|
75387
|
+
break;
|
|
75388
|
+
default:
|
|
75389
|
+
reader.skipField();
|
|
75390
|
+
break;
|
|
75391
|
+
}
|
|
75392
|
+
}
|
|
75393
|
+
return msg;
|
|
75394
|
+
};
|
|
75395
|
+
|
|
75396
|
+
|
|
75397
|
+
/**
|
|
75398
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
75399
|
+
* @return {!Uint8Array}
|
|
75400
|
+
*/
|
|
75401
|
+
proto.clarifai.api.CpuMetrics.prototype.serializeBinary = function() {
|
|
75402
|
+
var writer = new jspb.BinaryWriter();
|
|
75403
|
+
proto.clarifai.api.CpuMetrics.serializeBinaryToWriter(this, writer);
|
|
75404
|
+
return writer.getResultBuffer();
|
|
75405
|
+
};
|
|
75406
|
+
|
|
75407
|
+
|
|
75408
|
+
/**
|
|
75409
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
75410
|
+
* format), writing to the given BinaryWriter.
|
|
75411
|
+
* @param {!proto.clarifai.api.CpuMetrics} message
|
|
75412
|
+
* @param {!jspb.BinaryWriter} writer
|
|
75413
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75414
|
+
*/
|
|
75415
|
+
proto.clarifai.api.CpuMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
75416
|
+
var f = undefined;
|
|
75417
|
+
f = message.getTimestamp();
|
|
75418
|
+
if (f != null) {
|
|
75419
|
+
writer.writeMessage(
|
|
75420
|
+
1,
|
|
75421
|
+
f,
|
|
75422
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
75423
|
+
);
|
|
75424
|
+
}
|
|
75425
|
+
f = message.getCpuUtilizationPct();
|
|
75426
|
+
if (f !== 0.0) {
|
|
75427
|
+
writer.writeFloat(
|
|
75428
|
+
2,
|
|
75429
|
+
f
|
|
75430
|
+
);
|
|
75431
|
+
}
|
|
75432
|
+
f = message.getMemoryUtilizationPct();
|
|
75433
|
+
if (f !== 0.0) {
|
|
75434
|
+
writer.writeFloat(
|
|
75435
|
+
3,
|
|
75436
|
+
f
|
|
75437
|
+
);
|
|
75438
|
+
}
|
|
75439
|
+
f = message.getMillicores();
|
|
75440
|
+
if (f !== 0) {
|
|
75441
|
+
writer.writeInt64(
|
|
75442
|
+
4,
|
|
75443
|
+
f
|
|
75444
|
+
);
|
|
75445
|
+
}
|
|
75446
|
+
f = message.getMemoryBytes();
|
|
75447
|
+
if (f !== 0) {
|
|
75448
|
+
writer.writeInt64(
|
|
75449
|
+
5,
|
|
75450
|
+
f
|
|
75451
|
+
);
|
|
75452
|
+
}
|
|
75453
|
+
};
|
|
75454
|
+
|
|
75455
|
+
|
|
75456
|
+
/**
|
|
75457
|
+
* optional google.protobuf.Timestamp timestamp = 1;
|
|
75458
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
75459
|
+
*/
|
|
75460
|
+
proto.clarifai.api.CpuMetrics.prototype.getTimestamp = function() {
|
|
75461
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
75462
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
|
|
75463
|
+
};
|
|
75464
|
+
|
|
75465
|
+
|
|
75466
|
+
/**
|
|
75467
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
75468
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
75469
|
+
*/
|
|
75470
|
+
proto.clarifai.api.CpuMetrics.prototype.setTimestamp = function(value) {
|
|
75471
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
75472
|
+
};
|
|
75473
|
+
|
|
75474
|
+
|
|
75475
|
+
/**
|
|
75476
|
+
* Clears the message field making it undefined.
|
|
75477
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
75478
|
+
*/
|
|
75479
|
+
proto.clarifai.api.CpuMetrics.prototype.clearTimestamp = function() {
|
|
75480
|
+
return this.setTimestamp(undefined);
|
|
75481
|
+
};
|
|
75482
|
+
|
|
75483
|
+
|
|
75484
|
+
/**
|
|
75485
|
+
* Returns whether this field is set.
|
|
75486
|
+
* @return {boolean}
|
|
75487
|
+
*/
|
|
75488
|
+
proto.clarifai.api.CpuMetrics.prototype.hasTimestamp = function() {
|
|
75489
|
+
return jspb.Message.getField(this, 1) != null;
|
|
75490
|
+
};
|
|
75491
|
+
|
|
75492
|
+
|
|
75493
|
+
/**
|
|
75494
|
+
* optional float cpu_utilization_pct = 2;
|
|
75495
|
+
* @return {number}
|
|
75496
|
+
*/
|
|
75497
|
+
proto.clarifai.api.CpuMetrics.prototype.getCpuUtilizationPct = function() {
|
|
75498
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
75499
|
+
};
|
|
75500
|
+
|
|
75501
|
+
|
|
75502
|
+
/**
|
|
75503
|
+
* @param {number} value
|
|
75504
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
75505
|
+
*/
|
|
75506
|
+
proto.clarifai.api.CpuMetrics.prototype.setCpuUtilizationPct = function(value) {
|
|
75507
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
75508
|
+
};
|
|
75509
|
+
|
|
75510
|
+
|
|
75511
|
+
/**
|
|
75512
|
+
* optional float memory_utilization_pct = 3;
|
|
75513
|
+
* @return {number}
|
|
75514
|
+
*/
|
|
75515
|
+
proto.clarifai.api.CpuMetrics.prototype.getMemoryUtilizationPct = function() {
|
|
75516
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
75517
|
+
};
|
|
75518
|
+
|
|
75519
|
+
|
|
75520
|
+
/**
|
|
75521
|
+
* @param {number} value
|
|
75522
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
75523
|
+
*/
|
|
75524
|
+
proto.clarifai.api.CpuMetrics.prototype.setMemoryUtilizationPct = function(value) {
|
|
75525
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
75526
|
+
};
|
|
75527
|
+
|
|
75528
|
+
|
|
75529
|
+
/**
|
|
75530
|
+
* optional int64 millicores = 4;
|
|
75531
|
+
* @return {number}
|
|
75532
|
+
*/
|
|
75533
|
+
proto.clarifai.api.CpuMetrics.prototype.getMillicores = function() {
|
|
75534
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
75535
|
+
};
|
|
75536
|
+
|
|
75537
|
+
|
|
75538
|
+
/**
|
|
75539
|
+
* @param {number} value
|
|
75540
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
75541
|
+
*/
|
|
75542
|
+
proto.clarifai.api.CpuMetrics.prototype.setMillicores = function(value) {
|
|
75543
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
75544
|
+
};
|
|
75545
|
+
|
|
75546
|
+
|
|
75547
|
+
/**
|
|
75548
|
+
* optional int64 memory_bytes = 5;
|
|
75549
|
+
* @return {number}
|
|
75550
|
+
*/
|
|
75551
|
+
proto.clarifai.api.CpuMetrics.prototype.getMemoryBytes = function() {
|
|
75552
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
75553
|
+
};
|
|
75554
|
+
|
|
75555
|
+
|
|
75556
|
+
/**
|
|
75557
|
+
* @param {number} value
|
|
75558
|
+
* @return {!proto.clarifai.api.CpuMetrics} returns this
|
|
75559
|
+
*/
|
|
75560
|
+
proto.clarifai.api.CpuMetrics.prototype.setMemoryBytes = function(value) {
|
|
75561
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
75562
|
+
};
|
|
75563
|
+
|
|
75564
|
+
|
|
75565
|
+
|
|
75566
|
+
|
|
75567
|
+
|
|
75120
75568
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
75121
75569
|
/**
|
|
75122
75570
|
* Creates an object representation of this proto.
|
|
@@ -75393,7 +75841,10 @@ proto.clarifai.api.ComputeSourceMetadata.toObject = function(includeInstance, ms
|
|
|
75393
75841
|
workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
75394
75842
|
computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
75395
75843
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
75396
|
-
runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
75844
|
+
runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
75845
|
+
pipelineId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
75846
|
+
pipelineVersionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
75847
|
+
pipelineVersionRunId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
75397
75848
|
};
|
|
75398
75849
|
|
|
75399
75850
|
if (includeInstance) {
|
|
@@ -75459,6 +75910,18 @@ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function(
|
|
|
75459
75910
|
var value = /** @type {string} */ (reader.readString());
|
|
75460
75911
|
msg.setRunnerId(value);
|
|
75461
75912
|
break;
|
|
75913
|
+
case 9:
|
|
75914
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75915
|
+
msg.setPipelineId(value);
|
|
75916
|
+
break;
|
|
75917
|
+
case 10:
|
|
75918
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75919
|
+
msg.setPipelineVersionId(value);
|
|
75920
|
+
break;
|
|
75921
|
+
case 11:
|
|
75922
|
+
var value = /** @type {string} */ (reader.readString());
|
|
75923
|
+
msg.setPipelineVersionRunId(value);
|
|
75924
|
+
break;
|
|
75462
75925
|
default:
|
|
75463
75926
|
reader.skipField();
|
|
75464
75927
|
break;
|
|
@@ -75538,6 +76001,27 @@ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function(mess
|
|
|
75538
76001
|
f
|
|
75539
76002
|
);
|
|
75540
76003
|
}
|
|
76004
|
+
f = message.getPipelineId();
|
|
76005
|
+
if (f.length > 0) {
|
|
76006
|
+
writer.writeString(
|
|
76007
|
+
9,
|
|
76008
|
+
f
|
|
76009
|
+
);
|
|
76010
|
+
}
|
|
76011
|
+
f = message.getPipelineVersionId();
|
|
76012
|
+
if (f.length > 0) {
|
|
76013
|
+
writer.writeString(
|
|
76014
|
+
10,
|
|
76015
|
+
f
|
|
76016
|
+
);
|
|
76017
|
+
}
|
|
76018
|
+
f = message.getPipelineVersionRunId();
|
|
76019
|
+
if (f.length > 0) {
|
|
76020
|
+
writer.writeString(
|
|
76021
|
+
11,
|
|
76022
|
+
f
|
|
76023
|
+
);
|
|
76024
|
+
}
|
|
75541
76025
|
};
|
|
75542
76026
|
|
|
75543
76027
|
|
|
@@ -75686,6 +76170,60 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.setRunnerId = function(value)
|
|
|
75686
76170
|
};
|
|
75687
76171
|
|
|
75688
76172
|
|
|
76173
|
+
/**
|
|
76174
|
+
* optional string pipeline_id = 9;
|
|
76175
|
+
* @return {string}
|
|
76176
|
+
*/
|
|
76177
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineId = function() {
|
|
76178
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
76179
|
+
};
|
|
76180
|
+
|
|
76181
|
+
|
|
76182
|
+
/**
|
|
76183
|
+
* @param {string} value
|
|
76184
|
+
* @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
|
|
76185
|
+
*/
|
|
76186
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineId = function(value) {
|
|
76187
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
76188
|
+
};
|
|
76189
|
+
|
|
76190
|
+
|
|
76191
|
+
/**
|
|
76192
|
+
* optional string pipeline_version_id = 10;
|
|
76193
|
+
* @return {string}
|
|
76194
|
+
*/
|
|
76195
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionId = function() {
|
|
76196
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
76197
|
+
};
|
|
76198
|
+
|
|
76199
|
+
|
|
76200
|
+
/**
|
|
76201
|
+
* @param {string} value
|
|
76202
|
+
* @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
|
|
76203
|
+
*/
|
|
76204
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionId = function(value) {
|
|
76205
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
76206
|
+
};
|
|
76207
|
+
|
|
76208
|
+
|
|
76209
|
+
/**
|
|
76210
|
+
* optional string pipeline_version_run_id = 11;
|
|
76211
|
+
* @return {string}
|
|
76212
|
+
*/
|
|
76213
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.getPipelineVersionRunId = function() {
|
|
76214
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
76215
|
+
};
|
|
76216
|
+
|
|
76217
|
+
|
|
76218
|
+
/**
|
|
76219
|
+
* @param {string} value
|
|
76220
|
+
* @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
|
|
76221
|
+
*/
|
|
76222
|
+
proto.clarifai.api.ComputeSourceMetadata.prototype.setPipelineVersionRunId = function(value) {
|
|
76223
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
76224
|
+
};
|
|
76225
|
+
|
|
76226
|
+
|
|
75689
76227
|
|
|
75690
76228
|
|
|
75691
76229
|
|