@aceplus/smartace-api 3.7.0-alpha.13 → 3.7.0-alpha.15

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
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "3.7.0-alpha.13",
8
+ "version": "3.7.0-alpha.15",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -248,5 +248,61 @@ export namespace GroupProto {
248
248
  pagination?: platform_pagination_pb.PaginationProto.AsObject,
249
249
  }
250
250
  }
251
+
252
+ export class GetGroupRequest extends jspb.Message {
253
+ getUserId(): number;
254
+ setUserId(value: number): void;
255
+
256
+ getPage(): number;
257
+ setPage(value: number): void;
258
+
259
+ getCount(): number;
260
+ setCount(value: number): void;
261
+
262
+ serializeBinary(): Uint8Array;
263
+ toObject(includeInstance?: boolean): GetGroupRequest.AsObject;
264
+ static toObject(includeInstance: boolean, msg: GetGroupRequest): GetGroupRequest.AsObject;
265
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
266
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
267
+ static serializeBinaryToWriter(message: GetGroupRequest, writer: jspb.BinaryWriter): void;
268
+ static deserializeBinary(bytes: Uint8Array): GetGroupRequest;
269
+ static deserializeBinaryFromReader(message: GetGroupRequest, reader: jspb.BinaryReader): GetGroupRequest;
270
+ }
271
+
272
+ export namespace GetGroupRequest {
273
+ export type AsObject = {
274
+ userId: number,
275
+ page: number,
276
+ count: number,
277
+ }
278
+ }
279
+
280
+ export class GetGroupsResponse extends jspb.Message {
281
+ clearGroupsList(): void;
282
+ getGroupsList(): Array<GroupProto>;
283
+ setGroupsList(value: Array<GroupProto>): void;
284
+ addGroups(value?: GroupProto, index?: number): GroupProto;
285
+
286
+ hasPagination(): boolean;
287
+ clearPagination(): void;
288
+ getPagination(): platform_pagination_pb.PaginationProto | undefined;
289
+ setPagination(value?: platform_pagination_pb.PaginationProto): void;
290
+
291
+ serializeBinary(): Uint8Array;
292
+ toObject(includeInstance?: boolean): GetGroupsResponse.AsObject;
293
+ static toObject(includeInstance: boolean, msg: GetGroupsResponse): GetGroupsResponse.AsObject;
294
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
295
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
296
+ static serializeBinaryToWriter(message: GetGroupsResponse, writer: jspb.BinaryWriter): void;
297
+ static deserializeBinary(bytes: Uint8Array): GetGroupsResponse;
298
+ static deserializeBinaryFromReader(message: GetGroupsResponse, reader: jspb.BinaryReader): GetGroupsResponse;
299
+ }
300
+
301
+ export namespace GetGroupsResponse {
302
+ export type AsObject = {
303
+ groupsList: Array<GroupProto.AsObject>,
304
+ pagination?: platform_pagination_pb.PaginationProto.AsObject,
305
+ }
306
+ }
251
307
  }
252
308
 
@@ -31,6 +31,8 @@ goog.exportSymbol('proto.Platform.GroupProto', null, global);
31
31
  goog.exportSymbol('proto.Platform.GroupProto.CreateRequest', null, global);
32
32
  goog.exportSymbol('proto.Platform.GroupProto.DeleteReply', null, global);
33
33
  goog.exportSymbol('proto.Platform.GroupProto.DeleteRequest', null, global);
34
+ goog.exportSymbol('proto.Platform.GroupProto.GetGroupRequest', null, global);
35
+ goog.exportSymbol('proto.Platform.GroupProto.GetGroupsResponse', null, global);
34
36
  goog.exportSymbol('proto.Platform.GroupProto.GetSpicsRequest', null, global);
35
37
  goog.exportSymbol('proto.Platform.GroupProto.GetSpicsResponse', null, global);
36
38
  goog.exportSymbol('proto.Platform.GroupProto.RetrieveRequest', null, global);
@@ -247,6 +249,48 @@ if (goog.DEBUG && !COMPILED) {
247
249
  */
248
250
  proto.Platform.GroupProto.GetSpicsResponse.displayName = 'proto.Platform.GroupProto.GetSpicsResponse';
249
251
  }
