@aceplus/smartace-api 3.7.0-alpha.13 → 3.7.0-alpha.14
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
CHANGED
|
@@ -267,5 +267,51 @@ export namespace LocationProto {
|
|
|
267
267
|
export type AsObject = {
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
+
|
|
271
|
+
export class GetNearLocationsRequest extends jspb.Message {
|
|
272
|
+
getLatitude(): number;
|
|
273
|
+
setLatitude(value: number): void;
|
|
274
|
+
|
|
275
|
+
getLongitude(): number;
|
|
276
|
+
setLongitude(value: number): void;
|
|
277
|
+
|
|
278
|
+
serializeBinary(): Uint8Array;
|
|
279
|
+
toObject(includeInstance?: boolean): GetNearLocationsRequest.AsObject;
|
|
280
|
+
static toObject(includeInstance: boolean, msg: GetNearLocationsRequest): GetNearLocationsRequest.AsObject;
|
|
281
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
282
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
283
|
+
static serializeBinaryToWriter(message: GetNearLocationsRequest, writer: jspb.BinaryWriter): void;
|
|
284
|
+
static deserializeBinary(bytes: Uint8Array): GetNearLocationsRequest;
|
|
285
|
+
static deserializeBinaryFromReader(message: GetNearLocationsRequest, reader: jspb.BinaryReader): GetNearLocationsRequest;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export namespace GetNearLocationsRequest {
|
|
289
|
+
export type AsObject = {
|
|
290
|
+
latitude: number,
|
|
291
|
+
longitude: number,
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export class GetNearLocationsResponse extends jspb.Message {
|
|
296
|
+
clearLocationsList(): void;
|
|
297
|
+
getLocationsList(): Array<LocationProto>;
|
|
298
|
+
setLocationsList(value: Array<LocationProto>): void;
|
|
299
|
+
addLocations(value?: LocationProto, index?: number): LocationProto;
|
|
300
|
+
|
|
301
|
+
serializeBinary(): Uint8Array;
|
|
302
|
+
toObject(includeInstance?: boolean): GetNearLocationsResponse.AsObject;
|
|
303
|
+
static toObject(includeInstance: boolean, msg: GetNearLocationsResponse): GetNearLocationsResponse.AsObject;
|
|
304
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
305
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
306
|
+
static serializeBinaryToWriter(message: GetNearLocationsResponse, writer: jspb.BinaryWriter): void;
|
|
307
|
+
static deserializeBinary(bytes: Uint8Array): GetNearLocationsResponse;
|
|
308
|
+
static deserializeBinaryFromReader(message: GetNearLocationsResponse, reader: jspb.BinaryReader): GetNearLocationsResponse;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export namespace GetNearLocationsResponse {
|
|
312
|
+
export type AsObject = {
|
|
313
|
+
locationsList: Array<LocationProto.AsObject>,
|
|
314
|
+
}
|
|
315
|
+
}
|
|
270
316
|
}
|
|
271
317
|
|
package/platform.location_pb.js
CHANGED
|
@@ -29,6 +29,8 @@ goog.exportSymbol('proto.Platform.LocationProto', null, global);
|
|
|
29
29
|
goog.exportSymbol('proto.Platform.LocationProto.CreateRequest', null, global);
|
|
30
30
|
goog.exportSymbol('proto.Platform.LocationProto.DeleteReply', null, global);
|
|
31
31
|
goog.exportSymbol('proto.Platform.LocationProto.DeleteRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.Platform.LocationProto.GetNearLocationsRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.Platform.LocationProto.GetNearLocationsResponse', null, global);
|
|
32
34
|
goog.exportSymbol('proto.Platform.LocationProto.RetrieveRequest', null, global);
|
|
33
35
|
goog.exportSymbol('proto.Platform.LocationProto.SearchReply', null, global);
|
|
34
36
|
goog.exportSymbol('proto.Platform.LocationProto.SearchRequest', null, global);
|
|
@@ -201,6 +203,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
201
203
|
*/
|
|
202
204
|
proto.Platform.LocationProto.DeleteReply.displayName = 'proto.Platform.LocationProto.DeleteReply';
|
|
203
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Generated by JsPbCodeGenerator.
|
|
208
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
209
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
210
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
211
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
212
|
+
* valid.
|
|
213
|
+
* @extends {jspb.Message}
|
|
214
|
+
* @constructor
|
|
215
|
+
*/
|
|
216
|
+
proto.Platform.LocationProto.GetNearLocationsRequest = function(opt_data) {
|
|
217
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
218
|
+
};
|
|
219
|
+
goog.inherits(proto.Platform.LocationProto.GetNearLocationsRequest, jspb.Message);
|
|
220
|
+
if (goog.DEBUG && !COMPILED) {
|
|
221
|
+
/**
|
|
222
|
+
* @public
|
|
223
|
+
* @override
|
|
224
|
+
*/
|
|
225
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.displayName = 'proto.Platform.LocationProto.GetNearLocationsRequest';
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Generated by JsPbCodeGenerator.
|
|
229
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
230
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
231
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
232
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
233
|
+
* valid.
|
|
234
|
+
* @extends {jspb.Message}
|
|
235
|
+
* @constructor
|
|
236
|
+
*/
|
|
237
|
+
proto.Platform.LocationProto.GetNearLocationsResponse = function(opt_data) {
|
|
238
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocationProto.GetNearLocationsResponse.repeatedFields_, null);
|
|
239
|
+
};
|
|
240
|
+
goog.inherits(proto.Platform.LocationProto.GetNearLocationsResponse, jspb.Message);
|
|
241
|
+
if (goog.DEBUG && !COMPILED) {
|
|
242
|
+
/**
|
|
243
|
+
* @public
|
|
244
|
+
* @override
|
|
245
|
+
*/
|
|
246
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.displayName = 'proto.Platform.LocationProto.GetNearLocationsResponse';
|
|
247
|
+
}
|
|
204
248
|
|
|
205
249
|
|
|
206
250
|
|
|
@@ -1881,6 +1925,326 @@ proto.Platform.LocationProto.DeleteReply.serializeBinaryToWriter = function(mess
|
|
|
1881
1925
|
};
|
|
1882
1926
|
|
|
1883
1927
|
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1932
|
+
/**
|
|
1933
|
+
* Creates an object representation of this proto.
|
|
1934
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1935
|
+
* Optional fields that are not set will be set to undefined.
|
|
1936
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1937
|
+
* For the list of reserved names please see:
|
|
1938
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1939
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1940
|
+
* JSPB instance for transitional soy proto support:
|
|
1941
|
+
* http://goto/soy-param-migration
|
|
1942
|
+
* @return {!Object}
|
|
1943
|
+
*/
|
|
1944
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1945
|
+
return proto.Platform.LocationProto.GetNearLocationsRequest.toObject(opt_includeInstance, this);
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* Static version of the {@see toObject} method.
|
|
1951
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1952
|
+
* the JSPB instance for transitional soy proto support:
|
|
1953
|
+
* http://goto/soy-param-migration
|
|
1954
|
+
* @param {!proto.Platform.LocationProto.GetNearLocationsRequest} msg The msg instance to transform.
|
|
1955
|
+
* @return {!Object}
|
|
1956
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1957
|
+
*/
|
|
1958
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.toObject = function(includeInstance, msg) {
|
|
1959
|
+
var f, obj = {
|
|
1960
|
+
latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
1961
|
+
longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
if (includeInstance) {
|
|
1965
|
+
obj.$jspbMessageInstance = msg;
|
|
1966
|
+
}
|
|
1967
|
+
return obj;
|
|
1968
|
+
};
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1974
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1975
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsRequest}
|
|
1976
|
+
*/
|
|
1977
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.deserializeBinary = function(bytes) {
|
|
1978
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1979
|
+
var msg = new proto.Platform.LocationProto.GetNearLocationsRequest;
|
|
1980
|
+
return proto.Platform.LocationProto.GetNearLocationsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1986
|
+
* given reader into the given message object.
|
|
1987
|
+
* @param {!proto.Platform.LocationProto.GetNearLocationsRequest} msg The message object to deserialize into.
|
|
1988
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1989
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsRequest}
|
|
1990
|
+
*/
|
|
1991
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1992
|
+
while (reader.nextField()) {
|
|
1993
|
+
if (reader.isEndGroup()) {
|
|
1994
|
+
break;
|
|
1995
|
+
}
|
|
1996
|
+
var field = reader.getFieldNumber();
|
|
1997
|
+
switch (field) {
|
|
1998
|
+
case 1:
|
|
1999
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
2000
|
+
msg.setLatitude(value);
|
|
2001
|
+
break;
|
|
2002
|
+
case 2:
|
|
2003
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
2004
|
+
msg.setLongitude(value);
|
|
2005
|
+
break;
|
|
2006
|
+
default:
|
|
2007
|
+
reader.skipField();
|
|
2008
|
+
break;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
return msg;
|
|
2012
|
+
};
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2017
|
+
* @return {!Uint8Array}
|
|
2018
|
+
*/
|
|
2019
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.prototype.serializeBinary = function() {
|
|
2020
|
+
var writer = new jspb.BinaryWriter();
|
|
2021
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.serializeBinaryToWriter(this, writer);
|
|
2022
|
+
return writer.getResultBuffer();
|
|
2023
|
+
};
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2028
|
+
* format), writing to the given BinaryWriter.
|
|
2029
|
+
* @param {!proto.Platform.LocationProto.GetNearLocationsRequest} message
|
|
2030
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2031
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2032
|
+
*/
|
|
2033
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2034
|
+
var f = undefined;
|
|
2035
|
+
f = message.getLatitude();
|
|
2036
|
+
if (f !== 0.0) {
|
|
2037
|
+
writer.writeDouble(
|
|
2038
|
+
1,
|
|
2039
|
+
f
|
|
2040
|
+
);
|
|
2041
|
+
}
|
|
2042
|
+
f = message.getLongitude();
|
|
2043
|
+
if (f !== 0.0) {
|
|
2044
|
+
writer.writeDouble(
|
|
2045
|
+
2,
|
|
2046
|
+
f
|
|
2047
|
+
);
|
|
2048
|
+
}
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* optional double latitude = 1;
|
|
2054
|
+
* @return {number}
|
|
2055
|
+
*/
|
|
2056
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.prototype.getLatitude = function() {
|
|
2057
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* @param {number} value
|
|
2063
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsRequest} returns this
|
|
2064
|
+
*/
|
|
2065
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.prototype.setLatitude = function(value) {
|
|
2066
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
2067
|
+
};
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* optional double longitude = 2;
|
|
2072
|
+
* @return {number}
|
|
2073
|
+
*/
|
|
2074
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.prototype.getLongitude = function() {
|
|
2075
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2076
|
+
};
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* @param {number} value
|
|
2081
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsRequest} returns this
|
|
2082
|
+
*/
|
|
2083
|
+
proto.Platform.LocationProto.GetNearLocationsRequest.prototype.setLongitude = function(value) {
|
|
2084
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* List of repeated fields within this message type.
|
|
2091
|
+
* @private {!Array<number>}
|
|
2092
|
+
* @const
|
|
2093
|
+
*/
|
|
2094
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.repeatedFields_ = [1];
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2099
|
+
/**
|
|
2100
|
+
* Creates an object representation of this proto.
|
|
2101
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2102
|
+
* Optional fields that are not set will be set to undefined.
|
|
2103
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2104
|
+
* For the list of reserved names please see:
|
|
2105
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2106
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2107
|
+
* JSPB instance for transitional soy proto support:
|
|
2108
|
+
* http://goto/soy-param-migration
|
|
2109
|
+
* @return {!Object}
|
|
2110
|
+
*/
|
|
2111
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2112
|
+
return proto.Platform.LocationProto.GetNearLocationsResponse.toObject(opt_includeInstance, this);
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Static version of the {@see toObject} method.
|
|
2118
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2119
|
+
* the JSPB instance for transitional soy proto support:
|
|
2120
|
+
* http://goto/soy-param-migration
|
|
2121
|
+
* @param {!proto.Platform.LocationProto.GetNearLocationsResponse} msg The msg instance to transform.
|
|
2122
|
+
* @return {!Object}
|
|
2123
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2124
|
+
*/
|
|
2125
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.toObject = function(includeInstance, msg) {
|
|
2126
|
+
var f, obj = {
|
|
2127
|
+
locationsList: jspb.Message.toObjectList(msg.getLocationsList(),
|
|
2128
|
+
proto.Platform.LocationProto.toObject, includeInstance)
|
|
2129
|
+
};
|
|
2130
|
+
|
|
2131
|
+
if (includeInstance) {
|
|
2132
|
+
obj.$jspbMessageInstance = msg;
|
|
2133
|
+
}
|
|
2134
|
+
return obj;
|
|
2135
|
+
};
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2141
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2142
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsResponse}
|
|
2143
|
+
*/
|
|
2144
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.deserializeBinary = function(bytes) {
|
|
2145
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2146
|
+
var msg = new proto.Platform.LocationProto.GetNearLocationsResponse;
|
|
2147
|
+
return proto.Platform.LocationProto.GetNearLocationsResponse.deserializeBinaryFromReader(msg, reader);
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2153
|
+
* given reader into the given message object.
|
|
2154
|
+
* @param {!proto.Platform.LocationProto.GetNearLocationsResponse} msg The message object to deserialize into.
|
|
2155
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2156
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsResponse}
|
|
2157
|
+
*/
|
|
2158
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2159
|
+
while (reader.nextField()) {
|
|
2160
|
+
if (reader.isEndGroup()) {
|
|
2161
|
+
break;
|
|
2162
|
+
}
|
|
2163
|
+
var field = reader.getFieldNumber();
|
|
2164
|
+
switch (field) {
|
|
2165
|
+
case 1:
|
|
2166
|
+
var value = new proto.Platform.LocationProto;
|
|
2167
|
+
reader.readMessage(value,proto.Platform.LocationProto.deserializeBinaryFromReader);
|
|
2168
|
+
msg.addLocations(value);
|
|
2169
|
+
break;
|
|
2170
|
+
default:
|
|
2171
|
+
reader.skipField();
|
|
2172
|
+
break;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
return msg;
|
|
2176
|
+
};
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2181
|
+
* @return {!Uint8Array}
|
|
2182
|
+
*/
|
|
2183
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.prototype.serializeBinary = function() {
|
|
2184
|
+
var writer = new jspb.BinaryWriter();
|
|
2185
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.serializeBinaryToWriter(this, writer);
|
|
2186
|
+
return writer.getResultBuffer();
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2192
|
+
* format), writing to the given BinaryWriter.
|
|
2193
|
+
* @param {!proto.Platform.LocationProto.GetNearLocationsResponse} message
|
|
2194
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2195
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2196
|
+
*/
|
|
2197
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2198
|
+
var f = undefined;
|
|
2199
|
+
f = message.getLocationsList();
|
|
2200
|
+
if (f.length > 0) {
|
|
2201
|
+
writer.writeRepeatedMessage(
|
|
2202
|
+
1,
|
|
2203
|
+
f,
|
|
2204
|
+
proto.Platform.LocationProto.serializeBinaryToWriter
|
|
2205
|
+
);
|
|
2206
|
+
}
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* repeated LocationProto locations = 1;
|
|
2212
|
+
* @return {!Array<!proto.Platform.LocationProto>}
|
|
2213
|
+
*/
|
|
2214
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.prototype.getLocationsList = function() {
|
|
2215
|
+
return /** @type{!Array<!proto.Platform.LocationProto>} */ (
|
|
2216
|
+
jspb.Message.getRepeatedWrapperField(this, proto.Platform.LocationProto, 1));
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* @param {!Array<!proto.Platform.LocationProto>} value
|
|
2222
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsResponse} returns this
|
|
2223
|
+
*/
|
|
2224
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.prototype.setLocationsList = function(value) {
|
|
2225
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* @param {!proto.Platform.LocationProto=} opt_value
|
|
2231
|
+
* @param {number=} opt_index
|
|
2232
|
+
* @return {!proto.Platform.LocationProto}
|
|
2233
|
+
*/
|
|
2234
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.prototype.addLocations = function(opt_value, opt_index) {
|
|
2235
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.LocationProto, opt_index);
|
|
2236
|
+
};
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* Clears the list making it empty but non-null.
|
|
2241
|
+
* @return {!proto.Platform.LocationProto.GetNearLocationsResponse} returns this
|
|
2242
|
+
*/
|
|
2243
|
+
proto.Platform.LocationProto.GetNearLocationsResponse.prototype.clearLocationsList = function() {
|
|
2244
|
+
return this.setLocationsList([]);
|
|
2245
|
+
};
|
|
2246
|
+
|
|
2247
|
+
|
|
1884
2248
|
/**
|
|
1885
2249
|
* optional int64 id = 1;
|
|
1886
2250
|
* @return {number}
|
|
@@ -49,6 +49,15 @@ type LocationGRPCSearch = {
|
|
|
49
49
|
readonly responseType: typeof platform_location_pb.LocationProto.SearchReply;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type LocationGRPCGetNearLocations = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof LocationGRPC;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof platform_location_pb.LocationProto.GetNearLocationsRequest;
|
|
58
|
+
readonly responseType: typeof platform_location_pb.LocationProto.GetNearLocationsResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
export class LocationGRPC {
|
|
53
62
|
static readonly serviceName: string;
|
|
54
63
|
static readonly Create: LocationGRPCCreate;
|
|
@@ -56,6 +65,7 @@ export class LocationGRPC {
|
|
|
56
65
|
static readonly Update: LocationGRPCUpdate;
|
|
57
66
|
static readonly Delete: LocationGRPCDelete;
|
|
58
67
|
static readonly Search: LocationGRPCSearch;
|
|
68
|
+
static readonly GetNearLocations: LocationGRPCGetNearLocations;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -135,5 +145,14 @@ export class LocationGRPCClient {
|
|
|
135
145
|
requestMessage: platform_location_pb.LocationProto.SearchRequest,
|
|
136
146
|
callback: (error: ServiceError|null, responseMessage: platform_location_pb.LocationProto.SearchReply|null) => void
|
|
137
147
|
): UnaryResponse;
|
|
148
|
+
getNearLocations(
|
|
149
|
+
requestMessage: platform_location_pb.LocationProto.GetNearLocationsRequest,
|
|
150
|
+
metadata: grpc.Metadata,
|
|
151
|
+
callback: (error: ServiceError|null, responseMessage: platform_location_pb.LocationProto.GetNearLocationsResponse|null) => void
|
|
152
|
+
): UnaryResponse;
|
|
153
|
+
getNearLocations(
|
|
154
|
+
requestMessage: platform_location_pb.LocationProto.GetNearLocationsRequest,
|
|
155
|
+
callback: (error: ServiceError|null, responseMessage: platform_location_pb.LocationProto.GetNearLocationsResponse|null) => void
|
|
156
|
+
): UnaryResponse;
|
|
138
157
|
}
|
|
139
158
|
|
|
@@ -55,6 +55,15 @@ LocationGRPC.Search = {
|
|
|
55
55
|
responseType: platform_location_pb.LocationProto.SearchReply
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
LocationGRPC.GetNearLocations = {
|
|
59
|
+
methodName: "GetNearLocations",
|
|
60
|
+
service: LocationGRPC,
|
|
61
|
+
requestStream: false,
|
|
62
|
+
responseStream: false,
|
|
63
|
+
requestType: platform_location_pb.LocationProto.GetNearLocationsRequest,
|
|
64
|
+
responseType: platform_location_pb.LocationProto.GetNearLocationsResponse
|
|
65
|
+
};
|
|
66
|
+
|
|
58
67
|
exports.LocationGRPC = LocationGRPC;
|
|
59
68
|
|
|
60
69
|
function LocationGRPCClient(serviceHost, options) {
|
|
@@ -217,5 +226,36 @@ LocationGRPCClient.prototype.search = function search(requestMessage, metadata,
|
|
|
217
226
|
};
|
|
218
227
|
};
|
|
219
228
|
|
|
229
|
+
LocationGRPCClient.prototype.getNearLocations = function getNearLocations(requestMessage, metadata, callback) {
|
|
230
|
+
if (arguments.length === 2) {
|
|
231
|
+
callback = arguments[1];
|
|
232
|
+
}
|
|
233
|
+
var client = grpc.unary(LocationGRPC.GetNearLocations, {
|
|
234
|
+
request: requestMessage,
|
|
235
|
+
host: this.serviceHost,
|
|
236
|
+
metadata: metadata,
|
|
237
|
+
transport: this.options.transport,
|
|
238
|
+
debug: this.options.debug,
|
|
239
|
+
onEnd: function (response) {
|
|
240
|
+
if (callback) {
|
|
241
|
+
if (response.status !== grpc.Code.OK) {
|
|
242
|
+
var err = new Error(response.statusMessage);
|
|
243
|
+
err.code = response.status;
|
|
244
|
+
err.metadata = response.trailers;
|
|
245
|
+
callback(err, null);
|
|
246
|
+
} else {
|
|
247
|
+
callback(null, response.message);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
return {
|
|
253
|
+
cancel: function () {
|
|
254
|
+
callback = null;
|
|
255
|
+
client.close();
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
|
|
220
260
|
exports.LocationGRPCClient = LocationGRPCClient;
|
|
221
261
|
|