clarifai-web-grpc 11.8.2 → 11.8.4
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 +394 -10
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +394 -10
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +61 -0
- package/proto/clarifai/api/resources_pb.js +503 -10
- package/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
- package/proto/clarifai/api/status/status_code_pb.js +1 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.8.
|
|
1
|
+
11.8.4
|
|
@@ -283,6 +283,8 @@ goog.exportSymbol('proto.clarifai.api.Search', null, global);
|
|
|
283
283
|
goog.exportSymbol('proto.clarifai.api.Search.Metric', null, global);
|
|
284
284
|
goog.exportSymbol('proto.clarifai.api.Secret', null, global);
|
|
285
285
|
goog.exportSymbol('proto.clarifai.api.Span', null, global);
|
|
286
|
+
goog.exportSymbol('proto.clarifai.api.SpecialHandling', null, global);
|
|
287
|
+
goog.exportSymbol('proto.clarifai.api.SpecialHandling.Reason', null, global);
|
|
286
288
|
goog.exportSymbol('proto.clarifai.api.SplitIntoDatasets', null, global);
|
|
287
289
|
goog.exportSymbol('proto.clarifai.api.SplitIntoDatasets.DatasetSplitMethod', null, global);
|
|
288
290
|
goog.exportSymbol('proto.clarifai.api.StatTimeAggType', null, global);
|
|
@@ -1746,6 +1748,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1746
1748
|
*/
|
|
1747
1749
|
proto.clarifai.api.Model.displayName = 'proto.clarifai.api.Model';
|
|
1748
1750
|
}
|
|
1751
|
+
/**
|
|
1752
|
+
* Generated by JsPbCodeGenerator.
|
|
1753
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1754
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1755
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1756
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1757
|
+
* valid.
|
|
1758
|
+
* @extends {jspb.Message}
|
|
1759
|
+
* @constructor
|
|
1760
|
+
*/
|
|
1761
|
+
proto.clarifai.api.SpecialHandling = function (opt_data) {
|
|
1762
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1763
|
+
};
|
|
1764
|
+
goog.inherits(proto.clarifai.api.SpecialHandling, jspb.Message);
|
|
1765
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1766
|
+
/**
|
|
1767
|
+
* @public
|
|
1768
|
+
* @override
|
|
1769
|
+
*/
|
|
1770
|
+
proto.clarifai.api.SpecialHandling.displayName = 'proto.clarifai.api.SpecialHandling';
|
|
1771
|
+
}
|
|
1749
1772
|
/**
|
|
1750
1773
|
* Generated by JsPbCodeGenerator.
|
|
1751
1774
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4781,7 +4804,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4781
4804
|
* @constructor
|
|
4782
4805
|
*/
|
|
4783
4806
|
proto.clarifai.api.InstanceType = function (opt_data) {
|
|
4784
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
4807
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InstanceType.repeatedFields_, null);
|
|
4785
4808
|
};
|
|
4786
4809
|
goog.inherits(proto.clarifai.api.InstanceType, jspb.Message);
|
|
4787
4810
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -23058,6 +23081,166 @@ proto.clarifai.api.Model.prototype.clearOpenRouterInfo = function () {
|
|
|
23058
23081
|
proto.clarifai.api.Model.prototype.hasOpenRouterInfo = function () {
|
|
23059
23082
|
return jspb.Message.getField(this, 44) != null;
|
|
23060
23083
|
};
|
|
23084
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23085
|
+
/**
|
|
23086
|
+
* Creates an object representation of this proto.
|
|
23087
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
23088
|
+
* Optional fields that are not set will be set to undefined.
|
|
23089
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
23090
|
+
* For the list of reserved names please see:
|
|
23091
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
23092
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
23093
|
+
* JSPB instance for transitional soy proto support:
|
|
23094
|
+
* http://goto/soy-param-migration
|
|
23095
|
+
* @return {!Object}
|
|
23096
|
+
*/
|
|
23097
|
+
proto.clarifai.api.SpecialHandling.prototype.toObject = function (opt_includeInstance) {
|
|
23098
|
+
return proto.clarifai.api.SpecialHandling.toObject(opt_includeInstance, this);
|
|
23099
|
+
};
|
|
23100
|
+
/**
|
|
23101
|
+
* Static version of the {@see toObject} method.
|
|
23102
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
23103
|
+
* the JSPB instance for transitional soy proto support:
|
|
23104
|
+
* http://goto/soy-param-migration
|
|
23105
|
+
* @param {!proto.clarifai.api.SpecialHandling} msg The msg instance to transform.
|
|
23106
|
+
* @return {!Object}
|
|
23107
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23108
|
+
*/
|
|
23109
|
+
proto.clarifai.api.SpecialHandling.toObject = function (includeInstance, msg) {
|
|
23110
|
+
var f, obj = {
|
|
23111
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
23112
|
+
reason: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
23113
|
+
done: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
23114
|
+
};
|
|
23115
|
+
if (includeInstance) {
|
|
23116
|
+
obj.$jspbMessageInstance = msg;
|
|
23117
|
+
}
|
|
23118
|
+
return obj;
|
|
23119
|
+
};
|
|
23120
|
+
}
|
|
23121
|
+
/**
|
|
23122
|
+
* Deserializes binary data (in protobuf wire format).
|
|
23123
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
23124
|
+
* @return {!proto.clarifai.api.SpecialHandling}
|
|
23125
|
+
*/
|
|
23126
|
+
proto.clarifai.api.SpecialHandling.deserializeBinary = function (bytes) {
|
|
23127
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
23128
|
+
var msg = new proto.clarifai.api.SpecialHandling;
|
|
23129
|
+
return proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader(msg, reader);
|
|
23130
|
+
};
|
|
23131
|
+
/**
|
|
23132
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
23133
|
+
* given reader into the given message object.
|
|
23134
|
+
* @param {!proto.clarifai.api.SpecialHandling} msg The message object to deserialize into.
|
|
23135
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
23136
|
+
* @return {!proto.clarifai.api.SpecialHandling}
|
|
23137
|
+
*/
|
|
23138
|
+
proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader = function (msg, reader) {
|
|
23139
|
+
while (reader.nextField()) {
|
|
23140
|
+
if (reader.isEndGroup()) {
|
|
23141
|
+
break;
|
|
23142
|
+
}
|
|
23143
|
+
var field = reader.getFieldNumber();
|
|
23144
|
+
switch (field) {
|
|
23145
|
+
case 1:
|
|
23146
|
+
var value = /** @type {string} */ (reader.readString());
|
|
23147
|
+
msg.setId(value);
|
|
23148
|
+
break;
|
|
23149
|
+
case 2:
|
|
23150
|
+
var value = /** @type {!proto.clarifai.api.SpecialHandling.Reason} */ (reader.readEnum());
|
|
23151
|
+
msg.setReason(value);
|
|
23152
|
+
break;
|
|
23153
|
+
case 3:
|
|
23154
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
23155
|
+
msg.setDone(value);
|
|
23156
|
+
break;
|
|
23157
|
+
default:
|
|
23158
|
+
reader.skipField();
|
|
23159
|
+
break;
|
|
23160
|
+
}
|
|
23161
|
+
}
|
|
23162
|
+
return msg;
|
|
23163
|
+
};
|
|
23164
|
+
/**
|
|
23165
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23166
|
+
* @return {!Uint8Array}
|
|
23167
|
+
*/
|
|
23168
|
+
proto.clarifai.api.SpecialHandling.prototype.serializeBinary = function () {
|
|
23169
|
+
var writer = new jspb.BinaryWriter();
|
|
23170
|
+
proto.clarifai.api.SpecialHandling.serializeBinaryToWriter(this, writer);
|
|
23171
|
+
return writer.getResultBuffer();
|
|
23172
|
+
};
|
|
23173
|
+
/**
|
|
23174
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23175
|
+
* format), writing to the given BinaryWriter.
|
|
23176
|
+
* @param {!proto.clarifai.api.SpecialHandling} message
|
|
23177
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23178
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23179
|
+
*/
|
|
23180
|
+
proto.clarifai.api.SpecialHandling.serializeBinaryToWriter = function (message, writer) {
|
|
23181
|
+
var f = undefined;
|
|
23182
|
+
f = message.getId();
|
|
23183
|
+
if (f.length > 0) {
|
|
23184
|
+
writer.writeString(1, f);
|
|
23185
|
+
}
|
|
23186
|
+
f = message.getReason();
|
|
23187
|
+
if (f !== 0.0) {
|
|
23188
|
+
writer.writeEnum(2, f);
|
|
23189
|
+
}
|
|
23190
|
+
f = message.getDone();
|
|
23191
|
+
if (f) {
|
|
23192
|
+
writer.writeBool(3, f);
|
|
23193
|
+
}
|
|
23194
|
+
};
|
|
23195
|
+
/**
|
|
23196
|
+
* @enum {number}
|
|
23197
|
+
*/
|
|
23198
|
+
proto.clarifai.api.SpecialHandling.Reason = {
|
|
23199
|
+
REASON_NOT_SET: 0,
|
|
23200
|
+
CONTACT_SALES: 1
|
|
23201
|
+
};
|
|
23202
|
+
/**
|
|
23203
|
+
* optional string id = 1;
|
|
23204
|
+
* @return {string}
|
|
23205
|
+
*/
|
|
23206
|
+
proto.clarifai.api.SpecialHandling.prototype.getId = function () {
|
|
23207
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
23208
|
+
};
|
|
23209
|
+
/**
|
|
23210
|
+
* @param {string} value
|
|
23211
|
+
* @return {!proto.clarifai.api.SpecialHandling} returns this
|
|
23212
|
+
*/
|
|
23213
|
+
proto.clarifai.api.SpecialHandling.prototype.setId = function (value) {
|
|
23214
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
23215
|
+
};
|
|
23216
|
+
/**
|
|
23217
|
+
* optional Reason reason = 2;
|
|
23218
|
+
* @return {!proto.clarifai.api.SpecialHandling.Reason}
|
|
23219
|
+
*/
|
|
23220
|
+
proto.clarifai.api.SpecialHandling.prototype.getReason = function () {
|
|
23221
|
+
return /** @type {!proto.clarifai.api.SpecialHandling.Reason} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
23222
|
+
};
|
|
23223
|
+
/**
|
|
23224
|
+
* @param {!proto.clarifai.api.SpecialHandling.Reason} value
|
|
23225
|
+
* @return {!proto.clarifai.api.SpecialHandling} returns this
|
|
23226
|
+
*/
|
|
23227
|
+
proto.clarifai.api.SpecialHandling.prototype.setReason = function (value) {
|
|
23228
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
23229
|
+
};
|
|
23230
|
+
/**
|
|
23231
|
+
* optional bool done = 3;
|
|
23232
|
+
* @return {boolean}
|
|
23233
|
+
*/
|
|
23234
|
+
proto.clarifai.api.SpecialHandling.prototype.getDone = function () {
|
|
23235
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
23236
|
+
};
|
|
23237
|
+
/**
|
|
23238
|
+
* @param {boolean} value
|
|
23239
|
+
* @return {!proto.clarifai.api.SpecialHandling} returns this
|
|
23240
|
+
*/
|
|
23241
|
+
proto.clarifai.api.SpecialHandling.prototype.setDone = function (value) {
|
|
23242
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
23243
|
+
};
|
|
23061
23244
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23062
23245
|
/**
|
|
23063
23246
|
* Creates an object representation of this proto.
|
|
@@ -27286,7 +27469,7 @@ proto.clarifai.api.ModelQuery.prototype.setModelTypeId = function (value) {
|
|
|
27286
27469
|
* @private {!Array<number>}
|
|
27287
27470
|
* @const
|
|
27288
27471
|
*/
|
|
27289
|
-
proto.clarifai.api.ModelVersion.repeatedFields_ = [26];
|
|
27472
|
+
proto.clarifai.api.ModelVersion.repeatedFields_ = [26, 27];
|
|
27290
27473
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27291
27474
|
/**
|
|
27292
27475
|
* Creates an object representation of this proto.
|
|
@@ -27336,7 +27519,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
27336
27519
|
trainLog: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
27337
27520
|
inferenceComputeInfo: (f = msg.getInferenceComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
27338
27521
|
buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f),
|
|
27339
|
-
methodSignaturesList: jspb.Message.toObjectList(msg.getMethodSignaturesList(), proto.clarifai.api.MethodSignature.toObject, includeInstance)
|
|
27522
|
+
methodSignaturesList: jspb.Message.toObjectList(msg.getMethodSignaturesList(), proto.clarifai.api.MethodSignature.toObject, includeInstance),
|
|
27523
|
+
specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance)
|
|
27340
27524
|
};
|
|
27341
27525
|
if (includeInstance) {
|
|
27342
27526
|
obj.$jspbMessageInstance = msg;
|
|
@@ -27475,6 +27659,11 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function (msg, rea
|
|
|
27475
27659
|
reader.readMessage(value, proto.clarifai.api.MethodSignature.deserializeBinaryFromReader);
|
|
27476
27660
|
msg.addMethodSignatures(value);
|
|
27477
27661
|
break;
|
|
27662
|
+
case 27:
|
|
27663
|
+
var value = new proto.clarifai.api.SpecialHandling;
|
|
27664
|
+
reader.readMessage(value, proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
|
|
27665
|
+
msg.addSpecialHandling(value);
|
|
27666
|
+
break;
|
|
27478
27667
|
default:
|
|
27479
27668
|
reader.skipField();
|
|
27480
27669
|
break;
|
|
@@ -27592,6 +27781,10 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function (message, wri
|
|
|
27592
27781
|
if (f.length > 0) {
|
|
27593
27782
|
writer.writeRepeatedMessage(26, f, proto.clarifai.api.MethodSignature.serializeBinaryToWriter);
|
|
27594
27783
|
}
|
|
27784
|
+
f = message.getSpecialHandlingList();
|
|
27785
|
+
if (f.length > 0) {
|
|
27786
|
+
writer.writeRepeatedMessage(27, f, proto.clarifai.api.SpecialHandling.serializeBinaryToWriter);
|
|
27787
|
+
}
|
|
27595
27788
|
};
|
|
27596
27789
|
/**
|
|
27597
27790
|
* optional string id = 1;
|
|
@@ -28126,6 +28319,35 @@ proto.clarifai.api.ModelVersion.prototype.addMethodSignatures = function (opt_va
|
|
|
28126
28319
|
proto.clarifai.api.ModelVersion.prototype.clearMethodSignaturesList = function () {
|
|
28127
28320
|
return this.setMethodSignaturesList([]);
|
|
28128
28321
|
};
|
|
28322
|
+
/**
|
|
28323
|
+
* repeated SpecialHandling special_handling = 27;
|
|
28324
|
+
* @return {!Array<!proto.clarifai.api.SpecialHandling>}
|
|
28325
|
+
*/
|
|
28326
|
+
proto.clarifai.api.ModelVersion.prototype.getSpecialHandlingList = function () {
|
|
28327
|
+
return /** @type{!Array<!proto.clarifai.api.SpecialHandling>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.SpecialHandling, 27));
|
|
28328
|
+
};
|
|
28329
|
+
/**
|
|
28330
|
+
* @param {!Array<!proto.clarifai.api.SpecialHandling>} value
|
|
28331
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
28332
|
+
*/
|
|
28333
|
+
proto.clarifai.api.ModelVersion.prototype.setSpecialHandlingList = function (value) {
|
|
28334
|
+
return jspb.Message.setRepeatedWrapperField(this, 27, value);
|
|
28335
|
+
};
|
|
28336
|
+
/**
|
|
28337
|
+
* @param {!proto.clarifai.api.SpecialHandling=} opt_value
|
|
28338
|
+
* @param {number=} opt_index
|
|
28339
|
+
* @return {!proto.clarifai.api.SpecialHandling}
|
|
28340
|
+
*/
|
|
28341
|
+
proto.clarifai.api.ModelVersion.prototype.addSpecialHandling = function (opt_value, opt_index) {
|
|
28342
|
+
return jspb.Message.addToRepeatedWrapperField(this, 27, opt_value, proto.clarifai.api.SpecialHandling, opt_index);
|
|
28343
|
+
};
|
|
28344
|
+
/**
|
|
28345
|
+
* Clears the list making it empty but non-null.
|
|
28346
|
+
* @return {!proto.clarifai.api.ModelVersion} returns this
|
|
28347
|
+
*/
|
|
28348
|
+
proto.clarifai.api.ModelVersion.prototype.clearSpecialHandlingList = function () {
|
|
28349
|
+
return this.setSpecialHandlingList([]);
|
|
28350
|
+
};
|
|
28129
28351
|
/**
|
|
28130
28352
|
* List of repeated fields within this message type.
|
|
28131
28353
|
* @private {!Array<number>}
|
|
@@ -56634,7 +56856,7 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function (value) {
|
|
|
56634
56856
|
* @private {!Array<number>}
|
|
56635
56857
|
* @const
|
|
56636
56858
|
*/
|
|
56637
|
-
proto.clarifai.api.Runner.repeatedFields_ = [7];
|
|
56859
|
+
proto.clarifai.api.Runner.repeatedFields_ = [7, 12];
|
|
56638
56860
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56639
56861
|
/**
|
|
56640
56862
|
* Creates an object representation of this proto.
|
|
@@ -56671,7 +56893,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
56671
56893
|
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
56672
56894
|
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
56673
56895
|
computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
|
|
56674
|
-
numReplicas: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
56896
|
+
numReplicas: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
56897
|
+
specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance)
|
|
56675
56898
|
};
|
|
56676
56899
|
if (includeInstance) {
|
|
56677
56900
|
obj.$jspbMessageInstance = msg;
|
|
@@ -56749,6 +56972,11 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
56749
56972
|
var value = /** @type {number} */ (reader.readUint32());
|
|
56750
56973
|
msg.setNumReplicas(value);
|
|
56751
56974
|
break;
|
|
56975
|
+
case 12:
|
|
56976
|
+
var value = new proto.clarifai.api.SpecialHandling;
|
|
56977
|
+
reader.readMessage(value, proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
|
|
56978
|
+
msg.addSpecialHandling(value);
|
|
56979
|
+
break;
|
|
56752
56980
|
default:
|
|
56753
56981
|
reader.skipField();
|
|
56754
56982
|
break;
|
|
@@ -56814,6 +57042,10 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
|
|
|
56814
57042
|
if (f !== 0) {
|
|
56815
57043
|
writer.writeUint32(11, f);
|
|
56816
57044
|
}
|
|
57045
|
+
f = message.getSpecialHandlingList();
|
|
57046
|
+
if (f.length > 0) {
|
|
57047
|
+
writer.writeRepeatedMessage(12, f, proto.clarifai.api.SpecialHandling.serializeBinaryToWriter);
|
|
57048
|
+
}
|
|
56817
57049
|
};
|
|
56818
57050
|
/**
|
|
56819
57051
|
* optional string id = 1;
|
|
@@ -57054,12 +57286,41 @@ proto.clarifai.api.Runner.prototype.getNumReplicas = function () {
|
|
|
57054
57286
|
proto.clarifai.api.Runner.prototype.setNumReplicas = function (value) {
|
|
57055
57287
|
return jspb.Message.setProto3IntField(this, 11, value);
|
|
57056
57288
|
};
|
|
57289
|
+
/**
|
|
57290
|
+
* repeated SpecialHandling special_handling = 12;
|
|
57291
|
+
* @return {!Array<!proto.clarifai.api.SpecialHandling>}
|
|
57292
|
+
*/
|
|
57293
|
+
proto.clarifai.api.Runner.prototype.getSpecialHandlingList = function () {
|
|
57294
|
+
return /** @type{!Array<!proto.clarifai.api.SpecialHandling>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.SpecialHandling, 12));
|
|
57295
|
+
};
|
|
57296
|
+
/**
|
|
57297
|
+
* @param {!Array<!proto.clarifai.api.SpecialHandling>} value
|
|
57298
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
57299
|
+
*/
|
|
57300
|
+
proto.clarifai.api.Runner.prototype.setSpecialHandlingList = function (value) {
|
|
57301
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
57302
|
+
};
|
|
57303
|
+
/**
|
|
57304
|
+
* @param {!proto.clarifai.api.SpecialHandling=} opt_value
|
|
57305
|
+
* @param {number=} opt_index
|
|
57306
|
+
* @return {!proto.clarifai.api.SpecialHandling}
|
|
57307
|
+
*/
|
|
57308
|
+
proto.clarifai.api.Runner.prototype.addSpecialHandling = function (opt_value, opt_index) {
|
|
57309
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.SpecialHandling, opt_index);
|
|
57310
|
+
};
|
|
57311
|
+
/**
|
|
57312
|
+
* Clears the list making it empty but non-null.
|
|
57313
|
+
* @return {!proto.clarifai.api.Runner} returns this
|
|
57314
|
+
*/
|
|
57315
|
+
proto.clarifai.api.Runner.prototype.clearSpecialHandlingList = function () {
|
|
57316
|
+
return this.setSpecialHandlingList([]);
|
|
57317
|
+
};
|
|
57057
57318
|
/**
|
|
57058
57319
|
* List of repeated fields within this message type.
|
|
57059
57320
|
* @private {!Array<number>}
|
|
57060
57321
|
* @const
|
|
57061
57322
|
*/
|
|
57062
|
-
proto.clarifai.api.Nodepool.repeatedFields_ = [8];
|
|
57323
|
+
proto.clarifai.api.Nodepool.repeatedFields_ = [8, 15];
|
|
57063
57324
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57064
57325
|
/**
|
|
57065
57326
|
* Creates an object representation of this proto.
|
|
@@ -57099,7 +57360,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
57099
57360
|
enforcedMinInstances: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
57100
57361
|
enforcedMaxInstances: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
57101
57362
|
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
|
|
57102
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
57363
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
57364
|
+
specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance)
|
|
57103
57365
|
};
|
|
57104
57366
|
if (includeInstance) {
|
|
57105
57367
|
obj.$jspbMessageInstance = msg;
|
|
@@ -57190,6 +57452,11 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
|
|
|
57190
57452
|
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
57191
57453
|
msg.setMetadata(value);
|
|
57192
57454
|
break;
|
|
57455
|
+
case 15:
|
|
57456
|
+
var value = new proto.clarifai.api.SpecialHandling;
|
|
57457
|
+
reader.readMessage(value, proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
|
|
57458
|
+
msg.addSpecialHandling(value);
|
|
57459
|
+
break;
|
|
57193
57460
|
default:
|
|
57194
57461
|
reader.skipField();
|
|
57195
57462
|
break;
|
|
@@ -57267,6 +57534,10 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
|
|
|
57267
57534
|
if (f != null) {
|
|
57268
57535
|
writer.writeMessage(12, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
57269
57536
|
}
|
|
57537
|
+
f = message.getSpecialHandlingList();
|
|
57538
|
+
if (f.length > 0) {
|
|
57539
|
+
writer.writeRepeatedMessage(15, f, proto.clarifai.api.SpecialHandling.serializeBinaryToWriter);
|
|
57540
|
+
}
|
|
57270
57541
|
};
|
|
57271
57542
|
/**
|
|
57272
57543
|
* optional string id = 1;
|
|
@@ -57549,6 +57820,35 @@ proto.clarifai.api.Nodepool.prototype.clearMetadata = function () {
|
|
|
57549
57820
|
proto.clarifai.api.Nodepool.prototype.hasMetadata = function () {
|
|
57550
57821
|
return jspb.Message.getField(this, 12) != null;
|
|
57551
57822
|
};
|
|
57823
|
+
/**
|
|
57824
|
+
* repeated SpecialHandling special_handling = 15;
|
|
57825
|
+
* @return {!Array<!proto.clarifai.api.SpecialHandling>}
|
|
57826
|
+
*/
|
|
57827
|
+
proto.clarifai.api.Nodepool.prototype.getSpecialHandlingList = function () {
|
|
57828
|
+
return /** @type{!Array<!proto.clarifai.api.SpecialHandling>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.SpecialHandling, 15));
|
|
57829
|
+
};
|
|
57830
|
+
/**
|
|
57831
|
+
* @param {!Array<!proto.clarifai.api.SpecialHandling>} value
|
|
57832
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
57833
|
+
*/
|
|
57834
|
+
proto.clarifai.api.Nodepool.prototype.setSpecialHandlingList = function (value) {
|
|
57835
|
+
return jspb.Message.setRepeatedWrapperField(this, 15, value);
|
|
57836
|
+
};
|
|
57837
|
+
/**
|
|
57838
|
+
* @param {!proto.clarifai.api.SpecialHandling=} opt_value
|
|
57839
|
+
* @param {number=} opt_index
|
|
57840
|
+
* @return {!proto.clarifai.api.SpecialHandling}
|
|
57841
|
+
*/
|
|
57842
|
+
proto.clarifai.api.Nodepool.prototype.addSpecialHandling = function (opt_value, opt_index) {
|
|
57843
|
+
return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.clarifai.api.SpecialHandling, opt_index);
|
|
57844
|
+
};
|
|
57845
|
+
/**
|
|
57846
|
+
* Clears the list making it empty but non-null.
|
|
57847
|
+
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
57848
|
+
*/
|
|
57849
|
+
proto.clarifai.api.Nodepool.prototype.clearSpecialHandlingList = function () {
|
|
57850
|
+
return this.setSpecialHandlingList([]);
|
|
57851
|
+
};
|
|
57552
57852
|
/**
|
|
57553
57853
|
* List of repeated fields within this message type.
|
|
57554
57854
|
* @private {!Array<number>}
|
|
@@ -57687,6 +57987,12 @@ proto.clarifai.api.NodeCapacityType.prototype.addCapacityTypes = function (value
|
|
|
57687
57987
|
proto.clarifai.api.NodeCapacityType.prototype.clearCapacityTypesList = function () {
|
|
57688
57988
|
return this.setCapacityTypesList([]);
|
|
57689
57989
|
};
|
|
57990
|
+
/**
|
|
57991
|
+
* List of repeated fields within this message type.
|
|
57992
|
+
* @private {!Array<number>}
|
|
57993
|
+
* @const
|
|
57994
|
+
*/
|
|
57995
|
+
proto.clarifai.api.InstanceType.repeatedFields_ = [9];
|
|
57690
57996
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57691
57997
|
/**
|
|
57692
57998
|
* Creates an object representation of this proto.
|
|
@@ -57721,7 +58027,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
57721
58027
|
cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
|
|
57722
58028
|
region: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
57723
58029
|
allowedCapacityTypes: (f = msg.getAllowedCapacityTypes()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
|
|
57724
|
-
featureFlagGroup: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
58030
|
+
featureFlagGroup: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
58031
|
+
specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance)
|
|
57725
58032
|
};
|
|
57726
58033
|
if (includeInstance) {
|
|
57727
58034
|
obj.$jspbMessageInstance = msg;
|
|
@@ -57788,6 +58095,11 @@ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function (msg, rea
|
|
|
57788
58095
|
var value = /** @type {string} */ (reader.readString());
|
|
57789
58096
|
msg.setFeatureFlagGroup(value);
|
|
57790
58097
|
break;
|
|
58098
|
+
case 9:
|
|
58099
|
+
var value = new proto.clarifai.api.SpecialHandling;
|
|
58100
|
+
reader.readMessage(value, proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
|
|
58101
|
+
msg.addSpecialHandling(value);
|
|
58102
|
+
break;
|
|
57791
58103
|
default:
|
|
57792
58104
|
reader.skipField();
|
|
57793
58105
|
break;
|
|
@@ -57845,6 +58157,10 @@ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function (message, wri
|
|
|
57845
58157
|
if (f.length > 0) {
|
|
57846
58158
|
writer.writeString(8, f);
|
|
57847
58159
|
}
|
|
58160
|
+
f = message.getSpecialHandlingList();
|
|
58161
|
+
if (f.length > 0) {
|
|
58162
|
+
writer.writeRepeatedMessage(9, f, proto.clarifai.api.SpecialHandling.serializeBinaryToWriter);
|
|
58163
|
+
}
|
|
57848
58164
|
};
|
|
57849
58165
|
/**
|
|
57850
58166
|
* optional string id = 1;
|
|
@@ -58000,6 +58316,35 @@ proto.clarifai.api.InstanceType.prototype.getFeatureFlagGroup = function () {
|
|
|
58000
58316
|
proto.clarifai.api.InstanceType.prototype.setFeatureFlagGroup = function (value) {
|
|
58001
58317
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
58002
58318
|
};
|
|
58319
|
+
/**
|
|
58320
|
+
* repeated SpecialHandling special_handling = 9;
|
|
58321
|
+
* @return {!Array<!proto.clarifai.api.SpecialHandling>}
|
|
58322
|
+
*/
|
|
58323
|
+
proto.clarifai.api.InstanceType.prototype.getSpecialHandlingList = function () {
|
|
58324
|
+
return /** @type{!Array<!proto.clarifai.api.SpecialHandling>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.SpecialHandling, 9));
|
|
58325
|
+
};
|
|
58326
|
+
/**
|
|
58327
|
+
* @param {!Array<!proto.clarifai.api.SpecialHandling>} value
|
|
58328
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
58329
|
+
*/
|
|
58330
|
+
proto.clarifai.api.InstanceType.prototype.setSpecialHandlingList = function (value) {
|
|
58331
|
+
return jspb.Message.setRepeatedWrapperField(this, 9, value);
|
|
58332
|
+
};
|
|
58333
|
+
/**
|
|
58334
|
+
* @param {!proto.clarifai.api.SpecialHandling=} opt_value
|
|
58335
|
+
* @param {number=} opt_index
|
|
58336
|
+
* @return {!proto.clarifai.api.SpecialHandling}
|
|
58337
|
+
*/
|
|
58338
|
+
proto.clarifai.api.InstanceType.prototype.addSpecialHandling = function (opt_value, opt_index) {
|
|
58339
|
+
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.SpecialHandling, opt_index);
|
|
58340
|
+
};
|
|
58341
|
+
/**
|
|
58342
|
+
* Clears the list making it empty but non-null.
|
|
58343
|
+
* @return {!proto.clarifai.api.InstanceType} returns this
|
|
58344
|
+
*/
|
|
58345
|
+
proto.clarifai.api.InstanceType.prototype.clearSpecialHandlingList = function () {
|
|
58346
|
+
return this.setSpecialHandlingList([]);
|
|
58347
|
+
};
|
|
58003
58348
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
58004
58349
|
/**
|
|
58005
58350
|
* Creates an object representation of this proto.
|
|
@@ -59096,7 +59441,7 @@ proto.clarifai.api.AutoscaleConfig.prototype.setScaleToZeroDelaySeconds = functi
|
|
|
59096
59441
|
* @private {!Array<number>}
|
|
59097
59442
|
* @const
|
|
59098
59443
|
*/
|
|
59099
|
-
proto.clarifai.api.Deployment.repeatedFields_ = [4];
|
|
59444
|
+
proto.clarifai.api.Deployment.repeatedFields_ = [4, 15];
|
|
59100
59445
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59101
59446
|
/**
|
|
59102
59447
|
* Creates an object representation of this proto.
|
|
@@ -59135,7 +59480,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
59135
59480
|
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
59136
59481
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
59137
59482
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
59138
|
-
deployLatestVersion: jspb.Message.getBooleanFieldWithDefault(msg, 14, false)
|
|
59483
|
+
deployLatestVersion: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
|
|
59484
|
+
specialHandlingList: jspb.Message.toObjectList(msg.getSpecialHandlingList(), proto.clarifai.api.SpecialHandling.toObject, includeInstance)
|
|
59139
59485
|
};
|
|
59140
59486
|
if (includeInstance) {
|
|
59141
59487
|
obj.$jspbMessageInstance = msg;
|
|
@@ -59222,6 +59568,11 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function (msg, reade
|
|
|
59222
59568
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
59223
59569
|
msg.setDeployLatestVersion(value);
|
|
59224
59570
|
break;
|
|
59571
|
+
case 15:
|
|
59572
|
+
var value = new proto.clarifai.api.SpecialHandling;
|
|
59573
|
+
reader.readMessage(value, proto.clarifai.api.SpecialHandling.deserializeBinaryFromReader);
|
|
59574
|
+
msg.addSpecialHandling(value);
|
|
59575
|
+
break;
|
|
59225
59576
|
default:
|
|
59226
59577
|
reader.skipField();
|
|
59227
59578
|
break;
|
|
@@ -59295,6 +59646,10 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function (message, write
|
|
|
59295
59646
|
if (f) {
|
|
59296
59647
|
writer.writeBool(14, f);
|
|
59297
59648
|
}
|
|
59649
|
+
f = message.getSpecialHandlingList();
|
|
59650
|
+
if (f.length > 0) {
|
|
59651
|
+
writer.writeRepeatedMessage(15, f, proto.clarifai.api.SpecialHandling.serializeBinaryToWriter);
|
|
59652
|
+
}
|
|
59298
59653
|
};
|
|
59299
59654
|
/**
|
|
59300
59655
|
* @enum {number}
|
|
@@ -59577,6 +59932,35 @@ proto.clarifai.api.Deployment.prototype.getDeployLatestVersion = function () {
|
|
|
59577
59932
|
proto.clarifai.api.Deployment.prototype.setDeployLatestVersion = function (value) {
|
|
59578
59933
|
return jspb.Message.setProto3BooleanField(this, 14, value);
|
|
59579
59934
|
};
|
|
59935
|
+
/**
|
|
59936
|
+
* repeated SpecialHandling special_handling = 15;
|
|
59937
|
+
* @return {!Array<!proto.clarifai.api.SpecialHandling>}
|
|
59938
|
+
*/
|
|
59939
|
+
proto.clarifai.api.Deployment.prototype.getSpecialHandlingList = function () {
|
|
59940
|
+
return /** @type{!Array<!proto.clarifai.api.SpecialHandling>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.SpecialHandling, 15));
|
|
59941
|
+
};
|
|
59942
|
+
/**
|
|
59943
|
+
* @param {!Array<!proto.clarifai.api.SpecialHandling>} value
|
|
59944
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
59945
|
+
*/
|
|
59946
|
+
proto.clarifai.api.Deployment.prototype.setSpecialHandlingList = function (value) {
|
|
59947
|
+
return jspb.Message.setRepeatedWrapperField(this, 15, value);
|
|
59948
|
+
};
|
|
59949
|
+
/**
|
|
59950
|
+
* @param {!proto.clarifai.api.SpecialHandling=} opt_value
|
|
59951
|
+
* @param {number=} opt_index
|
|
59952
|
+
* @return {!proto.clarifai.api.SpecialHandling}
|
|
59953
|
+
*/
|
|
59954
|
+
proto.clarifai.api.Deployment.prototype.addSpecialHandling = function (opt_value, opt_index) {
|
|
59955
|
+
return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.clarifai.api.SpecialHandling, opt_index);
|
|
59956
|
+
};
|
|
59957
|
+
/**
|
|
59958
|
+
* Clears the list making it empty but non-null.
|
|
59959
|
+
* @return {!proto.clarifai.api.Deployment} returns this
|
|
59960
|
+
*/
|
|
59961
|
+
proto.clarifai.api.Deployment.prototype.clearSpecialHandlingList = function () {
|
|
59962
|
+
return this.setSpecialHandlingList([]);
|
|
59963
|
+
};
|
|
59580
59964
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
59581
59965
|
/**
|
|
59582
59966
|
* Creates an object representation of this proto.
|
|
@@ -181,6 +181,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
181
181
|
RUNNER_STREAM_END: 25606,
|
|
182
182
|
RUNNER_ITEM_CANCELLED: 25607,
|
|
183
183
|
RUNNER_PROCESSING_FAILED: 25608,
|
|
184
|
+
RUNNER_SPECIAL_HANDLING_NOT_COMPLETE: 25609,
|
|
184
185
|
NODEPOOL_DOES_NOT_EXIST: 25700,
|
|
185
186
|
NODEPOOL_INVALID_ARGUMENT: 25701,
|
|
186
187
|
NODEPOOL_INVALID_REQUEST: 25702,
|