clarifai-web-grpc 4.1.0 → 4.2.0
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/CHANGELOG.md +2 -2
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +5352 -2060
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +336 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +2612 -166
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +14 -0
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +237 -1
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +5352 -2060
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +336 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +2612 -166
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +14 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.js +237 -1
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/package.json +1 -1
- package/package.json-E +52 -0
- package/proto/clarifai/api/resources_pb.d.ts +525 -31
- package/proto/clarifai/api/resources_pb.js +4300 -220
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +96 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +488 -0
- package/proto/clarifai/api/service_pb.d.ts +354 -0
- package/proto/clarifai/api/service_pb.js +3569 -531
- package/proto/clarifai/api/status/status_code_pb.d.ts +14 -0
- package/proto/clarifai/api/status/status_code_pb.js +14 -0
- package/proto/clarifai/api/status/status_pb.d.ts +36 -0
- package/proto/clarifai/api/status/status_pb.js +294 -1
- package/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -1
|
@@ -9,6 +9,7 @@ export enum StatusCode {
|
|
|
9
9
|
FAILURE = 10020,
|
|
10
10
|
TRY_AGAIN = 10030,
|
|
11
11
|
NOT_IMPLEMENTED = 10040,
|
|
12
|
+
MOVED = 10050,
|
|
12
13
|
CONN_ACCOUNT_ISSUES = 11000,
|
|
13
14
|
CONN_TOKEN_INVALID = 11001,
|
|
14
15
|
CONN_CREDENTIALS_INVALID = 11002,
|
|
@@ -31,6 +32,7 @@ export enum StatusCode {
|
|
|
31
32
|
MODEL_QUEUED_FOR_TRAINING = 21103,
|
|
32
33
|
MODEL_UPLOADING = 21104,
|
|
33
34
|
MODEL_UPLOADING_FAILED = 21105,
|
|
35
|
+
MODEL_TRAINING_FAILED = 21106,
|
|
34
36
|
MODEL_TRAINING_NO_DATA = 21110,
|
|
35
37
|
MODEL_TRAINING_NO_POSITIVES = 21111,
|
|
36
38
|
MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS = 21112,
|
|
@@ -59,6 +61,7 @@ export enum StatusCode {
|
|
|
59
61
|
MODEL_EVALUATION_MSG_REDELIVER = 21314,
|
|
60
62
|
MODEL_EVALUATION_NEED_LABELS = 21315,
|
|
61
63
|
MODEL_EVALUATION_NEED_INPUTS = 21316,
|
|
64
|
+
MODEL_EVALUATION_FAILED = 21317,
|
|
62
65
|
MODEL_DEPLOYMENT_FAILED = 21350,
|
|
63
66
|
MODEL_DEPLOYING = 21351,
|
|
64
67
|
MODEL_QUEUED_FOR_DEPLOYMENT = 21352,
|
|
@@ -119,6 +122,14 @@ export enum StatusCode {
|
|
|
119
122
|
MODULE_PERMISSION_DENIED = 25301,
|
|
120
123
|
MODULE_INVALID_ARGUMENT = 25302,
|
|
121
124
|
MODULE_INVALID_REQUEST = 25303,
|
|
125
|
+
BULK_OPERATION_SUCCESS = 25400,
|
|
126
|
+
BULK_OPERATION_FAILED = 25401,
|
|
127
|
+
BULK_OPERATION_PENDING = 25402,
|
|
128
|
+
BULK_OPERATION_IN_PROGRESS = 25403,
|
|
129
|
+
BULK_OPERATION_INVALID_REQUEST = 25404,
|
|
130
|
+
BULK_OPERATION_CANCELLED = 25405,
|
|
131
|
+
BULK_OPERATION_UNEXPECTED_ERROR = 25406,
|
|
132
|
+
BULK_OPERATION_DELETED = 25407,
|
|
122
133
|
INPUT_DOWNLOAD_SUCCESS = 30000,
|
|
123
134
|
INPUT_DOWNLOAD_PENDING = 30001,
|
|
124
135
|
INPUT_DOWNLOAD_FAILED = 30002,
|
|
@@ -275,6 +286,9 @@ export enum StatusCode {
|
|
|
275
286
|
DATASET_VERSION_READY = 64015,
|
|
276
287
|
DATASET_VERSION_FAILURE = 64020,
|
|
277
288
|
DATASET_VERSION_UNEXPECTED_ERROR = 64025,
|
|
289
|
+
DATASET_VERSION_CONFLICT = 64030,
|
|
290
|
+
DATASET_INPUT_SUCCESS = 64100,
|
|
291
|
+
DATASET_INPUT_DUPLICATE = 64101,
|
|
278
292
|
JOB_QUEUED = 64000,
|
|
279
293
|
JOB_RUNNING = 64001,
|
|
280
294
|
JOB_COMPLETED = 64002,
|
|
@@ -32,6 +32,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
32
32
|
FAILURE: 10020,
|
|
33
33
|
TRY_AGAIN: 10030,
|
|
34
34
|
NOT_IMPLEMENTED: 10040,
|
|
35
|
+
MOVED: 10050,
|
|
35
36
|
CONN_ACCOUNT_ISSUES: 11000,
|
|
36
37
|
CONN_TOKEN_INVALID: 11001,
|
|
37
38
|
CONN_CREDENTIALS_INVALID: 11002,
|
|
@@ -54,6 +55,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
54
55
|
MODEL_QUEUED_FOR_TRAINING: 21103,
|
|
55
56
|
MODEL_UPLOADING: 21104,
|
|
56
57
|
MODEL_UPLOADING_FAILED: 21105,
|
|
58
|
+
MODEL_TRAINING_FAILED: 21106,
|
|
57
59
|
MODEL_TRAINING_NO_DATA: 21110,
|
|
58
60
|
MODEL_TRAINING_NO_POSITIVES: 21111,
|
|
59
61
|
MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: 21112,
|
|
@@ -82,6 +84,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
82
84
|
MODEL_EVALUATION_MSG_REDELIVER: 21314,
|
|
83
85
|
MODEL_EVALUATION_NEED_LABELS: 21315,
|
|
84
86
|
MODEL_EVALUATION_NEED_INPUTS: 21316,
|
|
87
|
+
MODEL_EVALUATION_FAILED: 21317,
|
|
85
88
|
MODEL_DEPLOYMENT_FAILED: 21350,
|
|
86
89
|
MODEL_DEPLOYING: 21351,
|
|
87
90
|
MODEL_QUEUED_FOR_DEPLOYMENT: 21352,
|
|
@@ -142,6 +145,14 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
142
145
|
MODULE_PERMISSION_DENIED: 25301,
|
|
143
146
|
MODULE_INVALID_ARGUMENT: 25302,
|
|
144
147
|
MODULE_INVALID_REQUEST: 25303,
|
|
148
|
+
BULK_OPERATION_SUCCESS: 25400,
|
|
149
|
+
BULK_OPERATION_FAILED: 25401,
|
|
150
|
+
BULK_OPERATION_PENDING: 25402,
|
|
151
|
+
BULK_OPERATION_IN_PROGRESS: 25403,
|
|
152
|
+
BULK_OPERATION_INVALID_REQUEST: 25404,
|
|
153
|
+
BULK_OPERATION_CANCELLED: 25405,
|
|
154
|
+
BULK_OPERATION_UNEXPECTED_ERROR: 25406,
|
|
155
|
+
BULK_OPERATION_DELETED: 25407,
|
|
145
156
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
146
157
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
147
158
|
INPUT_DOWNLOAD_FAILED: 30002,
|
|
@@ -298,6 +309,9 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
298
309
|
DATASET_VERSION_READY: 64015,
|
|
299
310
|
DATASET_VERSION_FAILURE: 64020,
|
|
300
311
|
DATASET_VERSION_UNEXPECTED_ERROR: 64025,
|
|
312
|
+
DATASET_VERSION_CONFLICT: 64030,
|
|
313
|
+
DATASET_INPUT_SUCCESS: 64100,
|
|
314
|
+
DATASET_INPUT_DUPLICATE: 64101,
|
|
301
315
|
JOB_QUEUED: 64000,
|
|
302
316
|
JOB_RUNNING: 64001,
|
|
303
317
|
JOB_COMPLETED: 64002,
|
|
@@ -31,6 +31,11 @@ export class Status extends jspb.Message {
|
|
|
31
31
|
getInternalDetails(): string;
|
|
32
32
|
setInternalDetails(value: string): Status;
|
|
33
33
|
|
|
34
|
+
getRedirectInfo(): RedirectInfo | undefined;
|
|
35
|
+
setRedirectInfo(value?: RedirectInfo): Status;
|
|
36
|
+
hasRedirectInfo(): boolean;
|
|
37
|
+
clearRedirectInfo(): Status;
|
|
38
|
+
|
|
34
39
|
serializeBinary(): Uint8Array;
|
|
35
40
|
toObject(includeInstance?: boolean): Status.AsObject;
|
|
36
41
|
static toObject(includeInstance: boolean, msg: Status): Status.AsObject;
|
|
@@ -49,6 +54,37 @@ export namespace Status {
|
|
|
49
54
|
timeRemaining: number,
|
|
50
55
|
reqId: string,
|
|
51
56
|
internalDetails: string,
|
|
57
|
+
redirectInfo?: RedirectInfo.AsObject,
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export class RedirectInfo extends jspb.Message {
|
|
62
|
+
getUrl(): string;
|
|
63
|
+
setUrl(value: string): RedirectInfo;
|
|
64
|
+
|
|
65
|
+
getResourceType(): string;
|
|
66
|
+
setResourceType(value: string): RedirectInfo;
|
|
67
|
+
|
|
68
|
+
getOldResourceId(): string;
|
|
69
|
+
setOldResourceId(value: string): RedirectInfo;
|
|
70
|
+
|
|
71
|
+
getNewResourceId(): string;
|
|
72
|
+
setNewResourceId(value: string): RedirectInfo;
|
|
73
|
+
|
|
74
|
+
serializeBinary(): Uint8Array;
|
|
75
|
+
toObject(includeInstance?: boolean): RedirectInfo.AsObject;
|
|
76
|
+
static toObject(includeInstance: boolean, msg: RedirectInfo): RedirectInfo.AsObject;
|
|
77
|
+
static serializeBinaryToWriter(message: RedirectInfo, writer: jspb.BinaryWriter): void;
|
|
78
|
+
static deserializeBinary(bytes: Uint8Array): RedirectInfo;
|
|
79
|
+
static deserializeBinaryFromReader(message: RedirectInfo, reader: jspb.BinaryReader): RedirectInfo;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export namespace RedirectInfo {
|
|
83
|
+
export type AsObject = {
|
|
84
|
+
url: string,
|
|
85
|
+
resourceType: string,
|
|
86
|
+
oldResourceId: string,
|
|
87
|
+
newResourceId: string,
|
|
52
88
|
}
|
|
53
89
|
}
|
|
54
90
|
|
|
@@ -26,6 +26,7 @@ goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
|
|
|
26
26
|
var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
|
|
27
27
|
goog.object.extend(proto, proto_clarifai_api_status_status_code_pb);
|
|
28
28
|
goog.exportSymbol('proto.clarifai.api.status.BaseResponse', null, global);
|
|
29
|
+
goog.exportSymbol('proto.clarifai.api.status.RedirectInfo', null, global);
|
|
29
30
|
goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
|
|
30
31
|
/**
|
|
31
32
|
* Generated by JsPbCodeGenerator.
|
|
@@ -48,6 +49,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
48
49
|
*/
|
|
49
50
|
proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
|
|
50
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Generated by JsPbCodeGenerator.
|
|
54
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
55
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
56
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
57
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
58
|
+
* valid.
|
|
59
|
+
* @extends {jspb.Message}
|
|
60
|
+
* @constructor
|
|
61
|
+
*/
|
|
62
|
+
proto.clarifai.api.status.RedirectInfo = function(opt_data) {
|
|
63
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
64
|
+
};
|
|
65
|
+
goog.inherits(proto.clarifai.api.status.RedirectInfo, jspb.Message);
|
|
66
|
+
if (goog.DEBUG && !COMPILED) {
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
* @override
|
|
70
|
+
*/
|
|
71
|
+
proto.clarifai.api.status.RedirectInfo.displayName = 'proto.clarifai.api.status.RedirectInfo';
|
|
72
|
+
}
|
|
51
73
|
/**
|
|
52
74
|
* Generated by JsPbCodeGenerator.
|
|
53
75
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -115,7 +137,8 @@ proto.clarifai.api.status.Status.toObject = function(includeInstance, msg) {
|
|
|
115
137
|
percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
116
138
|
timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
117
139
|
reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
118
|
-
internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
140
|
+
internalDetails: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
141
|
+
redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f)
|
|
119
142
|
};
|
|
120
143
|
|
|
121
144
|
if (includeInstance) {
|
|
@@ -184,6 +207,11 @@ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function(msg, rea
|
|
|
184
207
|
var value = /** @type {string} */ (reader.readString());
|
|
185
208
|
msg.setInternalDetails(value);
|
|
186
209
|
break;
|
|
210
|
+
case 9:
|
|
211
|
+
var value = new proto.clarifai.api.status.RedirectInfo;
|
|
212
|
+
reader.readMessage(value,proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader);
|
|
213
|
+
msg.setRedirectInfo(value);
|
|
214
|
+
break;
|
|
187
215
|
default:
|
|
188
216
|
reader.skipField();
|
|
189
217
|
break;
|
|
@@ -269,6 +297,14 @@ proto.clarifai.api.status.Status.serializeBinaryToWriter = function(message, wri
|
|
|
269
297
|
f
|
|
270
298
|
);
|
|
271
299
|
}
|
|
300
|
+
f = message.getRedirectInfo();
|
|
301
|
+
if (f != null) {
|
|
302
|
+
writer.writeMessage(
|
|
303
|
+
9,
|
|
304
|
+
f,
|
|
305
|
+
proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter
|
|
306
|
+
);
|
|
307
|
+
}
|
|
272
308
|
};
|
|
273
309
|
|
|
274
310
|
|
|
@@ -435,6 +471,263 @@ proto.clarifai.api.status.Status.prototype.setInternalDetails = function(value)
|
|
|
435
471
|
};
|
|
436
472
|
|
|
437
473
|
|
|
474
|
+
/**
|
|
475
|
+
* optional RedirectInfo redirect_info = 9;
|
|
476
|
+
* @return {?proto.clarifai.api.status.RedirectInfo}
|
|
477
|
+
*/
|
|
478
|
+
proto.clarifai.api.status.Status.prototype.getRedirectInfo = function() {
|
|
479
|
+
return /** @type{?proto.clarifai.api.status.RedirectInfo} */ (
|
|
480
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.status.RedirectInfo, 9));
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* @param {?proto.clarifai.api.status.RedirectInfo|undefined} value
|
|
486
|
+
* @return {!proto.clarifai.api.status.Status} returns this
|
|
487
|
+
*/
|
|
488
|
+
proto.clarifai.api.status.Status.prototype.setRedirectInfo = function(value) {
|
|
489
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Clears the message field making it undefined.
|
|
495
|
+
* @return {!proto.clarifai.api.status.Status} returns this
|
|
496
|
+
*/
|
|
497
|
+
proto.clarifai.api.status.Status.prototype.clearRedirectInfo = function() {
|
|
498
|
+
return this.setRedirectInfo(undefined);
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Returns whether this field is set.
|
|
504
|
+
* @return {boolean}
|
|
505
|
+
*/
|
|
506
|
+
proto.clarifai.api.status.Status.prototype.hasRedirectInfo = function() {
|
|
507
|
+
return jspb.Message.getField(this, 9) != null;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
515
|
+
/**
|
|
516
|
+
* Creates an object representation of this proto.
|
|
517
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
518
|
+
* Optional fields that are not set will be set to undefined.
|
|
519
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
520
|
+
* For the list of reserved names please see:
|
|
521
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
522
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
523
|
+
* JSPB instance for transitional soy proto support:
|
|
524
|
+
* http://goto/soy-param-migration
|
|
525
|
+
* @return {!Object}
|
|
526
|
+
*/
|
|
527
|
+
proto.clarifai.api.status.RedirectInfo.prototype.toObject = function(opt_includeInstance) {
|
|
528
|
+
return proto.clarifai.api.status.RedirectInfo.toObject(opt_includeInstance, this);
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Static version of the {@see toObject} method.
|
|
534
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
535
|
+
* the JSPB instance for transitional soy proto support:
|
|
536
|
+
* http://goto/soy-param-migration
|
|
537
|
+
* @param {!proto.clarifai.api.status.RedirectInfo} msg The msg instance to transform.
|
|
538
|
+
* @return {!Object}
|
|
539
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
540
|
+
*/
|
|
541
|
+
proto.clarifai.api.status.RedirectInfo.toObject = function(includeInstance, msg) {
|
|
542
|
+
var f, obj = {
|
|
543
|
+
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
544
|
+
resourceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
545
|
+
oldResourceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
546
|
+
newResourceId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
if (includeInstance) {
|
|
550
|
+
obj.$jspbMessageInstance = msg;
|
|
551
|
+
}
|
|
552
|
+
return obj;
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Deserializes binary data (in protobuf wire format).
|
|
559
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
560
|
+
* @return {!proto.clarifai.api.status.RedirectInfo}
|
|
561
|
+
*/
|
|
562
|
+
proto.clarifai.api.status.RedirectInfo.deserializeBinary = function(bytes) {
|
|
563
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
564
|
+
var msg = new proto.clarifai.api.status.RedirectInfo;
|
|
565
|
+
return proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader(msg, reader);
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
571
|
+
* given reader into the given message object.
|
|
572
|
+
* @param {!proto.clarifai.api.status.RedirectInfo} msg The message object to deserialize into.
|
|
573
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
574
|
+
* @return {!proto.clarifai.api.status.RedirectInfo}
|
|
575
|
+
*/
|
|
576
|
+
proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
577
|
+
while (reader.nextField()) {
|
|
578
|
+
if (reader.isEndGroup()) {
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
var field = reader.getFieldNumber();
|
|
582
|
+
switch (field) {
|
|
583
|
+
case 1:
|
|
584
|
+
var value = /** @type {string} */ (reader.readString());
|
|
585
|
+
msg.setUrl(value);
|
|
586
|
+
break;
|
|
587
|
+
case 2:
|
|
588
|
+
var value = /** @type {string} */ (reader.readString());
|
|
589
|
+
msg.setResourceType(value);
|
|
590
|
+
break;
|
|
591
|
+
case 3:
|
|
592
|
+
var value = /** @type {string} */ (reader.readString());
|
|
593
|
+
msg.setOldResourceId(value);
|
|
594
|
+
break;
|
|
595
|
+
case 4:
|
|
596
|
+
var value = /** @type {string} */ (reader.readString());
|
|
597
|
+
msg.setNewResourceId(value);
|
|
598
|
+
break;
|
|
599
|
+
default:
|
|
600
|
+
reader.skipField();
|
|
601
|
+
break;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
return msg;
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
610
|
+
* @return {!Uint8Array}
|
|
611
|
+
*/
|
|
612
|
+
proto.clarifai.api.status.RedirectInfo.prototype.serializeBinary = function() {
|
|
613
|
+
var writer = new jspb.BinaryWriter();
|
|
614
|
+
proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter(this, writer);
|
|
615
|
+
return writer.getResultBuffer();
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
621
|
+
* format), writing to the given BinaryWriter.
|
|
622
|
+
* @param {!proto.clarifai.api.status.RedirectInfo} message
|
|
623
|
+
* @param {!jspb.BinaryWriter} writer
|
|
624
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
625
|
+
*/
|
|
626
|
+
proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter = function(message, writer) {
|
|
627
|
+
var f = undefined;
|
|
628
|
+
f = message.getUrl();
|
|
629
|
+
if (f.length > 0) {
|
|
630
|
+
writer.writeString(
|
|
631
|
+
1,
|
|
632
|
+
f
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
f = message.getResourceType();
|
|
636
|
+
if (f.length > 0) {
|
|
637
|
+
writer.writeString(
|
|
638
|
+
2,
|
|
639
|
+
f
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
f = message.getOldResourceId();
|
|
643
|
+
if (f.length > 0) {
|
|
644
|
+
writer.writeString(
|
|
645
|
+
3,
|
|
646
|
+
f
|
|
647
|
+
);
|
|
648
|
+
}
|
|
649
|
+
f = message.getNewResourceId();
|
|
650
|
+
if (f.length > 0) {
|
|
651
|
+
writer.writeString(
|
|
652
|
+
4,
|
|
653
|
+
f
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* optional string url = 1;
|
|
661
|
+
* @return {string}
|
|
662
|
+
*/
|
|
663
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getUrl = function() {
|
|
664
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @param {string} value
|
|
670
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
671
|
+
*/
|
|
672
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setUrl = function(value) {
|
|
673
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* optional string resource_type = 2;
|
|
679
|
+
* @return {string}
|
|
680
|
+
*/
|
|
681
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getResourceType = function() {
|
|
682
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* @param {string} value
|
|
688
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
689
|
+
*/
|
|
690
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setResourceType = function(value) {
|
|
691
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* optional string old_resource_id = 3;
|
|
697
|
+
* @return {string}
|
|
698
|
+
*/
|
|
699
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getOldResourceId = function() {
|
|
700
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* @param {string} value
|
|
706
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
707
|
+
*/
|
|
708
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setOldResourceId = function(value) {
|
|
709
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* optional string new_resource_id = 4;
|
|
715
|
+
* @return {string}
|
|
716
|
+
*/
|
|
717
|
+
proto.clarifai.api.status.RedirectInfo.prototype.getNewResourceId = function() {
|
|
718
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* @param {string} value
|
|
724
|
+
* @return {!proto.clarifai.api.status.RedirectInfo} returns this
|
|
725
|
+
*/
|
|
726
|
+
proto.clarifai.api.status.RedirectInfo.prototype.setNewResourceId = function(value) {
|
|
727
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
|
|
438
731
|
|
|
439
732
|
|
|
440
733
|
|