@headspace/protos-events 1.244.0 → 1.245.0

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.
Files changed (3) hide show
  1. package/lib/index.d.ts +947 -0
  2. package/lib/index.js +2514 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -9883,6 +9883,2272 @@ $root.b2b = (function() {
9883
9883
  return b2b;
9884
9884
  })();
9885
9885
 
9886
+ $root.community = (function() {
9887
+
9888
+ /**
9889
+ * Namespace community.
9890
+ * @exports community
9891
+ * @namespace
9892
+ */
9893
+ var community = {};
9894
+
9895
+ community.UserGroupManager = (function() {
9896
+
9897
+ /**
9898
+ * Constructs a new UserGroupManager service.
9899
+ * @memberof community
9900
+ * @classdesc Represents a UserGroupManager
9901
+ * @extends $protobuf.rpc.Service
9902
+ * @constructor
9903
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
9904
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
9905
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
9906
+ */
9907
+ function UserGroupManager(rpcImpl, requestDelimited, responseDelimited) {
9908
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
9909
+ }
9910
+
9911
+ (UserGroupManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = UserGroupManager;
9912
+
9913
+ /**
9914
+ * Creates new UserGroupManager service using the specified rpc implementation.
9915
+ * @function create
9916
+ * @memberof community.UserGroupManager
9917
+ * @static
9918
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
9919
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
9920
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
9921
+ * @returns {UserGroupManager} RPC service. Useful where requests and/or responses are streamed.
9922
+ */
9923
+ UserGroupManager.create = function create(rpcImpl, requestDelimited, responseDelimited) {
9924
+ return new this(rpcImpl, requestDelimited, responseDelimited);
9925
+ };
9926
+
9927
+ /**
9928
+ * Callback as used by {@link community.UserGroupManager#listUserGroupEntries}.
9929
+ * @memberof community.UserGroupManager
9930
+ * @typedef listUserGroupEntriesCallback
9931
+ * @type {function}
9932
+ * @param {Error|null} error Error, if any
9933
+ * @param {community.UserGroupEntryList} [response] UserGroupEntryList
9934
+ */
9935
+
9936
+ /**
9937
+ * Calls listUserGroupEntries.
9938
+ * @function listUserGroupEntries
9939
+ * @memberof community.UserGroupManager
9940
+ * @instance
9941
+ * @param {community.IListUserGroupEntries} request ListUserGroupEntries message or plain object
9942
+ * @param {community.UserGroupManager.listUserGroupEntriesCallback} callback Node-style callback called with the error, if any, and UserGroupEntryList
9943
+ * @returns {undefined}
9944
+ * @variation 1
9945
+ */
9946
+ Object.defineProperty(UserGroupManager.prototype.listUserGroupEntries = function listUserGroupEntries(request, callback) {
9947
+ return this.rpcCall(listUserGroupEntries, $root.community.ListUserGroupEntries, $root.community.UserGroupEntryList, request, callback);
9948
+ }, "name", { value: "listUserGroupEntries" });
9949
+
9950
+ /**
9951
+ * Calls listUserGroupEntries.
9952
+ * @function listUserGroupEntries
9953
+ * @memberof community.UserGroupManager
9954
+ * @instance
9955
+ * @param {community.IListUserGroupEntries} request ListUserGroupEntries message or plain object
9956
+ * @returns {Promise<community.UserGroupEntryList>} Promise
9957
+ * @variation 2
9958
+ */
9959
+
9960
+ return UserGroupManager;
9961
+ })();
9962
+
9963
+ community.ListUserGroupEntries = (function() {
9964
+
9965
+ /**
9966
+ * Properties of a ListUserGroupEntries.
9967
+ * @memberof community
9968
+ * @interface IListUserGroupEntries
9969
+ * @property {number|null} [limit] ListUserGroupEntries limit
9970
+ * @property {number|null} [page] ListUserGroupEntries page
9971
+ * @property {number|null} [id] ListUserGroupEntries id
9972
+ * @property {string|null} [userId] ListUserGroupEntries userId
9973
+ * @property {number|null} [userGroupId] ListUserGroupEntries userGroupId
9974
+ * @property {string|null} [role] ListUserGroupEntries role
9975
+ * @property {string|null} [status] ListUserGroupEntries status
9976
+ * @property {boolean|null} [isActive] ListUserGroupEntries isActive
9977
+ */
9978
+
9979
+ /**
9980
+ * Constructs a new ListUserGroupEntries.
9981
+ * @memberof community
9982
+ * @classdesc Represents a ListUserGroupEntries.
9983
+ * @implements IListUserGroupEntries
9984
+ * @constructor
9985
+ * @param {community.IListUserGroupEntries=} [properties] Properties to set
9986
+ */
9987
+ function ListUserGroupEntries(properties) {
9988
+ if (properties)
9989
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9990
+ if (properties[keys[i]] != null)
9991
+ this[keys[i]] = properties[keys[i]];
9992
+ }
9993
+
9994
+ /**
9995
+ * ListUserGroupEntries limit.
9996
+ * @member {number} limit
9997
+ * @memberof community.ListUserGroupEntries
9998
+ * @instance
9999
+ */
10000
+ ListUserGroupEntries.prototype.limit = 0;
10001
+
10002
+ /**
10003
+ * ListUserGroupEntries page.
10004
+ * @member {number} page
10005
+ * @memberof community.ListUserGroupEntries
10006
+ * @instance
10007
+ */
10008
+ ListUserGroupEntries.prototype.page = 0;
10009
+
10010
+ /**
10011
+ * ListUserGroupEntries id.
10012
+ * @member {number} id
10013
+ * @memberof community.ListUserGroupEntries
10014
+ * @instance
10015
+ */
10016
+ ListUserGroupEntries.prototype.id = 0;
10017
+
10018
+ /**
10019
+ * ListUserGroupEntries userId.
10020
+ * @member {string} userId
10021
+ * @memberof community.ListUserGroupEntries
10022
+ * @instance
10023
+ */
10024
+ ListUserGroupEntries.prototype.userId = "";
10025
+
10026
+ /**
10027
+ * ListUserGroupEntries userGroupId.
10028
+ * @member {number} userGroupId
10029
+ * @memberof community.ListUserGroupEntries
10030
+ * @instance
10031
+ */
10032
+ ListUserGroupEntries.prototype.userGroupId = 0;
10033
+
10034
+ /**
10035
+ * ListUserGroupEntries role.
10036
+ * @member {string} role
10037
+ * @memberof community.ListUserGroupEntries
10038
+ * @instance
10039
+ */
10040
+ ListUserGroupEntries.prototype.role = "";
10041
+
10042
+ /**
10043
+ * ListUserGroupEntries status.
10044
+ * @member {string} status
10045
+ * @memberof community.ListUserGroupEntries
10046
+ * @instance
10047
+ */
10048
+ ListUserGroupEntries.prototype.status = "";
10049
+
10050
+ /**
10051
+ * ListUserGroupEntries isActive.
10052
+ * @member {boolean} isActive
10053
+ * @memberof community.ListUserGroupEntries
10054
+ * @instance
10055
+ */
10056
+ ListUserGroupEntries.prototype.isActive = false;
10057
+
10058
+ /**
10059
+ * Creates a new ListUserGroupEntries instance using the specified properties.
10060
+ * @function create
10061
+ * @memberof community.ListUserGroupEntries
10062
+ * @static
10063
+ * @param {community.IListUserGroupEntries=} [properties] Properties to set
10064
+ * @returns {community.ListUserGroupEntries} ListUserGroupEntries instance
10065
+ */
10066
+ ListUserGroupEntries.create = function create(properties) {
10067
+ return new ListUserGroupEntries(properties);
10068
+ };
10069
+
10070
+ /**
10071
+ * Encodes the specified ListUserGroupEntries message. Does not implicitly {@link community.ListUserGroupEntries.verify|verify} messages.
10072
+ * @function encode
10073
+ * @memberof community.ListUserGroupEntries
10074
+ * @static
10075
+ * @param {community.IListUserGroupEntries} message ListUserGroupEntries message or plain object to encode
10076
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10077
+ * @returns {$protobuf.Writer} Writer
10078
+ */
10079
+ ListUserGroupEntries.encode = function encode(message, writer) {
10080
+ if (!writer)
10081
+ writer = $Writer.create();
10082
+ if (message.limit != null && message.hasOwnProperty("limit"))
10083
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.limit);
10084
+ if (message.page != null && message.hasOwnProperty("page"))
10085
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.page);
10086
+ if (message.id != null && message.hasOwnProperty("id"))
10087
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.id);
10088
+ if (message.userId != null && message.hasOwnProperty("userId"))
10089
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.userId);
10090
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
10091
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.userGroupId);
10092
+ if (message.role != null && message.hasOwnProperty("role"))
10093
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.role);
10094
+ if (message.status != null && message.hasOwnProperty("status"))
10095
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.status);
10096
+ if (message.isActive != null && message.hasOwnProperty("isActive"))
10097
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isActive);
10098
+ return writer;
10099
+ };
10100
+
10101
+ /**
10102
+ * Encodes the specified ListUserGroupEntries message, length delimited. Does not implicitly {@link community.ListUserGroupEntries.verify|verify} messages.
10103
+ * @function encodeDelimited
10104
+ * @memberof community.ListUserGroupEntries
10105
+ * @static
10106
+ * @param {community.IListUserGroupEntries} message ListUserGroupEntries message or plain object to encode
10107
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10108
+ * @returns {$protobuf.Writer} Writer
10109
+ */
10110
+ ListUserGroupEntries.encodeDelimited = function encodeDelimited(message, writer) {
10111
+ return this.encode(message, writer).ldelim();
10112
+ };
10113
+
10114
+ /**
10115
+ * Decodes a ListUserGroupEntries message from the specified reader or buffer.
10116
+ * @function decode
10117
+ * @memberof community.ListUserGroupEntries
10118
+ * @static
10119
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10120
+ * @param {number} [length] Message length if known beforehand
10121
+ * @returns {community.ListUserGroupEntries} ListUserGroupEntries
10122
+ * @throws {Error} If the payload is not a reader or valid buffer
10123
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10124
+ */
10125
+ ListUserGroupEntries.decode = function decode(reader, length) {
10126
+ if (!(reader instanceof $Reader))
10127
+ reader = $Reader.create(reader);
10128
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.community.ListUserGroupEntries();
10129
+ while (reader.pos < end) {
10130
+ var tag = reader.uint32();
10131
+ switch (tag >>> 3) {
10132
+ case 1:
10133
+ message.limit = reader.int32();
10134
+ break;
10135
+ case 2:
10136
+ message.page = reader.int32();
10137
+ break;
10138
+ case 3:
10139
+ message.id = reader.int32();
10140
+ break;
10141
+ case 4:
10142
+ message.userId = reader.string();
10143
+ break;
10144
+ case 5:
10145
+ message.userGroupId = reader.int32();
10146
+ break;
10147
+ case 6:
10148
+ message.role = reader.string();
10149
+ break;
10150
+ case 7:
10151
+ message.status = reader.string();
10152
+ break;
10153
+ case 8:
10154
+ message.isActive = reader.bool();
10155
+ break;
10156
+ default:
10157
+ reader.skipType(tag & 7);
10158
+ break;
10159
+ }
10160
+ }
10161
+ return message;
10162
+ };
10163
+
10164
+ /**
10165
+ * Decodes a ListUserGroupEntries message from the specified reader or buffer, length delimited.
10166
+ * @function decodeDelimited
10167
+ * @memberof community.ListUserGroupEntries
10168
+ * @static
10169
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10170
+ * @returns {community.ListUserGroupEntries} ListUserGroupEntries
10171
+ * @throws {Error} If the payload is not a reader or valid buffer
10172
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10173
+ */
10174
+ ListUserGroupEntries.decodeDelimited = function decodeDelimited(reader) {
10175
+ if (!(reader instanceof $Reader))
10176
+ reader = new $Reader(reader);
10177
+ return this.decode(reader, reader.uint32());
10178
+ };
10179
+
10180
+ /**
10181
+ * Verifies a ListUserGroupEntries message.
10182
+ * @function verify
10183
+ * @memberof community.ListUserGroupEntries
10184
+ * @static
10185
+ * @param {Object.<string,*>} message Plain object to verify
10186
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10187
+ */
10188
+ ListUserGroupEntries.verify = function verify(message) {
10189
+ if (typeof message !== "object" || message === null)
10190
+ return "object expected";
10191
+ if (message.limit != null && message.hasOwnProperty("limit"))
10192
+ if (!$util.isInteger(message.limit))
10193
+ return "limit: integer expected";
10194
+ if (message.page != null && message.hasOwnProperty("page"))
10195
+ if (!$util.isInteger(message.page))
10196
+ return "page: integer expected";
10197
+ if (message.id != null && message.hasOwnProperty("id"))
10198
+ if (!$util.isInteger(message.id))
10199
+ return "id: integer expected";
10200
+ if (message.userId != null && message.hasOwnProperty("userId"))
10201
+ if (!$util.isString(message.userId))
10202
+ return "userId: string expected";
10203
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
10204
+ if (!$util.isInteger(message.userGroupId))
10205
+ return "userGroupId: integer expected";
10206
+ if (message.role != null && message.hasOwnProperty("role"))
10207
+ if (!$util.isString(message.role))
10208
+ return "role: string expected";
10209
+ if (message.status != null && message.hasOwnProperty("status"))
10210
+ if (!$util.isString(message.status))
10211
+ return "status: string expected";
10212
+ if (message.isActive != null && message.hasOwnProperty("isActive"))
10213
+ if (typeof message.isActive !== "boolean")
10214
+ return "isActive: boolean expected";
10215
+ return null;
10216
+ };
10217
+
10218
+ /**
10219
+ * Creates a ListUserGroupEntries message from a plain object. Also converts values to their respective internal types.
10220
+ * @function fromObject
10221
+ * @memberof community.ListUserGroupEntries
10222
+ * @static
10223
+ * @param {Object.<string,*>} object Plain object
10224
+ * @returns {community.ListUserGroupEntries} ListUserGroupEntries
10225
+ */
10226
+ ListUserGroupEntries.fromObject = function fromObject(object) {
10227
+ if (object instanceof $root.community.ListUserGroupEntries)
10228
+ return object;
10229
+ var message = new $root.community.ListUserGroupEntries();
10230
+ if (object.limit != null)
10231
+ message.limit = object.limit | 0;
10232
+ if (object.page != null)
10233
+ message.page = object.page | 0;
10234
+ if (object.id != null)
10235
+ message.id = object.id | 0;
10236
+ if (object.userId != null)
10237
+ message.userId = String(object.userId);
10238
+ if (object.userGroupId != null)
10239
+ message.userGroupId = object.userGroupId | 0;
10240
+ if (object.role != null)
10241
+ message.role = String(object.role);
10242
+ if (object.status != null)
10243
+ message.status = String(object.status);
10244
+ if (object.isActive != null)
10245
+ message.isActive = Boolean(object.isActive);
10246
+ return message;
10247
+ };
10248
+
10249
+ /**
10250
+ * Creates a plain object from a ListUserGroupEntries message. Also converts values to other types if specified.
10251
+ * @function toObject
10252
+ * @memberof community.ListUserGroupEntries
10253
+ * @static
10254
+ * @param {community.ListUserGroupEntries} message ListUserGroupEntries
10255
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10256
+ * @returns {Object.<string,*>} Plain object
10257
+ */
10258
+ ListUserGroupEntries.toObject = function toObject(message, options) {
10259
+ if (!options)
10260
+ options = {};
10261
+ var object = {};
10262
+ if (options.defaults) {
10263
+ object.limit = 0;
10264
+ object.page = 0;
10265
+ object.id = 0;
10266
+ object.userId = "";
10267
+ object.userGroupId = 0;
10268
+ object.role = "";
10269
+ object.status = "";
10270
+ object.isActive = false;
10271
+ }
10272
+ if (message.limit != null && message.hasOwnProperty("limit"))
10273
+ object.limit = message.limit;
10274
+ if (message.page != null && message.hasOwnProperty("page"))
10275
+ object.page = message.page;
10276
+ if (message.id != null && message.hasOwnProperty("id"))
10277
+ object.id = message.id;
10278
+ if (message.userId != null && message.hasOwnProperty("userId"))
10279
+ object.userId = message.userId;
10280
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
10281
+ object.userGroupId = message.userGroupId;
10282
+ if (message.role != null && message.hasOwnProperty("role"))
10283
+ object.role = message.role;
10284
+ if (message.status != null && message.hasOwnProperty("status"))
10285
+ object.status = message.status;
10286
+ if (message.isActive != null && message.hasOwnProperty("isActive"))
10287
+ object.isActive = message.isActive;
10288
+ return object;
10289
+ };
10290
+
10291
+ /**
10292
+ * Converts this ListUserGroupEntries to JSON.
10293
+ * @function toJSON
10294
+ * @memberof community.ListUserGroupEntries
10295
+ * @instance
10296
+ * @returns {Object.<string,*>} JSON object
10297
+ */
10298
+ ListUserGroupEntries.prototype.toJSON = function toJSON() {
10299
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10300
+ };
10301
+
10302
+ return ListUserGroupEntries;
10303
+ })();
10304
+
10305
+ community.UserGroupEntryList = (function() {
10306
+
10307
+ /**
10308
+ * Properties of a UserGroupEntryList.
10309
+ * @memberof community
10310
+ * @interface IUserGroupEntryList
10311
+ * @property {Array.<community.IUserGroupEntry>|null} [userGroupEntries] UserGroupEntryList userGroupEntries
10312
+ * @property {Array.<community.IUserGroup>|null} [userGroups] UserGroupEntryList userGroups
10313
+ */
10314
+
10315
+ /**
10316
+ * Constructs a new UserGroupEntryList.
10317
+ * @memberof community
10318
+ * @classdesc Represents a UserGroupEntryList.
10319
+ * @implements IUserGroupEntryList
10320
+ * @constructor
10321
+ * @param {community.IUserGroupEntryList=} [properties] Properties to set
10322
+ */
10323
+ function UserGroupEntryList(properties) {
10324
+ this.userGroupEntries = [];
10325
+ this.userGroups = [];
10326
+ if (properties)
10327
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10328
+ if (properties[keys[i]] != null)
10329
+ this[keys[i]] = properties[keys[i]];
10330
+ }
10331
+
10332
+ /**
10333
+ * UserGroupEntryList userGroupEntries.
10334
+ * @member {Array.<community.IUserGroupEntry>} userGroupEntries
10335
+ * @memberof community.UserGroupEntryList
10336
+ * @instance
10337
+ */
10338
+ UserGroupEntryList.prototype.userGroupEntries = $util.emptyArray;
10339
+
10340
+ /**
10341
+ * UserGroupEntryList userGroups.
10342
+ * @member {Array.<community.IUserGroup>} userGroups
10343
+ * @memberof community.UserGroupEntryList
10344
+ * @instance
10345
+ */
10346
+ UserGroupEntryList.prototype.userGroups = $util.emptyArray;
10347
+
10348
+ /**
10349
+ * Creates a new UserGroupEntryList instance using the specified properties.
10350
+ * @function create
10351
+ * @memberof community.UserGroupEntryList
10352
+ * @static
10353
+ * @param {community.IUserGroupEntryList=} [properties] Properties to set
10354
+ * @returns {community.UserGroupEntryList} UserGroupEntryList instance
10355
+ */
10356
+ UserGroupEntryList.create = function create(properties) {
10357
+ return new UserGroupEntryList(properties);
10358
+ };
10359
+
10360
+ /**
10361
+ * Encodes the specified UserGroupEntryList message. Does not implicitly {@link community.UserGroupEntryList.verify|verify} messages.
10362
+ * @function encode
10363
+ * @memberof community.UserGroupEntryList
10364
+ * @static
10365
+ * @param {community.IUserGroupEntryList} message UserGroupEntryList message or plain object to encode
10366
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10367
+ * @returns {$protobuf.Writer} Writer
10368
+ */
10369
+ UserGroupEntryList.encode = function encode(message, writer) {
10370
+ if (!writer)
10371
+ writer = $Writer.create();
10372
+ if (message.userGroupEntries != null && message.userGroupEntries.length)
10373
+ for (var i = 0; i < message.userGroupEntries.length; ++i)
10374
+ $root.community.UserGroupEntry.encode(message.userGroupEntries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
10375
+ if (message.userGroups != null && message.userGroups.length)
10376
+ for (var i = 0; i < message.userGroups.length; ++i)
10377
+ $root.community.UserGroup.encode(message.userGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10378
+ return writer;
10379
+ };
10380
+
10381
+ /**
10382
+ * Encodes the specified UserGroupEntryList message, length delimited. Does not implicitly {@link community.UserGroupEntryList.verify|verify} messages.
10383
+ * @function encodeDelimited
10384
+ * @memberof community.UserGroupEntryList
10385
+ * @static
10386
+ * @param {community.IUserGroupEntryList} message UserGroupEntryList message or plain object to encode
10387
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10388
+ * @returns {$protobuf.Writer} Writer
10389
+ */
10390
+ UserGroupEntryList.encodeDelimited = function encodeDelimited(message, writer) {
10391
+ return this.encode(message, writer).ldelim();
10392
+ };
10393
+
10394
+ /**
10395
+ * Decodes a UserGroupEntryList message from the specified reader or buffer.
10396
+ * @function decode
10397
+ * @memberof community.UserGroupEntryList
10398
+ * @static
10399
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10400
+ * @param {number} [length] Message length if known beforehand
10401
+ * @returns {community.UserGroupEntryList} UserGroupEntryList
10402
+ * @throws {Error} If the payload is not a reader or valid buffer
10403
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10404
+ */
10405
+ UserGroupEntryList.decode = function decode(reader, length) {
10406
+ if (!(reader instanceof $Reader))
10407
+ reader = $Reader.create(reader);
10408
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.community.UserGroupEntryList();
10409
+ while (reader.pos < end) {
10410
+ var tag = reader.uint32();
10411
+ switch (tag >>> 3) {
10412
+ case 1:
10413
+ if (!(message.userGroupEntries && message.userGroupEntries.length))
10414
+ message.userGroupEntries = [];
10415
+ message.userGroupEntries.push($root.community.UserGroupEntry.decode(reader, reader.uint32()));
10416
+ break;
10417
+ case 2:
10418
+ if (!(message.userGroups && message.userGroups.length))
10419
+ message.userGroups = [];
10420
+ message.userGroups.push($root.community.UserGroup.decode(reader, reader.uint32()));
10421
+ break;
10422
+ default:
10423
+ reader.skipType(tag & 7);
10424
+ break;
10425
+ }
10426
+ }
10427
+ return message;
10428
+ };
10429
+
10430
+ /**
10431
+ * Decodes a UserGroupEntryList message from the specified reader or buffer, length delimited.
10432
+ * @function decodeDelimited
10433
+ * @memberof community.UserGroupEntryList
10434
+ * @static
10435
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10436
+ * @returns {community.UserGroupEntryList} UserGroupEntryList
10437
+ * @throws {Error} If the payload is not a reader or valid buffer
10438
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10439
+ */
10440
+ UserGroupEntryList.decodeDelimited = function decodeDelimited(reader) {
10441
+ if (!(reader instanceof $Reader))
10442
+ reader = new $Reader(reader);
10443
+ return this.decode(reader, reader.uint32());
10444
+ };
10445
+
10446
+ /**
10447
+ * Verifies a UserGroupEntryList message.
10448
+ * @function verify
10449
+ * @memberof community.UserGroupEntryList
10450
+ * @static
10451
+ * @param {Object.<string,*>} message Plain object to verify
10452
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10453
+ */
10454
+ UserGroupEntryList.verify = function verify(message) {
10455
+ if (typeof message !== "object" || message === null)
10456
+ return "object expected";
10457
+ if (message.userGroupEntries != null && message.hasOwnProperty("userGroupEntries")) {
10458
+ if (!Array.isArray(message.userGroupEntries))
10459
+ return "userGroupEntries: array expected";
10460
+ for (var i = 0; i < message.userGroupEntries.length; ++i) {
10461
+ var error = $root.community.UserGroupEntry.verify(message.userGroupEntries[i]);
10462
+ if (error)
10463
+ return "userGroupEntries." + error;
10464
+ }
10465
+ }
10466
+ if (message.userGroups != null && message.hasOwnProperty("userGroups")) {
10467
+ if (!Array.isArray(message.userGroups))
10468
+ return "userGroups: array expected";
10469
+ for (var i = 0; i < message.userGroups.length; ++i) {
10470
+ var error = $root.community.UserGroup.verify(message.userGroups[i]);
10471
+ if (error)
10472
+ return "userGroups." + error;
10473
+ }
10474
+ }
10475
+ return null;
10476
+ };
10477
+
10478
+ /**
10479
+ * Creates a UserGroupEntryList message from a plain object. Also converts values to their respective internal types.
10480
+ * @function fromObject
10481
+ * @memberof community.UserGroupEntryList
10482
+ * @static
10483
+ * @param {Object.<string,*>} object Plain object
10484
+ * @returns {community.UserGroupEntryList} UserGroupEntryList
10485
+ */
10486
+ UserGroupEntryList.fromObject = function fromObject(object) {
10487
+ if (object instanceof $root.community.UserGroupEntryList)
10488
+ return object;
10489
+ var message = new $root.community.UserGroupEntryList();
10490
+ if (object.userGroupEntries) {
10491
+ if (!Array.isArray(object.userGroupEntries))
10492
+ throw TypeError(".community.UserGroupEntryList.userGroupEntries: array expected");
10493
+ message.userGroupEntries = [];
10494
+ for (var i = 0; i < object.userGroupEntries.length; ++i) {
10495
+ if (typeof object.userGroupEntries[i] !== "object")
10496
+ throw TypeError(".community.UserGroupEntryList.userGroupEntries: object expected");
10497
+ message.userGroupEntries[i] = $root.community.UserGroupEntry.fromObject(object.userGroupEntries[i]);
10498
+ }
10499
+ }
10500
+ if (object.userGroups) {
10501
+ if (!Array.isArray(object.userGroups))
10502
+ throw TypeError(".community.UserGroupEntryList.userGroups: array expected");
10503
+ message.userGroups = [];
10504
+ for (var i = 0; i < object.userGroups.length; ++i) {
10505
+ if (typeof object.userGroups[i] !== "object")
10506
+ throw TypeError(".community.UserGroupEntryList.userGroups: object expected");
10507
+ message.userGroups[i] = $root.community.UserGroup.fromObject(object.userGroups[i]);
10508
+ }
10509
+ }
10510
+ return message;
10511
+ };
10512
+
10513
+ /**
10514
+ * Creates a plain object from a UserGroupEntryList message. Also converts values to other types if specified.
10515
+ * @function toObject
10516
+ * @memberof community.UserGroupEntryList
10517
+ * @static
10518
+ * @param {community.UserGroupEntryList} message UserGroupEntryList
10519
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10520
+ * @returns {Object.<string,*>} Plain object
10521
+ */
10522
+ UserGroupEntryList.toObject = function toObject(message, options) {
10523
+ if (!options)
10524
+ options = {};
10525
+ var object = {};
10526
+ if (options.arrays || options.defaults) {
10527
+ object.userGroupEntries = [];
10528
+ object.userGroups = [];
10529
+ }
10530
+ if (message.userGroupEntries && message.userGroupEntries.length) {
10531
+ object.userGroupEntries = [];
10532
+ for (var j = 0; j < message.userGroupEntries.length; ++j)
10533
+ object.userGroupEntries[j] = $root.community.UserGroupEntry.toObject(message.userGroupEntries[j], options);
10534
+ }
10535
+ if (message.userGroups && message.userGroups.length) {
10536
+ object.userGroups = [];
10537
+ for (var j = 0; j < message.userGroups.length; ++j)
10538
+ object.userGroups[j] = $root.community.UserGroup.toObject(message.userGroups[j], options);
10539
+ }
10540
+ return object;
10541
+ };
10542
+
10543
+ /**
10544
+ * Converts this UserGroupEntryList to JSON.
10545
+ * @function toJSON
10546
+ * @memberof community.UserGroupEntryList
10547
+ * @instance
10548
+ * @returns {Object.<string,*>} JSON object
10549
+ */
10550
+ UserGroupEntryList.prototype.toJSON = function toJSON() {
10551
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10552
+ };
10553
+
10554
+ return UserGroupEntryList;
10555
+ })();
10556
+
10557
+ community.UserGroupEntry = (function() {
10558
+
10559
+ /**
10560
+ * Properties of a UserGroupEntry.
10561
+ * @memberof community
10562
+ * @interface IUserGroupEntry
10563
+ * @property {number|null} [id] UserGroupEntry id
10564
+ * @property {string|null} [userId] UserGroupEntry userId
10565
+ * @property {number|null} [userGroupId] UserGroupEntry userGroupId
10566
+ * @property {string|null} [role] UserGroupEntry role
10567
+ * @property {string|null} [status] UserGroupEntry status
10568
+ * @property {number|Long|null} [acceptedOn] UserGroupEntry acceptedOn
10569
+ * @property {number|Long|null} [createdAt] UserGroupEntry createdAt
10570
+ * @property {number|Long|null} [updatedAt] UserGroupEntry updatedAt
10571
+ * @property {number|Long|null} [rejectedOn] UserGroupEntry rejectedOn
10572
+ * @property {number|Long|null} [removedOn] UserGroupEntry removedOn
10573
+ * @property {string|null} [email] UserGroupEntry email
10574
+ * @property {string|null} [token] UserGroupEntry token
10575
+ */
10576
+
10577
+ /**
10578
+ * Constructs a new UserGroupEntry.
10579
+ * @memberof community
10580
+ * @classdesc Represents a UserGroupEntry.
10581
+ * @implements IUserGroupEntry
10582
+ * @constructor
10583
+ * @param {community.IUserGroupEntry=} [properties] Properties to set
10584
+ */
10585
+ function UserGroupEntry(properties) {
10586
+ if (properties)
10587
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10588
+ if (properties[keys[i]] != null)
10589
+ this[keys[i]] = properties[keys[i]];
10590
+ }
10591
+
10592
+ /**
10593
+ * UserGroupEntry id.
10594
+ * @member {number} id
10595
+ * @memberof community.UserGroupEntry
10596
+ * @instance
10597
+ */
10598
+ UserGroupEntry.prototype.id = 0;
10599
+
10600
+ /**
10601
+ * UserGroupEntry userId.
10602
+ * @member {string} userId
10603
+ * @memberof community.UserGroupEntry
10604
+ * @instance
10605
+ */
10606
+ UserGroupEntry.prototype.userId = "";
10607
+
10608
+ /**
10609
+ * UserGroupEntry userGroupId.
10610
+ * @member {number} userGroupId
10611
+ * @memberof community.UserGroupEntry
10612
+ * @instance
10613
+ */
10614
+ UserGroupEntry.prototype.userGroupId = 0;
10615
+
10616
+ /**
10617
+ * UserGroupEntry role.
10618
+ * @member {string} role
10619
+ * @memberof community.UserGroupEntry
10620
+ * @instance
10621
+ */
10622
+ UserGroupEntry.prototype.role = "";
10623
+
10624
+ /**
10625
+ * UserGroupEntry status.
10626
+ * @member {string} status
10627
+ * @memberof community.UserGroupEntry
10628
+ * @instance
10629
+ */
10630
+ UserGroupEntry.prototype.status = "";
10631
+
10632
+ /**
10633
+ * UserGroupEntry acceptedOn.
10634
+ * @member {number|Long} acceptedOn
10635
+ * @memberof community.UserGroupEntry
10636
+ * @instance
10637
+ */
10638
+ UserGroupEntry.prototype.acceptedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
10639
+
10640
+ /**
10641
+ * UserGroupEntry createdAt.
10642
+ * @member {number|Long} createdAt
10643
+ * @memberof community.UserGroupEntry
10644
+ * @instance
10645
+ */
10646
+ UserGroupEntry.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
10647
+
10648
+ /**
10649
+ * UserGroupEntry updatedAt.
10650
+ * @member {number|Long} updatedAt
10651
+ * @memberof community.UserGroupEntry
10652
+ * @instance
10653
+ */
10654
+ UserGroupEntry.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
10655
+
10656
+ /**
10657
+ * UserGroupEntry rejectedOn.
10658
+ * @member {number|Long} rejectedOn
10659
+ * @memberof community.UserGroupEntry
10660
+ * @instance
10661
+ */
10662
+ UserGroupEntry.prototype.rejectedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
10663
+
10664
+ /**
10665
+ * UserGroupEntry removedOn.
10666
+ * @member {number|Long} removedOn
10667
+ * @memberof community.UserGroupEntry
10668
+ * @instance
10669
+ */
10670
+ UserGroupEntry.prototype.removedOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
10671
+
10672
+ /**
10673
+ * UserGroupEntry email.
10674
+ * @member {string} email
10675
+ * @memberof community.UserGroupEntry
10676
+ * @instance
10677
+ */
10678
+ UserGroupEntry.prototype.email = "";
10679
+
10680
+ /**
10681
+ * UserGroupEntry token.
10682
+ * @member {string} token
10683
+ * @memberof community.UserGroupEntry
10684
+ * @instance
10685
+ */
10686
+ UserGroupEntry.prototype.token = "";
10687
+
10688
+ /**
10689
+ * Creates a new UserGroupEntry instance using the specified properties.
10690
+ * @function create
10691
+ * @memberof community.UserGroupEntry
10692
+ * @static
10693
+ * @param {community.IUserGroupEntry=} [properties] Properties to set
10694
+ * @returns {community.UserGroupEntry} UserGroupEntry instance
10695
+ */
10696
+ UserGroupEntry.create = function create(properties) {
10697
+ return new UserGroupEntry(properties);
10698
+ };
10699
+
10700
+ /**
10701
+ * Encodes the specified UserGroupEntry message. Does not implicitly {@link community.UserGroupEntry.verify|verify} messages.
10702
+ * @function encode
10703
+ * @memberof community.UserGroupEntry
10704
+ * @static
10705
+ * @param {community.IUserGroupEntry} message UserGroupEntry message or plain object to encode
10706
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10707
+ * @returns {$protobuf.Writer} Writer
10708
+ */
10709
+ UserGroupEntry.encode = function encode(message, writer) {
10710
+ if (!writer)
10711
+ writer = $Writer.create();
10712
+ if (message.id != null && message.hasOwnProperty("id"))
10713
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id);
10714
+ if (message.userId != null && message.hasOwnProperty("userId"))
10715
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
10716
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
10717
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userGroupId);
10718
+ if (message.role != null && message.hasOwnProperty("role"))
10719
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.role);
10720
+ if (message.status != null && message.hasOwnProperty("status"))
10721
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.status);
10722
+ if (message.acceptedOn != null && message.hasOwnProperty("acceptedOn"))
10723
+ writer.uint32(/* id 6, wireType 0 =*/48).int64(message.acceptedOn);
10724
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
10725
+ writer.uint32(/* id 7, wireType 0 =*/56).int64(message.createdAt);
10726
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
10727
+ writer.uint32(/* id 8, wireType 0 =*/64).int64(message.updatedAt);
10728
+ if (message.rejectedOn != null && message.hasOwnProperty("rejectedOn"))
10729
+ writer.uint32(/* id 9, wireType 0 =*/72).int64(message.rejectedOn);
10730
+ if (message.removedOn != null && message.hasOwnProperty("removedOn"))
10731
+ writer.uint32(/* id 10, wireType 0 =*/80).int64(message.removedOn);
10732
+ if (message.email != null && message.hasOwnProperty("email"))
10733
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.email);
10734
+ if (message.token != null && message.hasOwnProperty("token"))
10735
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.token);
10736
+ return writer;
10737
+ };
10738
+
10739
+ /**
10740
+ * Encodes the specified UserGroupEntry message, length delimited. Does not implicitly {@link community.UserGroupEntry.verify|verify} messages.
10741
+ * @function encodeDelimited
10742
+ * @memberof community.UserGroupEntry
10743
+ * @static
10744
+ * @param {community.IUserGroupEntry} message UserGroupEntry message or plain object to encode
10745
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10746
+ * @returns {$protobuf.Writer} Writer
10747
+ */
10748
+ UserGroupEntry.encodeDelimited = function encodeDelimited(message, writer) {
10749
+ return this.encode(message, writer).ldelim();
10750
+ };
10751
+
10752
+ /**
10753
+ * Decodes a UserGroupEntry message from the specified reader or buffer.
10754
+ * @function decode
10755
+ * @memberof community.UserGroupEntry
10756
+ * @static
10757
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10758
+ * @param {number} [length] Message length if known beforehand
10759
+ * @returns {community.UserGroupEntry} UserGroupEntry
10760
+ * @throws {Error} If the payload is not a reader or valid buffer
10761
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10762
+ */
10763
+ UserGroupEntry.decode = function decode(reader, length) {
10764
+ if (!(reader instanceof $Reader))
10765
+ reader = $Reader.create(reader);
10766
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.community.UserGroupEntry();
10767
+ while (reader.pos < end) {
10768
+ var tag = reader.uint32();
10769
+ switch (tag >>> 3) {
10770
+ case 1:
10771
+ message.id = reader.int32();
10772
+ break;
10773
+ case 2:
10774
+ message.userId = reader.string();
10775
+ break;
10776
+ case 3:
10777
+ message.userGroupId = reader.int32();
10778
+ break;
10779
+ case 4:
10780
+ message.role = reader.string();
10781
+ break;
10782
+ case 5:
10783
+ message.status = reader.string();
10784
+ break;
10785
+ case 6:
10786
+ message.acceptedOn = reader.int64();
10787
+ break;
10788
+ case 7:
10789
+ message.createdAt = reader.int64();
10790
+ break;
10791
+ case 8:
10792
+ message.updatedAt = reader.int64();
10793
+ break;
10794
+ case 9:
10795
+ message.rejectedOn = reader.int64();
10796
+ break;
10797
+ case 10:
10798
+ message.removedOn = reader.int64();
10799
+ break;
10800
+ case 11:
10801
+ message.email = reader.string();
10802
+ break;
10803
+ case 12:
10804
+ message.token = reader.string();
10805
+ break;
10806
+ default:
10807
+ reader.skipType(tag & 7);
10808
+ break;
10809
+ }
10810
+ }
10811
+ return message;
10812
+ };
10813
+
10814
+ /**
10815
+ * Decodes a UserGroupEntry message from the specified reader or buffer, length delimited.
10816
+ * @function decodeDelimited
10817
+ * @memberof community.UserGroupEntry
10818
+ * @static
10819
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10820
+ * @returns {community.UserGroupEntry} UserGroupEntry
10821
+ * @throws {Error} If the payload is not a reader or valid buffer
10822
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10823
+ */
10824
+ UserGroupEntry.decodeDelimited = function decodeDelimited(reader) {
10825
+ if (!(reader instanceof $Reader))
10826
+ reader = new $Reader(reader);
10827
+ return this.decode(reader, reader.uint32());
10828
+ };
10829
+
10830
+ /**
10831
+ * Verifies a UserGroupEntry message.
10832
+ * @function verify
10833
+ * @memberof community.UserGroupEntry
10834
+ * @static
10835
+ * @param {Object.<string,*>} message Plain object to verify
10836
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10837
+ */
10838
+ UserGroupEntry.verify = function verify(message) {
10839
+ if (typeof message !== "object" || message === null)
10840
+ return "object expected";
10841
+ if (message.id != null && message.hasOwnProperty("id"))
10842
+ if (!$util.isInteger(message.id))
10843
+ return "id: integer expected";
10844
+ if (message.userId != null && message.hasOwnProperty("userId"))
10845
+ if (!$util.isString(message.userId))
10846
+ return "userId: string expected";
10847
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
10848
+ if (!$util.isInteger(message.userGroupId))
10849
+ return "userGroupId: integer expected";
10850
+ if (message.role != null && message.hasOwnProperty("role"))
10851
+ if (!$util.isString(message.role))
10852
+ return "role: string expected";
10853
+ if (message.status != null && message.hasOwnProperty("status"))
10854
+ if (!$util.isString(message.status))
10855
+ return "status: string expected";
10856
+ if (message.acceptedOn != null && message.hasOwnProperty("acceptedOn"))
10857
+ if (!$util.isInteger(message.acceptedOn) && !(message.acceptedOn && $util.isInteger(message.acceptedOn.low) && $util.isInteger(message.acceptedOn.high)))
10858
+ return "acceptedOn: integer|Long expected";
10859
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
10860
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
10861
+ return "createdAt: integer|Long expected";
10862
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
10863
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
10864
+ return "updatedAt: integer|Long expected";
10865
+ if (message.rejectedOn != null && message.hasOwnProperty("rejectedOn"))
10866
+ if (!$util.isInteger(message.rejectedOn) && !(message.rejectedOn && $util.isInteger(message.rejectedOn.low) && $util.isInteger(message.rejectedOn.high)))
10867
+ return "rejectedOn: integer|Long expected";
10868
+ if (message.removedOn != null && message.hasOwnProperty("removedOn"))
10869
+ if (!$util.isInteger(message.removedOn) && !(message.removedOn && $util.isInteger(message.removedOn.low) && $util.isInteger(message.removedOn.high)))
10870
+ return "removedOn: integer|Long expected";
10871
+ if (message.email != null && message.hasOwnProperty("email"))
10872
+ if (!$util.isString(message.email))
10873
+ return "email: string expected";
10874
+ if (message.token != null && message.hasOwnProperty("token"))
10875
+ if (!$util.isString(message.token))
10876
+ return "token: string expected";
10877
+ return null;
10878
+ };
10879
+
10880
+ /**
10881
+ * Creates a UserGroupEntry message from a plain object. Also converts values to their respective internal types.
10882
+ * @function fromObject
10883
+ * @memberof community.UserGroupEntry
10884
+ * @static
10885
+ * @param {Object.<string,*>} object Plain object
10886
+ * @returns {community.UserGroupEntry} UserGroupEntry
10887
+ */
10888
+ UserGroupEntry.fromObject = function fromObject(object) {
10889
+ if (object instanceof $root.community.UserGroupEntry)
10890
+ return object;
10891
+ var message = new $root.community.UserGroupEntry();
10892
+ if (object.id != null)
10893
+ message.id = object.id | 0;
10894
+ if (object.userId != null)
10895
+ message.userId = String(object.userId);
10896
+ if (object.userGroupId != null)
10897
+ message.userGroupId = object.userGroupId | 0;
10898
+ if (object.role != null)
10899
+ message.role = String(object.role);
10900
+ if (object.status != null)
10901
+ message.status = String(object.status);
10902
+ if (object.acceptedOn != null)
10903
+ if ($util.Long)
10904
+ (message.acceptedOn = $util.Long.fromValue(object.acceptedOn)).unsigned = false;
10905
+ else if (typeof object.acceptedOn === "string")
10906
+ message.acceptedOn = parseInt(object.acceptedOn, 10);
10907
+ else if (typeof object.acceptedOn === "number")
10908
+ message.acceptedOn = object.acceptedOn;
10909
+ else if (typeof object.acceptedOn === "object")
10910
+ message.acceptedOn = new $util.LongBits(object.acceptedOn.low >>> 0, object.acceptedOn.high >>> 0).toNumber();
10911
+ if (object.createdAt != null)
10912
+ if ($util.Long)
10913
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = false;
10914
+ else if (typeof object.createdAt === "string")
10915
+ message.createdAt = parseInt(object.createdAt, 10);
10916
+ else if (typeof object.createdAt === "number")
10917
+ message.createdAt = object.createdAt;
10918
+ else if (typeof object.createdAt === "object")
10919
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber();
10920
+ if (object.updatedAt != null)
10921
+ if ($util.Long)
10922
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = false;
10923
+ else if (typeof object.updatedAt === "string")
10924
+ message.updatedAt = parseInt(object.updatedAt, 10);
10925
+ else if (typeof object.updatedAt === "number")
10926
+ message.updatedAt = object.updatedAt;
10927
+ else if (typeof object.updatedAt === "object")
10928
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber();
10929
+ if (object.rejectedOn != null)
10930
+ if ($util.Long)
10931
+ (message.rejectedOn = $util.Long.fromValue(object.rejectedOn)).unsigned = false;
10932
+ else if (typeof object.rejectedOn === "string")
10933
+ message.rejectedOn = parseInt(object.rejectedOn, 10);
10934
+ else if (typeof object.rejectedOn === "number")
10935
+ message.rejectedOn = object.rejectedOn;
10936
+ else if (typeof object.rejectedOn === "object")
10937
+ message.rejectedOn = new $util.LongBits(object.rejectedOn.low >>> 0, object.rejectedOn.high >>> 0).toNumber();
10938
+ if (object.removedOn != null)
10939
+ if ($util.Long)
10940
+ (message.removedOn = $util.Long.fromValue(object.removedOn)).unsigned = false;
10941
+ else if (typeof object.removedOn === "string")
10942
+ message.removedOn = parseInt(object.removedOn, 10);
10943
+ else if (typeof object.removedOn === "number")
10944
+ message.removedOn = object.removedOn;
10945
+ else if (typeof object.removedOn === "object")
10946
+ message.removedOn = new $util.LongBits(object.removedOn.low >>> 0, object.removedOn.high >>> 0).toNumber();
10947
+ if (object.email != null)
10948
+ message.email = String(object.email);
10949
+ if (object.token != null)
10950
+ message.token = String(object.token);
10951
+ return message;
10952
+ };
10953
+
10954
+ /**
10955
+ * Creates a plain object from a UserGroupEntry message. Also converts values to other types if specified.
10956
+ * @function toObject
10957
+ * @memberof community.UserGroupEntry
10958
+ * @static
10959
+ * @param {community.UserGroupEntry} message UserGroupEntry
10960
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10961
+ * @returns {Object.<string,*>} Plain object
10962
+ */
10963
+ UserGroupEntry.toObject = function toObject(message, options) {
10964
+ if (!options)
10965
+ options = {};
10966
+ var object = {};
10967
+ if (options.defaults) {
10968
+ object.id = 0;
10969
+ object.userId = "";
10970
+ object.userGroupId = 0;
10971
+ object.role = "";
10972
+ object.status = "";
10973
+ if ($util.Long) {
10974
+ var long = new $util.Long(0, 0, false);
10975
+ object.acceptedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10976
+ } else
10977
+ object.acceptedOn = options.longs === String ? "0" : 0;
10978
+ if ($util.Long) {
10979
+ var long = new $util.Long(0, 0, false);
10980
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10981
+ } else
10982
+ object.createdAt = options.longs === String ? "0" : 0;
10983
+ if ($util.Long) {
10984
+ var long = new $util.Long(0, 0, false);
10985
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10986
+ } else
10987
+ object.updatedAt = options.longs === String ? "0" : 0;
10988
+ if ($util.Long) {
10989
+ var long = new $util.Long(0, 0, false);
10990
+ object.rejectedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10991
+ } else
10992
+ object.rejectedOn = options.longs === String ? "0" : 0;
10993
+ if ($util.Long) {
10994
+ var long = new $util.Long(0, 0, false);
10995
+ object.removedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10996
+ } else
10997
+ object.removedOn = options.longs === String ? "0" : 0;
10998
+ object.email = "";
10999
+ object.token = "";
11000
+ }
11001
+ if (message.id != null && message.hasOwnProperty("id"))
11002
+ object.id = message.id;
11003
+ if (message.userId != null && message.hasOwnProperty("userId"))
11004
+ object.userId = message.userId;
11005
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
11006
+ object.userGroupId = message.userGroupId;
11007
+ if (message.role != null && message.hasOwnProperty("role"))
11008
+ object.role = message.role;
11009
+ if (message.status != null && message.hasOwnProperty("status"))
11010
+ object.status = message.status;
11011
+ if (message.acceptedOn != null && message.hasOwnProperty("acceptedOn"))
11012
+ if (typeof message.acceptedOn === "number")
11013
+ object.acceptedOn = options.longs === String ? String(message.acceptedOn) : message.acceptedOn;
11014
+ else
11015
+ object.acceptedOn = options.longs === String ? $util.Long.prototype.toString.call(message.acceptedOn) : options.longs === Number ? new $util.LongBits(message.acceptedOn.low >>> 0, message.acceptedOn.high >>> 0).toNumber() : message.acceptedOn;
11016
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11017
+ if (typeof message.createdAt === "number")
11018
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
11019
+ else
11020
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber() : message.createdAt;
11021
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
11022
+ if (typeof message.updatedAt === "number")
11023
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
11024
+ else
11025
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber() : message.updatedAt;
11026
+ if (message.rejectedOn != null && message.hasOwnProperty("rejectedOn"))
11027
+ if (typeof message.rejectedOn === "number")
11028
+ object.rejectedOn = options.longs === String ? String(message.rejectedOn) : message.rejectedOn;
11029
+ else
11030
+ object.rejectedOn = options.longs === String ? $util.Long.prototype.toString.call(message.rejectedOn) : options.longs === Number ? new $util.LongBits(message.rejectedOn.low >>> 0, message.rejectedOn.high >>> 0).toNumber() : message.rejectedOn;
11031
+ if (message.removedOn != null && message.hasOwnProperty("removedOn"))
11032
+ if (typeof message.removedOn === "number")
11033
+ object.removedOn = options.longs === String ? String(message.removedOn) : message.removedOn;
11034
+ else
11035
+ object.removedOn = options.longs === String ? $util.Long.prototype.toString.call(message.removedOn) : options.longs === Number ? new $util.LongBits(message.removedOn.low >>> 0, message.removedOn.high >>> 0).toNumber() : message.removedOn;
11036
+ if (message.email != null && message.hasOwnProperty("email"))
11037
+ object.email = message.email;
11038
+ if (message.token != null && message.hasOwnProperty("token"))
11039
+ object.token = message.token;
11040
+ return object;
11041
+ };
11042
+
11043
+ /**
11044
+ * Converts this UserGroupEntry to JSON.
11045
+ * @function toJSON
11046
+ * @memberof community.UserGroupEntry
11047
+ * @instance
11048
+ * @returns {Object.<string,*>} JSON object
11049
+ */
11050
+ UserGroupEntry.prototype.toJSON = function toJSON() {
11051
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11052
+ };
11053
+
11054
+ return UserGroupEntry;
11055
+ })();
11056
+
11057
+ community.UserGroup = (function() {
11058
+
11059
+ /**
11060
+ * Properties of a UserGroup.
11061
+ * @memberof community
11062
+ * @interface IUserGroup
11063
+ * @property {number|null} [id] UserGroup id
11064
+ * @property {number|null} [numUsersMax] UserGroup numUsersMax
11065
+ * @property {string|null} [groupType] UserGroup groupType
11066
+ * @property {number|Long|null} [createdAt] UserGroup createdAt
11067
+ * @property {number|null} [orgId] UserGroup orgId
11068
+ */
11069
+
11070
+ /**
11071
+ * Constructs a new UserGroup.
11072
+ * @memberof community
11073
+ * @classdesc Represents a UserGroup.
11074
+ * @implements IUserGroup
11075
+ * @constructor
11076
+ * @param {community.IUserGroup=} [properties] Properties to set
11077
+ */
11078
+ function UserGroup(properties) {
11079
+ if (properties)
11080
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11081
+ if (properties[keys[i]] != null)
11082
+ this[keys[i]] = properties[keys[i]];
11083
+ }
11084
+
11085
+ /**
11086
+ * UserGroup id.
11087
+ * @member {number} id
11088
+ * @memberof community.UserGroup
11089
+ * @instance
11090
+ */
11091
+ UserGroup.prototype.id = 0;
11092
+
11093
+ /**
11094
+ * UserGroup numUsersMax.
11095
+ * @member {number} numUsersMax
11096
+ * @memberof community.UserGroup
11097
+ * @instance
11098
+ */
11099
+ UserGroup.prototype.numUsersMax = 0;
11100
+
11101
+ /**
11102
+ * UserGroup groupType.
11103
+ * @member {string} groupType
11104
+ * @memberof community.UserGroup
11105
+ * @instance
11106
+ */
11107
+ UserGroup.prototype.groupType = "";
11108
+
11109
+ /**
11110
+ * UserGroup createdAt.
11111
+ * @member {number|Long} createdAt
11112
+ * @memberof community.UserGroup
11113
+ * @instance
11114
+ */
11115
+ UserGroup.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
11116
+
11117
+ /**
11118
+ * UserGroup orgId.
11119
+ * @member {number} orgId
11120
+ * @memberof community.UserGroup
11121
+ * @instance
11122
+ */
11123
+ UserGroup.prototype.orgId = 0;
11124
+
11125
+ /**
11126
+ * Creates a new UserGroup instance using the specified properties.
11127
+ * @function create
11128
+ * @memberof community.UserGroup
11129
+ * @static
11130
+ * @param {community.IUserGroup=} [properties] Properties to set
11131
+ * @returns {community.UserGroup} UserGroup instance
11132
+ */
11133
+ UserGroup.create = function create(properties) {
11134
+ return new UserGroup(properties);
11135
+ };
11136
+
11137
+ /**
11138
+ * Encodes the specified UserGroup message. Does not implicitly {@link community.UserGroup.verify|verify} messages.
11139
+ * @function encode
11140
+ * @memberof community.UserGroup
11141
+ * @static
11142
+ * @param {community.IUserGroup} message UserGroup message or plain object to encode
11143
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11144
+ * @returns {$protobuf.Writer} Writer
11145
+ */
11146
+ UserGroup.encode = function encode(message, writer) {
11147
+ if (!writer)
11148
+ writer = $Writer.create();
11149
+ if (message.id != null && message.hasOwnProperty("id"))
11150
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id);
11151
+ if (message.numUsersMax != null && message.hasOwnProperty("numUsersMax"))
11152
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.numUsersMax);
11153
+ if (message.groupType != null && message.hasOwnProperty("groupType"))
11154
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupType);
11155
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11156
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.createdAt);
11157
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
11158
+ writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.orgId);
11159
+ return writer;
11160
+ };
11161
+
11162
+ /**
11163
+ * Encodes the specified UserGroup message, length delimited. Does not implicitly {@link community.UserGroup.verify|verify} messages.
11164
+ * @function encodeDelimited
11165
+ * @memberof community.UserGroup
11166
+ * @static
11167
+ * @param {community.IUserGroup} message UserGroup message or plain object to encode
11168
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11169
+ * @returns {$protobuf.Writer} Writer
11170
+ */
11171
+ UserGroup.encodeDelimited = function encodeDelimited(message, writer) {
11172
+ return this.encode(message, writer).ldelim();
11173
+ };
11174
+
11175
+ /**
11176
+ * Decodes a UserGroup message from the specified reader or buffer.
11177
+ * @function decode
11178
+ * @memberof community.UserGroup
11179
+ * @static
11180
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11181
+ * @param {number} [length] Message length if known beforehand
11182
+ * @returns {community.UserGroup} UserGroup
11183
+ * @throws {Error} If the payload is not a reader or valid buffer
11184
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11185
+ */
11186
+ UserGroup.decode = function decode(reader, length) {
11187
+ if (!(reader instanceof $Reader))
11188
+ reader = $Reader.create(reader);
11189
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.community.UserGroup();
11190
+ while (reader.pos < end) {
11191
+ var tag = reader.uint32();
11192
+ switch (tag >>> 3) {
11193
+ case 1:
11194
+ message.id = reader.int32();
11195
+ break;
11196
+ case 2:
11197
+ message.numUsersMax = reader.int32();
11198
+ break;
11199
+ case 3:
11200
+ message.groupType = reader.string();
11201
+ break;
11202
+ case 4:
11203
+ message.createdAt = reader.int64();
11204
+ break;
11205
+ case 5:
11206
+ message.orgId = reader.uint32();
11207
+ break;
11208
+ default:
11209
+ reader.skipType(tag & 7);
11210
+ break;
11211
+ }
11212
+ }
11213
+ return message;
11214
+ };
11215
+
11216
+ /**
11217
+ * Decodes a UserGroup message from the specified reader or buffer, length delimited.
11218
+ * @function decodeDelimited
11219
+ * @memberof community.UserGroup
11220
+ * @static
11221
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11222
+ * @returns {community.UserGroup} UserGroup
11223
+ * @throws {Error} If the payload is not a reader or valid buffer
11224
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11225
+ */
11226
+ UserGroup.decodeDelimited = function decodeDelimited(reader) {
11227
+ if (!(reader instanceof $Reader))
11228
+ reader = new $Reader(reader);
11229
+ return this.decode(reader, reader.uint32());
11230
+ };
11231
+
11232
+ /**
11233
+ * Verifies a UserGroup message.
11234
+ * @function verify
11235
+ * @memberof community.UserGroup
11236
+ * @static
11237
+ * @param {Object.<string,*>} message Plain object to verify
11238
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11239
+ */
11240
+ UserGroup.verify = function verify(message) {
11241
+ if (typeof message !== "object" || message === null)
11242
+ return "object expected";
11243
+ if (message.id != null && message.hasOwnProperty("id"))
11244
+ if (!$util.isInteger(message.id))
11245
+ return "id: integer expected";
11246
+ if (message.numUsersMax != null && message.hasOwnProperty("numUsersMax"))
11247
+ if (!$util.isInteger(message.numUsersMax))
11248
+ return "numUsersMax: integer expected";
11249
+ if (message.groupType != null && message.hasOwnProperty("groupType"))
11250
+ if (!$util.isString(message.groupType))
11251
+ return "groupType: string expected";
11252
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11253
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
11254
+ return "createdAt: integer|Long expected";
11255
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
11256
+ if (!$util.isInteger(message.orgId))
11257
+ return "orgId: integer expected";
11258
+ return null;
11259
+ };
11260
+
11261
+ /**
11262
+ * Creates a UserGroup message from a plain object. Also converts values to their respective internal types.
11263
+ * @function fromObject
11264
+ * @memberof community.UserGroup
11265
+ * @static
11266
+ * @param {Object.<string,*>} object Plain object
11267
+ * @returns {community.UserGroup} UserGroup
11268
+ */
11269
+ UserGroup.fromObject = function fromObject(object) {
11270
+ if (object instanceof $root.community.UserGroup)
11271
+ return object;
11272
+ var message = new $root.community.UserGroup();
11273
+ if (object.id != null)
11274
+ message.id = object.id | 0;
11275
+ if (object.numUsersMax != null)
11276
+ message.numUsersMax = object.numUsersMax | 0;
11277
+ if (object.groupType != null)
11278
+ message.groupType = String(object.groupType);
11279
+ if (object.createdAt != null)
11280
+ if ($util.Long)
11281
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = false;
11282
+ else if (typeof object.createdAt === "string")
11283
+ message.createdAt = parseInt(object.createdAt, 10);
11284
+ else if (typeof object.createdAt === "number")
11285
+ message.createdAt = object.createdAt;
11286
+ else if (typeof object.createdAt === "object")
11287
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber();
11288
+ if (object.orgId != null)
11289
+ message.orgId = object.orgId >>> 0;
11290
+ return message;
11291
+ };
11292
+
11293
+ /**
11294
+ * Creates a plain object from a UserGroup message. Also converts values to other types if specified.
11295
+ * @function toObject
11296
+ * @memberof community.UserGroup
11297
+ * @static
11298
+ * @param {community.UserGroup} message UserGroup
11299
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11300
+ * @returns {Object.<string,*>} Plain object
11301
+ */
11302
+ UserGroup.toObject = function toObject(message, options) {
11303
+ if (!options)
11304
+ options = {};
11305
+ var object = {};
11306
+ if (options.defaults) {
11307
+ object.id = 0;
11308
+ object.numUsersMax = 0;
11309
+ object.groupType = "";
11310
+ if ($util.Long) {
11311
+ var long = new $util.Long(0, 0, false);
11312
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
11313
+ } else
11314
+ object.createdAt = options.longs === String ? "0" : 0;
11315
+ object.orgId = 0;
11316
+ }
11317
+ if (message.id != null && message.hasOwnProperty("id"))
11318
+ object.id = message.id;
11319
+ if (message.numUsersMax != null && message.hasOwnProperty("numUsersMax"))
11320
+ object.numUsersMax = message.numUsersMax;
11321
+ if (message.groupType != null && message.hasOwnProperty("groupType"))
11322
+ object.groupType = message.groupType;
11323
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11324
+ if (typeof message.createdAt === "number")
11325
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
11326
+ else
11327
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber() : message.createdAt;
11328
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
11329
+ object.orgId = message.orgId;
11330
+ return object;
11331
+ };
11332
+
11333
+ /**
11334
+ * Converts this UserGroup to JSON.
11335
+ * @function toJSON
11336
+ * @memberof community.UserGroup
11337
+ * @instance
11338
+ * @returns {Object.<string,*>} JSON object
11339
+ */
11340
+ UserGroup.prototype.toJSON = function toJSON() {
11341
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11342
+ };
11343
+
11344
+ return UserGroup;
11345
+ })();
11346
+
11347
+ community.UserFavoriteManager = (function() {
11348
+
11349
+ /**
11350
+ * Constructs a new UserFavoriteManager service.
11351
+ * @memberof community
11352
+ * @classdesc Represents a UserFavoriteManager
11353
+ * @extends $protobuf.rpc.Service
11354
+ * @constructor
11355
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
11356
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
11357
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
11358
+ */
11359
+ function UserFavoriteManager(rpcImpl, requestDelimited, responseDelimited) {
11360
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
11361
+ }
11362
+
11363
+ (UserFavoriteManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = UserFavoriteManager;
11364
+
11365
+ /**
11366
+ * Creates new UserFavoriteManager service using the specified rpc implementation.
11367
+ * @function create
11368
+ * @memberof community.UserFavoriteManager
11369
+ * @static
11370
+ * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
11371
+ * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
11372
+ * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
11373
+ * @returns {UserFavoriteManager} RPC service. Useful where requests and/or responses are streamed.
11374
+ */
11375
+ UserFavoriteManager.create = function create(rpcImpl, requestDelimited, responseDelimited) {
11376
+ return new this(rpcImpl, requestDelimited, responseDelimited);
11377
+ };
11378
+
11379
+ /**
11380
+ * Callback as used by {@link community.UserFavoriteManager#findMany}.
11381
+ * @memberof community.UserFavoriteManager
11382
+ * @typedef findManyCallback
11383
+ * @type {function}
11384
+ * @param {Error|null} error Error, if any
11385
+ * @param {community.FindManyReply} [response] FindManyReply
11386
+ */
11387
+
11388
+ /**
11389
+ * Calls findMany.
11390
+ * @function findMany
11391
+ * @memberof community.UserFavoriteManager
11392
+ * @instance
11393
+ * @param {community.IFindManyRequest} request FindManyRequest message or plain object
11394
+ * @param {community.UserFavoriteManager.findManyCallback} callback Node-style callback called with the error, if any, and FindManyReply
11395
+ * @returns {undefined}
11396
+ * @variation 1
11397
+ */
11398
+ Object.defineProperty(UserFavoriteManager.prototype.findMany = function findMany(request, callback) {
11399
+ return this.rpcCall(findMany, $root.community.FindManyRequest, $root.community.FindManyReply, request, callback);
11400
+ }, "name", { value: "findMany" });
11401
+
11402
+ /**
11403
+ * Calls findMany.
11404
+ * @function findMany
11405
+ * @memberof community.UserFavoriteManager
11406
+ * @instance
11407
+ * @param {community.IFindManyRequest} request FindManyRequest message or plain object
11408
+ * @returns {Promise<community.FindManyReply>} Promise
11409
+ * @variation 2
11410
+ */
11411
+
11412
+ return UserFavoriteManager;
11413
+ })();
11414
+
11415
+ community.FindManyRequest = (function() {
11416
+
11417
+ /**
11418
+ * Properties of a FindManyRequest.
11419
+ * @memberof community
11420
+ * @interface IFindManyRequest
11421
+ * @property {string|null} [userId] FindManyRequest userId
11422
+ * @property {number|null} [activityIds] FindManyRequest activityIds
11423
+ */
11424
+
11425
+ /**
11426
+ * Constructs a new FindManyRequest.
11427
+ * @memberof community
11428
+ * @classdesc Represents a FindManyRequest.
11429
+ * @implements IFindManyRequest
11430
+ * @constructor
11431
+ * @param {community.IFindManyRequest=} [properties] Properties to set
11432
+ */
11433
+ function FindManyRequest(properties) {
11434
+ if (properties)
11435
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11436
+ if (properties[keys[i]] != null)
11437
+ this[keys[i]] = properties[keys[i]];
11438
+ }
11439
+
11440
+ /**
11441
+ * FindManyRequest userId.
11442
+ * @member {string} userId
11443
+ * @memberof community.FindManyRequest
11444
+ * @instance
11445
+ */
11446
+ FindManyRequest.prototype.userId = "";
11447
+
11448
+ /**
11449
+ * FindManyRequest activityIds.
11450
+ * @member {number} activityIds
11451
+ * @memberof community.FindManyRequest
11452
+ * @instance
11453
+ */
11454
+ FindManyRequest.prototype.activityIds = 0;
11455
+
11456
+ /**
11457
+ * Creates a new FindManyRequest instance using the specified properties.
11458
+ * @function create
11459
+ * @memberof community.FindManyRequest
11460
+ * @static
11461
+ * @param {community.IFindManyRequest=} [properties] Properties to set
11462
+ * @returns {community.FindManyRequest} FindManyRequest instance
11463
+ */
11464
+ FindManyRequest.create = function create(properties) {
11465
+ return new FindManyRequest(properties);
11466
+ };
11467
+
11468
+ /**
11469
+ * Encodes the specified FindManyRequest message. Does not implicitly {@link community.FindManyRequest.verify|verify} messages.
11470
+ * @function encode
11471
+ * @memberof community.FindManyRequest
11472
+ * @static
11473
+ * @param {community.IFindManyRequest} message FindManyRequest message or plain object to encode
11474
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11475
+ * @returns {$protobuf.Writer} Writer
11476
+ */
11477
+ FindManyRequest.encode = function encode(message, writer) {
11478
+ if (!writer)
11479
+ writer = $Writer.create();
11480
+ if (message.userId != null && message.hasOwnProperty("userId"))
11481
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
11482
+ if (message.activityIds != null && message.hasOwnProperty("activityIds"))
11483
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.activityIds);
11484
+ return writer;
11485
+ };
11486
+
11487
+ /**
11488
+ * Encodes the specified FindManyRequest message, length delimited. Does not implicitly {@link community.FindManyRequest.verify|verify} messages.
11489
+ * @function encodeDelimited
11490
+ * @memberof community.FindManyRequest
11491
+ * @static
11492
+ * @param {community.IFindManyRequest} message FindManyRequest message or plain object to encode
11493
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11494
+ * @returns {$protobuf.Writer} Writer
11495
+ */
11496
+ FindManyRequest.encodeDelimited = function encodeDelimited(message, writer) {
11497
+ return this.encode(message, writer).ldelim();
11498
+ };
11499
+
11500
+ /**
11501
+ * Decodes a FindManyRequest message from the specified reader or buffer.
11502
+ * @function decode
11503
+ * @memberof community.FindManyRequest
11504
+ * @static
11505
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11506
+ * @param {number} [length] Message length if known beforehand
11507
+ * @returns {community.FindManyRequest} FindManyRequest
11508
+ * @throws {Error} If the payload is not a reader or valid buffer
11509
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11510
+ */
11511
+ FindManyRequest.decode = function decode(reader, length) {
11512
+ if (!(reader instanceof $Reader))
11513
+ reader = $Reader.create(reader);
11514
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.community.FindManyRequest();
11515
+ while (reader.pos < end) {
11516
+ var tag = reader.uint32();
11517
+ switch (tag >>> 3) {
11518
+ case 1:
11519
+ message.userId = reader.string();
11520
+ break;
11521
+ case 2:
11522
+ message.activityIds = reader.int32();
11523
+ break;
11524
+ default:
11525
+ reader.skipType(tag & 7);
11526
+ break;
11527
+ }
11528
+ }
11529
+ return message;
11530
+ };
11531
+
11532
+ /**
11533
+ * Decodes a FindManyRequest message from the specified reader or buffer, length delimited.
11534
+ * @function decodeDelimited
11535
+ * @memberof community.FindManyRequest
11536
+ * @static
11537
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11538
+ * @returns {community.FindManyRequest} FindManyRequest
11539
+ * @throws {Error} If the payload is not a reader or valid buffer
11540
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11541
+ */
11542
+ FindManyRequest.decodeDelimited = function decodeDelimited(reader) {
11543
+ if (!(reader instanceof $Reader))
11544
+ reader = new $Reader(reader);
11545
+ return this.decode(reader, reader.uint32());
11546
+ };
11547
+
11548
+ /**
11549
+ * Verifies a FindManyRequest message.
11550
+ * @function verify
11551
+ * @memberof community.FindManyRequest
11552
+ * @static
11553
+ * @param {Object.<string,*>} message Plain object to verify
11554
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11555
+ */
11556
+ FindManyRequest.verify = function verify(message) {
11557
+ if (typeof message !== "object" || message === null)
11558
+ return "object expected";
11559
+ if (message.userId != null && message.hasOwnProperty("userId"))
11560
+ if (!$util.isString(message.userId))
11561
+ return "userId: string expected";
11562
+ if (message.activityIds != null && message.hasOwnProperty("activityIds"))
11563
+ if (!$util.isInteger(message.activityIds))
11564
+ return "activityIds: integer expected";
11565
+ return null;
11566
+ };
11567
+
11568
+ /**
11569
+ * Creates a FindManyRequest message from a plain object. Also converts values to their respective internal types.
11570
+ * @function fromObject
11571
+ * @memberof community.FindManyRequest
11572
+ * @static
11573
+ * @param {Object.<string,*>} object Plain object
11574
+ * @returns {community.FindManyRequest} FindManyRequest
11575
+ */
11576
+ FindManyRequest.fromObject = function fromObject(object) {
11577
+ if (object instanceof $root.community.FindManyRequest)
11578
+ return object;
11579
+ var message = new $root.community.FindManyRequest();
11580
+ if (object.userId != null)
11581
+ message.userId = String(object.userId);
11582
+ if (object.activityIds != null)
11583
+ message.activityIds = object.activityIds | 0;
11584
+ return message;
11585
+ };
11586
+
11587
+ /**
11588
+ * Creates a plain object from a FindManyRequest message. Also converts values to other types if specified.
11589
+ * @function toObject
11590
+ * @memberof community.FindManyRequest
11591
+ * @static
11592
+ * @param {community.FindManyRequest} message FindManyRequest
11593
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11594
+ * @returns {Object.<string,*>} Plain object
11595
+ */
11596
+ FindManyRequest.toObject = function toObject(message, options) {
11597
+ if (!options)
11598
+ options = {};
11599
+ var object = {};
11600
+ if (options.defaults) {
11601
+ object.userId = "";
11602
+ object.activityIds = 0;
11603
+ }
11604
+ if (message.userId != null && message.hasOwnProperty("userId"))
11605
+ object.userId = message.userId;
11606
+ if (message.activityIds != null && message.hasOwnProperty("activityIds"))
11607
+ object.activityIds = message.activityIds;
11608
+ return object;
11609
+ };
11610
+
11611
+ /**
11612
+ * Converts this FindManyRequest to JSON.
11613
+ * @function toJSON
11614
+ * @memberof community.FindManyRequest
11615
+ * @instance
11616
+ * @returns {Object.<string,*>} JSON object
11617
+ */
11618
+ FindManyRequest.prototype.toJSON = function toJSON() {
11619
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11620
+ };
11621
+
11622
+ return FindManyRequest;
11623
+ })();
11624
+
11625
+ community.FindManyReply = (function() {
11626
+
11627
+ /**
11628
+ * Properties of a FindManyReply.
11629
+ * @memberof community
11630
+ * @interface IFindManyReply
11631
+ * @property {Array.<community.IUserFavorite>|null} [favorites] FindManyReply favorites
11632
+ */
11633
+
11634
+ /**
11635
+ * Constructs a new FindManyReply.
11636
+ * @memberof community
11637
+ * @classdesc Represents a FindManyReply.
11638
+ * @implements IFindManyReply
11639
+ * @constructor
11640
+ * @param {community.IFindManyReply=} [properties] Properties to set
11641
+ */
11642
+ function FindManyReply(properties) {
11643
+ this.favorites = [];
11644
+ if (properties)
11645
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11646
+ if (properties[keys[i]] != null)
11647
+ this[keys[i]] = properties[keys[i]];
11648
+ }
11649
+
11650
+ /**
11651
+ * FindManyReply favorites.
11652
+ * @member {Array.<community.IUserFavorite>} favorites
11653
+ * @memberof community.FindManyReply
11654
+ * @instance
11655
+ */
11656
+ FindManyReply.prototype.favorites = $util.emptyArray;
11657
+
11658
+ /**
11659
+ * Creates a new FindManyReply instance using the specified properties.
11660
+ * @function create
11661
+ * @memberof community.FindManyReply
11662
+ * @static
11663
+ * @param {community.IFindManyReply=} [properties] Properties to set
11664
+ * @returns {community.FindManyReply} FindManyReply instance
11665
+ */
11666
+ FindManyReply.create = function create(properties) {
11667
+ return new FindManyReply(properties);
11668
+ };
11669
+
11670
+ /**
11671
+ * Encodes the specified FindManyReply message. Does not implicitly {@link community.FindManyReply.verify|verify} messages.
11672
+ * @function encode
11673
+ * @memberof community.FindManyReply
11674
+ * @static
11675
+ * @param {community.IFindManyReply} message FindManyReply message or plain object to encode
11676
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11677
+ * @returns {$protobuf.Writer} Writer
11678
+ */
11679
+ FindManyReply.encode = function encode(message, writer) {
11680
+ if (!writer)
11681
+ writer = $Writer.create();
11682
+ if (message.favorites != null && message.favorites.length)
11683
+ for (var i = 0; i < message.favorites.length; ++i)
11684
+ $root.community.UserFavorite.encode(message.favorites[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
11685
+ return writer;
11686
+ };
11687
+
11688
+ /**
11689
+ * Encodes the specified FindManyReply message, length delimited. Does not implicitly {@link community.FindManyReply.verify|verify} messages.
11690
+ * @function encodeDelimited
11691
+ * @memberof community.FindManyReply
11692
+ * @static
11693
+ * @param {community.IFindManyReply} message FindManyReply message or plain object to encode
11694
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11695
+ * @returns {$protobuf.Writer} Writer
11696
+ */
11697
+ FindManyReply.encodeDelimited = function encodeDelimited(message, writer) {
11698
+ return this.encode(message, writer).ldelim();
11699
+ };
11700
+
11701
+ /**
11702
+ * Decodes a FindManyReply message from the specified reader or buffer.
11703
+ * @function decode
11704
+ * @memberof community.FindManyReply
11705
+ * @static
11706
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11707
+ * @param {number} [length] Message length if known beforehand
11708
+ * @returns {community.FindManyReply} FindManyReply
11709
+ * @throws {Error} If the payload is not a reader or valid buffer
11710
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11711
+ */
11712
+ FindManyReply.decode = function decode(reader, length) {
11713
+ if (!(reader instanceof $Reader))
11714
+ reader = $Reader.create(reader);
11715
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.community.FindManyReply();
11716
+ while (reader.pos < end) {
11717
+ var tag = reader.uint32();
11718
+ switch (tag >>> 3) {
11719
+ case 1:
11720
+ if (!(message.favorites && message.favorites.length))
11721
+ message.favorites = [];
11722
+ message.favorites.push($root.community.UserFavorite.decode(reader, reader.uint32()));
11723
+ break;
11724
+ default:
11725
+ reader.skipType(tag & 7);
11726
+ break;
11727
+ }
11728
+ }
11729
+ return message;
11730
+ };
11731
+
11732
+ /**
11733
+ * Decodes a FindManyReply message from the specified reader or buffer, length delimited.
11734
+ * @function decodeDelimited
11735
+ * @memberof community.FindManyReply
11736
+ * @static
11737
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11738
+ * @returns {community.FindManyReply} FindManyReply
11739
+ * @throws {Error} If the payload is not a reader or valid buffer
11740
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11741
+ */
11742
+ FindManyReply.decodeDelimited = function decodeDelimited(reader) {
11743
+ if (!(reader instanceof $Reader))
11744
+ reader = new $Reader(reader);
11745
+ return this.decode(reader, reader.uint32());
11746
+ };
11747
+
11748
+ /**
11749
+ * Verifies a FindManyReply message.
11750
+ * @function verify
11751
+ * @memberof community.FindManyReply
11752
+ * @static
11753
+ * @param {Object.<string,*>} message Plain object to verify
11754
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11755
+ */
11756
+ FindManyReply.verify = function verify(message) {
11757
+ if (typeof message !== "object" || message === null)
11758
+ return "object expected";
11759
+ if (message.favorites != null && message.hasOwnProperty("favorites")) {
11760
+ if (!Array.isArray(message.favorites))
11761
+ return "favorites: array expected";
11762
+ for (var i = 0; i < message.favorites.length; ++i) {
11763
+ var error = $root.community.UserFavorite.verify(message.favorites[i]);
11764
+ if (error)
11765
+ return "favorites." + error;
11766
+ }
11767
+ }
11768
+ return null;
11769
+ };
11770
+
11771
+ /**
11772
+ * Creates a FindManyReply message from a plain object. Also converts values to their respective internal types.
11773
+ * @function fromObject
11774
+ * @memberof community.FindManyReply
11775
+ * @static
11776
+ * @param {Object.<string,*>} object Plain object
11777
+ * @returns {community.FindManyReply} FindManyReply
11778
+ */
11779
+ FindManyReply.fromObject = function fromObject(object) {
11780
+ if (object instanceof $root.community.FindManyReply)
11781
+ return object;
11782
+ var message = new $root.community.FindManyReply();
11783
+ if (object.favorites) {
11784
+ if (!Array.isArray(object.favorites))
11785
+ throw TypeError(".community.FindManyReply.favorites: array expected");
11786
+ message.favorites = [];
11787
+ for (var i = 0; i < object.favorites.length; ++i) {
11788
+ if (typeof object.favorites[i] !== "object")
11789
+ throw TypeError(".community.FindManyReply.favorites: object expected");
11790
+ message.favorites[i] = $root.community.UserFavorite.fromObject(object.favorites[i]);
11791
+ }
11792
+ }
11793
+ return message;
11794
+ };
11795
+
11796
+ /**
11797
+ * Creates a plain object from a FindManyReply message. Also converts values to other types if specified.
11798
+ * @function toObject
11799
+ * @memberof community.FindManyReply
11800
+ * @static
11801
+ * @param {community.FindManyReply} message FindManyReply
11802
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11803
+ * @returns {Object.<string,*>} Plain object
11804
+ */
11805
+ FindManyReply.toObject = function toObject(message, options) {
11806
+ if (!options)
11807
+ options = {};
11808
+ var object = {};
11809
+ if (options.arrays || options.defaults)
11810
+ object.favorites = [];
11811
+ if (message.favorites && message.favorites.length) {
11812
+ object.favorites = [];
11813
+ for (var j = 0; j < message.favorites.length; ++j)
11814
+ object.favorites[j] = $root.community.UserFavorite.toObject(message.favorites[j], options);
11815
+ }
11816
+ return object;
11817
+ };
11818
+
11819
+ /**
11820
+ * Converts this FindManyReply to JSON.
11821
+ * @function toJSON
11822
+ * @memberof community.FindManyReply
11823
+ * @instance
11824
+ * @returns {Object.<string,*>} JSON object
11825
+ */
11826
+ FindManyReply.prototype.toJSON = function toJSON() {
11827
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11828
+ };
11829
+
11830
+ return FindManyReply;
11831
+ })();
11832
+
11833
+ community.UserFavorite = (function() {
11834
+
11835
+ /**
11836
+ * Properties of a UserFavorite.
11837
+ * @memberof community
11838
+ * @interface IUserFavorite
11839
+ * @property {number|Long|null} [id] UserFavorite id
11840
+ * @property {string|null} [userId] UserFavorite userId
11841
+ * @property {number|null} [activityId] UserFavorite activityId
11842
+ * @property {date.IDate|null} [createdAt] UserFavorite createdAt
11843
+ * @property {date.IDate|null} [updatedAt] UserFavorite updatedAt
11844
+ */
11845
+
11846
+ /**
11847
+ * Constructs a new UserFavorite.
11848
+ * @memberof community
11849
+ * @classdesc Represents a UserFavorite.
11850
+ * @implements IUserFavorite
11851
+ * @constructor
11852
+ * @param {community.IUserFavorite=} [properties] Properties to set
11853
+ */
11854
+ function UserFavorite(properties) {
11855
+ if (properties)
11856
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11857
+ if (properties[keys[i]] != null)
11858
+ this[keys[i]] = properties[keys[i]];
11859
+ }
11860
+
11861
+ /**
11862
+ * UserFavorite id.
11863
+ * @member {number|Long} id
11864
+ * @memberof community.UserFavorite
11865
+ * @instance
11866
+ */
11867
+ UserFavorite.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
11868
+
11869
+ /**
11870
+ * UserFavorite userId.
11871
+ * @member {string} userId
11872
+ * @memberof community.UserFavorite
11873
+ * @instance
11874
+ */
11875
+ UserFavorite.prototype.userId = "";
11876
+
11877
+ /**
11878
+ * UserFavorite activityId.
11879
+ * @member {number} activityId
11880
+ * @memberof community.UserFavorite
11881
+ * @instance
11882
+ */
11883
+ UserFavorite.prototype.activityId = 0;
11884
+
11885
+ /**
11886
+ * UserFavorite createdAt.
11887
+ * @member {date.IDate|null|undefined} createdAt
11888
+ * @memberof community.UserFavorite
11889
+ * @instance
11890
+ */
11891
+ UserFavorite.prototype.createdAt = null;
11892
+
11893
+ /**
11894
+ * UserFavorite updatedAt.
11895
+ * @member {date.IDate|null|undefined} updatedAt
11896
+ * @memberof community.UserFavorite
11897
+ * @instance
11898
+ */
11899
+ UserFavorite.prototype.updatedAt = null;
11900
+
11901
+ /**
11902
+ * Creates a new UserFavorite instance using the specified properties.
11903
+ * @function create
11904
+ * @memberof community.UserFavorite
11905
+ * @static
11906
+ * @param {community.IUserFavorite=} [properties] Properties to set
11907
+ * @returns {community.UserFavorite} UserFavorite instance
11908
+ */
11909
+ UserFavorite.create = function create(properties) {
11910
+ return new UserFavorite(properties);
11911
+ };
11912
+
11913
+ /**
11914
+ * Encodes the specified UserFavorite message. Does not implicitly {@link community.UserFavorite.verify|verify} messages.
11915
+ * @function encode
11916
+ * @memberof community.UserFavorite
11917
+ * @static
11918
+ * @param {community.IUserFavorite} message UserFavorite message or plain object to encode
11919
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11920
+ * @returns {$protobuf.Writer} Writer
11921
+ */
11922
+ UserFavorite.encode = function encode(message, writer) {
11923
+ if (!writer)
11924
+ writer = $Writer.create();
11925
+ if (message.id != null && message.hasOwnProperty("id"))
11926
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
11927
+ if (message.userId != null && message.hasOwnProperty("userId"))
11928
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
11929
+ if (message.activityId != null && message.hasOwnProperty("activityId"))
11930
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.activityId);
11931
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11932
+ $root.date.Date.encode(message.createdAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
11933
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
11934
+ $root.date.Date.encode(message.updatedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
11935
+ return writer;
11936
+ };
11937
+
11938
+ /**
11939
+ * Encodes the specified UserFavorite message, length delimited. Does not implicitly {@link community.UserFavorite.verify|verify} messages.
11940
+ * @function encodeDelimited
11941
+ * @memberof community.UserFavorite
11942
+ * @static
11943
+ * @param {community.IUserFavorite} message UserFavorite message or plain object to encode
11944
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11945
+ * @returns {$protobuf.Writer} Writer
11946
+ */
11947
+ UserFavorite.encodeDelimited = function encodeDelimited(message, writer) {
11948
+ return this.encode(message, writer).ldelim();
11949
+ };
11950
+
11951
+ /**
11952
+ * Decodes a UserFavorite message from the specified reader or buffer.
11953
+ * @function decode
11954
+ * @memberof community.UserFavorite
11955
+ * @static
11956
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11957
+ * @param {number} [length] Message length if known beforehand
11958
+ * @returns {community.UserFavorite} UserFavorite
11959
+ * @throws {Error} If the payload is not a reader or valid buffer
11960
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11961
+ */
11962
+ UserFavorite.decode = function decode(reader, length) {
11963
+ if (!(reader instanceof $Reader))
11964
+ reader = $Reader.create(reader);
11965
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.community.UserFavorite();
11966
+ while (reader.pos < end) {
11967
+ var tag = reader.uint32();
11968
+ switch (tag >>> 3) {
11969
+ case 1:
11970
+ message.id = reader.int64();
11971
+ break;
11972
+ case 2:
11973
+ message.userId = reader.string();
11974
+ break;
11975
+ case 3:
11976
+ message.activityId = reader.int32();
11977
+ break;
11978
+ case 4:
11979
+ message.createdAt = $root.date.Date.decode(reader, reader.uint32());
11980
+ break;
11981
+ case 5:
11982
+ message.updatedAt = $root.date.Date.decode(reader, reader.uint32());
11983
+ break;
11984
+ default:
11985
+ reader.skipType(tag & 7);
11986
+ break;
11987
+ }
11988
+ }
11989
+ return message;
11990
+ };
11991
+
11992
+ /**
11993
+ * Decodes a UserFavorite message from the specified reader or buffer, length delimited.
11994
+ * @function decodeDelimited
11995
+ * @memberof community.UserFavorite
11996
+ * @static
11997
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11998
+ * @returns {community.UserFavorite} UserFavorite
11999
+ * @throws {Error} If the payload is not a reader or valid buffer
12000
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12001
+ */
12002
+ UserFavorite.decodeDelimited = function decodeDelimited(reader) {
12003
+ if (!(reader instanceof $Reader))
12004
+ reader = new $Reader(reader);
12005
+ return this.decode(reader, reader.uint32());
12006
+ };
12007
+
12008
+ /**
12009
+ * Verifies a UserFavorite message.
12010
+ * @function verify
12011
+ * @memberof community.UserFavorite
12012
+ * @static
12013
+ * @param {Object.<string,*>} message Plain object to verify
12014
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
12015
+ */
12016
+ UserFavorite.verify = function verify(message) {
12017
+ if (typeof message !== "object" || message === null)
12018
+ return "object expected";
12019
+ if (message.id != null && message.hasOwnProperty("id"))
12020
+ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
12021
+ return "id: integer|Long expected";
12022
+ if (message.userId != null && message.hasOwnProperty("userId"))
12023
+ if (!$util.isString(message.userId))
12024
+ return "userId: string expected";
12025
+ if (message.activityId != null && message.hasOwnProperty("activityId"))
12026
+ if (!$util.isInteger(message.activityId))
12027
+ return "activityId: integer expected";
12028
+ if (message.createdAt != null && message.hasOwnProperty("createdAt")) {
12029
+ var error = $root.date.Date.verify(message.createdAt);
12030
+ if (error)
12031
+ return "createdAt." + error;
12032
+ }
12033
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) {
12034
+ var error = $root.date.Date.verify(message.updatedAt);
12035
+ if (error)
12036
+ return "updatedAt." + error;
12037
+ }
12038
+ return null;
12039
+ };
12040
+
12041
+ /**
12042
+ * Creates a UserFavorite message from a plain object. Also converts values to their respective internal types.
12043
+ * @function fromObject
12044
+ * @memberof community.UserFavorite
12045
+ * @static
12046
+ * @param {Object.<string,*>} object Plain object
12047
+ * @returns {community.UserFavorite} UserFavorite
12048
+ */
12049
+ UserFavorite.fromObject = function fromObject(object) {
12050
+ if (object instanceof $root.community.UserFavorite)
12051
+ return object;
12052
+ var message = new $root.community.UserFavorite();
12053
+ if (object.id != null)
12054
+ if ($util.Long)
12055
+ (message.id = $util.Long.fromValue(object.id)).unsigned = false;
12056
+ else if (typeof object.id === "string")
12057
+ message.id = parseInt(object.id, 10);
12058
+ else if (typeof object.id === "number")
12059
+ message.id = object.id;
12060
+ else if (typeof object.id === "object")
12061
+ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
12062
+ if (object.userId != null)
12063
+ message.userId = String(object.userId);
12064
+ if (object.activityId != null)
12065
+ message.activityId = object.activityId | 0;
12066
+ if (object.createdAt != null) {
12067
+ if (typeof object.createdAt !== "object")
12068
+ throw TypeError(".community.UserFavorite.createdAt: object expected");
12069
+ message.createdAt = $root.date.Date.fromObject(object.createdAt);
12070
+ }
12071
+ if (object.updatedAt != null) {
12072
+ if (typeof object.updatedAt !== "object")
12073
+ throw TypeError(".community.UserFavorite.updatedAt: object expected");
12074
+ message.updatedAt = $root.date.Date.fromObject(object.updatedAt);
12075
+ }
12076
+ return message;
12077
+ };
12078
+
12079
+ /**
12080
+ * Creates a plain object from a UserFavorite message. Also converts values to other types if specified.
12081
+ * @function toObject
12082
+ * @memberof community.UserFavorite
12083
+ * @static
12084
+ * @param {community.UserFavorite} message UserFavorite
12085
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
12086
+ * @returns {Object.<string,*>} Plain object
12087
+ */
12088
+ UserFavorite.toObject = function toObject(message, options) {
12089
+ if (!options)
12090
+ options = {};
12091
+ var object = {};
12092
+ if (options.defaults) {
12093
+ if ($util.Long) {
12094
+ var long = new $util.Long(0, 0, false);
12095
+ object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
12096
+ } else
12097
+ object.id = options.longs === String ? "0" : 0;
12098
+ object.userId = "";
12099
+ object.activityId = 0;
12100
+ object.createdAt = null;
12101
+ object.updatedAt = null;
12102
+ }
12103
+ if (message.id != null && message.hasOwnProperty("id"))
12104
+ if (typeof message.id === "number")
12105
+ object.id = options.longs === String ? String(message.id) : message.id;
12106
+ else
12107
+ object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
12108
+ if (message.userId != null && message.hasOwnProperty("userId"))
12109
+ object.userId = message.userId;
12110
+ if (message.activityId != null && message.hasOwnProperty("activityId"))
12111
+ object.activityId = message.activityId;
12112
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
12113
+ object.createdAt = $root.date.Date.toObject(message.createdAt, options);
12114
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
12115
+ object.updatedAt = $root.date.Date.toObject(message.updatedAt, options);
12116
+ return object;
12117
+ };
12118
+
12119
+ /**
12120
+ * Converts this UserFavorite to JSON.
12121
+ * @function toJSON
12122
+ * @memberof community.UserFavorite
12123
+ * @instance
12124
+ * @returns {Object.<string,*>} JSON object
12125
+ */
12126
+ UserFavorite.prototype.toJSON = function toJSON() {
12127
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12128
+ };
12129
+
12130
+ return UserFavorite;
12131
+ })();
12132
+
12133
+ /**
12134
+ * FamilyPlanRole enum.
12135
+ * @name community.FamilyPlanRole
12136
+ * @enum {string}
12137
+ * @property {number} FAMILYPLAN_UNKNOWN=0 FAMILYPLAN_UNKNOWN value
12138
+ * @property {number} FAMILYPLAN_OWNER=1 FAMILYPLAN_OWNER value
12139
+ * @property {number} FAMILYPLAN_MEMBER=2 FAMILYPLAN_MEMBER value
12140
+ */
12141
+ community.FamilyPlanRole = (function() {
12142
+ var valuesById = {}, values = Object.create(valuesById);
12143
+ values[valuesById[0] = "FAMILYPLAN_UNKNOWN"] = 0;
12144
+ values[valuesById[1] = "FAMILYPLAN_OWNER"] = 1;
12145
+ values[valuesById[2] = "FAMILYPLAN_MEMBER"] = 2;
12146
+ return values;
12147
+ })();
12148
+
12149
+ return community;
12150
+ })();
12151
+
9886
12152
  $root.elf = (function() {
9887
12153
 
9888
12154
  /**
@@ -54606,6 +56872,8 @@ $root.FamilyMemberAdded = (function() {
54606
56872
  * @property {number|null} [userGroupId] FamilyMemberAdded userGroupId
54607
56873
  * @property {string|null} [email] FamilyMemberAdded email
54608
56874
  * @property {string|null} [token] FamilyMemberAdded token
56875
+ * @property {community.FamilyPlanRole|null} [role] FamilyMemberAdded role
56876
+ * @property {number|null} [orgId] FamilyMemberAdded orgId
54609
56877
  */
54610
56878
 
54611
56879
  /**
@@ -54671,6 +56939,22 @@ $root.FamilyMemberAdded = (function() {
54671
56939
  */
54672
56940
  FamilyMemberAdded.prototype.token = "";
54673
56941
 
56942
+ /**
56943
+ * FamilyMemberAdded role.
56944
+ * @member {community.FamilyPlanRole} role
56945
+ * @memberof FamilyMemberAdded
56946
+ * @instance
56947
+ */
56948
+ FamilyMemberAdded.prototype.role = 0;
56949
+
56950
+ /**
56951
+ * FamilyMemberAdded orgId.
56952
+ * @member {number} orgId
56953
+ * @memberof FamilyMemberAdded
56954
+ * @instance
56955
+ */
56956
+ FamilyMemberAdded.prototype.orgId = 0;
56957
+
54674
56958
  /**
54675
56959
  * Creates a new FamilyMemberAdded instance using the specified properties.
54676
56960
  * @function create
@@ -54707,6 +56991,10 @@ $root.FamilyMemberAdded = (function() {
54707
56991
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.email);
54708
56992
  if (message.token != null && message.hasOwnProperty("token"))
54709
56993
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.token);
56994
+ if (message.role != null && message.hasOwnProperty("role"))
56995
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.role);
56996
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
56997
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.orgId);
54710
56998
  return writer;
54711
56999
  };
54712
57000
 
@@ -54759,6 +57047,12 @@ $root.FamilyMemberAdded = (function() {
54759
57047
  case 6:
54760
57048
  message.token = reader.string();
54761
57049
  break;
57050
+ case 7:
57051
+ message.role = reader.int32();
57052
+ break;
57053
+ case 8:
57054
+ message.orgId = reader.int32();
57055
+ break;
54762
57056
  default:
54763
57057
  reader.skipType(tag & 7);
54764
57058
  break;
@@ -54812,6 +57106,18 @@ $root.FamilyMemberAdded = (function() {
54812
57106
  if (message.token != null && message.hasOwnProperty("token"))
54813
57107
  if (!$util.isString(message.token))
54814
57108
  return "token: string expected";
57109
+ if (message.role != null && message.hasOwnProperty("role"))
57110
+ switch (message.role) {
57111
+ default:
57112
+ return "role: enum value expected";
57113
+ case 0:
57114
+ case 1:
57115
+ case 2:
57116
+ break;
57117
+ }
57118
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57119
+ if (!$util.isInteger(message.orgId))
57120
+ return "orgId: integer expected";
54815
57121
  return null;
54816
57122
  };
54817
57123
 
@@ -54846,6 +57152,22 @@ $root.FamilyMemberAdded = (function() {
54846
57152
  message.email = String(object.email);
54847
57153
  if (object.token != null)
54848
57154
  message.token = String(object.token);
57155
+ switch (object.role) {
57156
+ case "FAMILYPLAN_UNKNOWN":
57157
+ case 0:
57158
+ message.role = 0;
57159
+ break;
57160
+ case "FAMILYPLAN_OWNER":
57161
+ case 1:
57162
+ message.role = 1;
57163
+ break;
57164
+ case "FAMILYPLAN_MEMBER":
57165
+ case 2:
57166
+ message.role = 2;
57167
+ break;
57168
+ }
57169
+ if (object.orgId != null)
57170
+ message.orgId = object.orgId | 0;
54849
57171
  return message;
54850
57172
  };
54851
57173
 
@@ -54873,6 +57195,8 @@ $root.FamilyMemberAdded = (function() {
54873
57195
  object.userGroupId = 0;
54874
57196
  object.email = "";
54875
57197
  object.token = "";
57198
+ object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
57199
+ object.orgId = 0;
54876
57200
  }
54877
57201
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
54878
57202
  if (typeof message.timestamp === "number")
@@ -54889,6 +57213,10 @@ $root.FamilyMemberAdded = (function() {
54889
57213
  object.email = message.email;
54890
57214
  if (message.token != null && message.hasOwnProperty("token"))
54891
57215
  object.token = message.token;
57216
+ if (message.role != null && message.hasOwnProperty("role"))
57217
+ object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
57218
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57219
+ object.orgId = message.orgId;
54892
57220
  return object;
54893
57221
  };
54894
57222
 
@@ -54918,6 +57246,8 @@ $root.FamilyMemberInvited = (function() {
54918
57246
  * @property {string|null} [email] FamilyMemberInvited email
54919
57247
  * @property {string|null} [token] FamilyMemberInvited token
54920
57248
  * @property {string|null} [userId] FamilyMemberInvited userId
57249
+ * @property {community.FamilyPlanRole|null} [role] FamilyMemberInvited role
57250
+ * @property {number|null} [orgId] FamilyMemberInvited orgId
54921
57251
  */
54922
57252
 
54923
57253
  /**
@@ -54983,6 +57313,22 @@ $root.FamilyMemberInvited = (function() {
54983
57313
  */
54984
57314
  FamilyMemberInvited.prototype.userId = "";
54985
57315
 
57316
+ /**
57317
+ * FamilyMemberInvited role.
57318
+ * @member {community.FamilyPlanRole} role
57319
+ * @memberof FamilyMemberInvited
57320
+ * @instance
57321
+ */
57322
+ FamilyMemberInvited.prototype.role = 0;
57323
+
57324
+ /**
57325
+ * FamilyMemberInvited orgId.
57326
+ * @member {number} orgId
57327
+ * @memberof FamilyMemberInvited
57328
+ * @instance
57329
+ */
57330
+ FamilyMemberInvited.prototype.orgId = 0;
57331
+
54986
57332
  /**
54987
57333
  * Creates a new FamilyMemberInvited instance using the specified properties.
54988
57334
  * @function create
@@ -55019,6 +57365,10 @@ $root.FamilyMemberInvited = (function() {
55019
57365
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.token);
55020
57366
  if (message.userId != null && message.hasOwnProperty("userId"))
55021
57367
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.userId);
57368
+ if (message.role != null && message.hasOwnProperty("role"))
57369
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.role);
57370
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57371
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.orgId);
55022
57372
  return writer;
55023
57373
  };
55024
57374
 
@@ -55071,6 +57421,12 @@ $root.FamilyMemberInvited = (function() {
55071
57421
  case 6:
55072
57422
  message.userId = reader.string();
55073
57423
  break;
57424
+ case 7:
57425
+ message.role = reader.int32();
57426
+ break;
57427
+ case 8:
57428
+ message.orgId = reader.int32();
57429
+ break;
55074
57430
  default:
55075
57431
  reader.skipType(tag & 7);
55076
57432
  break;
@@ -55124,6 +57480,18 @@ $root.FamilyMemberInvited = (function() {
55124
57480
  if (message.userId != null && message.hasOwnProperty("userId"))
55125
57481
  if (!$util.isString(message.userId))
55126
57482
  return "userId: string expected";
57483
+ if (message.role != null && message.hasOwnProperty("role"))
57484
+ switch (message.role) {
57485
+ default:
57486
+ return "role: enum value expected";
57487
+ case 0:
57488
+ case 1:
57489
+ case 2:
57490
+ break;
57491
+ }
57492
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57493
+ if (!$util.isInteger(message.orgId))
57494
+ return "orgId: integer expected";
55127
57495
  return null;
55128
57496
  };
55129
57497
 
@@ -55158,6 +57526,22 @@ $root.FamilyMemberInvited = (function() {
55158
57526
  message.token = String(object.token);
55159
57527
  if (object.userId != null)
55160
57528
  message.userId = String(object.userId);
57529
+ switch (object.role) {
57530
+ case "FAMILYPLAN_UNKNOWN":
57531
+ case 0:
57532
+ message.role = 0;
57533
+ break;
57534
+ case "FAMILYPLAN_OWNER":
57535
+ case 1:
57536
+ message.role = 1;
57537
+ break;
57538
+ case "FAMILYPLAN_MEMBER":
57539
+ case 2:
57540
+ message.role = 2;
57541
+ break;
57542
+ }
57543
+ if (object.orgId != null)
57544
+ message.orgId = object.orgId | 0;
55161
57545
  return message;
55162
57546
  };
55163
57547
 
@@ -55185,6 +57569,8 @@ $root.FamilyMemberInvited = (function() {
55185
57569
  object.email = "";
55186
57570
  object.token = "";
55187
57571
  object.userId = "";
57572
+ object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
57573
+ object.orgId = 0;
55188
57574
  }
55189
57575
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
55190
57576
  if (typeof message.timestamp === "number")
@@ -55201,6 +57587,10 @@ $root.FamilyMemberInvited = (function() {
55201
57587
  object.token = message.token;
55202
57588
  if (message.userId != null && message.hasOwnProperty("userId"))
55203
57589
  object.userId = message.userId;
57590
+ if (message.role != null && message.hasOwnProperty("role"))
57591
+ object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
57592
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57593
+ object.orgId = message.orgId;
55204
57594
  return object;
55205
57595
  };
55206
57596
 
@@ -55230,6 +57620,8 @@ $root.FamilyMemberRejected = (function() {
55230
57620
  * @property {string|null} [email] FamilyMemberRejected email
55231
57621
  * @property {string|null} [token] FamilyMemberRejected token
55232
57622
  * @property {string|null} [userId] FamilyMemberRejected userId
57623
+ * @property {community.FamilyPlanRole|null} [role] FamilyMemberRejected role
57624
+ * @property {number|null} [orgId] FamilyMemberRejected orgId
55233
57625
  */
55234
57626
 
55235
57627
  /**
@@ -55295,6 +57687,22 @@ $root.FamilyMemberRejected = (function() {
55295
57687
  */
55296
57688
  FamilyMemberRejected.prototype.userId = "";
55297
57689
 
57690
+ /**
57691
+ * FamilyMemberRejected role.
57692
+ * @member {community.FamilyPlanRole} role
57693
+ * @memberof FamilyMemberRejected
57694
+ * @instance
57695
+ */
57696
+ FamilyMemberRejected.prototype.role = 0;
57697
+
57698
+ /**
57699
+ * FamilyMemberRejected orgId.
57700
+ * @member {number} orgId
57701
+ * @memberof FamilyMemberRejected
57702
+ * @instance
57703
+ */
57704
+ FamilyMemberRejected.prototype.orgId = 0;
57705
+
55298
57706
  /**
55299
57707
  * Creates a new FamilyMemberRejected instance using the specified properties.
55300
57708
  * @function create
@@ -55331,6 +57739,10 @@ $root.FamilyMemberRejected = (function() {
55331
57739
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.token);
55332
57740
  if (message.userId != null && message.hasOwnProperty("userId"))
55333
57741
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.userId);
57742
+ if (message.role != null && message.hasOwnProperty("role"))
57743
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.role);
57744
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57745
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.orgId);
55334
57746
  return writer;
55335
57747
  };
55336
57748
 
@@ -55383,6 +57795,12 @@ $root.FamilyMemberRejected = (function() {
55383
57795
  case 6:
55384
57796
  message.userId = reader.string();
55385
57797
  break;
57798
+ case 7:
57799
+ message.role = reader.int32();
57800
+ break;
57801
+ case 8:
57802
+ message.orgId = reader.int32();
57803
+ break;
55386
57804
  default:
55387
57805
  reader.skipType(tag & 7);
55388
57806
  break;
@@ -55436,6 +57854,18 @@ $root.FamilyMemberRejected = (function() {
55436
57854
  if (message.userId != null && message.hasOwnProperty("userId"))
55437
57855
  if (!$util.isString(message.userId))
55438
57856
  return "userId: string expected";
57857
+ if (message.role != null && message.hasOwnProperty("role"))
57858
+ switch (message.role) {
57859
+ default:
57860
+ return "role: enum value expected";
57861
+ case 0:
57862
+ case 1:
57863
+ case 2:
57864
+ break;
57865
+ }
57866
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57867
+ if (!$util.isInteger(message.orgId))
57868
+ return "orgId: integer expected";
55439
57869
  return null;
55440
57870
  };
55441
57871
 
@@ -55470,6 +57900,22 @@ $root.FamilyMemberRejected = (function() {
55470
57900
  message.token = String(object.token);
55471
57901
  if (object.userId != null)
55472
57902
  message.userId = String(object.userId);
57903
+ switch (object.role) {
57904
+ case "FAMILYPLAN_UNKNOWN":
57905
+ case 0:
57906
+ message.role = 0;
57907
+ break;
57908
+ case "FAMILYPLAN_OWNER":
57909
+ case 1:
57910
+ message.role = 1;
57911
+ break;
57912
+ case "FAMILYPLAN_MEMBER":
57913
+ case 2:
57914
+ message.role = 2;
57915
+ break;
57916
+ }
57917
+ if (object.orgId != null)
57918
+ message.orgId = object.orgId | 0;
55473
57919
  return message;
55474
57920
  };
55475
57921
 
@@ -55497,6 +57943,8 @@ $root.FamilyMemberRejected = (function() {
55497
57943
  object.email = "";
55498
57944
  object.token = "";
55499
57945
  object.userId = "";
57946
+ object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
57947
+ object.orgId = 0;
55500
57948
  }
55501
57949
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
55502
57950
  if (typeof message.timestamp === "number")
@@ -55513,6 +57961,10 @@ $root.FamilyMemberRejected = (function() {
55513
57961
  object.token = message.token;
55514
57962
  if (message.userId != null && message.hasOwnProperty("userId"))
55515
57963
  object.userId = message.userId;
57964
+ if (message.role != null && message.hasOwnProperty("role"))
57965
+ object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
57966
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
57967
+ object.orgId = message.orgId;
55516
57968
  return object;
55517
57969
  };
55518
57970
 
@@ -55540,6 +57992,8 @@ $root.FamilyMemberRemoved = (function() {
55540
57992
  * @property {number|null} [userGroupEntryId] FamilyMemberRemoved userGroupEntryId
55541
57993
  * @property {string|null} [userId] FamilyMemberRemoved userId
55542
57994
  * @property {number|null} [userGroupId] FamilyMemberRemoved userGroupId
57995
+ * @property {community.FamilyPlanRole|null} [role] FamilyMemberRemoved role
57996
+ * @property {number|null} [orgId] FamilyMemberRemoved orgId
55543
57997
  */
55544
57998
 
55545
57999
  /**
@@ -55589,6 +58043,22 @@ $root.FamilyMemberRemoved = (function() {
55589
58043
  */
55590
58044
  FamilyMemberRemoved.prototype.userGroupId = 0;
55591
58045
 
58046
+ /**
58047
+ * FamilyMemberRemoved role.
58048
+ * @member {community.FamilyPlanRole} role
58049
+ * @memberof FamilyMemberRemoved
58050
+ * @instance
58051
+ */
58052
+ FamilyMemberRemoved.prototype.role = 0;
58053
+
58054
+ /**
58055
+ * FamilyMemberRemoved orgId.
58056
+ * @member {number} orgId
58057
+ * @memberof FamilyMemberRemoved
58058
+ * @instance
58059
+ */
58060
+ FamilyMemberRemoved.prototype.orgId = 0;
58061
+
55592
58062
  /**
55593
58063
  * Creates a new FamilyMemberRemoved instance using the specified properties.
55594
58064
  * @function create
@@ -55621,6 +58091,10 @@ $root.FamilyMemberRemoved = (function() {
55621
58091
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
55622
58092
  if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
55623
58093
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.userGroupId);
58094
+ if (message.role != null && message.hasOwnProperty("role"))
58095
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.role);
58096
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
58097
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.orgId);
55624
58098
  return writer;
55625
58099
  };
55626
58100
 
@@ -55667,6 +58141,12 @@ $root.FamilyMemberRemoved = (function() {
55667
58141
  case 4:
55668
58142
  message.userGroupId = reader.uint32();
55669
58143
  break;
58144
+ case 5:
58145
+ message.role = reader.int32();
58146
+ break;
58147
+ case 6:
58148
+ message.orgId = reader.int32();
58149
+ break;
55670
58150
  default:
55671
58151
  reader.skipType(tag & 7);
55672
58152
  break;
@@ -55714,6 +58194,18 @@ $root.FamilyMemberRemoved = (function() {
55714
58194
  if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
55715
58195
  if (!$util.isInteger(message.userGroupId))
55716
58196
  return "userGroupId: integer expected";
58197
+ if (message.role != null && message.hasOwnProperty("role"))
58198
+ switch (message.role) {
58199
+ default:
58200
+ return "role: enum value expected";
58201
+ case 0:
58202
+ case 1:
58203
+ case 2:
58204
+ break;
58205
+ }
58206
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
58207
+ if (!$util.isInteger(message.orgId))
58208
+ return "orgId: integer expected";
55717
58209
  return null;
55718
58210
  };
55719
58211
 
@@ -55744,6 +58236,22 @@ $root.FamilyMemberRemoved = (function() {
55744
58236
  message.userId = String(object.userId);
55745
58237
  if (object.userGroupId != null)
55746
58238
  message.userGroupId = object.userGroupId >>> 0;
58239
+ switch (object.role) {
58240
+ case "FAMILYPLAN_UNKNOWN":
58241
+ case 0:
58242
+ message.role = 0;
58243
+ break;
58244
+ case "FAMILYPLAN_OWNER":
58245
+ case 1:
58246
+ message.role = 1;
58247
+ break;
58248
+ case "FAMILYPLAN_MEMBER":
58249
+ case 2:
58250
+ message.role = 2;
58251
+ break;
58252
+ }
58253
+ if (object.orgId != null)
58254
+ message.orgId = object.orgId | 0;
55747
58255
  return message;
55748
58256
  };
55749
58257
 
@@ -55769,6 +58277,8 @@ $root.FamilyMemberRemoved = (function() {
55769
58277
  object.userGroupEntryId = 0;
55770
58278
  object.userId = "";
55771
58279
  object.userGroupId = 0;
58280
+ object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
58281
+ object.orgId = 0;
55772
58282
  }
55773
58283
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
55774
58284
  if (typeof message.timestamp === "number")
@@ -55781,6 +58291,10 @@ $root.FamilyMemberRemoved = (function() {
55781
58291
  object.userId = message.userId;
55782
58292
  if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
55783
58293
  object.userGroupId = message.userGroupId;
58294
+ if (message.role != null && message.hasOwnProperty("role"))
58295
+ object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
58296
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
58297
+ object.orgId = message.orgId;
55784
58298
  return object;
55785
58299
  };
55786
58300