clarifai-web-grpc 1.1.3 → 1.1.7
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/.github/workflows/ci.yml +0 -2
- package/CHANGELOG.md +3 -3
- package/lib/google/api/annotations_grpc_pb.js +1 -2
- package/lib/google/api/annotations_pb.js +19 -4
- package/lib/google/api/http_grpc_pb.js +1 -2
- package/lib/google/api/http_pb.js +606 -414
- package/lib/proto/clarifai/api/resources_pb.d.ts +5052 -1
- package/lib/proto/clarifai/api/resources_pb.js +26126 -17879
- package/lib/proto/clarifai/api/serviceServiceClientPb.ts +3002 -0
- package/lib/proto/clarifai/api/service_pb.d.ts +5582 -1
- package/lib/proto/clarifai/api/service_pb.js +30050 -20944
- package/lib/proto/clarifai/api/status/status_code_pb.d.ts +296 -1
- package/lib/proto/clarifai/api/status/status_code_pb.js +295 -293
- package/lib/proto/clarifai/api/status/status_pb.d.ts +73 -1
- package/lib/proto/clarifai/api/status/status_pb.js +357 -250
- package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +4 -1
- package/lib/proto/clarifai/api/utils/extensions_pb.js +53 -10
- package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +81 -1
- package/lib/proto/clarifai/api/utils/test_proto_pb.js +385 -266
- package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +92 -1
- package/lib/proto/clarifai/auth/scope/scope_pb.js +232 -163
- package/lib/proto/clarifai/auth/types/types_pb.d.ts +10 -1
- package/lib/proto/clarifai/auth/types/types_pb.js +9 -7
- package/lib/proto/clarifai/auth/util/extension_pb.d.ts +6 -1
- package/lib/proto/clarifai/auth/util/extension_pb.js +87 -16
- package/package.json +22 -18
- package/tsconfig.json +6 -4
- package/.husky/pre-commit +0 -4
- package/.mocharc.yml +0 -5
- package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
- package/dist/google/api/annotations_grpc_pb.js +0 -2
- package/dist/google/api/annotations_pb.d.ts +0 -1
- package/dist/google/api/annotations_pb.js +0 -32
- package/dist/google/api/http_grpc_pb.d.ts +0 -0
- package/dist/google/api/http_grpc_pb.js +0 -2
- package/dist/google/api/http_pb.d.ts +0 -1
- package/dist/google/api/http_pb.js +0 -813
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -11
- package/dist/proto/clarifai/api/resources_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/resources_pb.js +0 -32957
- package/dist/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/proto/clarifai/api/serviceServiceClientPb.js +0 -908
- package/dist/proto/clarifai/api/service_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/service_pb.js +0 -38791
- package/dist/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/status/status_code_pb.js +0 -312
- package/dist/proto/clarifai/api/status/status_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/status/status_pb.js +0 -473
- package/dist/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/utils/extensions_pb.js +0 -52
- package/dist/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/utils/test_proto_pb.js +0 -521
- package/dist/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
- package/dist/proto/clarifai/auth/scope/scope_pb.js +0 -294
- package/dist/proto/clarifai/auth/types/types_pb.d.ts +0 -1
- package/dist/proto/clarifai/auth/types/types_pb.js +0 -26
- package/dist/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
- package/dist/proto/clarifai/auth/util/extension_pb.js +0 -80
- package/dist/resources.d.ts +0 -12
- package/dist/resources.js +0 -47
- package/dist/service.d.ts +0 -1
- package/dist/service.js +0 -13
- package/tests/basic.test.ts +0 -41
- package/tests/helpers.test.ts +0 -47
- package/tsconfig.cjs.json +0 -7
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// source: proto/clarifai/api/status/status.proto
|
|
3
2
|
/**
|
|
4
3
|
* @fileoverview
|
|
@@ -8,9 +7,11 @@
|
|
|
8
7
|
* @public
|
|
9
8
|
*/
|
|
10
9
|
// GENERATED CODE -- DO NOT EDIT!
|
|
10
|
+
|
|
11
11
|
var jspb = require('google-protobuf');
|
|
12
12
|
var goog = jspb;
|
|
13
13
|
var global = Function('return this')();
|
|
14
|
+
|
|
14
15
|
var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js');
|
|
15
16
|
goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
|
|
16
17
|
var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
|
|
@@ -27,16 +28,16 @@ goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
|
|
|
27
28
|
* @extends {jspb.Message}
|
|
28
29
|
* @constructor
|
|
29
30
|
*/
|
|
30
|
-
proto.clarifai.api.status.Status = function
|
|
31
|
-
|
|
31
|
+
proto.clarifai.api.status.Status = function(opt_data) {
|
|
32
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.status.Status.repeatedFields_, null);
|
|
32
33
|
};
|
|
33
34
|
goog.inherits(proto.clarifai.api.status.Status, jspb.Message);
|
|
34
35
|
if (goog.DEBUG && !COMPILED) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
* @override
|
|
39
|
+
*/
|
|
40
|
+
proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
|
|
40
41
|
}
|
|
41
42
|
/**
|
|
42
43
|
* Generated by JsPbCodeGenerator.
|
|
@@ -48,75 +49,86 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
48
49
|
* @extends {jspb.Message}
|
|
49
50
|
* @constructor
|
|
50
51
|
*/
|
|
51
|
-
proto.clarifai.api.status.BaseResponse = function
|
|
52
|
-
|
|
52
|
+
proto.clarifai.api.status.BaseResponse = function(opt_data) {
|
|
53
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
53
54
|
};
|
|
54
55
|
goog.inherits(proto.clarifai.api.status.BaseResponse, jspb.Message);
|
|
55
56
|
if (goog.DEBUG && !COMPILED) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* @override
|
|
60
|
+
*/
|
|
61
|
+
proto.clarifai.api.status.BaseResponse.displayName = 'proto.clarifai.api.status.BaseResponse';
|
|
61
62
|
}
|
|
63
|
+
|
|
62
64
|
/**
|
|
63
65
|
* List of repeated fields within this message type.
|
|
64
66
|
* @private {!Array<number>}
|
|
65
67
|
* @const
|
|
66
68
|
*/
|
|
67
69
|
proto.clarifai.api.status.Status.repeatedFields_ = [4];
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
68
73
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Creates an object representation of this proto.
|
|
76
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77
|
+
* Optional fields that are not set will be set to undefined.
|
|
78
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
79
|
+
* For the list of reserved names please see:
|
|
80
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
81
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
82
|
+
* JSPB instance for transitional soy proto support:
|
|
83
|
+
* http://goto/soy-param-migration
|
|
84
|
+
* @return {!Object}
|
|
85
|
+
*/
|
|
86
|
+
proto.clarifai.api.status.Status.prototype.toObject = function(opt_includeInstance) {
|
|
87
|
+
return proto.clarifai.api.status.Status.toObject(opt_includeInstance, this);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Static version of the {@see toObject} method.
|
|
93
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
94
|
+
* the JSPB instance for transitional soy proto support:
|
|
95
|
+
* http://goto/soy-param-migration
|
|
96
|
+
* @param {!proto.clarifai.api.status.Status} msg The msg instance to transform.
|
|
97
|
+
* @return {!Object}
|
|
98
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
99
|
+
*/
|
|
100
|
+
proto.clarifai.api.status.Status.toObject = function(includeInstance, msg) {
|
|
101
|
+
var f, obj = {
|
|
102
|
+
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
103
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
104
|
+
details: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
105
|
+
stackTraceList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
106
|
+
percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
107
|
+
timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
108
|
+
reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
109
|
+
internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
if (includeInstance) {
|
|
113
|
+
obj.$jspbMessageInstance = msg;
|
|
114
|
+
}
|
|
115
|
+
return obj;
|
|
116
|
+
};
|
|
109
117
|
}
|
|
118
|
+
|
|
119
|
+
|
|
110
120
|
/**
|
|
111
121
|
* Deserializes binary data (in protobuf wire format).
|
|
112
122
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
113
123
|
* @return {!proto.clarifai.api.status.Status}
|
|
114
124
|
*/
|
|
115
|
-
proto.clarifai.api.status.Status.deserializeBinary = function
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
125
|
+
proto.clarifai.api.status.Status.deserializeBinary = function(bytes) {
|
|
126
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
127
|
+
var msg = new proto.clarifai.api.status.Status;
|
|
128
|
+
return proto.clarifai.api.status.Status.deserializeBinaryFromReader(msg, reader);
|
|
119
129
|
};
|
|
130
|
+
|
|
131
|
+
|
|
120
132
|
/**
|
|
121
133
|
* Deserializes binary data (in protobuf wire format) from the
|
|
122
134
|
* given reader into the given message object.
|
|
@@ -124,61 +136,65 @@ proto.clarifai.api.status.Status.deserializeBinary = function (bytes) {
|
|
|
124
136
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
125
137
|
* @return {!proto.clarifai.api.status.Status}
|
|
126
138
|
*/
|
|
127
|
-
proto.clarifai.api.status.Status.deserializeBinaryFromReader = function
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
139
|
+
proto.clarifai.api.status.Status.deserializeBinaryFromReader = function(msg, reader) {
|
|
140
|
+
while (reader.nextField()) {
|
|
141
|
+
if (reader.isEndGroup()) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
var field = reader.getFieldNumber();
|
|
145
|
+
switch (field) {
|
|
146
|
+
case 1:
|
|
147
|
+
var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum());
|
|
148
|
+
msg.setCode(value);
|
|
149
|
+
break;
|
|
150
|
+
case 2:
|
|
151
|
+
var value = /** @type {string} */ (reader.readString());
|
|
152
|
+
msg.setDescription(value);
|
|
153
|
+
break;
|
|
154
|
+
case 3:
|
|
155
|
+
var value = /** @type {string} */ (reader.readString());
|
|
156
|
+
msg.setDetails(value);
|
|
157
|
+
break;
|
|
158
|
+
case 4:
|
|
159
|
+
var value = /** @type {string} */ (reader.readString());
|
|
160
|
+
msg.addStackTrace(value);
|
|
161
|
+
break;
|
|
162
|
+
case 5:
|
|
163
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
164
|
+
msg.setPercentCompleted(value);
|
|
165
|
+
break;
|
|
166
|
+
case 6:
|
|
167
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
168
|
+
msg.setTimeRemaining(value);
|
|
169
|
+
break;
|
|
170
|
+
case 7:
|
|
171
|
+
var value = /** @type {string} */ (reader.readString());
|
|
172
|
+
msg.setReqId(value);
|
|
173
|
+
break;
|
|
174
|
+
case 8:
|
|
175
|
+
var value = /** @type {string} */ (reader.readString());
|
|
176
|
+
msg.setInternalDetails(value);
|
|
177
|
+
break;
|
|
178
|
+
default:
|
|
179
|
+
reader.skipField();
|
|
180
|
+
break;
|
|
170
181
|
}
|
|
171
|
-
|
|
182
|
+
}
|
|
183
|
+
return msg;
|
|
172
184
|
};
|
|
185
|
+
|
|
186
|
+
|
|
173
187
|
/**
|
|
174
188
|
* Serializes the message to binary data (in protobuf wire format).
|
|
175
189
|
* @return {!Uint8Array}
|
|
176
190
|
*/
|
|
177
|
-
proto.clarifai.api.status.Status.prototype.serializeBinary = function
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
191
|
+
proto.clarifai.api.status.Status.prototype.serializeBinary = function() {
|
|
192
|
+
var writer = new jspb.BinaryWriter();
|
|
193
|
+
proto.clarifai.api.status.Status.serializeBinaryToWriter(this, writer);
|
|
194
|
+
return writer.getResultBuffer();
|
|
181
195
|
};
|
|
196
|
+
|
|
197
|
+
|
|
182
198
|
/**
|
|
183
199
|
* Serializes the given message to binary data (in protobuf wire
|
|
184
200
|
* format), writing to the given BinaryWriter.
|
|
@@ -186,213 +202,285 @@ proto.clarifai.api.status.Status.prototype.serializeBinary = function () {
|
|
|
186
202
|
* @param {!jspb.BinaryWriter} writer
|
|
187
203
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
188
204
|
*/
|
|
189
|
-
proto.clarifai.api.status.Status.serializeBinaryToWriter = function
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
205
|
+
proto.clarifai.api.status.Status.serializeBinaryToWriter = function(message, writer) {
|
|
206
|
+
var f = undefined;
|
|
207
|
+
f = message.getCode();
|
|
208
|
+
if (f !== 0.0) {
|
|
209
|
+
writer.writeEnum(
|
|
210
|
+
1,
|
|
211
|
+
f
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
f = message.getDescription();
|
|
215
|
+
if (f.length > 0) {
|
|
216
|
+
writer.writeString(
|
|
217
|
+
2,
|
|
218
|
+
f
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
f = message.getDetails();
|
|
222
|
+
if (f.length > 0) {
|
|
223
|
+
writer.writeString(
|
|
224
|
+
3,
|
|
225
|
+
f
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
f = message.getStackTraceList();
|
|
229
|
+
if (f.length > 0) {
|
|
230
|
+
writer.writeRepeatedString(
|
|
231
|
+
4,
|
|
232
|
+
f
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
f = message.getPercentCompleted();
|
|
236
|
+
if (f !== 0) {
|
|
237
|
+
writer.writeUint32(
|
|
238
|
+
5,
|
|
239
|
+
f
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
f = message.getTimeRemaining();
|
|
243
|
+
if (f !== 0) {
|
|
244
|
+
writer.writeUint32(
|
|
245
|
+
6,
|
|
246
|
+
f
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
f = message.getReqId();
|
|
250
|
+
if (f.length > 0) {
|
|
251
|
+
writer.writeString(
|
|
252
|
+
7,
|
|
253
|
+
f
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
f = message.getInternalDetails();
|
|
257
|
+
if (f.length > 0) {
|
|
258
|
+
writer.writeString(
|
|
259
|
+
8,
|
|
260
|
+
f
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
|
|
224
266
|
/**
|
|
225
267
|
* optional StatusCode code = 1;
|
|
226
268
|
* @return {!proto.clarifai.api.status.StatusCode}
|
|
227
269
|
*/
|
|
228
|
-
proto.clarifai.api.status.Status.prototype.getCode = function
|
|
229
|
-
|
|
270
|
+
proto.clarifai.api.status.Status.prototype.getCode = function() {
|
|
271
|
+
return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
230
272
|
};
|
|
273
|
+
|
|
274
|
+
|
|
231
275
|
/**
|
|
232
276
|
* @param {!proto.clarifai.api.status.StatusCode} value
|
|
233
277
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
234
278
|
*/
|
|
235
|
-
proto.clarifai.api.status.Status.prototype.setCode = function
|
|
236
|
-
|
|
279
|
+
proto.clarifai.api.status.Status.prototype.setCode = function(value) {
|
|
280
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
237
281
|
};
|
|
282
|
+
|
|
283
|
+
|
|
238
284
|
/**
|
|
239
285
|
* optional string description = 2;
|
|
240
286
|
* @return {string}
|
|
241
287
|
*/
|
|
242
|
-
proto.clarifai.api.status.Status.prototype.getDescription = function
|
|
243
|
-
|
|
288
|
+
proto.clarifai.api.status.Status.prototype.getDescription = function() {
|
|
289
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
244
290
|
};
|
|
291
|
+
|
|
292
|
+
|
|
245
293
|
/**
|
|
246
294
|
* @param {string} value
|
|
247
295
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
248
296
|
*/
|
|
249
|
-
proto.clarifai.api.status.Status.prototype.setDescription = function
|
|
250
|
-
|
|
297
|
+
proto.clarifai.api.status.Status.prototype.setDescription = function(value) {
|
|
298
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
251
299
|
};
|
|
300
|
+
|
|
301
|
+
|
|
252
302
|
/**
|
|
253
303
|
* optional string details = 3;
|
|
254
304
|
* @return {string}
|
|
255
305
|
*/
|
|
256
|
-
proto.clarifai.api.status.Status.prototype.getDetails = function
|
|
257
|
-
|
|
306
|
+
proto.clarifai.api.status.Status.prototype.getDetails = function() {
|
|
307
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
258
308
|
};
|
|
309
|
+
|
|
310
|
+
|
|
259
311
|
/**
|
|
260
312
|
* @param {string} value
|
|
261
313
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
262
314
|
*/
|
|
263
|
-
proto.clarifai.api.status.Status.prototype.setDetails = function
|
|
264
|
-
|
|
315
|
+
proto.clarifai.api.status.Status.prototype.setDetails = function(value) {
|
|
316
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
265
317
|
};
|
|
318
|
+
|
|
319
|
+
|
|
266
320
|
/**
|
|
267
321
|
* repeated string stack_trace = 4;
|
|
268
322
|
* @return {!Array<string>}
|
|
269
323
|
*/
|
|
270
|
-
proto.clarifai.api.status.Status.prototype.getStackTraceList = function
|
|
271
|
-
|
|
324
|
+
proto.clarifai.api.status.Status.prototype.getStackTraceList = function() {
|
|
325
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
272
326
|
};
|
|
327
|
+
|
|
328
|
+
|
|
273
329
|
/**
|
|
274
330
|
* @param {!Array<string>} value
|
|
275
331
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
276
332
|
*/
|
|
277
|
-
proto.clarifai.api.status.Status.prototype.setStackTraceList = function
|
|
278
|
-
|
|
333
|
+
proto.clarifai.api.status.Status.prototype.setStackTraceList = function(value) {
|
|
334
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
279
335
|
};
|
|
336
|
+
|
|
337
|
+
|
|
280
338
|
/**
|
|
281
339
|
* @param {string} value
|
|
282
340
|
* @param {number=} opt_index
|
|
283
341
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
284
342
|
*/
|
|
285
|
-
proto.clarifai.api.status.Status.prototype.addStackTrace = function
|
|
286
|
-
|
|
343
|
+
proto.clarifai.api.status.Status.prototype.addStackTrace = function(value, opt_index) {
|
|
344
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
287
345
|
};
|
|
346
|
+
|
|
347
|
+
|
|
288
348
|
/**
|
|
289
349
|
* Clears the list making it empty but non-null.
|
|
290
350
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
291
351
|
*/
|
|
292
|
-
proto.clarifai.api.status.Status.prototype.clearStackTraceList = function
|
|
293
|
-
|
|
352
|
+
proto.clarifai.api.status.Status.prototype.clearStackTraceList = function() {
|
|
353
|
+
return this.setStackTraceList([]);
|
|
294
354
|
};
|
|
355
|
+
|
|
356
|
+
|
|
295
357
|
/**
|
|
296
358
|
* optional uint32 percent_completed = 5;
|
|
297
359
|
* @return {number}
|
|
298
360
|
*/
|
|
299
|
-
proto.clarifai.api.status.Status.prototype.getPercentCompleted = function
|
|
300
|
-
|
|
361
|
+
proto.clarifai.api.status.Status.prototype.getPercentCompleted = function() {
|
|
362
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
301
363
|
};
|
|
364
|
+
|
|
365
|
+
|
|
302
366
|
/**
|
|
303
367
|
* @param {number} value
|
|
304
368
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
305
369
|
*/
|
|
306
|
-
proto.clarifai.api.status.Status.prototype.setPercentCompleted = function
|
|
307
|
-
|
|
370
|
+
proto.clarifai.api.status.Status.prototype.setPercentCompleted = function(value) {
|
|
371
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
308
372
|
};
|
|
373
|
+
|
|
374
|
+
|
|
309
375
|
/**
|
|
310
376
|
* optional uint32 time_remaining = 6;
|
|
311
377
|
* @return {number}
|
|
312
378
|
*/
|
|
313
|
-
proto.clarifai.api.status.Status.prototype.getTimeRemaining = function
|
|
314
|
-
|
|
379
|
+
proto.clarifai.api.status.Status.prototype.getTimeRemaining = function() {
|
|
380
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
315
381
|
};
|
|
382
|
+
|
|
383
|
+
|
|
316
384
|
/**
|
|
317
385
|
* @param {number} value
|
|
318
386
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
319
387
|
*/
|
|
320
|
-
proto.clarifai.api.status.Status.prototype.setTimeRemaining = function
|
|
321
|
-
|
|
388
|
+
proto.clarifai.api.status.Status.prototype.setTimeRemaining = function(value) {
|
|
389
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
322
390
|
};
|
|
391
|
+
|
|
392
|
+
|
|
323
393
|
/**
|
|
324
394
|
* optional string req_id = 7;
|
|
325
395
|
* @return {string}
|
|
326
396
|
*/
|
|
327
|
-
proto.clarifai.api.status.Status.prototype.getReqId = function
|
|
328
|
-
|
|
397
|
+
proto.clarifai.api.status.Status.prototype.getReqId = function() {
|
|
398
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
329
399
|
};
|
|
400
|
+
|
|
401
|
+
|
|
330
402
|
/**
|
|
331
403
|
* @param {string} value
|
|
332
404
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
333
405
|
*/
|
|
334
|
-
proto.clarifai.api.status.Status.prototype.setReqId = function
|
|
335
|
-
|
|
406
|
+
proto.clarifai.api.status.Status.prototype.setReqId = function(value) {
|
|
407
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
336
408
|
};
|
|
409
|
+
|
|
410
|
+
|
|
337
411
|
/**
|
|
338
412
|
* optional string internal_details = 8;
|
|
339
413
|
* @return {string}
|
|
340
414
|
*/
|
|
341
|
-
proto.clarifai.api.status.Status.prototype.getInternalDetails = function
|
|
342
|
-
|
|
415
|
+
proto.clarifai.api.status.Status.prototype.getInternalDetails = function() {
|
|
416
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
343
417
|
};
|
|
418
|
+
|
|
419
|
+
|
|
344
420
|
/**
|
|
345
421
|
* @param {string} value
|
|
346
422
|
* @return {!proto.clarifai.api.status.Status} returns this
|
|
347
423
|
*/
|
|
348
|
-
proto.clarifai.api.status.Status.prototype.setInternalDetails = function
|
|
349
|
-
|
|
424
|
+
proto.clarifai.api.status.Status.prototype.setInternalDetails = function(value) {
|
|
425
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
350
426
|
};
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
351
432
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
433
|
+
/**
|
|
434
|
+
* Creates an object representation of this proto.
|
|
435
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
436
|
+
* Optional fields that are not set will be set to undefined.
|
|
437
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
438
|
+
* For the list of reserved names please see:
|
|
439
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
440
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
441
|
+
* JSPB instance for transitional soy proto support:
|
|
442
|
+
* http://goto/soy-param-migration
|
|
443
|
+
* @return {!Object}
|
|
444
|
+
*/
|
|
445
|
+
proto.clarifai.api.status.BaseResponse.prototype.toObject = function(opt_includeInstance) {
|
|
446
|
+
return proto.clarifai.api.status.BaseResponse.toObject(opt_includeInstance, this);
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Static version of the {@see toObject} method.
|
|
452
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
453
|
+
* the JSPB instance for transitional soy proto support:
|
|
454
|
+
* http://goto/soy-param-migration
|
|
455
|
+
* @param {!proto.clarifai.api.status.BaseResponse} msg The msg instance to transform.
|
|
456
|
+
* @return {!Object}
|
|
457
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
458
|
+
*/
|
|
459
|
+
proto.clarifai.api.status.BaseResponse.toObject = function(includeInstance, msg) {
|
|
460
|
+
var f, obj = {
|
|
461
|
+
status: (f = msg.getStatus()) && proto.clarifai.api.status.Status.toObject(includeInstance, f)
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
if (includeInstance) {
|
|
465
|
+
obj.$jspbMessageInstance = msg;
|
|
466
|
+
}
|
|
467
|
+
return obj;
|
|
468
|
+
};
|
|
385
469
|
}
|
|
470
|
+
|
|
471
|
+
|
|
386
472
|
/**
|
|
387
473
|
* Deserializes binary data (in protobuf wire format).
|
|
388
474
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
389
475
|
* @return {!proto.clarifai.api.status.BaseResponse}
|
|
390
476
|
*/
|
|
391
|
-
proto.clarifai.api.status.BaseResponse.deserializeBinary = function
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
477
|
+
proto.clarifai.api.status.BaseResponse.deserializeBinary = function(bytes) {
|
|
478
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
479
|
+
var msg = new proto.clarifai.api.status.BaseResponse;
|
|
480
|
+
return proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader(msg, reader);
|
|
395
481
|
};
|
|
482
|
+
|
|
483
|
+
|
|
396
484
|
/**
|
|
397
485
|
* Deserializes binary data (in protobuf wire format) from the
|
|
398
486
|
* given reader into the given message object.
|
|
@@ -400,34 +488,38 @@ proto.clarifai.api.status.BaseResponse.deserializeBinary = function (bytes) {
|
|
|
400
488
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
401
489
|
* @return {!proto.clarifai.api.status.BaseResponse}
|
|
402
490
|
*/
|
|
403
|
-
proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader = function
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
408
|
-
var field = reader.getFieldNumber();
|
|
409
|
-
switch (field) {
|
|
410
|
-
case 1:
|
|
411
|
-
var value = new proto.clarifai.api.status.Status;
|
|
412
|
-
reader.readMessage(value, proto.clarifai.api.status.Status.deserializeBinaryFromReader);
|
|
413
|
-
msg.setStatus(value);
|
|
414
|
-
break;
|
|
415
|
-
default:
|
|
416
|
-
reader.skipField();
|
|
417
|
-
break;
|
|
418
|
-
}
|
|
491
|
+
proto.clarifai.api.status.BaseResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
492
|
+
while (reader.nextField()) {
|
|
493
|
+
if (reader.isEndGroup()) {
|
|
494
|
+
break;
|
|
419
495
|
}
|
|
420
|
-
|
|
496
|
+
var field = reader.getFieldNumber();
|
|
497
|
+
switch (field) {
|
|
498
|
+
case 1:
|
|
499
|
+
var value = new proto.clarifai.api.status.Status;
|
|
500
|
+
reader.readMessage(value,proto.clarifai.api.status.Status.deserializeBinaryFromReader);
|
|
501
|
+
msg.setStatus(value);
|
|
502
|
+
break;
|
|
503
|
+
default:
|
|
504
|
+
reader.skipField();
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return msg;
|
|
421
509
|
};
|
|
510
|
+
|
|
511
|
+
|
|
422
512
|
/**
|
|
423
513
|
* Serializes the message to binary data (in protobuf wire format).
|
|
424
514
|
* @return {!Uint8Array}
|
|
425
515
|
*/
|
|
426
|
-
proto.clarifai.api.status.BaseResponse.prototype.serializeBinary = function
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
516
|
+
proto.clarifai.api.status.BaseResponse.prototype.serializeBinary = function() {
|
|
517
|
+
var writer = new jspb.BinaryWriter();
|
|
518
|
+
proto.clarifai.api.status.BaseResponse.serializeBinaryToWriter(this, writer);
|
|
519
|
+
return writer.getResultBuffer();
|
|
430
520
|
};
|
|
521
|
+
|
|
522
|
+
|
|
431
523
|
/**
|
|
432
524
|
* Serializes the given message to binary data (in protobuf wire
|
|
433
525
|
* format), writing to the given BinaryWriter.
|
|
@@ -435,39 +527,54 @@ proto.clarifai.api.status.BaseResponse.prototype.serializeBinary = function () {
|
|
|
435
527
|
* @param {!jspb.BinaryWriter} writer
|
|
436
528
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
437
529
|
*/
|
|
438
|
-
proto.clarifai.api.status.BaseResponse.serializeBinaryToWriter = function
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
530
|
+
proto.clarifai.api.status.BaseResponse.serializeBinaryToWriter = function(message, writer) {
|
|
531
|
+
var f = undefined;
|
|
532
|
+
f = message.getStatus();
|
|
533
|
+
if (f != null) {
|
|
534
|
+
writer.writeMessage(
|
|
535
|
+
1,
|
|
536
|
+
f,
|
|
537
|
+
proto.clarifai.api.status.Status.serializeBinaryToWriter
|
|
538
|
+
);
|
|
539
|
+
}
|
|
444
540
|
};
|
|
541
|
+
|
|
542
|
+
|
|
445
543
|
/**
|
|
446
544
|
* optional Status status = 1;
|
|
447
545
|
* @return {?proto.clarifai.api.status.Status}
|
|
448
546
|
*/
|
|
449
|
-
proto.clarifai.api.status.BaseResponse.prototype.getStatus = function
|
|
450
|
-
|
|
547
|
+
proto.clarifai.api.status.BaseResponse.prototype.getStatus = function() {
|
|
548
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
549
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.status.Status, 1));
|
|
451
550
|
};
|
|
551
|
+
|
|
552
|
+
|
|
452
553
|
/**
|
|
453
554
|
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
454
555
|
* @return {!proto.clarifai.api.status.BaseResponse} returns this
|
|
455
556
|
*/
|
|
456
|
-
proto.clarifai.api.status.BaseResponse.prototype.setStatus = function
|
|
457
|
-
|
|
557
|
+
proto.clarifai.api.status.BaseResponse.prototype.setStatus = function(value) {
|
|
558
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
458
559
|
};
|
|
560
|
+
|
|
561
|
+
|
|
459
562
|
/**
|
|
460
563
|
* Clears the message field making it undefined.
|
|
461
564
|
* @return {!proto.clarifai.api.status.BaseResponse} returns this
|
|
462
565
|
*/
|
|
463
|
-
proto.clarifai.api.status.BaseResponse.prototype.clearStatus = function
|
|
464
|
-
|
|
566
|
+
proto.clarifai.api.status.BaseResponse.prototype.clearStatus = function() {
|
|
567
|
+
return this.setStatus(undefined);
|
|
465
568
|
};
|
|
569
|
+
|
|
570
|
+
|
|
466
571
|
/**
|
|
467
572
|
* Returns whether this field is set.
|
|
468
573
|
* @return {boolean}
|
|
469
574
|
*/
|
|
470
|
-
proto.clarifai.api.status.BaseResponse.prototype.hasStatus = function
|
|
471
|
-
|
|
575
|
+
proto.clarifai.api.status.BaseResponse.prototype.hasStatus = function() {
|
|
576
|
+
return jspb.Message.getField(this, 1) != null;
|
|
472
577
|
};
|
|
578
|
+
|
|
579
|
+
|
|
473
580
|
goog.object.extend(exports, proto.clarifai.api.status);
|