@headspace/protos-events 1.70.0 → 1.72.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.
- package/lib/index.d.ts +112 -12
- package/lib/index.js +269 -56
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2027,8 +2027,14 @@ export namespace userdomain {
|
|
|
2027
2027
|
/** User signupPlatform */
|
|
2028
2028
|
signupPlatform?: (userdomain.Platform|null);
|
|
2029
2029
|
|
|
2030
|
-
/** User
|
|
2031
|
-
|
|
2030
|
+
/** User facebookId */
|
|
2031
|
+
facebookId?: (string|null);
|
|
2032
|
+
|
|
2033
|
+
/** User appleId */
|
|
2034
|
+
appleId?: (string|null);
|
|
2035
|
+
|
|
2036
|
+
/** User spotifyId */
|
|
2037
|
+
spotifyId?: (string|null);
|
|
2032
2038
|
}
|
|
2033
2039
|
|
|
2034
2040
|
/** Represents a User. */
|
|
@@ -2064,8 +2070,14 @@ export namespace userdomain {
|
|
|
2064
2070
|
/** User signupPlatform. */
|
|
2065
2071
|
public signupPlatform: userdomain.Platform;
|
|
2066
2072
|
|
|
2067
|
-
/** User
|
|
2068
|
-
public
|
|
2073
|
+
/** User facebookId. */
|
|
2074
|
+
public facebookId: string;
|
|
2075
|
+
|
|
2076
|
+
/** User appleId. */
|
|
2077
|
+
public appleId: string;
|
|
2078
|
+
|
|
2079
|
+
/** User spotifyId. */
|
|
2080
|
+
public spotifyId: string;
|
|
2069
2081
|
|
|
2070
2082
|
/**
|
|
2071
2083
|
* Creates a new User instance using the specified properties.
|
|
@@ -2147,14 +2159,6 @@ export namespace userdomain {
|
|
|
2147
2159
|
ALEXA = 4,
|
|
2148
2160
|
GOOGLE_ASSISTANT = 5
|
|
2149
2161
|
}
|
|
2150
|
-
|
|
2151
|
-
/** Connection enum. */
|
|
2152
|
-
enum Connection {
|
|
2153
|
-
UNKNOWN = 0,
|
|
2154
|
-
EMAIL = 1,
|
|
2155
|
-
FACEBOOK = 2,
|
|
2156
|
-
SPOTIFY = 3
|
|
2157
|
-
}
|
|
2158
2162
|
}
|
|
2159
2163
|
|
|
2160
2164
|
/** Properties of a UserRoleUpdated. */
|
|
@@ -3297,6 +3301,102 @@ export class BuddyAccepted implements IBuddyAccepted {
|
|
|
3297
3301
|
public toJSON(): { [k: string]: any };
|
|
3298
3302
|
}
|
|
3299
3303
|
|
|
3304
|
+
/** Properties of a BuddyDeleted. */
|
|
3305
|
+
export interface IBuddyDeleted {
|
|
3306
|
+
|
|
3307
|
+
/** BuddyDeleted userId */
|
|
3308
|
+
userId?: (string|null);
|
|
3309
|
+
|
|
3310
|
+
/** BuddyDeleted buddyUserId */
|
|
3311
|
+
buddyUserId?: (string|null);
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
/** Represents a BuddyDeleted. */
|
|
3315
|
+
export class BuddyDeleted implements IBuddyDeleted {
|
|
3316
|
+
|
|
3317
|
+
/**
|
|
3318
|
+
* Constructs a new BuddyDeleted.
|
|
3319
|
+
* @param [properties] Properties to set
|
|
3320
|
+
*/
|
|
3321
|
+
constructor(properties?: IBuddyDeleted);
|
|
3322
|
+
|
|
3323
|
+
/** BuddyDeleted userId. */
|
|
3324
|
+
public userId: string;
|
|
3325
|
+
|
|
3326
|
+
/** BuddyDeleted buddyUserId. */
|
|
3327
|
+
public buddyUserId: string;
|
|
3328
|
+
|
|
3329
|
+
/**
|
|
3330
|
+
* Creates a new BuddyDeleted instance using the specified properties.
|
|
3331
|
+
* @param [properties] Properties to set
|
|
3332
|
+
* @returns BuddyDeleted instance
|
|
3333
|
+
*/
|
|
3334
|
+
public static create(properties?: IBuddyDeleted): BuddyDeleted;
|
|
3335
|
+
|
|
3336
|
+
/**
|
|
3337
|
+
* Encodes the specified BuddyDeleted message. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
|
|
3338
|
+
* @param message BuddyDeleted message or plain object to encode
|
|
3339
|
+
* @param [writer] Writer to encode to
|
|
3340
|
+
* @returns Writer
|
|
3341
|
+
*/
|
|
3342
|
+
public static encode(message: IBuddyDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3343
|
+
|
|
3344
|
+
/**
|
|
3345
|
+
* Encodes the specified BuddyDeleted message, length delimited. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
|
|
3346
|
+
* @param message BuddyDeleted message or plain object to encode
|
|
3347
|
+
* @param [writer] Writer to encode to
|
|
3348
|
+
* @returns Writer
|
|
3349
|
+
*/
|
|
3350
|
+
public static encodeDelimited(message: IBuddyDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3351
|
+
|
|
3352
|
+
/**
|
|
3353
|
+
* Decodes a BuddyDeleted message from the specified reader or buffer.
|
|
3354
|
+
* @param reader Reader or buffer to decode from
|
|
3355
|
+
* @param [length] Message length if known beforehand
|
|
3356
|
+
* @returns BuddyDeleted
|
|
3357
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3358
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3359
|
+
*/
|
|
3360
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BuddyDeleted;
|
|
3361
|
+
|
|
3362
|
+
/**
|
|
3363
|
+
* Decodes a BuddyDeleted message from the specified reader or buffer, length delimited.
|
|
3364
|
+
* @param reader Reader or buffer to decode from
|
|
3365
|
+
* @returns BuddyDeleted
|
|
3366
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3367
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3368
|
+
*/
|
|
3369
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BuddyDeleted;
|
|
3370
|
+
|
|
3371
|
+
/**
|
|
3372
|
+
* Verifies a BuddyDeleted message.
|
|
3373
|
+
* @param message Plain object to verify
|
|
3374
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3375
|
+
*/
|
|
3376
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3377
|
+
|
|
3378
|
+
/**
|
|
3379
|
+
* Creates a BuddyDeleted message from a plain object. Also converts values to their respective internal types.
|
|
3380
|
+
* @param object Plain object
|
|
3381
|
+
* @returns BuddyDeleted
|
|
3382
|
+
*/
|
|
3383
|
+
public static fromObject(object: { [k: string]: any }): BuddyDeleted;
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* Creates a plain object from a BuddyDeleted message. Also converts values to other types if specified.
|
|
3387
|
+
* @param message BuddyDeleted
|
|
3388
|
+
* @param [options] Conversion options
|
|
3389
|
+
* @returns Plain object
|
|
3390
|
+
*/
|
|
3391
|
+
public static toObject(message: BuddyDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3392
|
+
|
|
3393
|
+
/**
|
|
3394
|
+
* Converts this BuddyDeleted to JSON.
|
|
3395
|
+
* @returns JSON object
|
|
3396
|
+
*/
|
|
3397
|
+
public toJSON(): { [k: string]: any };
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3300
3400
|
/** Properties of a MessageSent. */
|
|
3301
3401
|
export interface IMessageSent {
|
|
3302
3402
|
|
package/lib/index.js
CHANGED
|
@@ -4824,7 +4824,9 @@ $root.userdomain = (function() {
|
|
|
4824
4824
|
* @property {string|null} [countryCode] User countryCode
|
|
4825
4825
|
* @property {string|null} [stateCode] User stateCode
|
|
4826
4826
|
* @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
|
|
4827
|
-
* @property {
|
|
4827
|
+
* @property {string|null} [facebookId] User facebookId
|
|
4828
|
+
* @property {string|null} [appleId] User appleId
|
|
4829
|
+
* @property {string|null} [spotifyId] User spotifyId
|
|
4828
4830
|
*/
|
|
4829
4831
|
|
|
4830
4832
|
/**
|
|
@@ -4907,12 +4909,28 @@ $root.userdomain = (function() {
|
|
|
4907
4909
|
User.prototype.signupPlatform = 0;
|
|
4908
4910
|
|
|
4909
4911
|
/**
|
|
4910
|
-
* User
|
|
4911
|
-
* @member {
|
|
4912
|
+
* User facebookId.
|
|
4913
|
+
* @member {string} facebookId
|
|
4912
4914
|
* @memberof userdomain.User
|
|
4913
4915
|
* @instance
|
|
4914
4916
|
*/
|
|
4915
|
-
User.prototype.
|
|
4917
|
+
User.prototype.facebookId = "";
|
|
4918
|
+
|
|
4919
|
+
/**
|
|
4920
|
+
* User appleId.
|
|
4921
|
+
* @member {string} appleId
|
|
4922
|
+
* @memberof userdomain.User
|
|
4923
|
+
* @instance
|
|
4924
|
+
*/
|
|
4925
|
+
User.prototype.appleId = "";
|
|
4926
|
+
|
|
4927
|
+
/**
|
|
4928
|
+
* User spotifyId.
|
|
4929
|
+
* @member {string} spotifyId
|
|
4930
|
+
* @memberof userdomain.User
|
|
4931
|
+
* @instance
|
|
4932
|
+
*/
|
|
4933
|
+
User.prototype.spotifyId = "";
|
|
4916
4934
|
|
|
4917
4935
|
/**
|
|
4918
4936
|
* Creates a new User instance using the specified properties.
|
|
@@ -4954,8 +4972,12 @@ $root.userdomain = (function() {
|
|
|
4954
4972
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
4955
4973
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
4956
4974
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
4957
|
-
if (message.
|
|
4958
|
-
writer.uint32(/* id 9, wireType
|
|
4975
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
4976
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.facebookId);
|
|
4977
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
4978
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.appleId);
|
|
4979
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
4980
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.spotifyId);
|
|
4959
4981
|
return writer;
|
|
4960
4982
|
};
|
|
4961
4983
|
|
|
@@ -5015,7 +5037,13 @@ $root.userdomain = (function() {
|
|
|
5015
5037
|
message.signupPlatform = reader.int32();
|
|
5016
5038
|
break;
|
|
5017
5039
|
case 9:
|
|
5018
|
-
message.
|
|
5040
|
+
message.facebookId = reader.string();
|
|
5041
|
+
break;
|
|
5042
|
+
case 10:
|
|
5043
|
+
message.appleId = reader.string();
|
|
5044
|
+
break;
|
|
5045
|
+
case 11:
|
|
5046
|
+
message.spotifyId = reader.string();
|
|
5019
5047
|
break;
|
|
5020
5048
|
default:
|
|
5021
5049
|
reader.skipType(tag & 7);
|
|
@@ -5085,16 +5113,15 @@ $root.userdomain = (function() {
|
|
|
5085
5113
|
case 5:
|
|
5086
5114
|
break;
|
|
5087
5115
|
}
|
|
5088
|
-
if (message.
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
}
|
|
5116
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5117
|
+
if (!$util.isString(message.facebookId))
|
|
5118
|
+
return "facebookId: string expected";
|
|
5119
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5120
|
+
if (!$util.isString(message.appleId))
|
|
5121
|
+
return "appleId: string expected";
|
|
5122
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5123
|
+
if (!$util.isString(message.spotifyId))
|
|
5124
|
+
return "spotifyId: string expected";
|
|
5098
5125
|
return null;
|
|
5099
5126
|
};
|
|
5100
5127
|
|
|
@@ -5150,24 +5177,12 @@ $root.userdomain = (function() {
|
|
|
5150
5177
|
message.signupPlatform = 5;
|
|
5151
5178
|
break;
|
|
5152
5179
|
}
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
message.
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
case 1:
|
|
5160
|
-
message.registrationConnection = 1;
|
|
5161
|
-
break;
|
|
5162
|
-
case "FACEBOOK":
|
|
5163
|
-
case 2:
|
|
5164
|
-
message.registrationConnection = 2;
|
|
5165
|
-
break;
|
|
5166
|
-
case "SPOTIFY":
|
|
5167
|
-
case 3:
|
|
5168
|
-
message.registrationConnection = 3;
|
|
5169
|
-
break;
|
|
5170
|
-
}
|
|
5180
|
+
if (object.facebookId != null)
|
|
5181
|
+
message.facebookId = String(object.facebookId);
|
|
5182
|
+
if (object.appleId != null)
|
|
5183
|
+
message.appleId = String(object.appleId);
|
|
5184
|
+
if (object.spotifyId != null)
|
|
5185
|
+
message.spotifyId = String(object.spotifyId);
|
|
5171
5186
|
return message;
|
|
5172
5187
|
};
|
|
5173
5188
|
|
|
@@ -5193,7 +5208,9 @@ $root.userdomain = (function() {
|
|
|
5193
5208
|
object.countryCode = "";
|
|
5194
5209
|
object.stateCode = "";
|
|
5195
5210
|
object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
5196
|
-
object.
|
|
5211
|
+
object.facebookId = "";
|
|
5212
|
+
object.appleId = "";
|
|
5213
|
+
object.spotifyId = "";
|
|
5197
5214
|
}
|
|
5198
5215
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5199
5216
|
object.hsId = message.hsId;
|
|
@@ -5211,8 +5228,12 @@ $root.userdomain = (function() {
|
|
|
5211
5228
|
object.stateCode = message.stateCode;
|
|
5212
5229
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5213
5230
|
object.signupPlatform = options.enums === String ? $root.userdomain.Platform[message.signupPlatform] : message.signupPlatform;
|
|
5214
|
-
if (message.
|
|
5215
|
-
object.
|
|
5231
|
+
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5232
|
+
object.facebookId = message.facebookId;
|
|
5233
|
+
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5234
|
+
object.appleId = message.appleId;
|
|
5235
|
+
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5236
|
+
object.spotifyId = message.spotifyId;
|
|
5216
5237
|
return object;
|
|
5217
5238
|
};
|
|
5218
5239
|
|
|
@@ -5252,24 +5273,6 @@ $root.userdomain = (function() {
|
|
|
5252
5273
|
return values;
|
|
5253
5274
|
})();
|
|
5254
5275
|
|
|
5255
|
-
/**
|
|
5256
|
-
* Connection enum.
|
|
5257
|
-
* @name userdomain.Connection
|
|
5258
|
-
* @enum {string}
|
|
5259
|
-
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
5260
|
-
* @property {number} EMAIL=1 EMAIL value
|
|
5261
|
-
* @property {number} FACEBOOK=2 FACEBOOK value
|
|
5262
|
-
* @property {number} SPOTIFY=3 SPOTIFY value
|
|
5263
|
-
*/
|
|
5264
|
-
userdomain.Connection = (function() {
|
|
5265
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
5266
|
-
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
5267
|
-
values[valuesById[1] = "EMAIL"] = 1;
|
|
5268
|
-
values[valuesById[2] = "FACEBOOK"] = 2;
|
|
5269
|
-
values[valuesById[3] = "SPOTIFY"] = 3;
|
|
5270
|
-
return values;
|
|
5271
|
-
})();
|
|
5272
|
-
|
|
5273
5276
|
return userdomain;
|
|
5274
5277
|
})();
|
|
5275
5278
|
|
|
@@ -8033,6 +8036,216 @@ $root.BuddyAccepted = (function() {
|
|
|
8033
8036
|
return BuddyAccepted;
|
|
8034
8037
|
})();
|
|
8035
8038
|
|
|
8039
|
+
$root.BuddyDeleted = (function() {
|
|
8040
|
+
|
|
8041
|
+
/**
|
|
8042
|
+
* Properties of a BuddyDeleted.
|
|
8043
|
+
* @exports IBuddyDeleted
|
|
8044
|
+
* @interface IBuddyDeleted
|
|
8045
|
+
* @property {string|null} [userId] BuddyDeleted userId
|
|
8046
|
+
* @property {string|null} [buddyUserId] BuddyDeleted buddyUserId
|
|
8047
|
+
*/
|
|
8048
|
+
|
|
8049
|
+
/**
|
|
8050
|
+
* Constructs a new BuddyDeleted.
|
|
8051
|
+
* @exports BuddyDeleted
|
|
8052
|
+
* @classdesc Represents a BuddyDeleted.
|
|
8053
|
+
* @implements IBuddyDeleted
|
|
8054
|
+
* @constructor
|
|
8055
|
+
* @param {IBuddyDeleted=} [properties] Properties to set
|
|
8056
|
+
*/
|
|
8057
|
+
function BuddyDeleted(properties) {
|
|
8058
|
+
if (properties)
|
|
8059
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8060
|
+
if (properties[keys[i]] != null)
|
|
8061
|
+
this[keys[i]] = properties[keys[i]];
|
|
8062
|
+
}
|
|
8063
|
+
|
|
8064
|
+
/**
|
|
8065
|
+
* BuddyDeleted userId.
|
|
8066
|
+
* @member {string} userId
|
|
8067
|
+
* @memberof BuddyDeleted
|
|
8068
|
+
* @instance
|
|
8069
|
+
*/
|
|
8070
|
+
BuddyDeleted.prototype.userId = "";
|
|
8071
|
+
|
|
8072
|
+
/**
|
|
8073
|
+
* BuddyDeleted buddyUserId.
|
|
8074
|
+
* @member {string} buddyUserId
|
|
8075
|
+
* @memberof BuddyDeleted
|
|
8076
|
+
* @instance
|
|
8077
|
+
*/
|
|
8078
|
+
BuddyDeleted.prototype.buddyUserId = "";
|
|
8079
|
+
|
|
8080
|
+
/**
|
|
8081
|
+
* Creates a new BuddyDeleted instance using the specified properties.
|
|
8082
|
+
* @function create
|
|
8083
|
+
* @memberof BuddyDeleted
|
|
8084
|
+
* @static
|
|
8085
|
+
* @param {IBuddyDeleted=} [properties] Properties to set
|
|
8086
|
+
* @returns {BuddyDeleted} BuddyDeleted instance
|
|
8087
|
+
*/
|
|
8088
|
+
BuddyDeleted.create = function create(properties) {
|
|
8089
|
+
return new BuddyDeleted(properties);
|
|
8090
|
+
};
|
|
8091
|
+
|
|
8092
|
+
/**
|
|
8093
|
+
* Encodes the specified BuddyDeleted message. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
|
|
8094
|
+
* @function encode
|
|
8095
|
+
* @memberof BuddyDeleted
|
|
8096
|
+
* @static
|
|
8097
|
+
* @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
|
|
8098
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8099
|
+
* @returns {$protobuf.Writer} Writer
|
|
8100
|
+
*/
|
|
8101
|
+
BuddyDeleted.encode = function encode(message, writer) {
|
|
8102
|
+
if (!writer)
|
|
8103
|
+
writer = $Writer.create();
|
|
8104
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8105
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
8106
|
+
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8107
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.buddyUserId);
|
|
8108
|
+
return writer;
|
|
8109
|
+
};
|
|
8110
|
+
|
|
8111
|
+
/**
|
|
8112
|
+
* Encodes the specified BuddyDeleted message, length delimited. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
|
|
8113
|
+
* @function encodeDelimited
|
|
8114
|
+
* @memberof BuddyDeleted
|
|
8115
|
+
* @static
|
|
8116
|
+
* @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
|
|
8117
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8118
|
+
* @returns {$protobuf.Writer} Writer
|
|
8119
|
+
*/
|
|
8120
|
+
BuddyDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8121
|
+
return this.encode(message, writer).ldelim();
|
|
8122
|
+
};
|
|
8123
|
+
|
|
8124
|
+
/**
|
|
8125
|
+
* Decodes a BuddyDeleted message from the specified reader or buffer.
|
|
8126
|
+
* @function decode
|
|
8127
|
+
* @memberof BuddyDeleted
|
|
8128
|
+
* @static
|
|
8129
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8130
|
+
* @param {number} [length] Message length if known beforehand
|
|
8131
|
+
* @returns {BuddyDeleted} BuddyDeleted
|
|
8132
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8133
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8134
|
+
*/
|
|
8135
|
+
BuddyDeleted.decode = function decode(reader, length) {
|
|
8136
|
+
if (!(reader instanceof $Reader))
|
|
8137
|
+
reader = $Reader.create(reader);
|
|
8138
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BuddyDeleted();
|
|
8139
|
+
while (reader.pos < end) {
|
|
8140
|
+
var tag = reader.uint32();
|
|
8141
|
+
switch (tag >>> 3) {
|
|
8142
|
+
case 1:
|
|
8143
|
+
message.userId = reader.string();
|
|
8144
|
+
break;
|
|
8145
|
+
case 2:
|
|
8146
|
+
message.buddyUserId = reader.string();
|
|
8147
|
+
break;
|
|
8148
|
+
default:
|
|
8149
|
+
reader.skipType(tag & 7);
|
|
8150
|
+
break;
|
|
8151
|
+
}
|
|
8152
|
+
}
|
|
8153
|
+
return message;
|
|
8154
|
+
};
|
|
8155
|
+
|
|
8156
|
+
/**
|
|
8157
|
+
* Decodes a BuddyDeleted message from the specified reader or buffer, length delimited.
|
|
8158
|
+
* @function decodeDelimited
|
|
8159
|
+
* @memberof BuddyDeleted
|
|
8160
|
+
* @static
|
|
8161
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8162
|
+
* @returns {BuddyDeleted} BuddyDeleted
|
|
8163
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8164
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8165
|
+
*/
|
|
8166
|
+
BuddyDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
8167
|
+
if (!(reader instanceof $Reader))
|
|
8168
|
+
reader = new $Reader(reader);
|
|
8169
|
+
return this.decode(reader, reader.uint32());
|
|
8170
|
+
};
|
|
8171
|
+
|
|
8172
|
+
/**
|
|
8173
|
+
* Verifies a BuddyDeleted message.
|
|
8174
|
+
* @function verify
|
|
8175
|
+
* @memberof BuddyDeleted
|
|
8176
|
+
* @static
|
|
8177
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8178
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8179
|
+
*/
|
|
8180
|
+
BuddyDeleted.verify = function verify(message) {
|
|
8181
|
+
if (typeof message !== "object" || message === null)
|
|
8182
|
+
return "object expected";
|
|
8183
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8184
|
+
if (!$util.isString(message.userId))
|
|
8185
|
+
return "userId: string expected";
|
|
8186
|
+
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8187
|
+
if (!$util.isString(message.buddyUserId))
|
|
8188
|
+
return "buddyUserId: string expected";
|
|
8189
|
+
return null;
|
|
8190
|
+
};
|
|
8191
|
+
|
|
8192
|
+
/**
|
|
8193
|
+
* Creates a BuddyDeleted message from a plain object. Also converts values to their respective internal types.
|
|
8194
|
+
* @function fromObject
|
|
8195
|
+
* @memberof BuddyDeleted
|
|
8196
|
+
* @static
|
|
8197
|
+
* @param {Object.<string,*>} object Plain object
|
|
8198
|
+
* @returns {BuddyDeleted} BuddyDeleted
|
|
8199
|
+
*/
|
|
8200
|
+
BuddyDeleted.fromObject = function fromObject(object) {
|
|
8201
|
+
if (object instanceof $root.BuddyDeleted)
|
|
8202
|
+
return object;
|
|
8203
|
+
var message = new $root.BuddyDeleted();
|
|
8204
|
+
if (object.userId != null)
|
|
8205
|
+
message.userId = String(object.userId);
|
|
8206
|
+
if (object.buddyUserId != null)
|
|
8207
|
+
message.buddyUserId = String(object.buddyUserId);
|
|
8208
|
+
return message;
|
|
8209
|
+
};
|
|
8210
|
+
|
|
8211
|
+
/**
|
|
8212
|
+
* Creates a plain object from a BuddyDeleted message. Also converts values to other types if specified.
|
|
8213
|
+
* @function toObject
|
|
8214
|
+
* @memberof BuddyDeleted
|
|
8215
|
+
* @static
|
|
8216
|
+
* @param {BuddyDeleted} message BuddyDeleted
|
|
8217
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8218
|
+
* @returns {Object.<string,*>} Plain object
|
|
8219
|
+
*/
|
|
8220
|
+
BuddyDeleted.toObject = function toObject(message, options) {
|
|
8221
|
+
if (!options)
|
|
8222
|
+
options = {};
|
|
8223
|
+
var object = {};
|
|
8224
|
+
if (options.defaults) {
|
|
8225
|
+
object.userId = "";
|
|
8226
|
+
object.buddyUserId = "";
|
|
8227
|
+
}
|
|
8228
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8229
|
+
object.userId = message.userId;
|
|
8230
|
+
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8231
|
+
object.buddyUserId = message.buddyUserId;
|
|
8232
|
+
return object;
|
|
8233
|
+
};
|
|
8234
|
+
|
|
8235
|
+
/**
|
|
8236
|
+
* Converts this BuddyDeleted to JSON.
|
|
8237
|
+
* @function toJSON
|
|
8238
|
+
* @memberof BuddyDeleted
|
|
8239
|
+
* @instance
|
|
8240
|
+
* @returns {Object.<string,*>} JSON object
|
|
8241
|
+
*/
|
|
8242
|
+
BuddyDeleted.prototype.toJSON = function toJSON() {
|
|
8243
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8244
|
+
};
|
|
8245
|
+
|
|
8246
|
+
return BuddyDeleted;
|
|
8247
|
+
})();
|
|
8248
|
+
|
|
8036
8249
|
$root.MessageSent = (function() {
|
|
8037
8250
|
|
|
8038
8251
|
/**
|
package/package.json
CHANGED