clarifai-web-grpc 10.9.0 → 10.9.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 +439 -2
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +439 -2
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +62 -0
- package/proto/clarifai/api/resources_pb.js +543 -2
- package/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.9.
|
|
1
|
+
10.9.2
|
|
@@ -193,6 +193,7 @@ goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
|
|
|
193
193
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
|
|
194
194
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
|
|
195
195
|
goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
|
|
196
|
+
goog.exportSymbol('proto.clarifai.api.NDArray', null, global);
|
|
196
197
|
goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
|
|
197
198
|
goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
|
|
198
199
|
goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
|
|
@@ -204,6 +205,7 @@ goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
|
|
|
204
205
|
goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global);
|
|
205
206
|
goog.exportSymbol('proto.clarifai.api.OverwriteGeo', null, global);
|
|
206
207
|
goog.exportSymbol('proto.clarifai.api.PCAProjectionComparator', null, global);
|
|
208
|
+
goog.exportSymbol('proto.clarifai.api.Part', null, global);
|
|
207
209
|
goog.exportSymbol('proto.clarifai.api.Password', null, global);
|
|
208
210
|
goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global);
|
|
209
211
|
goog.exportSymbol('proto.clarifai.api.PatchAction', null, global);
|
|
@@ -887,6 +889,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
887
889
|
*/
|
|
888
890
|
proto.clarifai.api.Data.displayName = 'proto.clarifai.api.Data';
|
|
889
891
|
}
|
|
892
|
+
/**
|
|
893
|
+
* Generated by JsPbCodeGenerator.
|
|
894
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
895
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
896
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
897
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
898
|
+
* valid.
|
|
899
|
+
* @extends {jspb.Message}
|
|
900
|
+
* @constructor
|
|
901
|
+
*/
|
|
902
|
+
proto.clarifai.api.Part = function (opt_data) {
|
|
903
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
904
|
+
};
|
|
905
|
+
goog.inherits(proto.clarifai.api.Part, jspb.Message);
|
|
906
|
+
if (goog.DEBUG && !COMPILED) {
|
|
907
|
+
/**
|
|
908
|
+
* @public
|
|
909
|
+
* @override
|
|
910
|
+
*/
|
|
911
|
+
proto.clarifai.api.Part.displayName = 'proto.clarifai.api.Part';
|
|
912
|
+
}
|
|
890
913
|
/**
|
|
891
914
|
* Generated by JsPbCodeGenerator.
|
|
892
915
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -992,6 +1015,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
992
1015
|
*/
|
|
993
1016
|
proto.clarifai.api.Frame.displayName = 'proto.clarifai.api.Frame';
|
|
994
1017
|
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Generated by JsPbCodeGenerator.
|
|
1020
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1021
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1022
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1023
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1024
|
+
* valid.
|
|
1025
|
+
* @extends {jspb.Message}
|
|
1026
|
+
* @constructor
|
|
1027
|
+
*/
|
|
1028
|
+
proto.clarifai.api.NDArray = function (opt_data) {
|
|
1029
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.NDArray.repeatedFields_, null);
|
|
1030
|
+
};
|
|
1031
|
+
goog.inherits(proto.clarifai.api.NDArray, jspb.Message);
|
|
1032
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1033
|
+
/**
|
|
1034
|
+
* @public
|
|
1035
|
+
* @override
|
|
1036
|
+
*/
|
|
1037
|
+
proto.clarifai.api.NDArray.displayName = 'proto.clarifai.api.NDArray';
|
|
1038
|
+
}
|
|
995
1039
|
/**
|
|
996
1040
|
* Generated by JsPbCodeGenerator.
|
|
997
1041
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -11186,7 +11230,7 @@ proto.clarifai.api.ConceptLanguage.prototype.setDefinition = function (value) {
|
|
|
11186
11230
|
* @private {!Array<number>}
|
|
11187
11231
|
* @const
|
|
11188
11232
|
*/
|
|
11189
|
-
proto.clarifai.api.Data.repeatedFields_ = [3, 7, 8, 9, 11, 12, 15, 16, 17, 18];
|
|
11233
|
+
proto.clarifai.api.Data.repeatedFields_ = [3, 7, 8, 9, 11, 12, 15, 16, 17, 18, 19];
|
|
11190
11234
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11191
11235
|
/**
|
|
11192
11236
|
* Creates an object representation of this proto.
|
|
@@ -11229,7 +11273,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
11229
11273
|
tracksList: jspb.Message.toObjectList(msg.getTracksList(), proto.clarifai.api.Track.toObject, includeInstance),
|
|
11230
11274
|
timeSegmentsList: jspb.Message.toObjectList(msg.getTimeSegmentsList(), proto.clarifai.api.TimeSegment.toObject, includeInstance),
|
|
11231
11275
|
hitsList: jspb.Message.toObjectList(msg.getHitsList(), proto.clarifai.api.Hit.toObject, includeInstance),
|
|
11232
|
-
heatmapsList: jspb.Message.toObjectList(msg.getHeatmapsList(), proto.clarifai.api.Image.toObject, includeInstance)
|
|
11276
|
+
heatmapsList: jspb.Message.toObjectList(msg.getHeatmapsList(), proto.clarifai.api.Image.toObject, includeInstance),
|
|
11277
|
+
partsList: jspb.Message.toObjectList(msg.getPartsList(), proto.clarifai.api.Part.toObject, includeInstance),
|
|
11278
|
+
ndarray: (f = msg.getNdarray()) && proto.clarifai.api.NDArray.toObject(includeInstance, f)
|
|
11233
11279
|
};
|
|
11234
11280
|
if (includeInstance) {
|
|
11235
11281
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11341,6 +11387,16 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
11341
11387
|
reader.readMessage(value, proto.clarifai.api.Image.deserializeBinaryFromReader);
|
|
11342
11388
|
msg.addHeatmaps(value);
|
|
11343
11389
|
break;
|
|
11390
|
+
case 19:
|
|
11391
|
+
var value = new proto.clarifai.api.Part;
|
|
11392
|
+
reader.readMessage(value, proto.clarifai.api.Part.deserializeBinaryFromReader);
|
|
11393
|
+
msg.addParts(value);
|
|
11394
|
+
break;
|
|
11395
|
+
case 20:
|
|
11396
|
+
var value = new proto.clarifai.api.NDArray;
|
|
11397
|
+
reader.readMessage(value, proto.clarifai.api.NDArray.deserializeBinaryFromReader);
|
|
11398
|
+
msg.setNdarray(value);
|
|
11399
|
+
break;
|
|
11344
11400
|
default:
|
|
11345
11401
|
reader.skipField();
|
|
11346
11402
|
break;
|
|
@@ -11430,6 +11486,14 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function (message, writer) {
|
|
|
11430
11486
|
if (f.length > 0) {
|
|
11431
11487
|
writer.writeRepeatedMessage(18, f, proto.clarifai.api.Image.serializeBinaryToWriter);
|
|
11432
11488
|
}
|
|
11489
|
+
f = message.getPartsList();
|
|
11490
|
+
if (f.length > 0) {
|
|
11491
|
+
writer.writeRepeatedMessage(19, f, proto.clarifai.api.Part.serializeBinaryToWriter);
|
|
11492
|
+
}
|
|
11493
|
+
f = message.getNdarray();
|
|
11494
|
+
if (f != null) {
|
|
11495
|
+
writer.writeMessage(20, f, proto.clarifai.api.NDArray.serializeBinaryToWriter);
|
|
11496
|
+
}
|
|
11433
11497
|
};
|
|
11434
11498
|
/**
|
|
11435
11499
|
* optional Image image = 1;
|
|
@@ -11889,6 +11953,185 @@ proto.clarifai.api.Data.prototype.addHeatmaps = function (opt_value, opt_index)
|
|
|
11889
11953
|
proto.clarifai.api.Data.prototype.clearHeatmapsList = function () {
|
|
11890
11954
|
return this.setHeatmapsList([]);
|
|
11891
11955
|
};
|
|
11956
|
+
/**
|
|
11957
|
+
* repeated Part parts = 19;
|
|
11958
|
+
* @return {!Array<!proto.clarifai.api.Part>}
|
|
11959
|
+
*/
|
|
11960
|
+
proto.clarifai.api.Data.prototype.getPartsList = function () {
|
|
11961
|
+
return /** @type{!Array<!proto.clarifai.api.Part>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Part, 19));
|
|
11962
|
+
};
|
|
11963
|
+
/**
|
|
11964
|
+
* @param {!Array<!proto.clarifai.api.Part>} value
|
|
11965
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
11966
|
+
*/
|
|
11967
|
+
proto.clarifai.api.Data.prototype.setPartsList = function (value) {
|
|
11968
|
+
return jspb.Message.setRepeatedWrapperField(this, 19, value);
|
|
11969
|
+
};
|
|
11970
|
+
/**
|
|
11971
|
+
* @param {!proto.clarifai.api.Part=} opt_value
|
|
11972
|
+
* @param {number=} opt_index
|
|
11973
|
+
* @return {!proto.clarifai.api.Part}
|
|
11974
|
+
*/
|
|
11975
|
+
proto.clarifai.api.Data.prototype.addParts = function (opt_value, opt_index) {
|
|
11976
|
+
return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.clarifai.api.Part, opt_index);
|
|
11977
|
+
};
|
|
11978
|
+
/**
|
|
11979
|
+
* Clears the list making it empty but non-null.
|
|
11980
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
11981
|
+
*/
|
|
11982
|
+
proto.clarifai.api.Data.prototype.clearPartsList = function () {
|
|
11983
|
+
return this.setPartsList([]);
|
|
11984
|
+
};
|
|
11985
|
+
/**
|
|
11986
|
+
* optional NDArray ndarray = 20;
|
|
11987
|
+
* @return {?proto.clarifai.api.NDArray}
|
|
11988
|
+
*/
|
|
11989
|
+
proto.clarifai.api.Data.prototype.getNdarray = function () {
|
|
11990
|
+
return /** @type{?proto.clarifai.api.NDArray} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.NDArray, 20));
|
|
11991
|
+
};
|
|
11992
|
+
/**
|
|
11993
|
+
* @param {?proto.clarifai.api.NDArray|undefined} value
|
|
11994
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
11995
|
+
*/
|
|
11996
|
+
proto.clarifai.api.Data.prototype.setNdarray = function (value) {
|
|
11997
|
+
return jspb.Message.setWrapperField(this, 20, value);
|
|
11998
|
+
};
|
|
11999
|
+
/**
|
|
12000
|
+
* Clears the message field making it undefined.
|
|
12001
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
12002
|
+
*/
|
|
12003
|
+
proto.clarifai.api.Data.prototype.clearNdarray = function () {
|
|
12004
|
+
return this.setNdarray(undefined);
|
|
12005
|
+
};
|
|
12006
|
+
/**
|
|
12007
|
+
* Returns whether this field is set.
|
|
12008
|
+
* @return {boolean}
|
|
12009
|
+
*/
|
|
12010
|
+
proto.clarifai.api.Data.prototype.hasNdarray = function () {
|
|
12011
|
+
return jspb.Message.getField(this, 20) != null;
|
|
12012
|
+
};
|
|
12013
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12014
|
+
/**
|
|
12015
|
+
* Creates an object representation of this proto.
|
|
12016
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12017
|
+
* Optional fields that are not set will be set to undefined.
|
|
12018
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12019
|
+
* For the list of reserved names please see:
|
|
12020
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12021
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12022
|
+
* JSPB instance for transitional soy proto support:
|
|
12023
|
+
* http://goto/soy-param-migration
|
|
12024
|
+
* @return {!Object}
|
|
12025
|
+
*/
|
|
12026
|
+
proto.clarifai.api.Part.prototype.toObject = function (opt_includeInstance) {
|
|
12027
|
+
return proto.clarifai.api.Part.toObject(opt_includeInstance, this);
|
|
12028
|
+
};
|
|
12029
|
+
/**
|
|
12030
|
+
* Static version of the {@see toObject} method.
|
|
12031
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12032
|
+
* the JSPB instance for transitional soy proto support:
|
|
12033
|
+
* http://goto/soy-param-migration
|
|
12034
|
+
* @param {!proto.clarifai.api.Part} msg The msg instance to transform.
|
|
12035
|
+
* @return {!Object}
|
|
12036
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12037
|
+
*/
|
|
12038
|
+
proto.clarifai.api.Part.toObject = function (includeInstance, msg) {
|
|
12039
|
+
var f, obj = {
|
|
12040
|
+
data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f)
|
|
12041
|
+
};
|
|
12042
|
+
if (includeInstance) {
|
|
12043
|
+
obj.$jspbMessageInstance = msg;
|
|
12044
|
+
}
|
|
12045
|
+
return obj;
|
|
12046
|
+
};
|
|
12047
|
+
}
|
|
12048
|
+
/**
|
|
12049
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12050
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12051
|
+
* @return {!proto.clarifai.api.Part}
|
|
12052
|
+
*/
|
|
12053
|
+
proto.clarifai.api.Part.deserializeBinary = function (bytes) {
|
|
12054
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12055
|
+
var msg = new proto.clarifai.api.Part;
|
|
12056
|
+
return proto.clarifai.api.Part.deserializeBinaryFromReader(msg, reader);
|
|
12057
|
+
};
|
|
12058
|
+
/**
|
|
12059
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12060
|
+
* given reader into the given message object.
|
|
12061
|
+
* @param {!proto.clarifai.api.Part} msg The message object to deserialize into.
|
|
12062
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12063
|
+
* @return {!proto.clarifai.api.Part}
|
|
12064
|
+
*/
|
|
12065
|
+
proto.clarifai.api.Part.deserializeBinaryFromReader = function (msg, reader) {
|
|
12066
|
+
while (reader.nextField()) {
|
|
12067
|
+
if (reader.isEndGroup()) {
|
|
12068
|
+
break;
|
|
12069
|
+
}
|
|
12070
|
+
var field = reader.getFieldNumber();
|
|
12071
|
+
switch (field) {
|
|
12072
|
+
case 1:
|
|
12073
|
+
var value = new proto.clarifai.api.Data;
|
|
12074
|
+
reader.readMessage(value, proto.clarifai.api.Data.deserializeBinaryFromReader);
|
|
12075
|
+
msg.setData(value);
|
|
12076
|
+
break;
|
|
12077
|
+
default:
|
|
12078
|
+
reader.skipField();
|
|
12079
|
+
break;
|
|
12080
|
+
}
|
|
12081
|
+
}
|
|
12082
|
+
return msg;
|
|
12083
|
+
};
|
|
12084
|
+
/**
|
|
12085
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12086
|
+
* @return {!Uint8Array}
|
|
12087
|
+
*/
|
|
12088
|
+
proto.clarifai.api.Part.prototype.serializeBinary = function () {
|
|
12089
|
+
var writer = new jspb.BinaryWriter();
|
|
12090
|
+
proto.clarifai.api.Part.serializeBinaryToWriter(this, writer);
|
|
12091
|
+
return writer.getResultBuffer();
|
|
12092
|
+
};
|
|
12093
|
+
/**
|
|
12094
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12095
|
+
* format), writing to the given BinaryWriter.
|
|
12096
|
+
* @param {!proto.clarifai.api.Part} message
|
|
12097
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12098
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12099
|
+
*/
|
|
12100
|
+
proto.clarifai.api.Part.serializeBinaryToWriter = function (message, writer) {
|
|
12101
|
+
var f = undefined;
|
|
12102
|
+
f = message.getData();
|
|
12103
|
+
if (f != null) {
|
|
12104
|
+
writer.writeMessage(1, f, proto.clarifai.api.Data.serializeBinaryToWriter);
|
|
12105
|
+
}
|
|
12106
|
+
};
|
|
12107
|
+
/**
|
|
12108
|
+
* optional Data data = 1;
|
|
12109
|
+
* @return {?proto.clarifai.api.Data}
|
|
12110
|
+
*/
|
|
12111
|
+
proto.clarifai.api.Part.prototype.getData = function () {
|
|
12112
|
+
return /** @type{?proto.clarifai.api.Data} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 1));
|
|
12113
|
+
};
|
|
12114
|
+
/**
|
|
12115
|
+
* @param {?proto.clarifai.api.Data|undefined} value
|
|
12116
|
+
* @return {!proto.clarifai.api.Part} returns this
|
|
12117
|
+
*/
|
|
12118
|
+
proto.clarifai.api.Part.prototype.setData = function (value) {
|
|
12119
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
12120
|
+
};
|
|
12121
|
+
/**
|
|
12122
|
+
* Clears the message field making it undefined.
|
|
12123
|
+
* @return {!proto.clarifai.api.Part} returns this
|
|
12124
|
+
*/
|
|
12125
|
+
proto.clarifai.api.Part.prototype.clearData = function () {
|
|
12126
|
+
return this.setData(undefined);
|
|
12127
|
+
};
|
|
12128
|
+
/**
|
|
12129
|
+
* Returns whether this field is set.
|
|
12130
|
+
* @return {boolean}
|
|
12131
|
+
*/
|
|
12132
|
+
proto.clarifai.api.Part.prototype.hasData = function () {
|
|
12133
|
+
return jspb.Message.getField(this, 1) != null;
|
|
12134
|
+
};
|
|
11892
12135
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11893
12136
|
/**
|
|
11894
12137
|
* Creates an object representation of this proto.
|
|
@@ -12964,6 +13207,200 @@ proto.clarifai.api.Frame.prototype.getId = function () {
|
|
|
12964
13207
|
proto.clarifai.api.Frame.prototype.setId = function (value) {
|
|
12965
13208
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
12966
13209
|
};
|
|
13210
|
+
/**
|
|
13211
|
+
* List of repeated fields within this message type.
|
|
13212
|
+
* @private {!Array<number>}
|
|
13213
|
+
* @const
|
|
13214
|
+
*/
|
|
13215
|
+
proto.clarifai.api.NDArray.repeatedFields_ = [2];
|
|
13216
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13217
|
+
/**
|
|
13218
|
+
* Creates an object representation of this proto.
|
|
13219
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13220
|
+
* Optional fields that are not set will be set to undefined.
|
|
13221
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13222
|
+
* For the list of reserved names please see:
|
|
13223
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13224
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13225
|
+
* JSPB instance for transitional soy proto support:
|
|
13226
|
+
* http://goto/soy-param-migration
|
|
13227
|
+
* @return {!Object}
|
|
13228
|
+
*/
|
|
13229
|
+
proto.clarifai.api.NDArray.prototype.toObject = function (opt_includeInstance) {
|
|
13230
|
+
return proto.clarifai.api.NDArray.toObject(opt_includeInstance, this);
|
|
13231
|
+
};
|
|
13232
|
+
/**
|
|
13233
|
+
* Static version of the {@see toObject} method.
|
|
13234
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13235
|
+
* the JSPB instance for transitional soy proto support:
|
|
13236
|
+
* http://goto/soy-param-migration
|
|
13237
|
+
* @param {!proto.clarifai.api.NDArray} msg The msg instance to transform.
|
|
13238
|
+
* @return {!Object}
|
|
13239
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13240
|
+
*/
|
|
13241
|
+
proto.clarifai.api.NDArray.toObject = function (includeInstance, msg) {
|
|
13242
|
+
var f, obj = {
|
|
13243
|
+
buffer: msg.getBuffer_asB64(),
|
|
13244
|
+
shapeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
13245
|
+
dtype: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
13246
|
+
};
|
|
13247
|
+
if (includeInstance) {
|
|
13248
|
+
obj.$jspbMessageInstance = msg;
|
|
13249
|
+
}
|
|
13250
|
+
return obj;
|
|
13251
|
+
};
|
|
13252
|
+
}
|
|
13253
|
+
/**
|
|
13254
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13255
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13256
|
+
* @return {!proto.clarifai.api.NDArray}
|
|
13257
|
+
*/
|
|
13258
|
+
proto.clarifai.api.NDArray.deserializeBinary = function (bytes) {
|
|
13259
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13260
|
+
var msg = new proto.clarifai.api.NDArray;
|
|
13261
|
+
return proto.clarifai.api.NDArray.deserializeBinaryFromReader(msg, reader);
|
|
13262
|
+
};
|
|
13263
|
+
/**
|
|
13264
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13265
|
+
* given reader into the given message object.
|
|
13266
|
+
* @param {!proto.clarifai.api.NDArray} msg The message object to deserialize into.
|
|
13267
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13268
|
+
* @return {!proto.clarifai.api.NDArray}
|
|
13269
|
+
*/
|
|
13270
|
+
proto.clarifai.api.NDArray.deserializeBinaryFromReader = function (msg, reader) {
|
|
13271
|
+
while (reader.nextField()) {
|
|
13272
|
+
if (reader.isEndGroup()) {
|
|
13273
|
+
break;
|
|
13274
|
+
}
|
|
13275
|
+
var field = reader.getFieldNumber();
|
|
13276
|
+
switch (field) {
|
|
13277
|
+
case 1:
|
|
13278
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
13279
|
+
msg.setBuffer(value);
|
|
13280
|
+
break;
|
|
13281
|
+
case 2:
|
|
13282
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
|
|
13283
|
+
for (var i = 0; i < values.length; i++) {
|
|
13284
|
+
msg.addShape(values[i]);
|
|
13285
|
+
}
|
|
13286
|
+
break;
|
|
13287
|
+
case 3:
|
|
13288
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13289
|
+
msg.setDtype(value);
|
|
13290
|
+
break;
|
|
13291
|
+
default:
|
|
13292
|
+
reader.skipField();
|
|
13293
|
+
break;
|
|
13294
|
+
}
|
|
13295
|
+
}
|
|
13296
|
+
return msg;
|
|
13297
|
+
};
|
|
13298
|
+
/**
|
|
13299
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13300
|
+
* @return {!Uint8Array}
|
|
13301
|
+
*/
|
|
13302
|
+
proto.clarifai.api.NDArray.prototype.serializeBinary = function () {
|
|
13303
|
+
var writer = new jspb.BinaryWriter();
|
|
13304
|
+
proto.clarifai.api.NDArray.serializeBinaryToWriter(this, writer);
|
|
13305
|
+
return writer.getResultBuffer();
|
|
13306
|
+
};
|
|
13307
|
+
/**
|
|
13308
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13309
|
+
* format), writing to the given BinaryWriter.
|
|
13310
|
+
* @param {!proto.clarifai.api.NDArray} message
|
|
13311
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13312
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13313
|
+
*/
|
|
13314
|
+
proto.clarifai.api.NDArray.serializeBinaryToWriter = function (message, writer) {
|
|
13315
|
+
var f = undefined;
|
|
13316
|
+
f = message.getBuffer_asU8();
|
|
13317
|
+
if (f.length > 0) {
|
|
13318
|
+
writer.writeBytes(1, f);
|
|
13319
|
+
}
|
|
13320
|
+
f = message.getShapeList();
|
|
13321
|
+
if (f.length > 0) {
|
|
13322
|
+
writer.writePackedUint32(2, f);
|
|
13323
|
+
}
|
|
13324
|
+
f = message.getDtype();
|
|
13325
|
+
if (f.length > 0) {
|
|
13326
|
+
writer.writeString(3, f);
|
|
13327
|
+
}
|
|
13328
|
+
};
|
|
13329
|
+
/**
|
|
13330
|
+
* optional bytes buffer = 1;
|
|
13331
|
+
* @return {string}
|
|
13332
|
+
*/
|
|
13333
|
+
proto.clarifai.api.NDArray.prototype.getBuffer = function () {
|
|
13334
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
13335
|
+
};
|
|
13336
|
+
/**
|
|
13337
|
+
* optional bytes buffer = 1;
|
|
13338
|
+
* This is a type-conversion wrapper around `getBuffer()`
|
|
13339
|
+
* @return {string}
|
|
13340
|
+
*/
|
|
13341
|
+
proto.clarifai.api.NDArray.prototype.getBuffer_asB64 = function () {
|
|
13342
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getBuffer()));
|
|
13343
|
+
};
|
|
13344
|
+
/**
|
|
13345
|
+
* optional bytes buffer = 1;
|
|
13346
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
13347
|
+
* @see http://caniuse.com/Uint8Array
|
|
13348
|
+
* This is a type-conversion wrapper around `getBuffer()`
|
|
13349
|
+
* @return {!Uint8Array}
|
|
13350
|
+
*/
|
|
13351
|
+
proto.clarifai.api.NDArray.prototype.getBuffer_asU8 = function () {
|
|
13352
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getBuffer()));
|
|
13353
|
+
};
|
|
13354
|
+
/**
|
|
13355
|
+
* @param {!(string|Uint8Array)} value
|
|
13356
|
+
* @return {!proto.clarifai.api.NDArray} returns this
|
|
13357
|
+
*/
|
|
13358
|
+
proto.clarifai.api.NDArray.prototype.setBuffer = function (value) {
|
|
13359
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
13360
|
+
};
|
|
13361
|
+
/**
|
|
13362
|
+
* repeated uint32 shape = 2;
|
|
13363
|
+
* @return {!Array<number>}
|
|
13364
|
+
*/
|
|
13365
|
+
proto.clarifai.api.NDArray.prototype.getShapeList = function () {
|
|
13366
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
13367
|
+
};
|
|
13368
|
+
/**
|
|
13369
|
+
* @param {!Array<number>} value
|
|
13370
|
+
* @return {!proto.clarifai.api.NDArray} returns this
|
|
13371
|
+
*/
|
|
13372
|
+
proto.clarifai.api.NDArray.prototype.setShapeList = function (value) {
|
|
13373
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
13374
|
+
};
|
|
13375
|
+
/**
|
|
13376
|
+
* @param {number} value
|
|
13377
|
+
* @param {number=} opt_index
|
|
13378
|
+
* @return {!proto.clarifai.api.NDArray} returns this
|
|
13379
|
+
*/
|
|
13380
|
+
proto.clarifai.api.NDArray.prototype.addShape = function (value, opt_index) {
|
|
13381
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
13382
|
+
};
|
|
13383
|
+
/**
|
|
13384
|
+
* Clears the list making it empty but non-null.
|
|
13385
|
+
* @return {!proto.clarifai.api.NDArray} returns this
|
|
13386
|
+
*/
|
|
13387
|
+
proto.clarifai.api.NDArray.prototype.clearShapeList = function () {
|
|
13388
|
+
return this.setShapeList([]);
|
|
13389
|
+
};
|
|
13390
|
+
/**
|
|
13391
|
+
* optional string dtype = 3;
|
|
13392
|
+
* @return {string}
|
|
13393
|
+
*/
|
|
13394
|
+
proto.clarifai.api.NDArray.prototype.getDtype = function () {
|
|
13395
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
13396
|
+
};
|
|
13397
|
+
/**
|
|
13398
|
+
* @param {string} value
|
|
13399
|
+
* @return {!proto.clarifai.api.NDArray} returns this
|
|
13400
|
+
*/
|
|
13401
|
+
proto.clarifai.api.NDArray.prototype.setDtype = function (value) {
|
|
13402
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
13403
|
+
};
|
|
12967
13404
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12968
13405
|
/**
|
|
12969
13406
|
* Creates an object representation of this proto.
|
|
@@ -385,6 +385,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
385
385
|
UPLOAD_CANCELED: 68005,
|
|
386
386
|
UPLOAD_CONFLICT: 68006,
|
|
387
387
|
BILLING_INVALID_INFO: 69000,
|
|
388
|
+
LOG_ENTRIES_INVALID_REQUEST: 70000,
|
|
388
389
|
INTERNAL_SERVER_ISSUE: 98004,
|
|
389
390
|
INTERNAL_FETCHING_ISSUE: 98005,
|
|
390
391
|
INTERNAL_DATABASE_ISSUE: 98006,
|
|
@@ -319,7 +319,8 @@ proto.clarifai.auth.scope.S = {
|
|
|
319
319
|
DEPLOYMENTS_ADD: 145,
|
|
320
320
|
DEPLOYMENTS_DELETE: 146,
|
|
321
321
|
INSTANCETYPES_GET: 148,
|
|
322
|
-
AUDITLOGS_GET: 149
|
|
322
|
+
AUDITLOGS_GET: 149,
|
|
323
|
+
LOGENTRIES_GET: 151
|
|
323
324
|
};
|
|
324
325
|
/**
|
|
325
326
|
* A tuple of {field number, class constructor} for the extension
|