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