252
+ /**
253
+ * Generated by JsPbCodeGenerator.
254
+ * @param {Array=} opt_data Optional initial data array, typically from a
255
+ * server response, or constructed directly in Javascript. The array is used
256
+ * in place and becomes part of the constructed object. It is not cloned.
257
+ * If no data is provided, the constructed object will be empty, but still
258
+ * valid.
259
+ * @extends {jspb.Message}
260
+ * @constructor
261
+ */
262
+ proto.Platform.GroupProto.GetGroupRequest = function(opt_data) {
263
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
264
+ };
265
+ goog.inherits(proto.Platform.GroupProto.GetGroupRequest, jspb.Message);
266
+ if (goog.DEBUG && !COMPILED) {
267
+ /**
268
+ * @public
269
+ * @override
270
+ */
271
+ proto.Platform.GroupProto.GetGroupRequest.displayName = 'proto.Platform.GroupProto.GetGroupRequest';
272
+ }
273
+ /**
274
+ * Generated by JsPbCodeGenerator.
275
+ * @param {Array=} opt_data Optional initial data array, typically from a
276
+ * server response, or constructed directly in Javascript. The array is used
277
+ * in place and becomes part of the constructed object. It is not cloned.
278
+ * If no data is provided, the constructed object will be empty, but still
279
+ * valid.
280
+ * @extends {jspb.Message}
281
+ * @constructor
282
+ */
283
+ proto.Platform.GroupProto.GetGroupsResponse = function(opt_data) {
284
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.GroupProto.GetGroupsResponse.repeatedFields_, null);
285
+ };
286
+ goog.inherits(proto.Platform.GroupProto.GetGroupsResponse, jspb.Message);
287
+ if (goog.DEBUG && !COMPILED) {
288
+ /**
289
+ * @public
290
+ * @override
291
+ */
292
+ proto.Platform.GroupProto.GetGroupsResponse.displayName = 'proto.Platform.GroupProto.GetGroupsResponse';
293
+ }
250
294
 
251
295
 
252
296
 
@@ -1884,6 +1928,407 @@ proto.Platform.GroupProto.GetSpicsResponse.prototype.hasPagination = function()
1884
1928
  };
1885
1929
 
1886
1930
 
