@aceplus/smartace-api 3.6.0-alpha.6 → 3.6.0-alpha.8
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/package.json +1 -1
- package/spic.cabinet_pb.d.ts +0 -58
- package/spic.cabinet_pb.js +0 -451
- package/spic.cabinet_pb_service.d.ts +0 -19
- package/spic.cabinet_pb_service.js +0 -40
package/package.json
CHANGED
package/spic.cabinet_pb.d.ts
CHANGED
|
@@ -276,64 +276,6 @@ export namespace CabinetProto {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
export class Image extends jspb.Message {
|
|
280
|
-
serializeBinary(): Uint8Array;
|
|
281
|
-
toObject(includeInstance?: boolean): Image.AsObject;
|
|
282
|
-
static toObject(includeInstance: boolean, msg: Image): Image.AsObject;
|
|
283
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
284
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
285
|
-
static serializeBinaryToWriter(message: Image, writer: jspb.BinaryWriter): void;
|
|
286
|
-
static deserializeBinary(bytes: Uint8Array): Image;
|
|
287
|
-
static deserializeBinaryFromReader(message: Image, reader: jspb.BinaryReader): Image;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
export namespace Image {
|
|
291
|
-
export type AsObject = {
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export class RetrieveRequest extends jspb.Message {
|
|
295
|
-
getId(): number;
|
|
296
|
-
setId(value: number): void;
|
|
297
|
-
|
|
298
|
-
serializeBinary(): Uint8Array;
|
|
299
|
-
toObject(includeInstance?: boolean): RetrieveRequest.AsObject;
|
|
300
|
-
static toObject(includeInstance: boolean, msg: RetrieveRequest): RetrieveRequest.AsObject;
|
|
301
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
302
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
303
|
-
static serializeBinaryToWriter(message: RetrieveRequest, writer: jspb.BinaryWriter): void;
|
|
304
|
-
static deserializeBinary(bytes: Uint8Array): RetrieveRequest;
|
|
305
|
-
static deserializeBinaryFromReader(message: RetrieveRequest, reader: jspb.BinaryReader): RetrieveRequest;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export namespace RetrieveRequest {
|
|
309
|
-
export type AsObject = {
|
|
310
|
-
id: number,
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export class RetrieveReply extends jspb.Message {
|
|
315
|
-
getData(): Uint8Array | string;
|
|
316
|
-
getData_asU8(): Uint8Array;
|
|
317
|
-
getData_asB64(): string;
|
|
318
|
-
setData(value: Uint8Array | string): void;
|
|
319
|
-
|
|
320
|
-
serializeBinary(): Uint8Array;
|
|
321
|
-
toObject(includeInstance?: boolean): RetrieveReply.AsObject;
|
|
322
|
-
static toObject(includeInstance: boolean, msg: RetrieveReply): RetrieveReply.AsObject;
|
|
323
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
324
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
325
|
-
static serializeBinaryToWriter(message: RetrieveReply, writer: jspb.BinaryWriter): void;
|
|
326
|
-
static deserializeBinary(bytes: Uint8Array): RetrieveReply;
|
|
327
|
-
static deserializeBinaryFromReader(message: RetrieveReply, reader: jspb.BinaryReader): RetrieveReply;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
export namespace RetrieveReply {
|
|
331
|
-
export type AsObject = {
|
|
332
|
-
data: Uint8Array | string,
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
279
|
export class State extends jspb.Message {
|
|
338
280
|
getId(): string;
|
|
339
281
|
setId(value: string): void;
|
package/spic.cabinet_pb.js
CHANGED
|
@@ -42,9 +42,6 @@ goog.exportSymbol('proto.Spic.CabinetProto.Event', null, global);
|
|
|
42
42
|
goog.exportSymbol('proto.Spic.CabinetProto.Event.EventType', null, global);
|
|
43
43
|
goog.exportSymbol('proto.Spic.CabinetProto.Event.SearchReply', null, global);
|
|
44
44
|
goog.exportSymbol('proto.Spic.CabinetProto.Event.SearchRequest', null, global);
|
|
45
|
-
goog.exportSymbol('proto.Spic.CabinetProto.Image', null, global);
|
|
46
|
-
goog.exportSymbol('proto.Spic.CabinetProto.Image.RetrieveReply', null, global);
|
|
47
|
-
goog.exportSymbol('proto.Spic.CabinetProto.Image.RetrieveRequest', null, global);
|
|
48
45
|
goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchReply', null, global);
|
|
49
46
|
goog.exportSymbol('proto.Spic.CabinetProto.LocationSearchRequest', null, global);
|
|
50
47
|
goog.exportSymbol('proto.Spic.CabinetProto.OpenRequest', null, global);
|
|
@@ -189,69 +186,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
189
186
|
*/
|
|
190
187
|
proto.Spic.CabinetProto.LocationSearchReply.displayName = 'proto.Spic.CabinetProto.LocationSearchReply';
|
|
191
188
|
}
|
|
192
|
-
/**
|
|
193
|
-
* Generated by JsPbCodeGenerator.
|
|
194
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
195
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
196
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
197
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
198
|
-
* valid.
|
|
199
|
-
* @extends {jspb.Message}
|
|
200
|
-
* @constructor
|
|
201
|
-
*/
|
|
202
|
-
proto.Spic.CabinetProto.Image = function(opt_data) {
|
|
203
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
204
|
-
};
|
|
205
|
-
goog.inherits(proto.Spic.CabinetProto.Image, jspb.Message);
|
|
206
|
-
if (goog.DEBUG && !COMPILED) {
|
|
207
|
-
/**
|
|
208
|
-
* @public
|
|
209
|
-
* @override
|
|
210
|
-
*/
|
|
211
|
-
proto.Spic.CabinetProto.Image.displayName = 'proto.Spic.CabinetProto.Image';
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Generated by JsPbCodeGenerator.
|
|
215
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
216
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
217
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
218
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
219
|
-
* valid.
|
|
220
|
-
* @extends {jspb.Message}
|
|
221
|
-
* @constructor
|
|
222
|
-
*/
|
|
223
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest = function(opt_data) {
|
|
224
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
225
|
-
};
|
|
226
|
-
goog.inherits(proto.Spic.CabinetProto.Image.RetrieveRequest, jspb.Message);
|
|
227
|
-
if (goog.DEBUG && !COMPILED) {
|
|
228
|
-
/**
|
|
229
|
-
* @public
|
|
230
|
-
* @override
|
|
231
|
-
*/
|
|
232
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.displayName = 'proto.Spic.CabinetProto.Image.RetrieveRequest';
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Generated by JsPbCodeGenerator.
|
|
236
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
237
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
238
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
239
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
240
|
-
* valid.
|
|
241
|
-
* @extends {jspb.Message}
|
|
242
|
-
* @constructor
|
|
243
|
-
*/
|
|
244
|
-
proto.Spic.CabinetProto.Image.RetrieveReply = function(opt_data) {
|
|
245
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
246
|
-
};
|
|
247
|
-
goog.inherits(proto.Spic.CabinetProto.Image.RetrieveReply, jspb.Message);
|
|
248
|
-
if (goog.DEBUG && !COMPILED) {
|
|
249
|
-
/**
|
|
250
|
-
* @public
|
|
251
|
-
* @override
|
|
252
|
-
*/
|
|
253
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.displayName = 'proto.Spic.CabinetProto.Image.RetrieveReply';
|
|
254
|
-
}
|
|
255
189
|
/**
|
|
256
190
|
* Generated by JsPbCodeGenerator.
|
|
257
191
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2133,391 +2067,6 @@ proto.Spic.CabinetProto.LocationSearchReply.prototype.clearCabinetsList = functi
|
|
|
2133
2067
|
|
|
2134
2068
|
|
|
2135
2069
|
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2139
|
-
/**
|
|
2140
|
-
* Creates an object representation of this proto.
|
|
2141
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2142
|
-
* Optional fields that are not set will be set to undefined.
|
|
2143
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2144
|
-
* For the list of reserved names please see:
|
|
2145
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2146
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2147
|
-
* JSPB instance for transitional soy proto support:
|
|
2148
|
-
* http://goto/soy-param-migration
|
|
2149
|
-
* @return {!Object}
|
|
2150
|
-
*/
|
|
2151
|
-
proto.Spic.CabinetProto.Image.prototype.toObject = function(opt_includeInstance) {
|
|
2152
|
-
return proto.Spic.CabinetProto.Image.toObject(opt_includeInstance, this);
|
|
2153
|
-
};
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
/**
|
|
2157
|
-
* Static version of the {@see toObject} method.
|
|
2158
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2159
|
-
* the JSPB instance for transitional soy proto support:
|
|
2160
|
-
* http://goto/soy-param-migration
|
|
2161
|
-
* @param {!proto.Spic.CabinetProto.Image} msg The msg instance to transform.
|
|
2162
|
-
* @return {!Object}
|
|
2163
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2164
|
-
*/
|
|
2165
|
-
proto.Spic.CabinetProto.Image.toObject = function(includeInstance, msg) {
|
|
2166
|
-
var f, obj = {
|
|
2167
|
-
|
|
2168
|
-
};
|
|
2169
|
-
|
|
2170
|
-
if (includeInstance) {
|
|
2171
|
-
obj.$jspbMessageInstance = msg;
|
|
2172
|
-
}
|
|
2173
|
-
return obj;
|
|
2174
|
-
};
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
/**
|
|
2179
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2180
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2181
|
-
* @return {!proto.Spic.CabinetProto.Image}
|
|
2182
|
-
*/
|
|
2183
|
-
proto.Spic.CabinetProto.Image.deserializeBinary = function(bytes) {
|
|
2184
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2185
|
-
var msg = new proto.Spic.CabinetProto.Image;
|
|
2186
|
-
return proto.Spic.CabinetProto.Image.deserializeBinaryFromReader(msg, reader);
|
|
2187
|
-
};
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
/**
|
|
2191
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2192
|
-
* given reader into the given message object.
|
|
2193
|
-
* @param {!proto.Spic.CabinetProto.Image} msg The message object to deserialize into.
|
|
2194
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2195
|
-
* @return {!proto.Spic.CabinetProto.Image}
|
|
2196
|
-
*/
|
|
2197
|
-
proto.Spic.CabinetProto.Image.deserializeBinaryFromReader = function(msg, reader) {
|
|
2198
|
-
while (reader.nextField()) {
|
|
2199
|
-
if (reader.isEndGroup()) {
|
|
2200
|
-
break;
|
|
2201
|
-
}
|
|
2202
|
-
var field = reader.getFieldNumber();
|
|
2203
|
-
switch (field) {
|
|
2204
|
-
default:
|
|
2205
|
-
reader.skipField();
|
|
2206
|
-
break;
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
return msg;
|
|
2210
|
-
};
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
/**
|
|
2214
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2215
|
-
* @return {!Uint8Array}
|
|
2216
|
-
*/
|
|
2217
|
-
proto.Spic.CabinetProto.Image.prototype.serializeBinary = function() {
|
|
2218
|
-
var writer = new jspb.BinaryWriter();
|
|
2219
|
-
proto.Spic.CabinetProto.Image.serializeBinaryToWriter(this, writer);
|
|
2220
|
-
return writer.getResultBuffer();
|
|
2221
|
-
};
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
/**
|
|
2225
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2226
|
-
* format), writing to the given BinaryWriter.
|
|
2227
|
-
* @param {!proto.Spic.CabinetProto.Image} message
|
|
2228
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2229
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2230
|
-
*/
|
|
2231
|
-
proto.Spic.CabinetProto.Image.serializeBinaryToWriter = function(message, writer) {
|
|
2232
|
-
var f = undefined;
|
|
2233
|
-
};
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2240
|
-
/**
|
|
2241
|
-
* Creates an object representation of this proto.
|
|
2242
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2243
|
-
* Optional fields that are not set will be set to undefined.
|
|
2244
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2245
|
-
* For the list of reserved names please see:
|
|
2246
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2247
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2248
|
-
* JSPB instance for transitional soy proto support:
|
|
2249
|
-
* http://goto/soy-param-migration
|
|
2250
|
-
* @return {!Object}
|
|
2251
|
-
*/
|
|
2252
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2253
|
-
return proto.Spic.CabinetProto.Image.RetrieveRequest.toObject(opt_includeInstance, this);
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
/**
|
|
2258
|
-
* Static version of the {@see toObject} method.
|
|
2259
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2260
|
-
* the JSPB instance for transitional soy proto support:
|
|
2261
|
-
* http://goto/soy-param-migration
|
|
2262
|
-
* @param {!proto.Spic.CabinetProto.Image.RetrieveRequest} msg The msg instance to transform.
|
|
2263
|
-
* @return {!Object}
|
|
2264
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2265
|
-
*/
|
|
2266
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.toObject = function(includeInstance, msg) {
|
|
2267
|
-
var f, obj = {
|
|
2268
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
2269
|
-
};
|
|
2270
|
-
|
|
2271
|
-
if (includeInstance) {
|
|
2272
|
-
obj.$jspbMessageInstance = msg;
|
|
2273
|
-
}
|
|
2274
|
-
return obj;
|
|
2275
|
-
};
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
/**
|
|
2280
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2281
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2282
|
-
* @return {!proto.Spic.CabinetProto.Image.RetrieveRequest}
|
|
2283
|
-
*/
|
|
2284
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.deserializeBinary = function(bytes) {
|
|
2285
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2286
|
-
var msg = new proto.Spic.CabinetProto.Image.RetrieveRequest;
|
|
2287
|
-
return proto.Spic.CabinetProto.Image.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
|
|
2288
|
-
};
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
/**
|
|
2292
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2293
|
-
* given reader into the given message object.
|
|
2294
|
-
* @param {!proto.Spic.CabinetProto.Image.RetrieveRequest} msg The message object to deserialize into.
|
|
2295
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2296
|
-
* @return {!proto.Spic.CabinetProto.Image.RetrieveRequest}
|
|
2297
|
-
*/
|
|
2298
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2299
|
-
while (reader.nextField()) {
|
|
2300
|
-
if (reader.isEndGroup()) {
|
|
2301
|
-
break;
|
|
2302
|
-
}
|
|
2303
|
-
var field = reader.getFieldNumber();
|
|
2304
|
-
switch (field) {
|
|
2305
|
-
case 1:
|
|
2306
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
2307
|
-
msg.setId(value);
|
|
2308
|
-
break;
|
|
2309
|
-
default:
|
|
2310
|
-
reader.skipField();
|
|
2311
|
-
break;
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
return msg;
|
|
2315
|
-
};
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
/**
|
|
2319
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2320
|
-
* @return {!Uint8Array}
|
|
2321
|
-
*/
|
|
2322
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.prototype.serializeBinary = function() {
|
|
2323
|
-
var writer = new jspb.BinaryWriter();
|
|
2324
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.serializeBinaryToWriter(this, writer);
|
|
2325
|
-
return writer.getResultBuffer();
|
|
2326
|
-
};
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
/**
|
|
2330
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2331
|
-
* format), writing to the given BinaryWriter.
|
|
2332
|
-
* @param {!proto.Spic.CabinetProto.Image.RetrieveRequest} message
|
|
2333
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2334
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2335
|
-
*/
|
|
2336
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2337
|
-
var f = undefined;
|
|
2338
|
-
f = message.getId();
|
|
2339
|
-
if (f !== 0) {
|
|
2340
|
-
writer.writeInt64(
|
|
2341
|
-
1,
|
|
2342
|
-
f
|
|
2343
|
-
);
|
|
2344
|
-
}
|
|
2345
|
-
};
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
/**
|
|
2349
|
-
* optional int64 id = 1;
|
|
2350
|
-
* @return {number}
|
|
2351
|
-
*/
|
|
2352
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.prototype.getId = function() {
|
|
2353
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
/**
|
|
2358
|
-
* @param {number} value
|
|
2359
|
-
* @return {!proto.Spic.CabinetProto.Image.RetrieveRequest} returns this
|
|
2360
|
-
*/
|
|
2361
|
-
proto.Spic.CabinetProto.Image.RetrieveRequest.prototype.setId = function(value) {
|
|
2362
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2363
|
-
};
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2370
|
-
/**
|
|
2371
|
-
* Creates an object representation of this proto.
|
|
2372
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2373
|
-
* Optional fields that are not set will be set to undefined.
|
|
2374
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2375
|
-
* For the list of reserved names please see:
|
|
2376
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2377
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2378
|
-
* JSPB instance for transitional soy proto support:
|
|
2379
|
-
* http://goto/soy-param-migration
|
|
2380
|
-
* @return {!Object}
|
|
2381
|
-
*/
|
|
2382
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.prototype.toObject = function(opt_includeInstance) {
|
|
2383
|
-
return proto.Spic.CabinetProto.Image.RetrieveReply.toObject(opt_includeInstance, this);
|
|
2384
|
-
};
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
/**
|
|
2388
|
-
* Static version of the {@see toObject} method.
|
|
2389
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2390
|
-
* the JSPB instance for transitional soy proto support:
|
|
2391
|
-
* http://goto/soy-param-migration
|
|
2392
|
-
* @param {!proto.Spic.CabinetProto.Image.RetrieveReply} msg The msg instance to transform.
|
|
2393
|
-
* @return {!Object}
|
|
2394
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2395
|
-
*/
|
|
2396
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.toObject = function(includeInstance, msg) {
|
|
2397
|
-
var f, obj = {
|
|
2398
|
-
data: msg.getData_asB64()
|
|
2399
|
-
};
|
|
2400
|
-
|
|
2401
|
-
if (includeInstance) {
|
|
2402
|
-
obj.$jspbMessageInstance = msg;
|
|
2403
|
-
}
|
|
2404
|
-
return obj;
|
|
2405
|
-
};
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
/**
|
|
2410
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2411
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2412
|
-
* @return {!proto.Spic.CabinetProto.Image.RetrieveReply}
|
|
2413
|
-
*/
|
|
2414
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.deserializeBinary = function(bytes) {
|
|
2415
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2416
|
-
var msg = new proto.Spic.CabinetProto.Image.RetrieveReply;
|
|
2417
|
-
return proto.Spic.CabinetProto.Image.RetrieveReply.deserializeBinaryFromReader(msg, reader);
|
|
2418
|
-
};
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
/**
|
|
2422
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2423
|
-
* given reader into the given message object.
|
|
2424
|
-
* @param {!proto.Spic.CabinetProto.Image.RetrieveReply} msg The message object to deserialize into.
|
|
2425
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2426
|
-
* @return {!proto.Spic.CabinetProto.Image.RetrieveReply}
|
|
2427
|
-
*/
|
|
2428
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.deserializeBinaryFromReader = function(msg, reader) {
|
|
2429
|
-
while (reader.nextField()) {
|
|
2430
|
-
if (reader.isEndGroup()) {
|
|
2431
|
-
break;
|
|
2432
|
-
}
|
|
2433
|
-
var field = reader.getFieldNumber();
|
|
2434
|
-
switch (field) {
|
|
2435
|
-
case 1:
|
|
2436
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
2437
|
-
msg.setData(value);
|
|
2438
|
-
break;
|
|
2439
|
-
default:
|
|
2440
|
-
reader.skipField();
|
|
2441
|
-
break;
|
|
2442
|
-
}
|
|
2443
|
-
}
|
|
2444
|
-
return msg;
|
|
2445
|
-
};
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
/**
|
|
2449
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2450
|
-
* @return {!Uint8Array}
|
|
2451
|
-
*/
|
|
2452
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.prototype.serializeBinary = function() {
|
|
2453
|
-
var writer = new jspb.BinaryWriter();
|
|
2454
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.serializeBinaryToWriter(this, writer);
|
|
2455
|
-
return writer.getResultBuffer();
|
|
2456
|
-
};
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
/**
|
|
2460
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2461
|
-
* format), writing to the given BinaryWriter.
|
|
2462
|
-
* @param {!proto.Spic.CabinetProto.Image.RetrieveReply} message
|
|
2463
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2464
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2465
|
-
*/
|
|
2466
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.serializeBinaryToWriter = function(message, writer) {
|
|
2467
|
-
var f = undefined;
|
|
2468
|
-
f = message.getData_asU8();
|
|
2469
|
-
if (f.length > 0) {
|
|
2470
|
-
writer.writeBytes(
|
|
2471
|
-
1,
|
|
2472
|
-
f
|
|
2473
|
-
);
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
/**
|
|
2479
|
-
* optional bytes data = 1;
|
|
2480
|
-
* @return {!(string|Uint8Array)}
|
|
2481
|
-
*/
|
|
2482
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.prototype.getData = function() {
|
|
2483
|
-
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2484
|
-
};
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
/**
|
|
2488
|
-
* optional bytes data = 1;
|
|
2489
|
-
* This is a type-conversion wrapper around `getData()`
|
|
2490
|
-
* @return {string}
|
|
2491
|
-
*/
|
|
2492
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.prototype.getData_asB64 = function() {
|
|
2493
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
2494
|
-
this.getData()));
|
|
2495
|
-
};
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
/**
|
|
2499
|
-
* optional bytes data = 1;
|
|
2500
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
2501
|
-
* @see http://caniuse.com/Uint8Array
|
|
2502
|
-
* This is a type-conversion wrapper around `getData()`
|
|
2503
|
-
* @return {!Uint8Array}
|
|
2504
|
-
*/
|
|
2505
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.prototype.getData_asU8 = function() {
|
|
2506
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
2507
|
-
this.getData()));
|
|
2508
|
-
};
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
/**
|
|
2512
|
-
* @param {!(string|Uint8Array)} value
|
|
2513
|
-
* @return {!proto.Spic.CabinetProto.Image.RetrieveReply} returns this
|
|
2514
|
-
*/
|
|
2515
|
-
proto.Spic.CabinetProto.Image.RetrieveReply.prototype.setData = function(value) {
|
|
2516
|
-
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
2517
|
-
};
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
2070
|
/**
|
|
2522
2071
|
* List of repeated fields within this message type.
|
|
2523
2072
|
* @private {!Array<number>}
|
|
@@ -14,15 +14,6 @@ type CabinetGRPCRetrieve = {
|
|
|
14
14
|
readonly responseType: typeof spic_cabinet_pb.CabinetWithLocation;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
type CabinetGRPCRetrieveImage = {
|
|
18
|
-
readonly methodName: string;
|
|
19
|
-
readonly service: typeof CabinetGRPC;
|
|
20
|
-
readonly requestStream: false;
|
|
21
|
-
readonly responseStream: false;
|
|
22
|
-
readonly requestType: typeof spic_cabinet_pb.CabinetProto.Image.RetrieveRequest;
|
|
23
|
-
readonly responseType: typeof spic_cabinet_pb.CabinetProto.Image.RetrieveReply;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
17
|
type CabinetGRPCSearch = {
|
|
27
18
|
readonly methodName: string;
|
|
28
19
|
readonly service: typeof CabinetGRPC;
|
|
@@ -80,7 +71,6 @@ type CabinetGRPCCreateOpenRequest = {
|
|
|
80
71
|
export class CabinetGRPC {
|
|
81
72
|
static readonly serviceName: string;
|
|
82
73
|
static readonly Retrieve: CabinetGRPCRetrieve;
|
|
83
|
-
static readonly RetrieveImage: CabinetGRPCRetrieveImage;
|
|
84
74
|
static readonly Search: CabinetGRPCSearch;
|
|
85
75
|
static readonly LocationSearch: CabinetGRPCLocationSearch;
|
|
86
76
|
static readonly SearchStates: CabinetGRPCSearchStates;
|
|
@@ -164,15 +154,6 @@ export class CabinetGRPCClient {
|
|
|
164
154
|
requestMessage: spic_cabinet_pb.CabinetProto.RetrieveRequest,
|
|
165
155
|
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetWithLocation|null) => void
|
|
166
156
|
): UnaryResponse;
|
|
167
|
-
retrieveImage(
|
|
168
|
-
requestMessage: spic_cabinet_pb.CabinetProto.Image.RetrieveRequest,
|
|
169
|
-
metadata: grpc.Metadata,
|
|
170
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Image.RetrieveReply|null) => void
|
|
171
|
-
): UnaryResponse;
|
|
172
|
-
retrieveImage(
|
|
173
|
-
requestMessage: spic_cabinet_pb.CabinetProto.Image.RetrieveRequest,
|
|
174
|
-
callback: (error: ServiceError|null, responseMessage: spic_cabinet_pb.CabinetProto.Image.RetrieveReply|null) => void
|
|
175
|
-
): UnaryResponse;
|
|
176
157
|
search(
|
|
177
158
|
requestMessage: spic_cabinet_pb.CabinetProto.SearchRequest,
|
|
178
159
|
metadata: grpc.Metadata,
|
|
@@ -20,15 +20,6 @@ CabinetGRPC.Retrieve = {
|
|
|
20
20
|
responseType: spic_cabinet_pb.CabinetWithLocation
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
CabinetGRPC.RetrieveImage = {
|
|
24
|
-
methodName: "RetrieveImage",
|
|
25
|
-
service: CabinetGRPC,
|
|
26
|
-
requestStream: false,
|
|
27
|
-
responseStream: false,
|
|
28
|
-
requestType: spic_cabinet_pb.CabinetProto.Image.RetrieveRequest,
|
|
29
|
-
responseType: spic_cabinet_pb.CabinetProto.Image.RetrieveReply
|
|
30
|
-
};
|
|
31
|
-
|
|
32
23
|
CabinetGRPC.Search = {
|
|
33
24
|
methodName: "Search",
|
|
34
25
|
service: CabinetGRPC,
|
|
@@ -121,37 +112,6 @@ CabinetGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadat
|
|
|
121
112
|
};
|
|
122
113
|
};
|
|
123
114
|
|
|
124
|
-
CabinetGRPCClient.prototype.retrieveImage = function retrieveImage(requestMessage, metadata, callback) {
|
|
125
|
-
if (arguments.length === 2) {
|
|
126
|
-
callback = arguments[1];
|
|
127
|
-
}
|
|
128
|
-
var client = grpc.unary(CabinetGRPC.RetrieveImage, {
|
|
129
|
-
request: requestMessage,
|
|
130
|
-
host: this.serviceHost,
|
|
131
|
-
metadata: metadata,
|
|
132
|
-
transport: this.options.transport,
|
|
133
|
-
debug: this.options.debug,
|
|
134
|
-
onEnd: function (response) {
|
|
135
|
-
if (callback) {
|
|
136
|
-
if (response.status !== grpc.Code.OK) {
|
|
137
|
-
var err = new Error(response.statusMessage);
|
|
138
|
-
err.code = response.status;
|
|
139
|
-
err.metadata = response.trailers;
|
|
140
|
-
callback(err, null);
|
|
141
|
-
} else {
|
|
142
|
-
callback(null, response.message);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
return {
|
|
148
|
-
cancel: function () {
|
|
149
|
-
callback = null;
|
|
150
|
-
client.close();
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
|
|
155
115
|
CabinetGRPCClient.prototype.search = function search(requestMessage, metadata, callback) {
|
|
156
116
|
if (arguments.length === 2) {
|
|
157
117
|
callback = arguments[1];
|