//@ts-nocheck
import { BinaryReader, BinaryWriter } from '../../../binary.js';
import { isSet } from '../../../helpers.js';
import {} from '../../../json-safe.js';
function createBaseSendingAndReceivingMessagesPaused() {
    return {
        paused: false,
    };
}
export const SendingAndReceivingMessagesPaused = {
    typeUrl: '/circle.cctp.v1.SendingAndReceivingMessagesPaused',
    encode(message, writer = BinaryWriter.create()) {
        if (message.paused === true) {
            writer.uint32(8).bool(message.paused);
        }
        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 = createBaseSendingAndReceivingMessagesPaused();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1:
                    message.paused = reader.bool();
                    break;
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    },
    fromJSON(object) {
        return {
            paused: isSet(object.paused) ? Boolean(object.paused) : false,
        };
    },
    toJSON(message) {
        const obj = {};
        message.paused !== undefined && (obj.paused = message.paused);
        return obj;
    },
    fromPartial(object) {
        const message = createBaseSendingAndReceivingMessagesPaused();
        message.paused = object.paused ?? false;
        return message;
    },
    fromProtoMsg(message) {
        return SendingAndReceivingMessagesPaused.decode(message.value);
    },
    toProto(message) {
        return SendingAndReceivingMessagesPaused.encode(message).finish();
    },
    toProtoMsg(message) {
        return {
            typeUrl: '/circle.cctp.v1.SendingAndReceivingMessagesPaused',
            value: SendingAndReceivingMessagesPaused.encode(message).finish(),
        };
    },
};
//# sourceMappingURL=sending_and_receiving_messages_paused.js.map