clarifai-web-grpc 12.0.3 → 12.0.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/service_pb.js +2 -92
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +2 -92
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +1 -0
- package/package.json +1 -1
- package/proto/clarifai/api/service_pb.d.ts +0 -14
- package/proto/clarifai/api/service_pb.js +2 -118
- 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
|
-
12.0.
|
|
1
|
+
12.0.4
|
|
@@ -612,7 +612,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
612
612
|
* @constructor
|
|
613
613
|
*/
|
|
614
614
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest = function (opt_data) {
|
|
615
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
615
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
616
616
|
};
|
|
617
617
|
goog.inherits(proto.clarifai.api.StreamLivestreamAnnotationsRequest, jspb.Message);
|
|
618
618
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -11211,12 +11211,6 @@ proto.clarifai.api.StreamAnnotationsRequest.prototype.clearWorker = function ()
|
|
|
11211
11211
|
proto.clarifai.api.StreamAnnotationsRequest.prototype.hasWorker = function () {
|
|
11212
11212
|
return jspb.Message.getField(this, 9) != null;
|
|
11213
11213
|
};
|
|
11214
|
-
/**
|
|
11215
|
-
* List of repeated fields within this message type.
|
|
11216
|
-
* @private {!Array<number>}
|
|
11217
|
-
* @const
|
|
11218
|
-
*/
|
|
11219
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.repeatedFields_ = [4];
|
|
11220
11214
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11221
11215
|
/**
|
|
11222
11216
|
* Creates an object representation of this proto.
|
|
@@ -11245,10 +11239,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
11245
11239
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest.toObject = function (includeInstance, msg) {
|
|
11246
11240
|
var f, obj = {
|
|
11247
11241
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11248
|
-
inputId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
11249
|
-
taskId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11250
|
-
trackIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
11251
|
-
annotationType: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
11242
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
11252
11243
|
};
|
|
11253
11244
|
if (includeInstance) {
|
|
11254
11245
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11289,18 +11280,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.deserializeBinaryFromReade
|
|
|
11289
11280
|
var value = /** @type {string} */ (reader.readString());
|
|
11290
11281
|
msg.setInputId(value);
|
|
11291
11282
|
break;
|
|
11292
|
-
case 3:
|
|
11293
|
-
var value = /** @type {string} */ (reader.readString());
|
|
11294
|
-
msg.setTaskId(value);
|
|
11295
|
-
break;
|
|
11296
|
-
case 4:
|
|
11297
|
-
var value = /** @type {string} */ (reader.readString());
|
|
11298
|
-
msg.addTrackIds(value);
|
|
11299
|
-
break;
|
|
11300
|
-
case 5:
|
|
11301
|
-
var value = /** @type {!proto.clarifai.api.AnnotationDataType} */ (reader.readEnum());
|
|
11302
|
-
msg.setAnnotationType(value);
|
|
11303
|
-
break;
|
|
11304
11283
|
default:
|
|
11305
11284
|
reader.skipField();
|
|
11306
11285
|
break;
|
|
@@ -11334,18 +11313,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.serializeBinaryToWriter =
|
|
|
11334
11313
|
if (f.length > 0) {
|
|
11335
11314
|
writer.writeString(2, f);
|
|
11336
11315
|
}
|
|
11337
|
-
f = message.getTaskId();
|
|
11338
|
-
if (f.length > 0) {
|
|
11339
|
-
writer.writeString(3, f);
|
|
11340
|
-
}
|
|
11341
|
-
f = message.getTrackIdsList();
|
|
11342
|
-
if (f.length > 0) {
|
|
11343
|
-
writer.writeRepeatedString(4, f);
|
|
11344
|
-
}
|
|
11345
|
-
f = message.getAnnotationType();
|
|
11346
|
-
if (f !== 0.0) {
|
|
11347
|
-
writer.writeEnum(5, f);
|
|
11348
|
-
}
|
|
11349
11316
|
};
|
|
11350
11317
|
/**
|
|
11351
11318
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -11389,63 +11356,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getInputId = fun
|
|
|
11389
11356
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setInputId = function (value) {
|
|
11390
11357
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
11391
11358
|
};
|
|
11392
|
-
/**
|
|
11393
|
-
* optional string task_id = 3;
|
|
11394
|
-
* @return {string}
|
|
11395
|
-
*/
|
|
11396
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getTaskId = function () {
|
|
11397
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11398
|
-
};
|
|
11399
|
-
/**
|
|
11400
|
-
* @param {string} value
|
|
11401
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11402
|
-
*/
|
|
11403
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setTaskId = function (value) {
|
|
11404
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
11405
|
-
};
|
|
11406
|
-
/**
|
|
11407
|
-
* repeated string track_ids = 4;
|
|
11408
|
-
* @return {!Array<string>}
|
|
11409
|
-
*/
|
|
11410
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getTrackIdsList = function () {
|
|
11411
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
11412
|
-
};
|
|
11413
|
-
/**
|
|
11414
|
-
* @param {!Array<string>} value
|
|
11415
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11416
|
-
*/
|
|
11417
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setTrackIdsList = function (value) {
|
|
11418
|
-
return jspb.Message.setField(this, 4, value || []);
|
|
11419
|
-
};
|
|
11420
|
-
/**
|
|
11421
|
-
* @param {string} value
|
|
11422
|
-
* @param {number=} opt_index
|
|
11423
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11424
|
-
*/
|
|
11425
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.addTrackIds = function (value, opt_index) {
|
|
11426
|
-
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
11427
|
-
};
|
|
11428
|
-
/**
|
|
11429
|
-
* Clears the list making it empty but non-null.
|
|
11430
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11431
|
-
*/
|
|
11432
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.clearTrackIdsList = function () {
|
|
11433
|
-
return this.setTrackIdsList([]);
|
|
11434
|
-
};
|
|
11435
|
-
/**
|
|
11436
|
-
* optional AnnotationDataType annotation_type = 5;
|
|
11437
|
-
* @return {!proto.clarifai.api.AnnotationDataType}
|
|
11438
|
-
*/
|
|
11439
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getAnnotationType = function () {
|
|
11440
|
-
return /** @type {!proto.clarifai.api.AnnotationDataType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
11441
|
-
};
|
|
11442
|
-
/**
|
|
11443
|
-
* @param {!proto.clarifai.api.AnnotationDataType} value
|
|
11444
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11445
|
-
*/
|
|
11446
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setAnnotationType = function (value) {
|
|
11447
|
-
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
11448
|
-
};
|
|
11449
11359
|
/**
|
|
11450
11360
|
* List of repeated fields within this message type.
|
|
11451
11361
|
* @private {!Array<number>}
|
|
@@ -330,6 +330,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
330
330
|
REDIS_STREAM_ERR: 45003,
|
|
331
331
|
REDIS_NO_CONSUMERS: 45004,
|
|
332
332
|
REDIS_STREAM_BACKOFF: 45005,
|
|
333
|
+
REDIS_CHANNEL_ERR: 45006,
|
|
333
334
|
SIGNUP_EVENT_ERROR: 46001,
|
|
334
335
|
SIGNUP_FLAGGED: 46002,
|
|
335
336
|
FILETYPE_UNSUPPORTED: 46003,
|
|
@@ -612,7 +612,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
612
612
|
* @constructor
|
|
613
613
|
*/
|
|
614
614
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest = function (opt_data) {
|
|
615
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
615
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
616
616
|
};
|
|
617
617
|
goog.inherits(proto.clarifai.api.StreamLivestreamAnnotationsRequest, jspb.Message);
|
|
618
618
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -11211,12 +11211,6 @@ proto.clarifai.api.StreamAnnotationsRequest.prototype.clearWorker = function ()
|
|
|
11211
11211
|
proto.clarifai.api.StreamAnnotationsRequest.prototype.hasWorker = function () {
|
|
11212
11212
|
return jspb.Message.getField(this, 9) != null;
|
|
11213
11213
|
};
|
|
11214
|
-
/**
|
|
11215
|
-
* List of repeated fields within this message type.
|
|
11216
|
-
* @private {!Array<number>}
|
|
11217
|
-
* @const
|
|
11218
|
-
*/
|
|
11219
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.repeatedFields_ = [4];
|
|
11220
11214
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11221
11215
|
/**
|
|
11222
11216
|
* Creates an object representation of this proto.
|
|
@@ -11245,10 +11239,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
11245
11239
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest.toObject = function (includeInstance, msg) {
|
|
11246
11240
|
var f, obj = {
|
|
11247
11241
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11248
|
-
inputId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
11249
|
-
taskId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11250
|
-
trackIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
11251
|
-
annotationType: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
11242
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
11252
11243
|
};
|
|
11253
11244
|
if (includeInstance) {
|
|
11254
11245
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11289,18 +11280,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.deserializeBinaryFromReade
|
|
|
11289
11280
|
var value = /** @type {string} */ (reader.readString());
|
|
11290
11281
|
msg.setInputId(value);
|
|
11291
11282
|
break;
|
|
11292
|
-
case 3:
|
|
11293
|
-
var value = /** @type {string} */ (reader.readString());
|
|
11294
|
-
msg.setTaskId(value);
|
|
11295
|
-
break;
|
|
11296
|
-
case 4:
|
|
11297
|
-
var value = /** @type {string} */ (reader.readString());
|
|
11298
|
-
msg.addTrackIds(value);
|
|
11299
|
-
break;
|
|
11300
|
-
case 5:
|
|
11301
|
-
var value = /** @type {!proto.clarifai.api.AnnotationDataType} */ (reader.readEnum());
|
|
11302
|
-
msg.setAnnotationType(value);
|
|
11303
|
-
break;
|
|
11304
11283
|
default:
|
|
11305
11284
|
reader.skipField();
|
|
11306
11285
|
break;
|
|
@@ -11334,18 +11313,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.serializeBinaryToWriter =
|
|
|
11334
11313
|
if (f.length > 0) {
|
|
11335
11314
|
writer.writeString(2, f);
|
|
11336
11315
|
}
|
|
11337
|
-
f = message.getTaskId();
|
|
11338
|
-
if (f.length > 0) {
|
|
11339
|
-
writer.writeString(3, f);
|
|
11340
|
-
}
|
|
11341
|
-
f = message.getTrackIdsList();
|
|
11342
|
-
if (f.length > 0) {
|
|
11343
|
-
writer.writeRepeatedString(4, f);
|
|
11344
|
-
}
|
|
11345
|
-
f = message.getAnnotationType();
|
|
11346
|
-
if (f !== 0.0) {
|
|
11347
|
-
writer.writeEnum(5, f);
|
|
11348
|
-
}
|
|
11349
11316
|
};
|
|
11350
11317
|
/**
|
|
11351
11318
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -11389,63 +11356,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getInputId = fun
|
|
|
11389
11356
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setInputId = function (value) {
|
|
11390
11357
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
11391
11358
|
};
|
|
11392
|
-
/**
|
|
11393
|
-
* optional string task_id = 3;
|
|
11394
|
-
* @return {string}
|
|
11395
|
-
*/
|
|
11396
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getTaskId = function () {
|
|
11397
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11398
|
-
};
|
|
11399
|
-
/**
|
|
11400
|
-
* @param {string} value
|
|
11401
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11402
|
-
*/
|
|
11403
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setTaskId = function (value) {
|
|
11404
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
11405
|
-
};
|
|
11406
|
-
/**
|
|
11407
|
-
* repeated string track_ids = 4;
|
|
11408
|
-
* @return {!Array<string>}
|
|
11409
|
-
*/
|
|
11410
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getTrackIdsList = function () {
|
|
11411
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
11412
|
-
};
|
|
11413
|
-
/**
|
|
11414
|
-
* @param {!Array<string>} value
|
|
11415
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11416
|
-
*/
|
|
11417
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setTrackIdsList = function (value) {
|
|
11418
|
-
return jspb.Message.setField(this, 4, value || []);
|
|
11419
|
-
};
|
|
11420
|
-
/**
|
|
11421
|
-
* @param {string} value
|
|
11422
|
-
* @param {number=} opt_index
|
|
11423
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11424
|
-
*/
|
|
11425
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.addTrackIds = function (value, opt_index) {
|
|
11426
|
-
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
11427
|
-
};
|
|
11428
|
-
/**
|
|
11429
|
-
* Clears the list making it empty but non-null.
|
|
11430
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11431
|
-
*/
|
|
11432
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.clearTrackIdsList = function () {
|
|
11433
|
-
return this.setTrackIdsList([]);
|
|
11434
|
-
};
|
|
11435
|
-
/**
|
|
11436
|
-
* optional AnnotationDataType annotation_type = 5;
|
|
11437
|
-
* @return {!proto.clarifai.api.AnnotationDataType}
|
|
11438
|
-
*/
|
|
11439
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getAnnotationType = function () {
|
|
11440
|
-
return /** @type {!proto.clarifai.api.AnnotationDataType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
11441
|
-
};
|
|
11442
|
-
/**
|
|
11443
|
-
* @param {!proto.clarifai.api.AnnotationDataType} value
|
|
11444
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11445
|
-
*/
|
|
11446
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setAnnotationType = function (value) {
|
|
11447
|
-
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
11448
|
-
};
|
|
11449
11359
|
/**
|
|
11450
11360
|
* List of repeated fields within this message type.
|
|
11451
11361
|
* @private {!Array<number>}
|
|
@@ -330,6 +330,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
330
330
|
REDIS_STREAM_ERR: 45003,
|
|
331
331
|
REDIS_NO_CONSUMERS: 45004,
|
|
332
332
|
REDIS_STREAM_BACKOFF: 45005,
|
|
333
|
+
REDIS_CHANNEL_ERR: 45006,
|
|
333
334
|
SIGNUP_EVENT_ERROR: 46001,
|
|
334
335
|
SIGNUP_FLAGGED: 46002,
|
|
335
336
|
FILETYPE_UNSUPPORTED: 46003,
|
package/package.json
CHANGED
|
@@ -257,17 +257,6 @@ export class StreamLivestreamAnnotationsRequest extends jspb.Message {
|
|
|
257
257
|
getInputId(): string;
|
|
258
258
|
setInputId(value: string): StreamLivestreamAnnotationsRequest;
|
|
259
259
|
|
|
260
|
-
getTaskId(): string;
|
|
261
|
-
setTaskId(value: string): StreamLivestreamAnnotationsRequest;
|
|
262
|
-
|
|
263
|
-
getTrackIdsList(): Array<string>;
|
|
264
|
-
setTrackIdsList(value: Array<string>): StreamLivestreamAnnotationsRequest;
|
|
265
|
-
clearTrackIdsList(): StreamLivestreamAnnotationsRequest;
|
|
266
|
-
addTrackIds(value: string, index?: number): StreamLivestreamAnnotationsRequest;
|
|
267
|
-
|
|
268
|
-
getAnnotationType(): proto_clarifai_api_resources_pb.AnnotationDataType;
|
|
269
|
-
setAnnotationType(value: proto_clarifai_api_resources_pb.AnnotationDataType): StreamLivestreamAnnotationsRequest;
|
|
270
|
-
|
|
271
260
|
serializeBinary(): Uint8Array;
|
|
272
261
|
toObject(includeInstance?: boolean): StreamLivestreamAnnotationsRequest.AsObject;
|
|
273
262
|
static toObject(includeInstance: boolean, msg: StreamLivestreamAnnotationsRequest): StreamLivestreamAnnotationsRequest.AsObject;
|
|
@@ -280,9 +269,6 @@ export namespace StreamLivestreamAnnotationsRequest {
|
|
|
280
269
|
export type AsObject = {
|
|
281
270
|
userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
|
|
282
271
|
inputId: string,
|
|
283
|
-
taskId: string,
|
|
284
|
-
trackIdsList: Array<string>,
|
|
285
|
-
annotationType: proto_clarifai_api_resources_pb.AnnotationDataType,
|
|
286
272
|
}
|
|
287
273
|
}
|
|
288
274
|
|
|
@@ -614,7 +614,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
614
614
|
* @constructor
|
|
615
615
|
*/
|
|
616
616
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest = function(opt_data) {
|
|
617
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
617
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
618
618
|
};
|
|
619
619
|
goog.inherits(proto.clarifai.api.StreamLivestreamAnnotationsRequest, jspb.Message);
|
|
620
620
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -11608,13 +11608,6 @@ proto.clarifai.api.StreamAnnotationsRequest.prototype.hasWorker = function() {
|
|
|
11608
11608
|
|
|
11609
11609
|
|
|
11610
11610
|
|
|
11611
|
-
/**
|
|
11612
|
-
* List of repeated fields within this message type.
|
|
11613
|
-
* @private {!Array<number>}
|
|
11614
|
-
* @const
|
|
11615
|
-
*/
|
|
11616
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.repeatedFields_ = [4];
|
|
11617
|
-
|
|
11618
11611
|
|
|
11619
11612
|
|
|
11620
11613
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -11647,10 +11640,7 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.toObject = funct
|
|
|
11647
11640
|
proto.clarifai.api.StreamLivestreamAnnotationsRequest.toObject = function(includeInstance, msg) {
|
|
11648
11641
|
var f, obj = {
|
|
11649
11642
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11650
|
-
inputId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
11651
|
-
taskId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11652
|
-
trackIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
11653
|
-
annotationType: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
11643
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
11654
11644
|
};
|
|
11655
11645
|
|
|
11656
11646
|
if (includeInstance) {
|
|
@@ -11696,18 +11686,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.deserializeBinaryFromReade
|
|
|
11696
11686
|
var value = /** @type {string} */ (reader.readString());
|
|
11697
11687
|
msg.setInputId(value);
|
|
11698
11688
|
break;
|
|
11699
|
-
case 3:
|
|
11700
|
-
var value = /** @type {string} */ (reader.readString());
|
|
11701
|
-
msg.setTaskId(value);
|
|
11702
|
-
break;
|
|
11703
|
-
case 4:
|
|
11704
|
-
var value = /** @type {string} */ (reader.readString());
|
|
11705
|
-
msg.addTrackIds(value);
|
|
11706
|
-
break;
|
|
11707
|
-
case 5:
|
|
11708
|
-
var value = /** @type {!proto.clarifai.api.AnnotationDataType} */ (reader.readEnum());
|
|
11709
|
-
msg.setAnnotationType(value);
|
|
11710
|
-
break;
|
|
11711
11689
|
default:
|
|
11712
11690
|
reader.skipField();
|
|
11713
11691
|
break;
|
|
@@ -11752,27 +11730,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.serializeBinaryToWriter =
|
|
|
11752
11730
|
f
|
|
11753
11731
|
);
|
|
11754
11732
|
}
|
|
11755
|
-
f = message.getTaskId();
|
|
11756
|
-
if (f.length > 0) {
|
|
11757
|
-
writer.writeString(
|
|
11758
|
-
3,
|
|
11759
|
-
f
|
|
11760
|
-
);
|
|
11761
|
-
}
|
|
11762
|
-
f = message.getTrackIdsList();
|
|
11763
|
-
if (f.length > 0) {
|
|
11764
|
-
writer.writeRepeatedString(
|
|
11765
|
-
4,
|
|
11766
|
-
f
|
|
11767
|
-
);
|
|
11768
|
-
}
|
|
11769
|
-
f = message.getAnnotationType();
|
|
11770
|
-
if (f !== 0.0) {
|
|
11771
|
-
writer.writeEnum(
|
|
11772
|
-
5,
|
|
11773
|
-
f
|
|
11774
|
-
);
|
|
11775
|
-
}
|
|
11776
11733
|
};
|
|
11777
11734
|
|
|
11778
11735
|
|
|
@@ -11831,79 +11788,6 @@ proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setInputId = fun
|
|
|
11831
11788
|
};
|
|
11832
11789
|
|
|
11833
11790
|
|
|
11834
|
-
/**
|
|
11835
|
-
* optional string task_id = 3;
|
|
11836
|
-
* @return {string}
|
|
11837
|
-
*/
|
|
11838
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getTaskId = function() {
|
|
11839
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11840
|
-
};
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
/**
|
|
11844
|
-
* @param {string} value
|
|
11845
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11846
|
-
*/
|
|
11847
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setTaskId = function(value) {
|
|
11848
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
11849
|
-
};
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
/**
|
|
11853
|
-
* repeated string track_ids = 4;
|
|
11854
|
-
* @return {!Array<string>}
|
|
11855
|
-
*/
|
|
11856
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getTrackIdsList = function() {
|
|
11857
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
11858
|
-
};
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
/**
|
|
11862
|
-
* @param {!Array<string>} value
|
|
11863
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11864
|
-
*/
|
|
11865
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setTrackIdsList = function(value) {
|
|
11866
|
-
return jspb.Message.setField(this, 4, value || []);
|
|
11867
|
-
};
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
/**
|
|
11871
|
-
* @param {string} value
|
|
11872
|
-
* @param {number=} opt_index
|
|
11873
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11874
|
-
*/
|
|
11875
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.addTrackIds = function(value, opt_index) {
|
|
11876
|
-
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
11877
|
-
};
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
/**
|
|
11881
|
-
* Clears the list making it empty but non-null.
|
|
11882
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11883
|
-
*/
|
|
11884
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.clearTrackIdsList = function() {
|
|
11885
|
-
return this.setTrackIdsList([]);
|
|
11886
|
-
};
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
/**
|
|
11890
|
-
* optional AnnotationDataType annotation_type = 5;
|
|
11891
|
-
* @return {!proto.clarifai.api.AnnotationDataType}
|
|
11892
|
-
*/
|
|
11893
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.getAnnotationType = function() {
|
|
11894
|
-
return /** @type {!proto.clarifai.api.AnnotationDataType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
11895
|
-
};
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
/**
|
|
11899
|
-
* @param {!proto.clarifai.api.AnnotationDataType} value
|
|
11900
|
-
* @return {!proto.clarifai.api.StreamLivestreamAnnotationsRequest} returns this
|
|
11901
|
-
*/
|
|
11902
|
-
proto.clarifai.api.StreamLivestreamAnnotationsRequest.prototype.setAnnotationType = function(value) {
|
|
11903
|
-
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
11904
|
-
};
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
11791
|
|
|
11908
11792
|
/**
|
|
11909
11793
|
* List of repeated fields within this message type.
|
|
@@ -332,6 +332,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
332
332
|
REDIS_STREAM_ERR: 45003,
|
|
333
333
|
REDIS_NO_CONSUMERS: 45004,
|
|
334
334
|
REDIS_STREAM_BACKOFF: 45005,
|
|
335
|
+
REDIS_CHANNEL_ERR: 45006,
|
|
335
336
|
SIGNUP_EVENT_ERROR: 46001,
|
|
336
337
|
SIGNUP_FLAGGED: 46002,
|
|
337
338
|
FILETYPE_UNSUPPORTED: 46003,
|