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