UNPKG

@snap/camera-kit

Version:
45 lines 1.57 kB
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; export const protobufPackage = "com.snap.camerakit.v3.features"; function createBaseRemoteApiInfo() { return { apiSpecIds: [] }; } export const RemoteApiInfo = { encode(message, writer = new BinaryWriter()) { for (const v of message.apiSpecIds) { writer.uint32(10).string(v); } return writer; }, decode(input, length) { const reader = input instanceof BinaryReader ? input : new BinaryReader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseRemoteApiInfo(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: { if (tag !== 10) { break; } message.apiSpecIds.push(reader.string()); continue; } } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, create(base) { return RemoteApiInfo.fromPartial(base !== null && base !== void 0 ? base : {}); }, fromPartial(object) { var _a; const message = createBaseRemoteApiInfo(); message.apiSpecIds = ((_a = object.apiSpecIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || []; return message; }, }; //# sourceMappingURL=remote_api_info.js.map