1931
+
1932
+
1933
+
1934
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1935
+ /**
1936
+ * Creates an object representation of this proto.
1937
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1938
+ * Optional fields that are not set will be set to undefined.
1939
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1940
+ * For the list of reserved names please see:
1941
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1942
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1943
+ * JSPB instance for transitional soy proto support:
1944
+ * http://goto/soy-param-migration
1945
+ * @return {!Object}
1946
+ */
1947
+ proto.Platform.GroupProto.GetGroupRequest.prototype.toObject = function(opt_includeInstance) {
1948
+ return proto.Platform.GroupProto.GetGroupRequest.toObject(opt_includeInstance, this);
1949
+ };
1950
+
1951
+
1952
+ /**
1953
+ * Static version of the {@see toObject} method.
1954
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1955
+ * the JSPB instance for transitional soy proto support:
1956
+ * http://goto/soy-param-migration
1957
+ * @param {!proto.Platform.GroupProto.GetGroupRequest} msg The msg instance to transform.
1958
+ * @return {!Object}
1959
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1960
+ */
1961
+ proto.Platform.GroupProto.GetGroupRequest.toObject = function(includeInstance, msg) {
1962
+ var f, obj = {
1963
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1964
+ page: jspb.Message.getFieldWithDefault(msg, 2, 0),
1965
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
1966
+ };
1967
+
1968
+ if (includeInstance) {
1969
+ obj.$jspbMessageInstance = msg;
1970
+ }
1971
+ return obj;
1972
+ };
1973
+ }
1974
+
1975
+
1976
+ /**
1977
+ * Deserializes binary data (in protobuf wire format).
1978
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1979
+ * @return {!proto.Platform.GroupProto.GetGroupRequest}
1980
+ */
1981
+ proto.Platform.GroupProto.GetGroupRequest.deserializeBinary = function(bytes) {
1982
+ var reader = new jspb.BinaryReader(bytes);
1983
+ var msg = new proto.Platform.GroupProto.GetGroupRequest;
1984
+ return proto.Platform.GroupProto.GetGroupRequest.deserializeBinaryFromReader(msg, reader);
1985
+ };
1986
+
1987
+
1988
+ /**
1989
+ * Deserializes binary data (in protobuf wire format) from the
1990
+ * given reader into the given message object.
1991
+ * @param {!proto.Platform.GroupProto.GetGroupRequest} msg The message object to deserialize into.
1992
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1993
+ * @return {!proto.Platform.GroupProto.GetGroupRequest}
1994
+ */
1995
+ proto.Platform.GroupProto.GetGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1996
+ while (reader.nextField()) {
1997
+ if (reader.isEndGroup()) {
1998
+ break;
1999
+ }
2000
+ var field = reader.getFieldNumber();
2001
+ switch (field) {
2002
+ case 1:
2003
+ var value = /** @type {number} */ (reader.readInt64());
2004
+ msg.setUserId(value);
2005
+ break;
2006
+ case 2:
2007
+ var value = /** @type {number} */ (reader.readInt32());
2008
+ msg.setPage(value);
2009
+ break;
2010
+ case 3:
2011
+ var value = /** @type {number} */ (reader.readInt32());
2012
+ msg.setCount(value);
2013
+ break;
2014
+ default:
2015
+ reader.skipField();
2016
+ break;
2017
+ }
2018
+ }
2019
+ return msg;
2020
+ };
2021
+
2022
+
2023
+ /**
2024
+ * Serializes the message to binary data (in protobuf wire format).
2025
+ * @return {!Uint8Array}
2026
+ */
2027
+ proto.Platform.GroupProto.GetGroupRequest.prototype.serializeBinary = function() {
2028
+ var writer = new jspb.BinaryWriter();
2029
+ proto.Platform.GroupProto.GetGroupRequest.serializeBinaryToWriter(this, writer);
2030
+ return writer.getResultBuffer();
2031
+ };
2032
+
2033
+
2034
+ /**
2035
+ * Serializes the given message to binary data (in protobuf wire
2036
+ * format), writing to the given BinaryWriter.
2037
+ * @param {!proto.Platform.GroupProto.GetGroupRequest} message
2038
+ * @param {!jspb.BinaryWriter} writer
2039
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2040
+ */
2041
+ proto.Platform.GroupProto.GetGroupRequest.serializeBinaryToWriter = function(message, writer) {
2042
+ var f = undefined;
2043
+ f = message.getUserId();
2044
+ if (f !== 0) {
2045
+ writer.writeInt64(
2046
+ 1,
2047
+ f
2048
+ );
2049
+ }
2050
+ f = message.getPage();
2051
+ if (f !== 0) {
2052
+ writer.writeInt32(
2053
+ 2,
2054
+ f
2055
+ );
2056
+ }
2057
+ f = message.getCount();
2058
+ if (f !== 0) {
2059
+ writer.writeInt32(
2060
+ 3,
2061
+ f
2062
+ );
2063
+ }
2064
+ };
2065
+
2066
+
2067
+ /**
2068
+ * optional int64 user_id = 1;
2069
+ * @return {number}
2070
+ */
2071
+ proto.Platform.GroupProto.GetGroupRequest.prototype.getUserId = function() {
2072
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * @param {number} value
2078
+ * @return {!proto.Platform.GroupProto.GetGroupRequest} returns this
2079
+ */
2080
+ proto.Platform.GroupProto.GetGroupRequest.prototype.setUserId = function(value) {
2081
+ return jspb.Message.setProto3IntField(this, 1, value);
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * optional int32 page = 2;
2087
+ * @return {number}
2088
+ */
2089
+ proto.Platform.GroupProto.GetGroupRequest.prototype.getPage = function() {
2090
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2091
+ };
2092
+
2093
+
2094
+ /**
2095
+ * @param {number} value
2096
+ * @return {!proto.Platform.GroupProto.GetGroupRequest} returns this
2097
+ */
2098
+ proto.Platform.GroupProto.GetGroupRequest.prototype.setPage = function(value) {
2099
+ return jspb.Message.setProto3IntField(this, 2, value);
2100
+ };
2101
+
2102
+
2103
+ /**
2104
+ * optional int32 count = 3;
2105
+ * @return {number}
2106
+ */
2107
+ proto.Platform.GroupProto.GetGroupRequest.prototype.getCount = function() {
2108
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2109
+ };
2110
+
2111
+
2112
+ /**
2113
+ * @param {number} value
2114
+ * @return {!proto.Platform.GroupProto.GetGroupRequest} returns this
2115
+ */
2116
+ proto.Platform.GroupProto.GetGroupRequest.prototype.setCount = function(value) {
2117
+ return jspb.Message.setProto3IntField(this, 3, value);
2118
+ };
2119
+
2120
+
2121
+
2122
+ /**
2123
+ * List of repeated fields within this message type.
2124
+ * @private {!Array<number>}
2125
+ * @const
2126
+ */
2127
+ proto.Platform.GroupProto.GetGroupsResponse.repeatedFields_ = [1];
2128
+
2129
+
2130
+
2131
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2132
+ /**
2133
+ * Creates an object representation of this proto.
2134
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2135
+ * Optional fields that are not set will be set to undefined.
2136
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2137
+ * For the list of reserved names please see:
2138
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2139
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2140
+ * JSPB instance for transitional soy proto support:
2141
+ * http://goto/soy-param-migration
2142
+ * @return {!Object}
2143
+ */
2144
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.toObject = function(opt_includeInstance) {
2145
+ return proto.Platform.GroupProto.GetGroupsResponse.toObject(opt_includeInstance, this);
2146
+ };
2147
+
2148
+
2149
+ /**
2150
+ * Static version of the {@see toObject} method.
2151
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2152
+ * the JSPB instance for transitional soy proto support:
2153
+ * http://goto/soy-param-migration
2154
+ * @param {!proto.Platform.GroupProto.GetGroupsResponse} msg The msg instance to transform.
2155
+ * @return {!Object}
2156
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2157
+ */
2158
+ proto.Platform.GroupProto.GetGroupsResponse.toObject = function(includeInstance, msg) {
2159
+ var f, obj = {
2160
+ groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
2161
+ proto.Platform.GroupProto.toObject, includeInstance),
2162
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
2163
+ };
2164
+
2165
+ if (includeInstance) {
2166
+ obj.$jspbMessageInstance = msg;
2167
+ }
2168
+ return obj;
2169
+ };
2170
+ }
2171
+
2172
+
2173
+ /**
2174
+ * Deserializes binary data (in protobuf wire format).
2175
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2176
+ * @return {!proto.Platform.GroupProto.GetGroupsResponse}
2177
+ */
2178
+ proto.Platform.GroupProto.GetGroupsResponse.deserializeBinary = function(bytes) {
2179
+ var reader = new jspb.BinaryReader(bytes);
2180
+ var msg = new proto.Platform.GroupProto.GetGroupsResponse;
2181
+ return proto.Platform.GroupProto.GetGroupsResponse.deserializeBinaryFromReader(msg, reader);
2182
+ };
2183
+
2184
+
2185
+ /**
2186
+ * Deserializes binary data (in protobuf wire format) from the
2187
+ * given reader into the given message object.
2188
+ * @param {!proto.Platform.GroupProto.GetGroupsResponse} msg The message object to deserialize into.
2189
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2190
+ * @return {!proto.Platform.GroupProto.GetGroupsResponse}
2191
+ */
2192
+ proto.Platform.GroupProto.GetGroupsResponse.deserializeBinaryFromReader = function(msg, reader) {
2193
+ while (reader.nextField()) {
2194
+ if (reader.isEndGroup()) {
2195
+ break;
2196
+ }
2197
+ var field = reader.getFieldNumber();
2198
+ switch (field) {
2199
+ case 1:
2200
+ var value = new proto.Platform.GroupProto;
2201
+ reader.readMessage(value,proto.Platform.GroupProto.deserializeBinaryFromReader);
2202
+ msg.addGroups(value);
2203
+ break;
2204
+ case 2:
2205
+ var value = new platform_pagination_pb.PaginationProto;
2206
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
2207
+ msg.setPagination(value);
2208
+ break;
2209
+ default:
2210
+ reader.skipField();
2211
+ break;
2212
+ }
2213
+ }
2214
+ return msg;
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * Serializes the message to binary data (in protobuf wire format).
2220
+ * @return {!Uint8Array}
2221
+ */
2222
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.serializeBinary = function() {
2223
+ var writer = new jspb.BinaryWriter();
2224
+ proto.Platform.GroupProto.GetGroupsResponse.serializeBinaryToWriter(this, writer);
2225
+ return writer.getResultBuffer();
2226
+ };
2227
+
2228
+
2229
+ /**
2230
+ * Serializes the given message to binary data (in protobuf wire
2231
+ * format), writing to the given BinaryWriter.
2232
+ * @param {!proto.Platform.GroupProto.GetGroupsResponse} message
2233
+ * @param {!jspb.BinaryWriter} writer
2234
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2235
+ */
2236
+ proto.Platform.GroupProto.GetGroupsResponse.serializeBinaryToWriter = function(message, writer) {
2237
+ var f = undefined;
2238
+ f = message.getGroupsList();
2239
+ if (f.length > 0) {
2240
+ writer.writeRepeatedMessage(
2241
+ 1,
2242
+ f,
2243
+ proto.Platform.GroupProto.serializeBinaryToWriter
2244
+ );
2245
+ }
2246
+ f = message.getPagination();
2247
+ if (f != null) {
2248
+ writer.writeMessage(
2249
+ 2,
2250
+ f,
2251
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
2252
+ );
2253
+ }
2254
+ };
2255
+
2256
+
2257
+ /**
2258
+ * repeated GroupProto groups = 1;
2259
+ * @return {!Array<!proto.Platform.GroupProto>}
2260
+ */
2261
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.getGroupsList = function() {
2262
+ return /** @type{!Array<!proto.Platform.GroupProto>} */ (
2263
+ jspb.Message.getRepeatedWrapperField(this, proto.Platform.GroupProto, 1));
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * @param {!Array<!proto.Platform.GroupProto>} value
2269
+ * @return {!proto.Platform.GroupProto.GetGroupsResponse} returns this
2270
+ */
2271
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.setGroupsList = function(value) {
2272
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * @param {!proto.Platform.GroupProto=} opt_value
2278
+ * @param {number=} opt_index
2279
+ * @return {!proto.Platform.GroupProto}
2280
+ */
2281
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.addGroups = function(opt_value, opt_index) {
2282
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.GroupProto, opt_index);
2283
+ };
2284
+
2285
+
2286
+ /**
2287
+ * Clears the list making it empty but non-null.
2288
+ * @return {!proto.Platform.GroupProto.GetGroupsResponse} returns this
2289
+ */
2290
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.clearGroupsList = function() {
2291
+ return this.setGroupsList([]);
2292
+ };
2293
+
2294
+
2295
+ /**
2296
+ * optional PaginationProto pagination = 2;
2297
+ * @return {?proto.Platform.PaginationProto}
2298
+ */
2299
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.getPagination = function() {
2300
+ return /** @type{?proto.Platform.PaginationProto} */ (
2301
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * @param {?proto.Platform.PaginationProto|undefined} value
2307
+ * @return {!proto.Platform.GroupProto.GetGroupsResponse} returns this
2308
+ */
2309
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.setPagination = function(value) {
2310
+ return jspb.Message.setWrapperField(this, 2, value);
2311
+ };
2312
+
2313
+
2314
+ /**
2315
+ * Clears the message field making it undefined.
2316
+ * @return {!proto.Platform.GroupProto.GetGroupsResponse} returns this
2317
+ */
2318
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.clearPagination = function() {
2319
+ return this.setPagination(undefined);
2320
+ };
2321
+
2322
+
2323
+ /**
2324
+ * Returns whether this field is set.
2325
+ * @return {boolean}
2326
+ */
2327
+ proto.Platform.GroupProto.GetGroupsResponse.prototype.hasPagination = function() {
2328
+ return jspb.Message.getField(this, 2) != null;
2329
+ };
2330
+
2331
+
1887
2332
  /**
1888
2333
  * optional string id = 1;
1889
2334
  * @return {string}
@@ -58,6 +58,15 @@ type GroupGRPCGetSpics = {
58
58
  readonly responseType: typeof platform_group_pb.GroupProto.GetSpicsResponse;
59
59
  };
60
60
 
61
+ type GroupGRPCGetGroups = {
62
+ readonly methodName: string;
63
+ readonly service: typeof GroupGRPC;
64
+ readonly requestStream: false;
65
+ readonly responseStream: false;
66
+ readonly requestType: typeof platform_group_pb.GroupProto.GetGroupRequest;
67
+ readonly responseType: typeof platform_group_pb.GroupProto.GetGroupsResponse;
68
+ };
69
+
61
70
  export class GroupGRPC {
62
71
  static readonly serviceName: string;
63
72
  static readonly Create: GroupGRPCCreate;
@@ -66,6 +75,7 @@ export class GroupGRPC {
66
75
  static readonly Delete: GroupGRPCDelete;
67
76
  static readonly Search: GroupGRPCSearch;
68
77
  static readonly GetSpics: GroupGRPCGetSpics;
78
+ static readonly GetGroups: GroupGRPCGetGroups;
69
79
  }
70
80
 
71
81
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -154,5 +164,14 @@ export class GroupGRPCClient {
154
164
  requestMessage: platform_group_pb.GroupProto.GetSpicsRequest,
155
165
  callback: (error: ServiceError|null, responseMessage: platform_group_pb.GroupProto.GetSpicsResponse|null) => void
156
166
  ): UnaryResponse;
167
+ getGroups(
168
+ requestMessage: platform_group_pb.GroupProto.GetGroupRequest,
169
+ metadata: grpc.Metadata,
170
+ callback: (error: ServiceError|null, responseMessage: platform_group_pb.GroupProto.GetGroupsResponse|null) => void
171
+ ): UnaryResponse;
172
+ getGroups(
173
+ requestMessage: platform_group_pb.GroupProto.GetGroupRequest,
174
+ callback: (error: ServiceError|null, responseMessage: platform_group_pb.GroupProto.GetGroupsResponse|null) => void
175
+ ): UnaryResponse;
157
176
  }
158
177
 
@@ -64,6 +64,15 @@ GroupGRPC.GetSpics = {
64
64
  responseType: platform_group_pb.GroupProto.GetSpicsResponse
65
65
  };
66
66
 
67
+ GroupGRPC.GetGroups = {
68
+ methodName: "GetGroups",
69
+ service: GroupGRPC,
70
+ requestStream: false,
71
+ responseStream: false,
72
+ requestType: platform_group_pb.GroupProto.GetGroupRequest,
73
+ responseType: platform_group_pb.GroupProto.GetGroupsResponse
74
+ };
75
+
67
76
  exports.GroupGRPC = GroupGRPC;
68
77
 
69
78
  function GroupGRPCClient(serviceHost, options) {
@@ -257,5 +266,36 @@ GroupGRPCClient.prototype.getSpics = function getSpics(requestMessage, metadata,
257
266
  };
258
267
  };
259
268
 
269
+ GroupGRPCClient.prototype.getGroups = function getGroups(requestMessage, metadata, callback) {
270
+ if (arguments.length === 2) {
271
+ callback = arguments[1];
272
+ }
273
+ var client = grpc.unary(GroupGRPC.GetGroups, {
274
+ request: requestMessage,
275
+ host: this.serviceHost,
276
+ metadata: metadata,
277
+ transport: this.options.transport,
278
+ debug: this.options.debug,
279
+ onEnd: function (response) {
280
+ if (callback) {
281
+ if (response.status !== grpc.Code.OK) {
282
+ var err = new Error(response.statusMessage);
283
+ err.code = response.status;
284
+ err.metadata = response.trailers;
285
+ callback(err, null);
286
+ } else {
287
+ callback(null, response.message);
288
+ }
289
+ }
290
+ }
291
+ });
292
+ return {
293
+ cancel: function () {
294
+ callback = null;
295
+ client.close();
296
+ }
297
+ };
298
+ };
299
+
260
300
  exports.GroupGRPCClient = GroupGRPCClient;
261
301
 
@@ -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
 
@@ -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