@aceplus/smartace-api 3.7.0-alpha.14 → 3.7.0-alpha.16
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/platform.group_pb.d.ts +56 -0
- package/platform.group_pb.js +445 -0
- package/platform.group_pb_service.d.ts +19 -0
- package/platform.group_pb_service.js +40 -0
- package/spic.asset_pb.d.ts +79 -0
- package/spic.asset_pb.js +609 -0
- package/spic.asset_pb_service.d.ts +19 -0
- package/spic.asset_pb_service.js +40 -0
- package/spic.config_pb.d.ts +172 -0
- package/spic.config_pb.js +1325 -0
- package/spic.config_pb_service.d.ts +95 -0
- package/spic.config_pb_service.js +200 -0
package/package.json
CHANGED
package/platform.group_pb.d.ts
CHANGED
|
@@ -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
|
|
package/platform.group_pb.js
CHANGED
|
@@ -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
|
|