/* eslint-disable */
import _m0 from "protobufjs/minimal";
export const protobufPackage = "tendermint.spn.monitoringp";
function createBaseConnectionChannelID() {
    return { channelID: "" };
}
export const ConnectionChannelID = {
    encode(message, writer = _m0.Writer.create()) {
        if (message.channelID !== "") {
            writer.uint32(10).string(message.channelID);
        }
        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 = createBaseConnectionChannelID();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1:
                    message.channelID = reader.string();
                    break;
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    },
    fromJSON(object) {
        return { channelID: isSet(object.channelID) ? String(object.channelID) : "" };
    },
    toJSON(message) {
        const obj = {};
        message.channelID !== undefined && (obj.channelID = message.channelID);
        return obj;
    },
    fromPartial(object) {
        const message = createBaseConnectionChannelID();
        message.channelID = object.channelID ?? "";
        return message;
    },
};
function isSet(value) {
    return value !== null && value !== undefined;
}
//# sourceMappingURL=connection_channel_id.js.map