@xmtp/proto
Advanced tools
Comparing version 3.14.0 to 3.15.0
{ | ||
"name": "@xmtp/proto", | ||
"version": "3.14.0", | ||
"version": "3.15.0", | ||
"description": "Protobuf client and generated classes for GRPC API", | ||
@@ -5,0 +5,0 @@ "main": "./ts/dist/cjs/node.js", |
@@ -1549,3 +1549,3 @@ /* eslint-disable */ | ||
? Object.entries(object.topics).reduce((acc, [key, value]) => { | ||
acc[key] = InvitationV1.fromJSON(value); | ||
acc[key] = TopicMap_TopicData.fromJSON(value); | ||
return acc; | ||
@@ -1561,3 +1561,3 @@ }, {}) | ||
Object.entries(message.topics).forEach(([k, v]) => { | ||
obj.topics[k] = InvitationV1.toJSON(v); | ||
obj.topics[k] = TopicMap_TopicData.toJSON(v); | ||
}); | ||
@@ -1572,3 +1572,3 @@ } | ||
if (value !== undefined) { | ||
acc[key] = InvitationV1.fromPartial(value); | ||
acc[key] = TopicMap_TopicData.fromPartial(value); | ||
} | ||
@@ -1580,2 +1580,68 @@ return acc; | ||
}; | ||
function createBaseTopicMap_TopicData() { | ||
return { createdNs: Long.UZERO, invitation: undefined }; | ||
} | ||
export const TopicMap_TopicData = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.createdNs.isZero()) { | ||
writer.uint32(8).uint64(message.createdNs); | ||
} | ||
if (message.invitation !== undefined) { | ||
InvitationV1.encode(message.invitation, writer.uint32(18).fork()).ldelim(); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseTopicMap_TopicData(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.createdNs = reader.uint64(); | ||
break; | ||
case 2: | ||
message.invitation = InvitationV1.decode(reader, reader.uint32()); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
createdNs: isSet(object.createdNs) | ||
? Long.fromValue(object.createdNs) | ||
: Long.UZERO, | ||
invitation: isSet(object.invitation) | ||
? InvitationV1.fromJSON(object.invitation) | ||
: undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.createdNs !== undefined && | ||
(obj.createdNs = (message.createdNs || Long.UZERO).toString()); | ||
message.invitation !== undefined && | ||
(obj.invitation = message.invitation | ||
? InvitationV1.toJSON(message.invitation) | ||
: undefined); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseTopicMap_TopicData(); | ||
message.createdNs = | ||
object.createdNs !== undefined && object.createdNs !== null | ||
? Long.fromValue(object.createdNs) | ||
: Long.UZERO; | ||
message.invitation = | ||
object.invitation !== undefined && object.invitation !== null | ||
? InvitationV1.fromPartial(object.invitation) | ||
: undefined; | ||
return message; | ||
}, | ||
}; | ||
function createBaseTopicMap_TopicsEntry() { | ||
@@ -1590,3 +1656,3 @@ return { key: "", value: undefined }; | ||
if (message.value !== undefined) { | ||
InvitationV1.encode(message.value, writer.uint32(18).fork()).ldelim(); | ||
TopicMap_TopicData.encode(message.value, writer.uint32(18).fork()).ldelim(); | ||
} | ||
@@ -1606,3 +1672,3 @@ return writer; | ||
case 2: | ||
message.value = InvitationV1.decode(reader, reader.uint32()); | ||
message.value = TopicMap_TopicData.decode(reader, reader.uint32()); | ||
break; | ||
@@ -1620,3 +1686,3 @@ default: | ||
value: isSet(object.value) | ||
? InvitationV1.fromJSON(object.value) | ||
? TopicMap_TopicData.fromJSON(object.value) | ||
: undefined, | ||
@@ -1630,3 +1696,3 @@ }; | ||
(obj.value = message.value | ||
? InvitationV1.toJSON(message.value) | ||
? TopicMap_TopicData.toJSON(message.value) | ||
: undefined); | ||
@@ -1641,3 +1707,3 @@ return obj; | ||
object.value !== undefined && object.value !== null | ||
? InvitationV1.fromPartial(object.value) | ||
? TopicMap_TopicData.fromPartial(object.value) | ||
: undefined; | ||
@@ -1644,0 +1710,0 @@ return message; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1417605
22702