clarifai-web-grpc 11.1.0 → 11.1.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 +632 -0
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +122 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +607 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +632 -0
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +122 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +607 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +98 -0
- package/proto/clarifai/api/resources_pb.js +796 -0
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +34 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +178 -0
- package/proto/clarifai/api/service_pb.d.ts +88 -0
- package/proto/clarifai/api/service_pb.js +747 -0
|
@@ -85,6 +85,7 @@ goog.exportSymbol('proto.clarifai.api.CommitmentValue', null, global);
|
|
|
85
85
|
goog.exportSymbol('proto.clarifai.api.CommitmentValue.CommitmentType', null, global);
|
|
86
86
|
goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
|
|
87
87
|
goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
|
|
88
|
+
goog.exportSymbol('proto.clarifai.api.ComputePlaneMetrics', null, global);
|
|
88
89
|
goog.exportSymbol('proto.clarifai.api.ComputeSourceMetadata', null, global);
|
|
89
90
|
goog.exportSymbol('proto.clarifai.api.Concept', null, global);
|
|
90
91
|
goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
|
|
@@ -147,6 +148,7 @@ goog.exportSymbol('proto.clarifai.api.Geo', null, global);
|
|
|
147
148
|
goog.exportSymbol('proto.clarifai.api.GeoBoxedPoint', null, global);
|
|
148
149
|
goog.exportSymbol('proto.clarifai.api.GeoLimit', null, global);
|
|
149
150
|
goog.exportSymbol('proto.clarifai.api.GeoPoint', null, global);
|
|
151
|
+
goog.exportSymbol('proto.clarifai.api.GpuMetrics', null, global);
|
|
150
152
|
goog.exportSymbol('proto.clarifai.api.Hit', null, global);
|
|
151
153
|
goog.exportSymbol('proto.clarifai.api.HitCount', null, global);
|
|
152
154
|
goog.exportSymbol('proto.clarifai.api.HostedURL', null, global);
|
|
@@ -4932,6 +4934,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4932
4934
|
*/
|
|
4933
4935
|
proto.clarifai.api.WorkflowVersionEvaluationTemplate.displayName = 'proto.clarifai.api.WorkflowVersionEvaluationTemplate';
|
|
4934
4936
|
}
|
|
4937
|
+
/**
|
|
4938
|
+
* Generated by JsPbCodeGenerator.
|
|
4939
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4940
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4941
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4942
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4943
|
+
* valid.
|
|
4944
|
+
* @extends {jspb.Message}
|
|
4945
|
+
* @constructor
|
|
4946
|
+
*/
|
|
4947
|
+
proto.clarifai.api.ComputePlaneMetrics = function(opt_data) {
|
|
4948
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ComputePlaneMetrics.repeatedFields_, null);
|
|
4949
|
+
};
|
|
4950
|
+
goog.inherits(proto.clarifai.api.ComputePlaneMetrics, jspb.Message);
|
|
4951
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4952
|
+
/**
|
|
4953
|
+
* @public
|
|
4954
|
+
* @override
|
|
4955
|
+
*/
|
|
4956
|
+
proto.clarifai.api.ComputePlaneMetrics.displayName = 'proto.clarifai.api.ComputePlaneMetrics';
|
|
4957
|
+
}
|
|
4958
|
+
/**
|
|
4959
|
+
* Generated by JsPbCodeGenerator.
|
|
4960
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4961
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4962
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4963
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4964
|
+
* valid.
|
|
4965
|
+
* @extends {jspb.Message}
|
|
4966
|
+
* @constructor
|
|
4967
|
+
*/
|
|
4968
|
+
proto.clarifai.api.GpuMetrics = function(opt_data) {
|
|
4969
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4970
|
+
};
|
|
4971
|
+
goog.inherits(proto.clarifai.api.GpuMetrics, jspb.Message);
|
|
4972
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4973
|
+
/**
|
|
4974
|
+
* @public
|
|
4975
|
+
* @override
|
|
4976
|
+
*/
|
|
4977
|
+
proto.clarifai.api.GpuMetrics.displayName = 'proto.clarifai.api.GpuMetrics';
|
|
4978
|
+
}
|
|
4935
4979
|
/**
|
|
4936
4980
|
* Generated by JsPbCodeGenerator.
|
|
4937
4981
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -73800,6 +73844,758 @@ proto.clarifai.api.WorkflowVersionEvaluationTemplate.prototype.clearWorkflowVers
|
|
|
73800
73844
|
|
|
73801
73845
|
|
|
73802
73846
|
|
|
73847
|
+
/**
|
|
73848
|
+
* List of repeated fields within this message type.
|
|
73849
|
+
* @private {!Array<number>}
|
|
73850
|
+
* @const
|
|
73851
|
+
*/
|
|
73852
|
+
proto.clarifai.api.ComputePlaneMetrics.repeatedFields_ = [10];
|
|
73853
|
+
|
|
73854
|
+
|
|
73855
|
+
|
|
73856
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
73857
|
+
/**
|
|
73858
|
+
* Creates an object representation of this proto.
|
|
73859
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
73860
|
+
* Optional fields that are not set will be set to undefined.
|
|
73861
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
73862
|
+
* For the list of reserved names please see:
|
|
73863
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
73864
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
73865
|
+
* JSPB instance for transitional soy proto support:
|
|
73866
|
+
* http://goto/soy-param-migration
|
|
73867
|
+
* @return {!Object}
|
|
73868
|
+
*/
|
|
73869
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
73870
|
+
return proto.clarifai.api.ComputePlaneMetrics.toObject(opt_includeInstance, this);
|
|
73871
|
+
};
|
|
73872
|
+
|
|
73873
|
+
|
|
73874
|
+
/**
|
|
73875
|
+
* Static version of the {@see toObject} method.
|
|
73876
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
73877
|
+
* the JSPB instance for transitional soy proto support:
|
|
73878
|
+
* http://goto/soy-param-migration
|
|
73879
|
+
* @param {!proto.clarifai.api.ComputePlaneMetrics} msg The msg instance to transform.
|
|
73880
|
+
* @return {!Object}
|
|
73881
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
73882
|
+
*/
|
|
73883
|
+
proto.clarifai.api.ComputePlaneMetrics.toObject = function(includeInstance, msg) {
|
|
73884
|
+
var f, obj = {
|
|
73885
|
+
meta: (f = msg.getMeta()) && proto.clarifai.api.ComputeSourceMetadata.toObject(includeInstance, f),
|
|
73886
|
+
cloud: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
73887
|
+
region: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
73888
|
+
instanceType: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
73889
|
+
reservationType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
73890
|
+
reservationPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
73891
|
+
runtimeS: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
73892
|
+
timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
73893
|
+
eventType: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
73894
|
+
gpuMetricsList: jspb.Message.toObjectList(msg.getGpuMetricsList(),
|
|
73895
|
+
proto.clarifai.api.GpuMetrics.toObject, includeInstance),
|
|
73896
|
+
hostname: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
73897
|
+
};
|
|
73898
|
+
|
|
73899
|
+
if (includeInstance) {
|
|
73900
|
+
obj.$jspbMessageInstance = msg;
|
|
73901
|
+
}
|
|
73902
|
+
return obj;
|
|
73903
|
+
};
|
|
73904
|
+
}
|
|
73905
|
+
|
|
73906
|
+
|
|
73907
|
+
/**
|
|
73908
|
+
* Deserializes binary data (in protobuf wire format).
|
|
73909
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
73910
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics}
|
|
73911
|
+
*/
|
|
73912
|
+
proto.clarifai.api.ComputePlaneMetrics.deserializeBinary = function(bytes) {
|
|
73913
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
73914
|
+
var msg = new proto.clarifai.api.ComputePlaneMetrics;
|
|
73915
|
+
return proto.clarifai.api.ComputePlaneMetrics.deserializeBinaryFromReader(msg, reader);
|
|
73916
|
+
};
|
|
73917
|
+
|
|
73918
|
+
|
|
73919
|
+
/**
|
|
73920
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
73921
|
+
* given reader into the given message object.
|
|
73922
|
+
* @param {!proto.clarifai.api.ComputePlaneMetrics} msg The message object to deserialize into.
|
|
73923
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
73924
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics}
|
|
73925
|
+
*/
|
|
73926
|
+
proto.clarifai.api.ComputePlaneMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
73927
|
+
while (reader.nextField()) {
|
|
73928
|
+
if (reader.isEndGroup()) {
|
|
73929
|
+
break;
|
|
73930
|
+
}
|
|
73931
|
+
var field = reader.getFieldNumber();
|
|
73932
|
+
switch (field) {
|
|
73933
|
+
case 1:
|
|
73934
|
+
var value = new proto.clarifai.api.ComputeSourceMetadata;
|
|
73935
|
+
reader.readMessage(value,proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader);
|
|
73936
|
+
msg.setMeta(value);
|
|
73937
|
+
break;
|
|
73938
|
+
case 2:
|
|
73939
|
+
var value = /** @type {string} */ (reader.readString());
|
|
73940
|
+
msg.setCloud(value);
|
|
73941
|
+
break;
|
|
73942
|
+
case 3:
|
|
73943
|
+
var value = /** @type {string} */ (reader.readString());
|
|
73944
|
+
msg.setRegion(value);
|
|
73945
|
+
break;
|
|
73946
|
+
case 4:
|
|
73947
|
+
var value = /** @type {string} */ (reader.readString());
|
|
73948
|
+
msg.setInstanceType(value);
|
|
73949
|
+
break;
|
|
73950
|
+
case 5:
|
|
73951
|
+
var value = /** @type {string} */ (reader.readString());
|
|
73952
|
+
msg.setReservationType(value);
|
|
73953
|
+
break;
|
|
73954
|
+
case 6:
|
|
73955
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
73956
|
+
msg.setReservationPrice(value);
|
|
73957
|
+
break;
|
|
73958
|
+
case 7:
|
|
73959
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
73960
|
+
msg.setRuntimeS(value);
|
|
73961
|
+
break;
|
|
73962
|
+
case 8:
|
|
73963
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
73964
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
73965
|
+
msg.setTimestamp(value);
|
|
73966
|
+
break;
|
|
73967
|
+
case 9:
|
|
73968
|
+
var value = /** @type {string} */ (reader.readString());
|
|
73969
|
+
msg.setEventType(value);
|
|
73970
|
+
break;
|
|
73971
|
+
case 10:
|
|
73972
|
+
var value = new proto.clarifai.api.GpuMetrics;
|
|
73973
|
+
reader.readMessage(value,proto.clarifai.api.GpuMetrics.deserializeBinaryFromReader);
|
|
73974
|
+
msg.addGpuMetrics(value);
|
|
73975
|
+
break;
|
|
73976
|
+
case 11:
|
|
73977
|
+
var value = /** @type {string} */ (reader.readString());
|
|
73978
|
+
msg.setHostname(value);
|
|
73979
|
+
break;
|
|
73980
|
+
default:
|
|
73981
|
+
reader.skipField();
|
|
73982
|
+
break;
|
|
73983
|
+
}
|
|
73984
|
+
}
|
|
73985
|
+
return msg;
|
|
73986
|
+
};
|
|
73987
|
+
|
|
73988
|
+
|
|
73989
|
+
/**
|
|
73990
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
73991
|
+
* @return {!Uint8Array}
|
|
73992
|
+
*/
|
|
73993
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.serializeBinary = function() {
|
|
73994
|
+
var writer = new jspb.BinaryWriter();
|
|
73995
|
+
proto.clarifai.api.ComputePlaneMetrics.serializeBinaryToWriter(this, writer);
|
|
73996
|
+
return writer.getResultBuffer();
|
|
73997
|
+
};
|
|
73998
|
+
|
|
73999
|
+
|
|
74000
|
+
/**
|
|
74001
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
74002
|
+
* format), writing to the given BinaryWriter.
|
|
74003
|
+
* @param {!proto.clarifai.api.ComputePlaneMetrics} message
|
|
74004
|
+
* @param {!jspb.BinaryWriter} writer
|
|
74005
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
74006
|
+
*/
|
|
74007
|
+
proto.clarifai.api.ComputePlaneMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
74008
|
+
var f = undefined;
|
|
74009
|
+
f = message.getMeta();
|
|
74010
|
+
if (f != null) {
|
|
74011
|
+
writer.writeMessage(
|
|
74012
|
+
1,
|
|
74013
|
+
f,
|
|
74014
|
+
proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter
|
|
74015
|
+
);
|
|
74016
|
+
}
|
|
74017
|
+
f = message.getCloud();
|
|
74018
|
+
if (f.length > 0) {
|
|
74019
|
+
writer.writeString(
|
|
74020
|
+
2,
|
|
74021
|
+
f
|
|
74022
|
+
);
|
|
74023
|
+
}
|
|
74024
|
+
f = message.getRegion();
|
|
74025
|
+
if (f.length > 0) {
|
|
74026
|
+
writer.writeString(
|
|
74027
|
+
3,
|
|
74028
|
+
f
|
|
74029
|
+
);
|
|
74030
|
+
}
|
|
74031
|
+
f = message.getInstanceType();
|
|
74032
|
+
if (f.length > 0) {
|
|
74033
|
+
writer.writeString(
|
|
74034
|
+
4,
|
|
74035
|
+
f
|
|
74036
|
+
);
|
|
74037
|
+
}
|
|
74038
|
+
f = message.getReservationType();
|
|
74039
|
+
if (f.length > 0) {
|
|
74040
|
+
writer.writeString(
|
|
74041
|
+
5,
|
|
74042
|
+
f
|
|
74043
|
+
);
|
|
74044
|
+
}
|
|
74045
|
+
f = message.getReservationPrice();
|
|
74046
|
+
if (f !== 0.0) {
|
|
74047
|
+
writer.writeFloat(
|
|
74048
|
+
6,
|
|
74049
|
+
f
|
|
74050
|
+
);
|
|
74051
|
+
}
|
|
74052
|
+
f = message.getRuntimeS();
|
|
74053
|
+
if (f !== 0) {
|
|
74054
|
+
writer.writeInt32(
|
|
74055
|
+
7,
|
|
74056
|
+
f
|
|
74057
|
+
);
|
|
74058
|
+
}
|
|
74059
|
+
f = message.getTimestamp();
|
|
74060
|
+
if (f != null) {
|
|
74061
|
+
writer.writeMessage(
|
|
74062
|
+
8,
|
|
74063
|
+
f,
|
|
74064
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
74065
|
+
);
|
|
74066
|
+
}
|
|
74067
|
+
f = message.getEventType();
|
|
74068
|
+
if (f.length > 0) {
|
|
74069
|
+
writer.writeString(
|
|
74070
|
+
9,
|
|
74071
|
+
f
|
|
74072
|
+
);
|
|
74073
|
+
}
|
|
74074
|
+
f = message.getGpuMetricsList();
|
|
74075
|
+
if (f.length > 0) {
|
|
74076
|
+
writer.writeRepeatedMessage(
|
|
74077
|
+
10,
|
|
74078
|
+
f,
|
|
74079
|
+
proto.clarifai.api.GpuMetrics.serializeBinaryToWriter
|
|
74080
|
+
);
|
|
74081
|
+
}
|
|
74082
|
+
f = message.getHostname();
|
|
74083
|
+
if (f.length > 0) {
|
|
74084
|
+
writer.writeString(
|
|
74085
|
+
11,
|
|
74086
|
+
f
|
|
74087
|
+
);
|
|
74088
|
+
}
|
|
74089
|
+
};
|
|
74090
|
+
|
|
74091
|
+
|
|
74092
|
+
/**
|
|
74093
|
+
* optional ComputeSourceMetadata meta = 1;
|
|
74094
|
+
* @return {?proto.clarifai.api.ComputeSourceMetadata}
|
|
74095
|
+
*/
|
|
74096
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getMeta = function() {
|
|
74097
|
+
return /** @type{?proto.clarifai.api.ComputeSourceMetadata} */ (
|
|
74098
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeSourceMetadata, 1));
|
|
74099
|
+
};
|
|
74100
|
+
|
|
74101
|
+
|
|
74102
|
+
/**
|
|
74103
|
+
* @param {?proto.clarifai.api.ComputeSourceMetadata|undefined} value
|
|
74104
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74105
|
+
*/
|
|
74106
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setMeta = function(value) {
|
|
74107
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
74108
|
+
};
|
|
74109
|
+
|
|
74110
|
+
|
|
74111
|
+
/**
|
|
74112
|
+
* Clears the message field making it undefined.
|
|
74113
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74114
|
+
*/
|
|
74115
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.clearMeta = function() {
|
|
74116
|
+
return this.setMeta(undefined);
|
|
74117
|
+
};
|
|
74118
|
+
|
|
74119
|
+
|
|
74120
|
+
/**
|
|
74121
|
+
* Returns whether this field is set.
|
|
74122
|
+
* @return {boolean}
|
|
74123
|
+
*/
|
|
74124
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.hasMeta = function() {
|
|
74125
|
+
return jspb.Message.getField(this, 1) != null;
|
|
74126
|
+
};
|
|
74127
|
+
|
|
74128
|
+
|
|
74129
|
+
/**
|
|
74130
|
+
* optional string cloud = 2;
|
|
74131
|
+
* @return {string}
|
|
74132
|
+
*/
|
|
74133
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getCloud = function() {
|
|
74134
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
74135
|
+
};
|
|
74136
|
+
|
|
74137
|
+
|
|
74138
|
+
/**
|
|
74139
|
+
* @param {string} value
|
|
74140
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74141
|
+
*/
|
|
74142
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setCloud = function(value) {
|
|
74143
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
74144
|
+
};
|
|
74145
|
+
|
|
74146
|
+
|
|
74147
|
+
/**
|
|
74148
|
+
* optional string region = 3;
|
|
74149
|
+
* @return {string}
|
|
74150
|
+
*/
|
|
74151
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getRegion = function() {
|
|
74152
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
74153
|
+
};
|
|
74154
|
+
|
|
74155
|
+
|
|
74156
|
+
/**
|
|
74157
|
+
* @param {string} value
|
|
74158
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74159
|
+
*/
|
|
74160
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setRegion = function(value) {
|
|
74161
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
74162
|
+
};
|
|
74163
|
+
|
|
74164
|
+
|
|
74165
|
+
/**
|
|
74166
|
+
* optional string instance_type = 4;
|
|
74167
|
+
* @return {string}
|
|
74168
|
+
*/
|
|
74169
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getInstanceType = function() {
|
|
74170
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
74171
|
+
};
|
|
74172
|
+
|
|
74173
|
+
|
|
74174
|
+
/**
|
|
74175
|
+
* @param {string} value
|
|
74176
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74177
|
+
*/
|
|
74178
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setInstanceType = function(value) {
|
|
74179
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
74180
|
+
};
|
|
74181
|
+
|
|
74182
|
+
|
|
74183
|
+
/**
|
|
74184
|
+
* optional string reservation_type = 5;
|
|
74185
|
+
* @return {string}
|
|
74186
|
+
*/
|
|
74187
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getReservationType = function() {
|
|
74188
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
74189
|
+
};
|
|
74190
|
+
|
|
74191
|
+
|
|
74192
|
+
/**
|
|
74193
|
+
* @param {string} value
|
|
74194
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74195
|
+
*/
|
|
74196
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setReservationType = function(value) {
|
|
74197
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
74198
|
+
};
|
|
74199
|
+
|
|
74200
|
+
|
|
74201
|
+
/**
|
|
74202
|
+
* optional float reservation_price = 6;
|
|
74203
|
+
* @return {number}
|
|
74204
|
+
*/
|
|
74205
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getReservationPrice = function() {
|
|
74206
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
74207
|
+
};
|
|
74208
|
+
|
|
74209
|
+
|
|
74210
|
+
/**
|
|
74211
|
+
* @param {number} value
|
|
74212
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74213
|
+
*/
|
|
74214
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setReservationPrice = function(value) {
|
|
74215
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
74216
|
+
};
|
|
74217
|
+
|
|
74218
|
+
|
|
74219
|
+
/**
|
|
74220
|
+
* optional int32 runtime_s = 7;
|
|
74221
|
+
* @return {number}
|
|
74222
|
+
*/
|
|
74223
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getRuntimeS = function() {
|
|
74224
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
74225
|
+
};
|
|
74226
|
+
|
|
74227
|
+
|
|
74228
|
+
/**
|
|
74229
|
+
* @param {number} value
|
|
74230
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74231
|
+
*/
|
|
74232
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setRuntimeS = function(value) {
|
|
74233
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
74234
|
+
};
|
|
74235
|
+
|
|
74236
|
+
|
|
74237
|
+
/**
|
|
74238
|
+
* optional google.protobuf.Timestamp timestamp = 8;
|
|
74239
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
74240
|
+
*/
|
|
74241
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getTimestamp = function() {
|
|
74242
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
74243
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
74244
|
+
};
|
|
74245
|
+
|
|
74246
|
+
|
|
74247
|
+
/**
|
|
74248
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
74249
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74250
|
+
*/
|
|
74251
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setTimestamp = function(value) {
|
|
74252
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
74253
|
+
};
|
|
74254
|
+
|
|
74255
|
+
|
|
74256
|
+
/**
|
|
74257
|
+
* Clears the message field making it undefined.
|
|
74258
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74259
|
+
*/
|
|
74260
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.clearTimestamp = function() {
|
|
74261
|
+
return this.setTimestamp(undefined);
|
|
74262
|
+
};
|
|
74263
|
+
|
|
74264
|
+
|
|
74265
|
+
/**
|
|
74266
|
+
* Returns whether this field is set.
|
|
74267
|
+
* @return {boolean}
|
|
74268
|
+
*/
|
|
74269
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.hasTimestamp = function() {
|
|
74270
|
+
return jspb.Message.getField(this, 8) != null;
|
|
74271
|
+
};
|
|
74272
|
+
|
|
74273
|
+
|
|
74274
|
+
/**
|
|
74275
|
+
* optional string event_type = 9;
|
|
74276
|
+
* @return {string}
|
|
74277
|
+
*/
|
|
74278
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getEventType = function() {
|
|
74279
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
74280
|
+
};
|
|
74281
|
+
|
|
74282
|
+
|
|
74283
|
+
/**
|
|
74284
|
+
* @param {string} value
|
|
74285
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74286
|
+
*/
|
|
74287
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setEventType = function(value) {
|
|
74288
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
74289
|
+
};
|
|
74290
|
+
|
|
74291
|
+
|
|
74292
|
+
/**
|
|
74293
|
+
* repeated GpuMetrics gpu_metrics = 10;
|
|
74294
|
+
* @return {!Array<!proto.clarifai.api.GpuMetrics>}
|
|
74295
|
+
*/
|
|
74296
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getGpuMetricsList = function() {
|
|
74297
|
+
return /** @type{!Array<!proto.clarifai.api.GpuMetrics>} */ (
|
|
74298
|
+
jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.GpuMetrics, 10));
|
|
74299
|
+
};
|
|
74300
|
+
|
|
74301
|
+
|
|
74302
|
+
/**
|
|
74303
|
+
* @param {!Array<!proto.clarifai.api.GpuMetrics>} value
|
|
74304
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74305
|
+
*/
|
|
74306
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setGpuMetricsList = function(value) {
|
|
74307
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
74308
|
+
};
|
|
74309
|
+
|
|
74310
|
+
|
|
74311
|
+
/**
|
|
74312
|
+
* @param {!proto.clarifai.api.GpuMetrics=} opt_value
|
|
74313
|
+
* @param {number=} opt_index
|
|
74314
|
+
* @return {!proto.clarifai.api.GpuMetrics}
|
|
74315
|
+
*/
|
|
74316
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.addGpuMetrics = function(opt_value, opt_index) {
|
|
74317
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.clarifai.api.GpuMetrics, opt_index);
|
|
74318
|
+
};
|
|
74319
|
+
|
|
74320
|
+
|
|
74321
|
+
/**
|
|
74322
|
+
* Clears the list making it empty but non-null.
|
|
74323
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74324
|
+
*/
|
|
74325
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.clearGpuMetricsList = function() {
|
|
74326
|
+
return this.setGpuMetricsList([]);
|
|
74327
|
+
};
|
|
74328
|
+
|
|
74329
|
+
|
|
74330
|
+
/**
|
|
74331
|
+
* optional string hostname = 11;
|
|
74332
|
+
* @return {string}
|
|
74333
|
+
*/
|
|
74334
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.getHostname = function() {
|
|
74335
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
74336
|
+
};
|
|
74337
|
+
|
|
74338
|
+
|
|
74339
|
+
/**
|
|
74340
|
+
* @param {string} value
|
|
74341
|
+
* @return {!proto.clarifai.api.ComputePlaneMetrics} returns this
|
|
74342
|
+
*/
|
|
74343
|
+
proto.clarifai.api.ComputePlaneMetrics.prototype.setHostname = function(value) {
|
|
74344
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
74345
|
+
};
|
|
74346
|
+
|
|
74347
|
+
|
|
74348
|
+
|
|
74349
|
+
|
|
74350
|
+
|
|
74351
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
74352
|
+
/**
|
|
74353
|
+
* Creates an object representation of this proto.
|
|
74354
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
74355
|
+
* Optional fields that are not set will be set to undefined.
|
|
74356
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
74357
|
+
* For the list of reserved names please see:
|
|
74358
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
74359
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
74360
|
+
* JSPB instance for transitional soy proto support:
|
|
74361
|
+
* http://goto/soy-param-migration
|
|
74362
|
+
* @return {!Object}
|
|
74363
|
+
*/
|
|
74364
|
+
proto.clarifai.api.GpuMetrics.prototype.toObject = function(opt_includeInstance) {
|
|
74365
|
+
return proto.clarifai.api.GpuMetrics.toObject(opt_includeInstance, this);
|
|
74366
|
+
};
|
|
74367
|
+
|
|
74368
|
+
|
|
74369
|
+
/**
|
|
74370
|
+
* Static version of the {@see toObject} method.
|
|
74371
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
74372
|
+
* the JSPB instance for transitional soy proto support:
|
|
74373
|
+
* http://goto/soy-param-migration
|
|
74374
|
+
* @param {!proto.clarifai.api.GpuMetrics} msg The msg instance to transform.
|
|
74375
|
+
* @return {!Object}
|
|
74376
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
74377
|
+
*/
|
|
74378
|
+
proto.clarifai.api.GpuMetrics.toObject = function(includeInstance, msg) {
|
|
74379
|
+
var f, obj = {
|
|
74380
|
+
uuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
74381
|
+
modelName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
74382
|
+
utilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
74383
|
+
tensorUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
74384
|
+
memoryUtilizationPct: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
|
74385
|
+
};
|
|
74386
|
+
|
|
74387
|
+
if (includeInstance) {
|
|
74388
|
+
obj.$jspbMessageInstance = msg;
|
|
74389
|
+
}
|
|
74390
|
+
return obj;
|
|
74391
|
+
};
|
|
74392
|
+
}
|
|
74393
|
+
|
|
74394
|
+
|
|
74395
|
+
/**
|
|
74396
|
+
* Deserializes binary data (in protobuf wire format).
|
|
74397
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
74398
|
+
* @return {!proto.clarifai.api.GpuMetrics}
|
|
74399
|
+
*/
|
|
74400
|
+
proto.clarifai.api.GpuMetrics.deserializeBinary = function(bytes) {
|
|
74401
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
74402
|
+
var msg = new proto.clarifai.api.GpuMetrics;
|
|
74403
|
+
return proto.clarifai.api.GpuMetrics.deserializeBinaryFromReader(msg, reader);
|
|
74404
|
+
};
|
|
74405
|
+
|
|
74406
|
+
|
|
74407
|
+
/**
|
|
74408
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
74409
|
+
* given reader into the given message object.
|
|
74410
|
+
* @param {!proto.clarifai.api.GpuMetrics} msg The message object to deserialize into.
|
|
74411
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
74412
|
+
* @return {!proto.clarifai.api.GpuMetrics}
|
|
74413
|
+
*/
|
|
74414
|
+
proto.clarifai.api.GpuMetrics.deserializeBinaryFromReader = function(msg, reader) {
|
|
74415
|
+
while (reader.nextField()) {
|
|
74416
|
+
if (reader.isEndGroup()) {
|
|
74417
|
+
break;
|
|
74418
|
+
}
|
|
74419
|
+
var field = reader.getFieldNumber();
|
|
74420
|
+
switch (field) {
|
|
74421
|
+
case 1:
|
|
74422
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74423
|
+
msg.setUuid(value);
|
|
74424
|
+
break;
|
|
74425
|
+
case 2:
|
|
74426
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74427
|
+
msg.setModelName(value);
|
|
74428
|
+
break;
|
|
74429
|
+
case 3:
|
|
74430
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
74431
|
+
msg.setUtilizationPct(value);
|
|
74432
|
+
break;
|
|
74433
|
+
case 4:
|
|
74434
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
74435
|
+
msg.setTensorUtilizationPct(value);
|
|
74436
|
+
break;
|
|
74437
|
+
case 5:
|
|
74438
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
74439
|
+
msg.setMemoryUtilizationPct(value);
|
|
74440
|
+
break;
|
|
74441
|
+
default:
|
|
74442
|
+
reader.skipField();
|
|
74443
|
+
break;
|
|
74444
|
+
}
|
|
74445
|
+
}
|
|
74446
|
+
return msg;
|
|
74447
|
+
};
|
|
74448
|
+
|
|
74449
|
+
|
|
74450
|
+
/**
|
|
74451
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
74452
|
+
* @return {!Uint8Array}
|
|
74453
|
+
*/
|
|
74454
|
+
proto.clarifai.api.GpuMetrics.prototype.serializeBinary = function() {
|
|
74455
|
+
var writer = new jspb.BinaryWriter();
|
|
74456
|
+
proto.clarifai.api.GpuMetrics.serializeBinaryToWriter(this, writer);
|
|
74457
|
+
return writer.getResultBuffer();
|
|
74458
|
+
};
|
|
74459
|
+
|
|
74460
|
+
|
|
74461
|
+
/**
|
|
74462
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
74463
|
+
* format), writing to the given BinaryWriter.
|
|
74464
|
+
* @param {!proto.clarifai.api.GpuMetrics} message
|
|
74465
|
+
* @param {!jspb.BinaryWriter} writer
|
|
74466
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
74467
|
+
*/
|
|
74468
|
+
proto.clarifai.api.GpuMetrics.serializeBinaryToWriter = function(message, writer) {
|
|
74469
|
+
var f = undefined;
|
|
74470
|
+
f = message.getUuid();
|
|
74471
|
+
if (f.length > 0) {
|
|
74472
|
+
writer.writeString(
|
|
74473
|
+
1,
|
|
74474
|
+
f
|
|
74475
|
+
);
|
|
74476
|
+
}
|
|
74477
|
+
f = message.getModelName();
|
|
74478
|
+
if (f.length > 0) {
|
|
74479
|
+
writer.writeString(
|
|
74480
|
+
2,
|
|
74481
|
+
f
|
|
74482
|
+
);
|
|
74483
|
+
}
|
|
74484
|
+
f = message.getUtilizationPct();
|
|
74485
|
+
if (f !== 0.0) {
|
|
74486
|
+
writer.writeFloat(
|
|
74487
|
+
3,
|
|
74488
|
+
f
|
|
74489
|
+
);
|
|
74490
|
+
}
|
|
74491
|
+
f = message.getTensorUtilizationPct();
|
|
74492
|
+
if (f !== 0.0) {
|
|
74493
|
+
writer.writeFloat(
|
|
74494
|
+
4,
|
|
74495
|
+
f
|
|
74496
|
+
);
|
|
74497
|
+
}
|
|
74498
|
+
f = message.getMemoryUtilizationPct();
|
|
74499
|
+
if (f !== 0.0) {
|
|
74500
|
+
writer.writeFloat(
|
|
74501
|
+
5,
|
|
74502
|
+
f
|
|
74503
|
+
);
|
|
74504
|
+
}
|
|
74505
|
+
};
|
|
74506
|
+
|
|
74507
|
+
|
|
74508
|
+
/**
|
|
74509
|
+
* optional string uuid = 1;
|
|
74510
|
+
* @return {string}
|
|
74511
|
+
*/
|
|
74512
|
+
proto.clarifai.api.GpuMetrics.prototype.getUuid = function() {
|
|
74513
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
74514
|
+
};
|
|
74515
|
+
|
|
74516
|
+
|
|
74517
|
+
/**
|
|
74518
|
+
* @param {string} value
|
|
74519
|
+
* @return {!proto.clarifai.api.GpuMetrics} returns this
|
|
74520
|
+
*/
|
|
74521
|
+
proto.clarifai.api.GpuMetrics.prototype.setUuid = function(value) {
|
|
74522
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
74523
|
+
};
|
|
74524
|
+
|
|
74525
|
+
|
|
74526
|
+
/**
|
|
74527
|
+
* optional string model_name = 2;
|
|
74528
|
+
* @return {string}
|
|
74529
|
+
*/
|
|
74530
|
+
proto.clarifai.api.GpuMetrics.prototype.getModelName = function() {
|
|
74531
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
74532
|
+
};
|
|
74533
|
+
|
|
74534
|
+
|
|
74535
|
+
/**
|
|
74536
|
+
* @param {string} value
|
|
74537
|
+
* @return {!proto.clarifai.api.GpuMetrics} returns this
|
|
74538
|
+
*/
|
|
74539
|
+
proto.clarifai.api.GpuMetrics.prototype.setModelName = function(value) {
|
|
74540
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
74541
|
+
};
|
|
74542
|
+
|
|
74543
|
+
|
|
74544
|
+
/**
|
|
74545
|
+
* optional float utilization_pct = 3;
|
|
74546
|
+
* @return {number}
|
|
74547
|
+
*/
|
|
74548
|
+
proto.clarifai.api.GpuMetrics.prototype.getUtilizationPct = function() {
|
|
74549
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
74550
|
+
};
|
|
74551
|
+
|
|
74552
|
+
|
|
74553
|
+
/**
|
|
74554
|
+
* @param {number} value
|
|
74555
|
+
* @return {!proto.clarifai.api.GpuMetrics} returns this
|
|
74556
|
+
*/
|
|
74557
|
+
proto.clarifai.api.GpuMetrics.prototype.setUtilizationPct = function(value) {
|
|
74558
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
74559
|
+
};
|
|
74560
|
+
|
|
74561
|
+
|
|
74562
|
+
/**
|
|
74563
|
+
* optional float tensor_utilization_pct = 4;
|
|
74564
|
+
* @return {number}
|
|
74565
|
+
*/
|
|
74566
|
+
proto.clarifai.api.GpuMetrics.prototype.getTensorUtilizationPct = function() {
|
|
74567
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
74568
|
+
};
|
|
74569
|
+
|
|
74570
|
+
|
|
74571
|
+
/**
|
|
74572
|
+
* @param {number} value
|
|
74573
|
+
* @return {!proto.clarifai.api.GpuMetrics} returns this
|
|
74574
|
+
*/
|
|
74575
|
+
proto.clarifai.api.GpuMetrics.prototype.setTensorUtilizationPct = function(value) {
|
|
74576
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
74577
|
+
};
|
|
74578
|
+
|
|
74579
|
+
|
|
74580
|
+
/**
|
|
74581
|
+
* optional float memory_utilization_pct = 5;
|
|
74582
|
+
* @return {number}
|
|
74583
|
+
*/
|
|
74584
|
+
proto.clarifai.api.GpuMetrics.prototype.getMemoryUtilizationPct = function() {
|
|
74585
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
74586
|
+
};
|
|
74587
|
+
|
|
74588
|
+
|
|
74589
|
+
/**
|
|
74590
|
+
* @param {number} value
|
|
74591
|
+
* @return {!proto.clarifai.api.GpuMetrics} returns this
|
|
74592
|
+
*/
|
|
74593
|
+
proto.clarifai.api.GpuMetrics.prototype.setMemoryUtilizationPct = function(value) {
|
|
74594
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
74595
|
+
};
|
|
74596
|
+
|
|
74597
|
+
|
|
74598
|
+
|
|
73803
74599
|
|
|
73804
74600
|
|
|
73805
74601
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|