@headspace/protos-events 0.0.1-y.0 → 0.0.1-y.2
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/community.proto +13 -0
- package/lib/index.d.ts +586 -390
- package/lib/index.js +1373 -905
- package/package.json +3 -3
- package/pingpong.proto +0 -2
- package/subscription.proto +0 -2
package/lib/index.js
CHANGED
|
@@ -9,924 +9,1392 @@ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.ut
|
|
|
9
9
|
// Exported root namespace
|
|
10
10
|
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
11
11
|
|
|
12
|
-
$root.
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @exports
|
|
17
|
-
* @
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
12
|
+
$root.FamilyMemberAdded = (function() {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Properties of a FamilyMemberAdded.
|
|
16
|
+
* @exports IFamilyMemberAdded
|
|
17
|
+
* @interface IFamilyMemberAdded
|
|
18
|
+
* @property {number|Long|null} [timestamp] FamilyMemberAdded timestamp
|
|
19
|
+
* @property {number|null} [userGroupEntryId] FamilyMemberAdded userGroupEntryId
|
|
20
|
+
* @property {string|null} [userId] FamilyMemberAdded userId
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new FamilyMemberAdded.
|
|
25
|
+
* @exports FamilyMemberAdded
|
|
26
|
+
* @classdesc Represents a FamilyMemberAdded.
|
|
27
|
+
* @implements IFamilyMemberAdded
|
|
28
|
+
* @constructor
|
|
29
|
+
* @param {IFamilyMemberAdded=} [properties] Properties to set
|
|
30
|
+
*/
|
|
31
|
+
function FamilyMemberAdded(properties) {
|
|
32
|
+
if (properties)
|
|
33
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
34
|
+
if (properties[keys[i]] != null)
|
|
35
|
+
this[keys[i]] = properties[keys[i]];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* FamilyMemberAdded timestamp.
|
|
40
|
+
* @member {number|Long} timestamp
|
|
41
|
+
* @memberof FamilyMemberAdded
|
|
42
|
+
* @instance
|
|
43
|
+
*/
|
|
44
|
+
FamilyMemberAdded.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* FamilyMemberAdded userGroupEntryId.
|
|
48
|
+
* @member {number} userGroupEntryId
|
|
49
|
+
* @memberof FamilyMemberAdded
|
|
50
|
+
* @instance
|
|
51
|
+
*/
|
|
52
|
+
FamilyMemberAdded.prototype.userGroupEntryId = 0;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* FamilyMemberAdded userId.
|
|
56
|
+
* @member {string} userId
|
|
57
|
+
* @memberof FamilyMemberAdded
|
|
58
|
+
* @instance
|
|
59
|
+
*/
|
|
60
|
+
FamilyMemberAdded.prototype.userId = "";
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Creates a new FamilyMemberAdded instance using the specified properties.
|
|
64
|
+
* @function create
|
|
65
|
+
* @memberof FamilyMemberAdded
|
|
66
|
+
* @static
|
|
67
|
+
* @param {IFamilyMemberAdded=} [properties] Properties to set
|
|
68
|
+
* @returns {FamilyMemberAdded} FamilyMemberAdded instance
|
|
69
|
+
*/
|
|
70
|
+
FamilyMemberAdded.create = function create(properties) {
|
|
71
|
+
return new FamilyMemberAdded(properties);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Encodes the specified FamilyMemberAdded message. Does not implicitly {@link FamilyMemberAdded.verify|verify} messages.
|
|
76
|
+
* @function encode
|
|
77
|
+
* @memberof FamilyMemberAdded
|
|
78
|
+
* @static
|
|
79
|
+
* @param {IFamilyMemberAdded} message FamilyMemberAdded message or plain object to encode
|
|
80
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81
|
+
* @returns {$protobuf.Writer} Writer
|
|
82
|
+
*/
|
|
83
|
+
FamilyMemberAdded.encode = function encode(message, writer) {
|
|
84
|
+
if (!writer)
|
|
85
|
+
writer = $Writer.create();
|
|
86
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
87
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
88
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
89
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
|
|
90
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
91
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
92
|
+
return writer;
|
|
93
|
+
};
|
|
45
94
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
90
|
-
return writer;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Encodes the specified Ping message, length delimited. Does not implicitly {@link events.Ping.verify|verify} messages.
|
|
95
|
-
* @function encodeDelimited
|
|
96
|
-
* @memberof events.Ping
|
|
97
|
-
* @static
|
|
98
|
-
* @param {events.IPing} message Ping message or plain object to encode
|
|
99
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
100
|
-
* @returns {$protobuf.Writer} Writer
|
|
101
|
-
*/
|
|
102
|
-
Ping.encodeDelimited = function encodeDelimited(message, writer) {
|
|
103
|
-
return this.encode(message, writer).ldelim();
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Decodes a Ping message from the specified reader or buffer.
|
|
108
|
-
* @function decode
|
|
109
|
-
* @memberof events.Ping
|
|
110
|
-
* @static
|
|
111
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
112
|
-
* @param {number} [length] Message length if known beforehand
|
|
113
|
-
* @returns {events.Ping} Ping
|
|
114
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
115
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
116
|
-
*/
|
|
117
|
-
Ping.decode = function decode(reader, length) {
|
|
118
|
-
if (!(reader instanceof $Reader))
|
|
119
|
-
reader = $Reader.create(reader);
|
|
120
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.events.Ping();
|
|
121
|
-
while (reader.pos < end) {
|
|
122
|
-
var tag = reader.uint32();
|
|
123
|
-
switch (tag >>> 3) {
|
|
124
|
-
case 1:
|
|
125
|
-
message.message = reader.string();
|
|
126
|
-
break;
|
|
127
|
-
case 2:
|
|
128
|
-
message.timestamp = reader.uint64();
|
|
129
|
-
break;
|
|
130
|
-
default:
|
|
131
|
-
reader.skipType(tag & 7);
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
95
|
+
/**
|
|
96
|
+
* Encodes the specified FamilyMemberAdded message, length delimited. Does not implicitly {@link FamilyMemberAdded.verify|verify} messages.
|
|
97
|
+
* @function encodeDelimited
|
|
98
|
+
* @memberof FamilyMemberAdded
|
|
99
|
+
* @static
|
|
100
|
+
* @param {IFamilyMemberAdded} message FamilyMemberAdded message or plain object to encode
|
|
101
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
102
|
+
* @returns {$protobuf.Writer} Writer
|
|
103
|
+
*/
|
|
104
|
+
FamilyMemberAdded.encodeDelimited = function encodeDelimited(message, writer) {
|
|
105
|
+
return this.encode(message, writer).ldelim();
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Decodes a FamilyMemberAdded message from the specified reader or buffer.
|
|
110
|
+
* @function decode
|
|
111
|
+
* @memberof FamilyMemberAdded
|
|
112
|
+
* @static
|
|
113
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114
|
+
* @param {number} [length] Message length if known beforehand
|
|
115
|
+
* @returns {FamilyMemberAdded} FamilyMemberAdded
|
|
116
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
117
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118
|
+
*/
|
|
119
|
+
FamilyMemberAdded.decode = function decode(reader, length) {
|
|
120
|
+
if (!(reader instanceof $Reader))
|
|
121
|
+
reader = $Reader.create(reader);
|
|
122
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberAdded();
|
|
123
|
+
while (reader.pos < end) {
|
|
124
|
+
var tag = reader.uint32();
|
|
125
|
+
switch (tag >>> 3) {
|
|
126
|
+
case 1:
|
|
127
|
+
message.timestamp = reader.uint64();
|
|
128
|
+
break;
|
|
129
|
+
case 2:
|
|
130
|
+
message.userGroupEntryId = reader.uint32();
|
|
131
|
+
break;
|
|
132
|
+
case 3:
|
|
133
|
+
message.userId = reader.string();
|
|
134
|
+
break;
|
|
135
|
+
default:
|
|
136
|
+
reader.skipType(tag & 7);
|
|
137
|
+
break;
|
|
134
138
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
139
|
+
}
|
|
140
|
+
return message;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Decodes a FamilyMemberAdded message from the specified reader or buffer, length delimited.
|
|
145
|
+
* @function decodeDelimited
|
|
146
|
+
* @memberof FamilyMemberAdded
|
|
147
|
+
* @static
|
|
148
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149
|
+
* @returns {FamilyMemberAdded} FamilyMemberAdded
|
|
150
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
151
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
152
|
+
*/
|
|
153
|
+
FamilyMemberAdded.decodeDelimited = function decodeDelimited(reader) {
|
|
154
|
+
if (!(reader instanceof $Reader))
|
|
155
|
+
reader = new $Reader(reader);
|
|
156
|
+
return this.decode(reader, reader.uint32());
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Verifies a FamilyMemberAdded message.
|
|
161
|
+
* @function verify
|
|
162
|
+
* @memberof FamilyMemberAdded
|
|
163
|
+
* @static
|
|
164
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
165
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
166
|
+
*/
|
|
167
|
+
FamilyMemberAdded.verify = function verify(message) {
|
|
168
|
+
if (typeof message !== "object" || message === null)
|
|
169
|
+
return "object expected";
|
|
170
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
171
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
172
|
+
return "timestamp: integer|Long expected";
|
|
173
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
174
|
+
if (!$util.isInteger(message.userGroupEntryId))
|
|
175
|
+
return "userGroupEntryId: integer expected";
|
|
176
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
177
|
+
if (!$util.isString(message.userId))
|
|
178
|
+
return "userId: string expected";
|
|
179
|
+
return null;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Creates a FamilyMemberAdded message from a plain object. Also converts values to their respective internal types.
|
|
184
|
+
* @function fromObject
|
|
185
|
+
* @memberof FamilyMemberAdded
|
|
186
|
+
* @static
|
|
187
|
+
* @param {Object.<string,*>} object Plain object
|
|
188
|
+
* @returns {FamilyMemberAdded} FamilyMemberAdded
|
|
189
|
+
*/
|
|
190
|
+
FamilyMemberAdded.fromObject = function fromObject(object) {
|
|
191
|
+
if (object instanceof $root.FamilyMemberAdded)
|
|
192
|
+
return object;
|
|
193
|
+
var message = new $root.FamilyMemberAdded();
|
|
194
|
+
if (object.timestamp != null)
|
|
195
|
+
if ($util.Long)
|
|
196
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
197
|
+
else if (typeof object.timestamp === "string")
|
|
198
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
199
|
+
else if (typeof object.timestamp === "number")
|
|
200
|
+
message.timestamp = object.timestamp;
|
|
201
|
+
else if (typeof object.timestamp === "object")
|
|
202
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
203
|
+
if (object.userGroupEntryId != null)
|
|
204
|
+
message.userGroupEntryId = object.userGroupEntryId >>> 0;
|
|
205
|
+
if (object.userId != null)
|
|
206
|
+
message.userId = String(object.userId);
|
|
207
|
+
return message;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Creates a plain object from a FamilyMemberAdded message. Also converts values to other types if specified.
|
|
212
|
+
* @function toObject
|
|
213
|
+
* @memberof FamilyMemberAdded
|
|
214
|
+
* @static
|
|
215
|
+
* @param {FamilyMemberAdded} message FamilyMemberAdded
|
|
216
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
217
|
+
* @returns {Object.<string,*>} Plain object
|
|
218
|
+
*/
|
|
219
|
+
FamilyMemberAdded.toObject = function toObject(message, options) {
|
|
220
|
+
if (!options)
|
|
221
|
+
options = {};
|
|
222
|
+
var object = {};
|
|
223
|
+
if (options.defaults) {
|
|
224
|
+
if ($util.Long) {
|
|
225
|
+
var long = new $util.Long(0, 0, true);
|
|
226
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
227
|
+
} else
|
|
228
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
229
|
+
object.userGroupEntryId = 0;
|
|
230
|
+
object.userId = "";
|
|
231
|
+
}
|
|
232
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
233
|
+
if (typeof message.timestamp === "number")
|
|
234
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
235
|
+
else
|
|
236
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
237
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
238
|
+
object.userGroupEntryId = message.userGroupEntryId;
|
|
239
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
240
|
+
object.userId = message.userId;
|
|
241
|
+
return object;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Converts this FamilyMemberAdded to JSON.
|
|
246
|
+
* @function toJSON
|
|
247
|
+
* @memberof FamilyMemberAdded
|
|
248
|
+
* @instance
|
|
249
|
+
* @returns {Object.<string,*>} JSON object
|
|
250
|
+
*/
|
|
251
|
+
FamilyMemberAdded.prototype.toJSON = function toJSON() {
|
|
252
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
return FamilyMemberAdded;
|
|
256
|
+
})();
|
|
257
|
+
|
|
258
|
+
$root.FamilyMemberRemoved = (function() {
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Properties of a FamilyMemberRemoved.
|
|
262
|
+
* @exports IFamilyMemberRemoved
|
|
263
|
+
* @interface IFamilyMemberRemoved
|
|
264
|
+
* @property {number|Long|null} [timestamp] FamilyMemberRemoved timestamp
|
|
265
|
+
* @property {number|null} [userGroupEntryId] FamilyMemberRemoved userGroupEntryId
|
|
266
|
+
* @property {string|null} [userId] FamilyMemberRemoved userId
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Constructs a new FamilyMemberRemoved.
|
|
271
|
+
* @exports FamilyMemberRemoved
|
|
272
|
+
* @classdesc Represents a FamilyMemberRemoved.
|
|
273
|
+
* @implements IFamilyMemberRemoved
|
|
274
|
+
* @constructor
|
|
275
|
+
* @param {IFamilyMemberRemoved=} [properties] Properties to set
|
|
276
|
+
*/
|
|
277
|
+
function FamilyMemberRemoved(properties) {
|
|
278
|
+
if (properties)
|
|
279
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
280
|
+
if (properties[keys[i]] != null)
|
|
281
|
+
this[keys[i]] = properties[keys[i]];
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* FamilyMemberRemoved timestamp.
|
|
286
|
+
* @member {number|Long} timestamp
|
|
287
|
+
* @memberof FamilyMemberRemoved
|
|
288
|
+
* @instance
|
|
289
|
+
*/
|
|
290
|
+
FamilyMemberRemoved.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* FamilyMemberRemoved userGroupEntryId.
|
|
294
|
+
* @member {number} userGroupEntryId
|
|
295
|
+
* @memberof FamilyMemberRemoved
|
|
296
|
+
* @instance
|
|
297
|
+
*/
|
|
298
|
+
FamilyMemberRemoved.prototype.userGroupEntryId = 0;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* FamilyMemberRemoved userId.
|
|
302
|
+
* @member {string} userId
|
|
303
|
+
* @memberof FamilyMemberRemoved
|
|
304
|
+
* @instance
|
|
305
|
+
*/
|
|
306
|
+
FamilyMemberRemoved.prototype.userId = "";
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Creates a new FamilyMemberRemoved instance using the specified properties.
|
|
310
|
+
* @function create
|
|
311
|
+
* @memberof FamilyMemberRemoved
|
|
312
|
+
* @static
|
|
313
|
+
* @param {IFamilyMemberRemoved=} [properties] Properties to set
|
|
314
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved instance
|
|
315
|
+
*/
|
|
316
|
+
FamilyMemberRemoved.create = function create(properties) {
|
|
317
|
+
return new FamilyMemberRemoved(properties);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Encodes the specified FamilyMemberRemoved message. Does not implicitly {@link FamilyMemberRemoved.verify|verify} messages.
|
|
322
|
+
* @function encode
|
|
323
|
+
* @memberof FamilyMemberRemoved
|
|
324
|
+
* @static
|
|
325
|
+
* @param {IFamilyMemberRemoved} message FamilyMemberRemoved message or plain object to encode
|
|
326
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
327
|
+
* @returns {$protobuf.Writer} Writer
|
|
328
|
+
*/
|
|
329
|
+
FamilyMemberRemoved.encode = function encode(message, writer) {
|
|
330
|
+
if (!writer)
|
|
331
|
+
writer = $Writer.create();
|
|
332
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
333
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
334
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
335
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
|
|
336
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
337
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
338
|
+
return writer;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Encodes the specified FamilyMemberRemoved message, length delimited. Does not implicitly {@link FamilyMemberRemoved.verify|verify} messages.
|
|
343
|
+
* @function encodeDelimited
|
|
344
|
+
* @memberof FamilyMemberRemoved
|
|
345
|
+
* @static
|
|
346
|
+
* @param {IFamilyMemberRemoved} message FamilyMemberRemoved message or plain object to encode
|
|
347
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
348
|
+
* @returns {$protobuf.Writer} Writer
|
|
349
|
+
*/
|
|
350
|
+
FamilyMemberRemoved.encodeDelimited = function encodeDelimited(message, writer) {
|
|
351
|
+
return this.encode(message, writer).ldelim();
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Decodes a FamilyMemberRemoved message from the specified reader or buffer.
|
|
356
|
+
* @function decode
|
|
357
|
+
* @memberof FamilyMemberRemoved
|
|
358
|
+
* @static
|
|
359
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
360
|
+
* @param {number} [length] Message length if known beforehand
|
|
361
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved
|
|
362
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
363
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
364
|
+
*/
|
|
365
|
+
FamilyMemberRemoved.decode = function decode(reader, length) {
|
|
366
|
+
if (!(reader instanceof $Reader))
|
|
367
|
+
reader = $Reader.create(reader);
|
|
368
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberRemoved();
|
|
369
|
+
while (reader.pos < end) {
|
|
370
|
+
var tag = reader.uint32();
|
|
371
|
+
switch (tag >>> 3) {
|
|
372
|
+
case 1:
|
|
373
|
+
message.timestamp = reader.uint64();
|
|
374
|
+
break;
|
|
375
|
+
case 2:
|
|
376
|
+
message.userGroupEntryId = reader.uint32();
|
|
377
|
+
break;
|
|
378
|
+
case 3:
|
|
379
|
+
message.userId = reader.string();
|
|
380
|
+
break;
|
|
381
|
+
default:
|
|
382
|
+
reader.skipType(tag & 7);
|
|
383
|
+
break;
|
|
220
384
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
385
|
+
}
|
|
386
|
+
return message;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Decodes a FamilyMemberRemoved message from the specified reader or buffer, length delimited.
|
|
391
|
+
* @function decodeDelimited
|
|
392
|
+
* @memberof FamilyMemberRemoved
|
|
393
|
+
* @static
|
|
394
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
395
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved
|
|
396
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
397
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
398
|
+
*/
|
|
399
|
+
FamilyMemberRemoved.decodeDelimited = function decodeDelimited(reader) {
|
|
400
|
+
if (!(reader instanceof $Reader))
|
|
401
|
+
reader = new $Reader(reader);
|
|
402
|
+
return this.decode(reader, reader.uint32());
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Verifies a FamilyMemberRemoved message.
|
|
407
|
+
* @function verify
|
|
408
|
+
* @memberof FamilyMemberRemoved
|
|
409
|
+
* @static
|
|
410
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
411
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
412
|
+
*/
|
|
413
|
+
FamilyMemberRemoved.verify = function verify(message) {
|
|
414
|
+
if (typeof message !== "object" || message === null)
|
|
415
|
+
return "object expected";
|
|
416
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
417
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
418
|
+
return "timestamp: integer|Long expected";
|
|
419
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
420
|
+
if (!$util.isInteger(message.userGroupEntryId))
|
|
421
|
+
return "userGroupEntryId: integer expected";
|
|
422
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
423
|
+
if (!$util.isString(message.userId))
|
|
424
|
+
return "userId: string expected";
|
|
425
|
+
return null;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Creates a FamilyMemberRemoved message from a plain object. Also converts values to their respective internal types.
|
|
430
|
+
* @function fromObject
|
|
431
|
+
* @memberof FamilyMemberRemoved
|
|
432
|
+
* @static
|
|
433
|
+
* @param {Object.<string,*>} object Plain object
|
|
434
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved
|
|
435
|
+
*/
|
|
436
|
+
FamilyMemberRemoved.fromObject = function fromObject(object) {
|
|
437
|
+
if (object instanceof $root.FamilyMemberRemoved)
|
|
228
438
|
return object;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
this[keys[i]] = properties[keys[i]];
|
|
439
|
+
var message = new $root.FamilyMemberRemoved();
|
|
440
|
+
if (object.timestamp != null)
|
|
441
|
+
if ($util.Long)
|
|
442
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
443
|
+
else if (typeof object.timestamp === "string")
|
|
444
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
445
|
+
else if (typeof object.timestamp === "number")
|
|
446
|
+
message.timestamp = object.timestamp;
|
|
447
|
+
else if (typeof object.timestamp === "object")
|
|
448
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
449
|
+
if (object.userGroupEntryId != null)
|
|
450
|
+
message.userGroupEntryId = object.userGroupEntryId >>> 0;
|
|
451
|
+
if (object.userId != null)
|
|
452
|
+
message.userId = String(object.userId);
|
|
453
|
+
return message;
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Creates a plain object from a FamilyMemberRemoved message. Also converts values to other types if specified.
|
|
458
|
+
* @function toObject
|
|
459
|
+
* @memberof FamilyMemberRemoved
|
|
460
|
+
* @static
|
|
461
|
+
* @param {FamilyMemberRemoved} message FamilyMemberRemoved
|
|
462
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
463
|
+
* @returns {Object.<string,*>} Plain object
|
|
464
|
+
*/
|
|
465
|
+
FamilyMemberRemoved.toObject = function toObject(message, options) {
|
|
466
|
+
if (!options)
|
|
467
|
+
options = {};
|
|
468
|
+
var object = {};
|
|
469
|
+
if (options.defaults) {
|
|
470
|
+
if ($util.Long) {
|
|
471
|
+
var long = new $util.Long(0, 0, true);
|
|
472
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
473
|
+
} else
|
|
474
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
475
|
+
object.userGroupEntryId = 0;
|
|
476
|
+
object.userId = "";
|
|
268
477
|
}
|
|
478
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
479
|
+
if (typeof message.timestamp === "number")
|
|
480
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
481
|
+
else
|
|
482
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
483
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
484
|
+
object.userGroupEntryId = message.userGroupEntryId;
|
|
485
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
486
|
+
object.userId = message.userId;
|
|
487
|
+
return object;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Converts this FamilyMemberRemoved to JSON.
|
|
492
|
+
* @function toJSON
|
|
493
|
+
* @memberof FamilyMemberRemoved
|
|
494
|
+
* @instance
|
|
495
|
+
* @returns {Object.<string,*>} JSON object
|
|
496
|
+
*/
|
|
497
|
+
FamilyMemberRemoved.prototype.toJSON = function toJSON() {
|
|
498
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
return FamilyMemberRemoved;
|
|
502
|
+
})();
|
|
269
503
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
504
|
+
$root.Ping = (function() {
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Properties of a Ping.
|
|
508
|
+
* @exports IPing
|
|
509
|
+
* @interface IPing
|
|
510
|
+
* @property {string|null} [message] Ping message
|
|
511
|
+
* @property {number|Long|null} [timestamp] Ping timestamp
|
|
512
|
+
*/
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Constructs a new Ping.
|
|
516
|
+
* @exports Ping
|
|
517
|
+
* @classdesc Represents a Ping.
|
|
518
|
+
* @implements IPing
|
|
519
|
+
* @constructor
|
|
520
|
+
* @param {IPing=} [properties] Properties to set
|
|
521
|
+
*/
|
|
522
|
+
function Ping(properties) {
|
|
523
|
+
if (properties)
|
|
524
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
525
|
+
if (properties[keys[i]] != null)
|
|
526
|
+
this[keys[i]] = properties[keys[i]];
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Ping message.
|
|
531
|
+
* @member {string} message
|
|
532
|
+
* @memberof Ping
|
|
533
|
+
* @instance
|
|
534
|
+
*/
|
|
535
|
+
Ping.prototype.message = "";
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Ping timestamp.
|
|
539
|
+
* @member {number|Long} timestamp
|
|
540
|
+
* @memberof Ping
|
|
541
|
+
* @instance
|
|
542
|
+
*/
|
|
543
|
+
Ping.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Creates a new Ping instance using the specified properties.
|
|
547
|
+
* @function create
|
|
548
|
+
* @memberof Ping
|
|
549
|
+
* @static
|
|
550
|
+
* @param {IPing=} [properties] Properties to set
|
|
551
|
+
* @returns {Ping} Ping instance
|
|
552
|
+
*/
|
|
553
|
+
Ping.create = function create(properties) {
|
|
554
|
+
return new Ping(properties);
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Encodes the specified Ping message. Does not implicitly {@link Ping.verify|verify} messages.
|
|
559
|
+
* @function encode
|
|
560
|
+
* @memberof Ping
|
|
561
|
+
* @static
|
|
562
|
+
* @param {IPing} message Ping message or plain object to encode
|
|
563
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
564
|
+
* @returns {$protobuf.Writer} Writer
|
|
565
|
+
*/
|
|
566
|
+
Ping.encode = function encode(message, writer) {
|
|
567
|
+
if (!writer)
|
|
568
|
+
writer = $Writer.create();
|
|
569
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
570
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
|
|
571
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
572
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
573
|
+
return writer;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Encodes the specified Ping message, length delimited. Does not implicitly {@link Ping.verify|verify} messages.
|
|
578
|
+
* @function encodeDelimited
|
|
579
|
+
* @memberof Ping
|
|
580
|
+
* @static
|
|
581
|
+
* @param {IPing} message Ping message or plain object to encode
|
|
582
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
583
|
+
* @returns {$protobuf.Writer} Writer
|
|
584
|
+
*/
|
|
585
|
+
Ping.encodeDelimited = function encodeDelimited(message, writer) {
|
|
586
|
+
return this.encode(message, writer).ldelim();
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Decodes a Ping message from the specified reader or buffer.
|
|
591
|
+
* @function decode
|
|
592
|
+
* @memberof Ping
|
|
593
|
+
* @static
|
|
594
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
595
|
+
* @param {number} [length] Message length if known beforehand
|
|
596
|
+
* @returns {Ping} Ping
|
|
597
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
598
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
599
|
+
*/
|
|
600
|
+
Ping.decode = function decode(reader, length) {
|
|
601
|
+
if (!(reader instanceof $Reader))
|
|
602
|
+
reader = $Reader.create(reader);
|
|
603
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Ping();
|
|
604
|
+
while (reader.pos < end) {
|
|
605
|
+
var tag = reader.uint32();
|
|
606
|
+
switch (tag >>> 3) {
|
|
607
|
+
case 1:
|
|
608
|
+
message.message = reader.string();
|
|
609
|
+
break;
|
|
610
|
+
case 2:
|
|
611
|
+
message.timestamp = reader.uint64();
|
|
612
|
+
break;
|
|
613
|
+
default:
|
|
614
|
+
reader.skipType(tag & 7);
|
|
615
|
+
break;
|
|
358
616
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
617
|
+
}
|
|
618
|
+
return message;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Decodes a Ping message from the specified reader or buffer, length delimited.
|
|
623
|
+
* @function decodeDelimited
|
|
624
|
+
* @memberof Ping
|
|
625
|
+
* @static
|
|
626
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
627
|
+
* @returns {Ping} Ping
|
|
628
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
629
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
630
|
+
*/
|
|
631
|
+
Ping.decodeDelimited = function decodeDelimited(reader) {
|
|
632
|
+
if (!(reader instanceof $Reader))
|
|
633
|
+
reader = new $Reader(reader);
|
|
634
|
+
return this.decode(reader, reader.uint32());
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Verifies a Ping message.
|
|
639
|
+
* @function verify
|
|
640
|
+
* @memberof Ping
|
|
641
|
+
* @static
|
|
642
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
643
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
644
|
+
*/
|
|
645
|
+
Ping.verify = function verify(message) {
|
|
646
|
+
if (typeof message !== "object" || message === null)
|
|
647
|
+
return "object expected";
|
|
648
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
649
|
+
if (!$util.isString(message.message))
|
|
650
|
+
return "message: string expected";
|
|
651
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
652
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
653
|
+
return "timestamp: integer|Long expected";
|
|
654
|
+
return null;
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Creates a Ping message from a plain object. Also converts values to their respective internal types.
|
|
659
|
+
* @function fromObject
|
|
660
|
+
* @memberof Ping
|
|
661
|
+
* @static
|
|
662
|
+
* @param {Object.<string,*>} object Plain object
|
|
663
|
+
* @returns {Ping} Ping
|
|
664
|
+
*/
|
|
665
|
+
Ping.fromObject = function fromObject(object) {
|
|
666
|
+
if (object instanceof $root.Ping)
|
|
667
|
+
return object;
|
|
668
|
+
var message = new $root.Ping();
|
|
669
|
+
if (object.message != null)
|
|
670
|
+
message.message = String(object.message);
|
|
671
|
+
if (object.timestamp != null)
|
|
672
|
+
if ($util.Long)
|
|
673
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
674
|
+
else if (typeof object.timestamp === "string")
|
|
675
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
676
|
+
else if (typeof object.timestamp === "number")
|
|
677
|
+
message.timestamp = object.timestamp;
|
|
678
|
+
else if (typeof object.timestamp === "object")
|
|
679
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
680
|
+
return message;
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Creates a plain object from a Ping message. Also converts values to other types if specified.
|
|
685
|
+
* @function toObject
|
|
686
|
+
* @memberof Ping
|
|
687
|
+
* @static
|
|
688
|
+
* @param {Ping} message Ping
|
|
689
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
690
|
+
* @returns {Object.<string,*>} Plain object
|
|
691
|
+
*/
|
|
692
|
+
Ping.toObject = function toObject(message, options) {
|
|
693
|
+
if (!options)
|
|
694
|
+
options = {};
|
|
695
|
+
var object = {};
|
|
696
|
+
if (options.defaults) {
|
|
697
|
+
object.message = "";
|
|
698
|
+
if ($util.Long) {
|
|
699
|
+
var long = new $util.Long(0, 0, true);
|
|
700
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
701
|
+
} else
|
|
702
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
703
|
+
}
|
|
704
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
705
|
+
object.message = message.message;
|
|
706
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
707
|
+
if (typeof message.timestamp === "number")
|
|
708
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
709
|
+
else
|
|
710
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
711
|
+
return object;
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Converts this Ping to JSON.
|
|
716
|
+
* @function toJSON
|
|
717
|
+
* @memberof Ping
|
|
718
|
+
* @instance
|
|
719
|
+
* @returns {Object.<string,*>} JSON object
|
|
720
|
+
*/
|
|
721
|
+
Ping.prototype.toJSON = function toJSON() {
|
|
722
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
return Ping;
|
|
726
|
+
})();
|
|
727
|
+
|
|
728
|
+
$root.Pong = (function() {
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Properties of a Pong.
|
|
732
|
+
* @exports IPong
|
|
733
|
+
* @interface IPong
|
|
734
|
+
* @property {string|null} [message] Pong message
|
|
735
|
+
* @property {number|Long|null} [timestamp] Pong timestamp
|
|
736
|
+
*/
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Constructs a new Pong.
|
|
740
|
+
* @exports Pong
|
|
741
|
+
* @classdesc Represents a Pong.
|
|
742
|
+
* @implements IPong
|
|
743
|
+
* @constructor
|
|
744
|
+
* @param {IPong=} [properties] Properties to set
|
|
745
|
+
*/
|
|
746
|
+
function Pong(properties) {
|
|
747
|
+
if (properties)
|
|
748
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
749
|
+
if (properties[keys[i]] != null)
|
|
750
|
+
this[keys[i]] = properties[keys[i]];
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Pong message.
|
|
755
|
+
* @member {string} message
|
|
756
|
+
* @memberof Pong
|
|
757
|
+
* @instance
|
|
758
|
+
*/
|
|
759
|
+
Pong.prototype.message = "";
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Pong timestamp.
|
|
763
|
+
* @member {number|Long} timestamp
|
|
764
|
+
* @memberof Pong
|
|
765
|
+
* @instance
|
|
766
|
+
*/
|
|
767
|
+
Pong.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Creates a new Pong instance using the specified properties.
|
|
771
|
+
* @function create
|
|
772
|
+
* @memberof Pong
|
|
773
|
+
* @static
|
|
774
|
+
* @param {IPong=} [properties] Properties to set
|
|
775
|
+
* @returns {Pong} Pong instance
|
|
776
|
+
*/
|
|
777
|
+
Pong.create = function create(properties) {
|
|
778
|
+
return new Pong(properties);
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Encodes the specified Pong message. Does not implicitly {@link Pong.verify|verify} messages.
|
|
783
|
+
* @function encode
|
|
784
|
+
* @memberof Pong
|
|
785
|
+
* @static
|
|
786
|
+
* @param {IPong} message Pong message or plain object to encode
|
|
787
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
788
|
+
* @returns {$protobuf.Writer} Writer
|
|
789
|
+
*/
|
|
790
|
+
Pong.encode = function encode(message, writer) {
|
|
791
|
+
if (!writer)
|
|
792
|
+
writer = $Writer.create();
|
|
793
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
794
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
|
|
795
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
796
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
797
|
+
return writer;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Encodes the specified Pong message, length delimited. Does not implicitly {@link Pong.verify|verify} messages.
|
|
802
|
+
* @function encodeDelimited
|
|
803
|
+
* @memberof Pong
|
|
804
|
+
* @static
|
|
805
|
+
* @param {IPong} message Pong message or plain object to encode
|
|
806
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
807
|
+
* @returns {$protobuf.Writer} Writer
|
|
808
|
+
*/
|
|
809
|
+
Pong.encodeDelimited = function encodeDelimited(message, writer) {
|
|
810
|
+
return this.encode(message, writer).ldelim();
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Decodes a Pong message from the specified reader or buffer.
|
|
815
|
+
* @function decode
|
|
816
|
+
* @memberof Pong
|
|
817
|
+
* @static
|
|
818
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
819
|
+
* @param {number} [length] Message length if known beforehand
|
|
820
|
+
* @returns {Pong} Pong
|
|
821
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
822
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
823
|
+
*/
|
|
824
|
+
Pong.decode = function decode(reader, length) {
|
|
825
|
+
if (!(reader instanceof $Reader))
|
|
826
|
+
reader = $Reader.create(reader);
|
|
827
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Pong();
|
|
828
|
+
while (reader.pos < end) {
|
|
829
|
+
var tag = reader.uint32();
|
|
830
|
+
switch (tag >>> 3) {
|
|
831
|
+
case 1:
|
|
832
|
+
message.message = reader.string();
|
|
833
|
+
break;
|
|
834
|
+
case 2:
|
|
835
|
+
message.timestamp = reader.uint64();
|
|
836
|
+
break;
|
|
837
|
+
default:
|
|
838
|
+
reader.skipType(tag & 7);
|
|
839
|
+
break;
|
|
444
840
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
841
|
+
}
|
|
842
|
+
return message;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Decodes a Pong message from the specified reader or buffer, length delimited.
|
|
847
|
+
* @function decodeDelimited
|
|
848
|
+
* @memberof Pong
|
|
849
|
+
* @static
|
|
850
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
851
|
+
* @returns {Pong} Pong
|
|
852
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
853
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
854
|
+
*/
|
|
855
|
+
Pong.decodeDelimited = function decodeDelimited(reader) {
|
|
856
|
+
if (!(reader instanceof $Reader))
|
|
857
|
+
reader = new $Reader(reader);
|
|
858
|
+
return this.decode(reader, reader.uint32());
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Verifies a Pong message.
|
|
863
|
+
* @function verify
|
|
864
|
+
* @memberof Pong
|
|
865
|
+
* @static
|
|
866
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
867
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
868
|
+
*/
|
|
869
|
+
Pong.verify = function verify(message) {
|
|
870
|
+
if (typeof message !== "object" || message === null)
|
|
871
|
+
return "object expected";
|
|
872
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
873
|
+
if (!$util.isString(message.message))
|
|
874
|
+
return "message: string expected";
|
|
875
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
876
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
877
|
+
return "timestamp: integer|Long expected";
|
|
878
|
+
return null;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Creates a Pong message from a plain object. Also converts values to their respective internal types.
|
|
883
|
+
* @function fromObject
|
|
884
|
+
* @memberof Pong
|
|
885
|
+
* @static
|
|
886
|
+
* @param {Object.<string,*>} object Plain object
|
|
887
|
+
* @returns {Pong} Pong
|
|
888
|
+
*/
|
|
889
|
+
Pong.fromObject = function fromObject(object) {
|
|
890
|
+
if (object instanceof $root.Pong)
|
|
452
891
|
return object;
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
892
|
+
var message = new $root.Pong();
|
|
893
|
+
if (object.message != null)
|
|
894
|
+
message.message = String(object.message);
|
|
895
|
+
if (object.timestamp != null)
|
|
896
|
+
if ($util.Long)
|
|
897
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
898
|
+
else if (typeof object.timestamp === "string")
|
|
899
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
900
|
+
else if (typeof object.timestamp === "number")
|
|
901
|
+
message.timestamp = object.timestamp;
|
|
902
|
+
else if (typeof object.timestamp === "object")
|
|
903
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
904
|
+
return message;
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Creates a plain object from a Pong message. Also converts values to other types if specified.
|
|
909
|
+
* @function toObject
|
|
910
|
+
* @memberof Pong
|
|
911
|
+
* @static
|
|
912
|
+
* @param {Pong} message Pong
|
|
913
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
914
|
+
* @returns {Object.<string,*>} Plain object
|
|
915
|
+
*/
|
|
916
|
+
Pong.toObject = function toObject(message, options) {
|
|
917
|
+
if (!options)
|
|
918
|
+
options = {};
|
|
919
|
+
var object = {};
|
|
920
|
+
if (options.defaults) {
|
|
921
|
+
object.message = "";
|
|
922
|
+
if ($util.Long) {
|
|
923
|
+
var long = new $util.Long(0, 0, true);
|
|
924
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
925
|
+
} else
|
|
926
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
927
|
+
}
|
|
928
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
929
|
+
object.message = message.message;
|
|
930
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
931
|
+
if (typeof message.timestamp === "number")
|
|
932
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
933
|
+
else
|
|
934
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
935
|
+
return object;
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Converts this Pong to JSON.
|
|
940
|
+
* @function toJSON
|
|
941
|
+
* @memberof Pong
|
|
942
|
+
* @instance
|
|
943
|
+
* @returns {Object.<string,*>} JSON object
|
|
944
|
+
*/
|
|
945
|
+
Pong.prototype.toJSON = function toJSON() {
|
|
946
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
return Pong;
|
|
950
|
+
})();
|
|
951
|
+
|
|
952
|
+
$root.SubscriptionCreated = (function() {
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Properties of a SubscriptionCreated.
|
|
956
|
+
* @exports ISubscriptionCreated
|
|
957
|
+
* @interface ISubscriptionCreated
|
|
958
|
+
* @property {number|null} [id] SubscriptionCreated id
|
|
959
|
+
* @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
|
|
960
|
+
*/
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Constructs a new SubscriptionCreated.
|
|
964
|
+
* @exports SubscriptionCreated
|
|
965
|
+
* @classdesc Represents a SubscriptionCreated.
|
|
966
|
+
* @implements ISubscriptionCreated
|
|
967
|
+
* @constructor
|
|
968
|
+
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
969
|
+
*/
|
|
970
|
+
function SubscriptionCreated(properties) {
|
|
971
|
+
if (properties)
|
|
972
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
973
|
+
if (properties[keys[i]] != null)
|
|
974
|
+
this[keys[i]] = properties[keys[i]];
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* SubscriptionCreated id.
|
|
979
|
+
* @member {number} id
|
|
980
|
+
* @memberof SubscriptionCreated
|
|
981
|
+
* @instance
|
|
982
|
+
*/
|
|
983
|
+
SubscriptionCreated.prototype.id = 0;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* SubscriptionCreated updatedOn.
|
|
987
|
+
* @member {number|Long} updatedOn
|
|
988
|
+
* @memberof SubscriptionCreated
|
|
989
|
+
* @instance
|
|
990
|
+
*/
|
|
991
|
+
SubscriptionCreated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
995
|
+
* @function create
|
|
996
|
+
* @memberof SubscriptionCreated
|
|
997
|
+
* @static
|
|
998
|
+
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
999
|
+
* @returns {SubscriptionCreated} SubscriptionCreated instance
|
|
1000
|
+
*/
|
|
1001
|
+
SubscriptionCreated.create = function create(properties) {
|
|
1002
|
+
return new SubscriptionCreated(properties);
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Encodes the specified SubscriptionCreated message. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
|
|
1007
|
+
* @function encode
|
|
1008
|
+
* @memberof SubscriptionCreated
|
|
1009
|
+
* @static
|
|
1010
|
+
* @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
|
|
1011
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1012
|
+
* @returns {$protobuf.Writer} Writer
|
|
1013
|
+
*/
|
|
1014
|
+
SubscriptionCreated.encode = function encode(message, writer) {
|
|
1015
|
+
if (!writer)
|
|
1016
|
+
writer = $Writer.create();
|
|
1017
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1018
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
1019
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1020
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
1021
|
+
return writer;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Encodes the specified SubscriptionCreated message, length delimited. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
|
|
1026
|
+
* @function encodeDelimited
|
|
1027
|
+
* @memberof SubscriptionCreated
|
|
1028
|
+
* @static
|
|
1029
|
+
* @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
|
|
1030
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1031
|
+
* @returns {$protobuf.Writer} Writer
|
|
1032
|
+
*/
|
|
1033
|
+
SubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1034
|
+
return this.encode(message, writer).ldelim();
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Decodes a SubscriptionCreated message from the specified reader or buffer.
|
|
1039
|
+
* @function decode
|
|
1040
|
+
* @memberof SubscriptionCreated
|
|
1041
|
+
* @static
|
|
1042
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1043
|
+
* @param {number} [length] Message length if known beforehand
|
|
1044
|
+
* @returns {SubscriptionCreated} SubscriptionCreated
|
|
1045
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1046
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1047
|
+
*/
|
|
1048
|
+
SubscriptionCreated.decode = function decode(reader, length) {
|
|
1049
|
+
if (!(reader instanceof $Reader))
|
|
1050
|
+
reader = $Reader.create(reader);
|
|
1051
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCreated();
|
|
1052
|
+
while (reader.pos < end) {
|
|
1053
|
+
var tag = reader.uint32();
|
|
1054
|
+
switch (tag >>> 3) {
|
|
1055
|
+
case 1:
|
|
1056
|
+
message.id = reader.uint32();
|
|
1057
|
+
break;
|
|
1058
|
+
case 2:
|
|
1059
|
+
message.updatedOn = reader.uint64();
|
|
1060
|
+
break;
|
|
1061
|
+
default:
|
|
1062
|
+
reader.skipType(tag & 7);
|
|
1063
|
+
break;
|
|
501
1064
|
}
|
|
1065
|
+
}
|
|
1066
|
+
return message;
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Decodes a SubscriptionCreated message from the specified reader or buffer, length delimited.
|
|
1071
|
+
* @function decodeDelimited
|
|
1072
|
+
* @memberof SubscriptionCreated
|
|
1073
|
+
* @static
|
|
1074
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1075
|
+
* @returns {SubscriptionCreated} SubscriptionCreated
|
|
1076
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1077
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1078
|
+
*/
|
|
1079
|
+
SubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
1080
|
+
if (!(reader instanceof $Reader))
|
|
1081
|
+
reader = new $Reader(reader);
|
|
1082
|
+
return this.decode(reader, reader.uint32());
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Verifies a SubscriptionCreated message.
|
|
1087
|
+
* @function verify
|
|
1088
|
+
* @memberof SubscriptionCreated
|
|
1089
|
+
* @static
|
|
1090
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1091
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1092
|
+
*/
|
|
1093
|
+
SubscriptionCreated.verify = function verify(message) {
|
|
1094
|
+
if (typeof message !== "object" || message === null)
|
|
1095
|
+
return "object expected";
|
|
1096
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1097
|
+
if (!$util.isInteger(message.id))
|
|
1098
|
+
return "id: integer expected";
|
|
1099
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1100
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1101
|
+
return "updatedOn: integer|Long expected";
|
|
1102
|
+
return null;
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Creates a SubscriptionCreated message from a plain object. Also converts values to their respective internal types.
|
|
1107
|
+
* @function fromObject
|
|
1108
|
+
* @memberof SubscriptionCreated
|
|
1109
|
+
* @static
|
|
1110
|
+
* @param {Object.<string,*>} object Plain object
|
|
1111
|
+
* @returns {SubscriptionCreated} SubscriptionCreated
|
|
1112
|
+
*/
|
|
1113
|
+
SubscriptionCreated.fromObject = function fromObject(object) {
|
|
1114
|
+
if (object instanceof $root.SubscriptionCreated)
|
|
1115
|
+
return object;
|
|
1116
|
+
var message = new $root.SubscriptionCreated();
|
|
1117
|
+
if (object.id != null)
|
|
1118
|
+
message.id = object.id >>> 0;
|
|
1119
|
+
if (object.updatedOn != null)
|
|
1120
|
+
if ($util.Long)
|
|
1121
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
1122
|
+
else if (typeof object.updatedOn === "string")
|
|
1123
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
1124
|
+
else if (typeof object.updatedOn === "number")
|
|
1125
|
+
message.updatedOn = object.updatedOn;
|
|
1126
|
+
else if (typeof object.updatedOn === "object")
|
|
1127
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
1128
|
+
return message;
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Creates a plain object from a SubscriptionCreated message. Also converts values to other types if specified.
|
|
1133
|
+
* @function toObject
|
|
1134
|
+
* @memberof SubscriptionCreated
|
|
1135
|
+
* @static
|
|
1136
|
+
* @param {SubscriptionCreated} message SubscriptionCreated
|
|
1137
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1138
|
+
* @returns {Object.<string,*>} Plain object
|
|
1139
|
+
*/
|
|
1140
|
+
SubscriptionCreated.toObject = function toObject(message, options) {
|
|
1141
|
+
if (!options)
|
|
1142
|
+
options = {};
|
|
1143
|
+
var object = {};
|
|
1144
|
+
if (options.defaults) {
|
|
1145
|
+
object.id = 0;
|
|
1146
|
+
if ($util.Long) {
|
|
1147
|
+
var long = new $util.Long(0, 0, true);
|
|
1148
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1149
|
+
} else
|
|
1150
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
1151
|
+
}
|
|
1152
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1153
|
+
object.id = message.id;
|
|
1154
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1155
|
+
if (typeof message.updatedOn === "number")
|
|
1156
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1157
|
+
else
|
|
1158
|
+
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
1159
|
+
return object;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Converts this SubscriptionCreated to JSON.
|
|
1164
|
+
* @function toJSON
|
|
1165
|
+
* @memberof SubscriptionCreated
|
|
1166
|
+
* @instance
|
|
1167
|
+
* @returns {Object.<string,*>} JSON object
|
|
1168
|
+
*/
|
|
1169
|
+
SubscriptionCreated.prototype.toJSON = function toJSON() {
|
|
1170
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
return SubscriptionCreated;
|
|
1174
|
+
})();
|
|
1175
|
+
|
|
1176
|
+
$root.SubscriptionCancelled = (function() {
|
|
502
1177
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
* @function verify
|
|
614
|
-
* @memberof events.subscription.SubscriptionCreated
|
|
615
|
-
* @static
|
|
616
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
617
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
618
|
-
*/
|
|
619
|
-
SubscriptionCreated.verify = function verify(message) {
|
|
620
|
-
if (typeof message !== "object" || message === null)
|
|
621
|
-
return "object expected";
|
|
622
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
623
|
-
if (!$util.isInteger(message.id))
|
|
624
|
-
return "id: integer expected";
|
|
625
|
-
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
626
|
-
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
627
|
-
return "updatedOn: integer|Long expected";
|
|
628
|
-
return null;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* Creates a SubscriptionCreated message from a plain object. Also converts values to their respective internal types.
|
|
633
|
-
* @function fromObject
|
|
634
|
-
* @memberof events.subscription.SubscriptionCreated
|
|
635
|
-
* @static
|
|
636
|
-
* @param {Object.<string,*>} object Plain object
|
|
637
|
-
* @returns {events.subscription.SubscriptionCreated} SubscriptionCreated
|
|
638
|
-
*/
|
|
639
|
-
SubscriptionCreated.fromObject = function fromObject(object) {
|
|
640
|
-
if (object instanceof $root.events.subscription.SubscriptionCreated)
|
|
641
|
-
return object;
|
|
642
|
-
var message = new $root.events.subscription.SubscriptionCreated();
|
|
643
|
-
if (object.id != null)
|
|
644
|
-
message.id = object.id >>> 0;
|
|
645
|
-
if (object.updatedOn != null)
|
|
646
|
-
if ($util.Long)
|
|
647
|
-
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
648
|
-
else if (typeof object.updatedOn === "string")
|
|
649
|
-
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
650
|
-
else if (typeof object.updatedOn === "number")
|
|
651
|
-
message.updatedOn = object.updatedOn;
|
|
652
|
-
else if (typeof object.updatedOn === "object")
|
|
653
|
-
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
654
|
-
return message;
|
|
655
|
-
};
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
* Creates a plain object from a SubscriptionCreated message. Also converts values to other types if specified.
|
|
659
|
-
* @function toObject
|
|
660
|
-
* @memberof events.subscription.SubscriptionCreated
|
|
661
|
-
* @static
|
|
662
|
-
* @param {events.subscription.SubscriptionCreated} message SubscriptionCreated
|
|
663
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
664
|
-
* @returns {Object.<string,*>} Plain object
|
|
665
|
-
*/
|
|
666
|
-
SubscriptionCreated.toObject = function toObject(message, options) {
|
|
667
|
-
if (!options)
|
|
668
|
-
options = {};
|
|
669
|
-
var object = {};
|
|
670
|
-
if (options.defaults) {
|
|
671
|
-
object.id = 0;
|
|
672
|
-
if ($util.Long) {
|
|
673
|
-
var long = new $util.Long(0, 0, true);
|
|
674
|
-
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
675
|
-
} else
|
|
676
|
-
object.updatedOn = options.longs === String ? "0" : 0;
|
|
677
|
-
}
|
|
678
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
679
|
-
object.id = message.id;
|
|
680
|
-
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
681
|
-
if (typeof message.updatedOn === "number")
|
|
682
|
-
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
683
|
-
else
|
|
684
|
-
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
685
|
-
return object;
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* Converts this SubscriptionCreated to JSON.
|
|
690
|
-
* @function toJSON
|
|
691
|
-
* @memberof events.subscription.SubscriptionCreated
|
|
692
|
-
* @instance
|
|
693
|
-
* @returns {Object.<string,*>} JSON object
|
|
694
|
-
*/
|
|
695
|
-
SubscriptionCreated.prototype.toJSON = function toJSON() {
|
|
696
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
697
|
-
};
|
|
698
|
-
|
|
699
|
-
return SubscriptionCreated;
|
|
700
|
-
})();
|
|
701
|
-
|
|
702
|
-
subscription.SubscriptionCancelled = (function() {
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* Properties of a SubscriptionCancelled.
|
|
706
|
-
* @memberof events.subscription
|
|
707
|
-
* @interface ISubscriptionCancelled
|
|
708
|
-
* @property {number|null} [id] SubscriptionCancelled id
|
|
709
|
-
* @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
|
|
710
|
-
*/
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* Constructs a new SubscriptionCancelled.
|
|
714
|
-
* @memberof events.subscription
|
|
715
|
-
* @classdesc Represents a SubscriptionCancelled.
|
|
716
|
-
* @implements ISubscriptionCancelled
|
|
717
|
-
* @constructor
|
|
718
|
-
* @param {events.subscription.ISubscriptionCancelled=} [properties] Properties to set
|
|
719
|
-
*/
|
|
720
|
-
function SubscriptionCancelled(properties) {
|
|
721
|
-
if (properties)
|
|
722
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
723
|
-
if (properties[keys[i]] != null)
|
|
724
|
-
this[keys[i]] = properties[keys[i]];
|
|
1178
|
+
/**
|
|
1179
|
+
* Properties of a SubscriptionCancelled.
|
|
1180
|
+
* @exports ISubscriptionCancelled
|
|
1181
|
+
* @interface ISubscriptionCancelled
|
|
1182
|
+
* @property {number|null} [id] SubscriptionCancelled id
|
|
1183
|
+
* @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
|
|
1184
|
+
*/
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Constructs a new SubscriptionCancelled.
|
|
1188
|
+
* @exports SubscriptionCancelled
|
|
1189
|
+
* @classdesc Represents a SubscriptionCancelled.
|
|
1190
|
+
* @implements ISubscriptionCancelled
|
|
1191
|
+
* @constructor
|
|
1192
|
+
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
1193
|
+
*/
|
|
1194
|
+
function SubscriptionCancelled(properties) {
|
|
1195
|
+
if (properties)
|
|
1196
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1197
|
+
if (properties[keys[i]] != null)
|
|
1198
|
+
this[keys[i]] = properties[keys[i]];
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* SubscriptionCancelled id.
|
|
1203
|
+
* @member {number} id
|
|
1204
|
+
* @memberof SubscriptionCancelled
|
|
1205
|
+
* @instance
|
|
1206
|
+
*/
|
|
1207
|
+
SubscriptionCancelled.prototype.id = 0;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* SubscriptionCancelled updatedOn.
|
|
1211
|
+
* @member {number|Long} updatedOn
|
|
1212
|
+
* @memberof SubscriptionCancelled
|
|
1213
|
+
* @instance
|
|
1214
|
+
*/
|
|
1215
|
+
SubscriptionCancelled.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
1219
|
+
* @function create
|
|
1220
|
+
* @memberof SubscriptionCancelled
|
|
1221
|
+
* @static
|
|
1222
|
+
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
1223
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled instance
|
|
1224
|
+
*/
|
|
1225
|
+
SubscriptionCancelled.create = function create(properties) {
|
|
1226
|
+
return new SubscriptionCancelled(properties);
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Encodes the specified SubscriptionCancelled message. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
|
|
1231
|
+
* @function encode
|
|
1232
|
+
* @memberof SubscriptionCancelled
|
|
1233
|
+
* @static
|
|
1234
|
+
* @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
|
|
1235
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1236
|
+
* @returns {$protobuf.Writer} Writer
|
|
1237
|
+
*/
|
|
1238
|
+
SubscriptionCancelled.encode = function encode(message, writer) {
|
|
1239
|
+
if (!writer)
|
|
1240
|
+
writer = $Writer.create();
|
|
1241
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1242
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
1243
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1244
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
1245
|
+
return writer;
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Encodes the specified SubscriptionCancelled message, length delimited. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
|
|
1250
|
+
* @function encodeDelimited
|
|
1251
|
+
* @memberof SubscriptionCancelled
|
|
1252
|
+
* @static
|
|
1253
|
+
* @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
|
|
1254
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1255
|
+
* @returns {$protobuf.Writer} Writer
|
|
1256
|
+
*/
|
|
1257
|
+
SubscriptionCancelled.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1258
|
+
return this.encode(message, writer).ldelim();
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Decodes a SubscriptionCancelled message from the specified reader or buffer.
|
|
1263
|
+
* @function decode
|
|
1264
|
+
* @memberof SubscriptionCancelled
|
|
1265
|
+
* @static
|
|
1266
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1267
|
+
* @param {number} [length] Message length if known beforehand
|
|
1268
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled
|
|
1269
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1270
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1271
|
+
*/
|
|
1272
|
+
SubscriptionCancelled.decode = function decode(reader, length) {
|
|
1273
|
+
if (!(reader instanceof $Reader))
|
|
1274
|
+
reader = $Reader.create(reader);
|
|
1275
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCancelled();
|
|
1276
|
+
while (reader.pos < end) {
|
|
1277
|
+
var tag = reader.uint32();
|
|
1278
|
+
switch (tag >>> 3) {
|
|
1279
|
+
case 1:
|
|
1280
|
+
message.id = reader.uint32();
|
|
1281
|
+
break;
|
|
1282
|
+
case 2:
|
|
1283
|
+
message.updatedOn = reader.uint64();
|
|
1284
|
+
break;
|
|
1285
|
+
default:
|
|
1286
|
+
reader.skipType(tag & 7);
|
|
1287
|
+
break;
|
|
725
1288
|
}
|
|
1289
|
+
}
|
|
1290
|
+
return message;
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* Decodes a SubscriptionCancelled message from the specified reader or buffer, length delimited.
|
|
1295
|
+
* @function decodeDelimited
|
|
1296
|
+
* @memberof SubscriptionCancelled
|
|
1297
|
+
* @static
|
|
1298
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1299
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled
|
|
1300
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1301
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1302
|
+
*/
|
|
1303
|
+
SubscriptionCancelled.decodeDelimited = function decodeDelimited(reader) {
|
|
1304
|
+
if (!(reader instanceof $Reader))
|
|
1305
|
+
reader = new $Reader(reader);
|
|
1306
|
+
return this.decode(reader, reader.uint32());
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* Verifies a SubscriptionCancelled message.
|
|
1311
|
+
* @function verify
|
|
1312
|
+
* @memberof SubscriptionCancelled
|
|
1313
|
+
* @static
|
|
1314
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1315
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1316
|
+
*/
|
|
1317
|
+
SubscriptionCancelled.verify = function verify(message) {
|
|
1318
|
+
if (typeof message !== "object" || message === null)
|
|
1319
|
+
return "object expected";
|
|
1320
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1321
|
+
if (!$util.isInteger(message.id))
|
|
1322
|
+
return "id: integer expected";
|
|
1323
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1324
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1325
|
+
return "updatedOn: integer|Long expected";
|
|
1326
|
+
return null;
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Creates a SubscriptionCancelled message from a plain object. Also converts values to their respective internal types.
|
|
1331
|
+
* @function fromObject
|
|
1332
|
+
* @memberof SubscriptionCancelled
|
|
1333
|
+
* @static
|
|
1334
|
+
* @param {Object.<string,*>} object Plain object
|
|
1335
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled
|
|
1336
|
+
*/
|
|
1337
|
+
SubscriptionCancelled.fromObject = function fromObject(object) {
|
|
1338
|
+
if (object instanceof $root.SubscriptionCancelled)
|
|
1339
|
+
return object;
|
|
1340
|
+
var message = new $root.SubscriptionCancelled();
|
|
1341
|
+
if (object.id != null)
|
|
1342
|
+
message.id = object.id >>> 0;
|
|
1343
|
+
if (object.updatedOn != null)
|
|
1344
|
+
if ($util.Long)
|
|
1345
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
1346
|
+
else if (typeof object.updatedOn === "string")
|
|
1347
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
1348
|
+
else if (typeof object.updatedOn === "number")
|
|
1349
|
+
message.updatedOn = object.updatedOn;
|
|
1350
|
+
else if (typeof object.updatedOn === "object")
|
|
1351
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
1352
|
+
return message;
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* Creates a plain object from a SubscriptionCancelled message. Also converts values to other types if specified.
|
|
1357
|
+
* @function toObject
|
|
1358
|
+
* @memberof SubscriptionCancelled
|
|
1359
|
+
* @static
|
|
1360
|
+
* @param {SubscriptionCancelled} message SubscriptionCancelled
|
|
1361
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1362
|
+
* @returns {Object.<string,*>} Plain object
|
|
1363
|
+
*/
|
|
1364
|
+
SubscriptionCancelled.toObject = function toObject(message, options) {
|
|
1365
|
+
if (!options)
|
|
1366
|
+
options = {};
|
|
1367
|
+
var object = {};
|
|
1368
|
+
if (options.defaults) {
|
|
1369
|
+
object.id = 0;
|
|
1370
|
+
if ($util.Long) {
|
|
1371
|
+
var long = new $util.Long(0, 0, true);
|
|
1372
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1373
|
+
} else
|
|
1374
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
1375
|
+
}
|
|
1376
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1377
|
+
object.id = message.id;
|
|
1378
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1379
|
+
if (typeof message.updatedOn === "number")
|
|
1380
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1381
|
+
else
|
|
1382
|
+
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
1383
|
+
return object;
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Converts this SubscriptionCancelled to JSON.
|
|
1388
|
+
* @function toJSON
|
|
1389
|
+
* @memberof SubscriptionCancelled
|
|
1390
|
+
* @instance
|
|
1391
|
+
* @returns {Object.<string,*>} JSON object
|
|
1392
|
+
*/
|
|
1393
|
+
SubscriptionCancelled.prototype.toJSON = function toJSON() {
|
|
1394
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1395
|
+
};
|
|
726
1396
|
|
|
727
|
-
|
|
728
|
-
* SubscriptionCancelled id.
|
|
729
|
-
* @member {number} id
|
|
730
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
731
|
-
* @instance
|
|
732
|
-
*/
|
|
733
|
-
SubscriptionCancelled.prototype.id = 0;
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* SubscriptionCancelled updatedOn.
|
|
737
|
-
* @member {number|Long} updatedOn
|
|
738
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
739
|
-
* @instance
|
|
740
|
-
*/
|
|
741
|
-
SubscriptionCancelled.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
745
|
-
* @function create
|
|
746
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
747
|
-
* @static
|
|
748
|
-
* @param {events.subscription.ISubscriptionCancelled=} [properties] Properties to set
|
|
749
|
-
* @returns {events.subscription.SubscriptionCancelled} SubscriptionCancelled instance
|
|
750
|
-
*/
|
|
751
|
-
SubscriptionCancelled.create = function create(properties) {
|
|
752
|
-
return new SubscriptionCancelled(properties);
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* Encodes the specified SubscriptionCancelled message. Does not implicitly {@link events.subscription.SubscriptionCancelled.verify|verify} messages.
|
|
757
|
-
* @function encode
|
|
758
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
759
|
-
* @static
|
|
760
|
-
* @param {events.subscription.ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
|
|
761
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
762
|
-
* @returns {$protobuf.Writer} Writer
|
|
763
|
-
*/
|
|
764
|
-
SubscriptionCancelled.encode = function encode(message, writer) {
|
|
765
|
-
if (!writer)
|
|
766
|
-
writer = $Writer.create();
|
|
767
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
768
|
-
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
769
|
-
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
770
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
771
|
-
return writer;
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Encodes the specified SubscriptionCancelled message, length delimited. Does not implicitly {@link events.subscription.SubscriptionCancelled.verify|verify} messages.
|
|
776
|
-
* @function encodeDelimited
|
|
777
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
778
|
-
* @static
|
|
779
|
-
* @param {events.subscription.ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
|
|
780
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
781
|
-
* @returns {$protobuf.Writer} Writer
|
|
782
|
-
*/
|
|
783
|
-
SubscriptionCancelled.encodeDelimited = function encodeDelimited(message, writer) {
|
|
784
|
-
return this.encode(message, writer).ldelim();
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* Decodes a SubscriptionCancelled message from the specified reader or buffer.
|
|
789
|
-
* @function decode
|
|
790
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
791
|
-
* @static
|
|
792
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
793
|
-
* @param {number} [length] Message length if known beforehand
|
|
794
|
-
* @returns {events.subscription.SubscriptionCancelled} SubscriptionCancelled
|
|
795
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
796
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
797
|
-
*/
|
|
798
|
-
SubscriptionCancelled.decode = function decode(reader, length) {
|
|
799
|
-
if (!(reader instanceof $Reader))
|
|
800
|
-
reader = $Reader.create(reader);
|
|
801
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.events.subscription.SubscriptionCancelled();
|
|
802
|
-
while (reader.pos < end) {
|
|
803
|
-
var tag = reader.uint32();
|
|
804
|
-
switch (tag >>> 3) {
|
|
805
|
-
case 1:
|
|
806
|
-
message.id = reader.uint32();
|
|
807
|
-
break;
|
|
808
|
-
case 2:
|
|
809
|
-
message.updatedOn = reader.uint64();
|
|
810
|
-
break;
|
|
811
|
-
default:
|
|
812
|
-
reader.skipType(tag & 7);
|
|
813
|
-
break;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
return message;
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* Decodes a SubscriptionCancelled message from the specified reader or buffer, length delimited.
|
|
821
|
-
* @function decodeDelimited
|
|
822
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
823
|
-
* @static
|
|
824
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
825
|
-
* @returns {events.subscription.SubscriptionCancelled} SubscriptionCancelled
|
|
826
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
827
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
828
|
-
*/
|
|
829
|
-
SubscriptionCancelled.decodeDelimited = function decodeDelimited(reader) {
|
|
830
|
-
if (!(reader instanceof $Reader))
|
|
831
|
-
reader = new $Reader(reader);
|
|
832
|
-
return this.decode(reader, reader.uint32());
|
|
833
|
-
};
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* Verifies a SubscriptionCancelled message.
|
|
837
|
-
* @function verify
|
|
838
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
839
|
-
* @static
|
|
840
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
841
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
842
|
-
*/
|
|
843
|
-
SubscriptionCancelled.verify = function verify(message) {
|
|
844
|
-
if (typeof message !== "object" || message === null)
|
|
845
|
-
return "object expected";
|
|
846
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
847
|
-
if (!$util.isInteger(message.id))
|
|
848
|
-
return "id: integer expected";
|
|
849
|
-
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
850
|
-
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
851
|
-
return "updatedOn: integer|Long expected";
|
|
852
|
-
return null;
|
|
853
|
-
};
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Creates a SubscriptionCancelled message from a plain object. Also converts values to their respective internal types.
|
|
857
|
-
* @function fromObject
|
|
858
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
859
|
-
* @static
|
|
860
|
-
* @param {Object.<string,*>} object Plain object
|
|
861
|
-
* @returns {events.subscription.SubscriptionCancelled} SubscriptionCancelled
|
|
862
|
-
*/
|
|
863
|
-
SubscriptionCancelled.fromObject = function fromObject(object) {
|
|
864
|
-
if (object instanceof $root.events.subscription.SubscriptionCancelled)
|
|
865
|
-
return object;
|
|
866
|
-
var message = new $root.events.subscription.SubscriptionCancelled();
|
|
867
|
-
if (object.id != null)
|
|
868
|
-
message.id = object.id >>> 0;
|
|
869
|
-
if (object.updatedOn != null)
|
|
870
|
-
if ($util.Long)
|
|
871
|
-
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
872
|
-
else if (typeof object.updatedOn === "string")
|
|
873
|
-
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
874
|
-
else if (typeof object.updatedOn === "number")
|
|
875
|
-
message.updatedOn = object.updatedOn;
|
|
876
|
-
else if (typeof object.updatedOn === "object")
|
|
877
|
-
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
878
|
-
return message;
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* Creates a plain object from a SubscriptionCancelled message. Also converts values to other types if specified.
|
|
883
|
-
* @function toObject
|
|
884
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
885
|
-
* @static
|
|
886
|
-
* @param {events.subscription.SubscriptionCancelled} message SubscriptionCancelled
|
|
887
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
888
|
-
* @returns {Object.<string,*>} Plain object
|
|
889
|
-
*/
|
|
890
|
-
SubscriptionCancelled.toObject = function toObject(message, options) {
|
|
891
|
-
if (!options)
|
|
892
|
-
options = {};
|
|
893
|
-
var object = {};
|
|
894
|
-
if (options.defaults) {
|
|
895
|
-
object.id = 0;
|
|
896
|
-
if ($util.Long) {
|
|
897
|
-
var long = new $util.Long(0, 0, true);
|
|
898
|
-
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
899
|
-
} else
|
|
900
|
-
object.updatedOn = options.longs === String ? "0" : 0;
|
|
901
|
-
}
|
|
902
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
903
|
-
object.id = message.id;
|
|
904
|
-
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
905
|
-
if (typeof message.updatedOn === "number")
|
|
906
|
-
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
907
|
-
else
|
|
908
|
-
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
909
|
-
return object;
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
/**
|
|
913
|
-
* Converts this SubscriptionCancelled to JSON.
|
|
914
|
-
* @function toJSON
|
|
915
|
-
* @memberof events.subscription.SubscriptionCancelled
|
|
916
|
-
* @instance
|
|
917
|
-
* @returns {Object.<string,*>} JSON object
|
|
918
|
-
*/
|
|
919
|
-
SubscriptionCancelled.prototype.toJSON = function toJSON() {
|
|
920
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
return SubscriptionCancelled;
|
|
924
|
-
})();
|
|
925
|
-
|
|
926
|
-
return subscription;
|
|
927
|
-
})();
|
|
928
|
-
|
|
929
|
-
return events;
|
|
1397
|
+
return SubscriptionCancelled;
|
|
930
1398
|
})();
|
|
931
1399
|
|
|
932
1400
|
module.exports = $root;
|