//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
import {} from '../../../../json-safe.js';
function createBaseModule() {
    return {};
}
export const Module = {
    typeUrl: '/cosmos.genutil.module.v1.Module',
    encode(_, writer = BinaryWriter.create()) {
        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 = createBaseModule();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    },
    fromJSON(_) {
        return {};
    },
    toJSON(_) {
        const obj = {};
        return obj;
    },
    fromPartial(_) {
        const message = createBaseModule();
        return message;
    },
    fromProtoMsg(message) {
        return Module.decode(message.value);
    },
    toProto(message) {
        return Module.encode(message).finish();
    },
    toProtoMsg(message) {
        return {
            typeUrl: '/cosmos.genutil.module.v1.Module',
            value: Module.encode(message).finish(),
        };
    },
};
//# sourceMappingURL=module.js.map