public override int GetHashCode()
    {
        int hash = 1;

        if (HasPayloadType)
        {
            hash ^= PayloadType.GetHashCode();
        }
        if (HasPayload)
        {
            hash ^= Payload.GetHashCode();
        }
        if (HasClientMsgId)
        {
            hash ^= ClientMsgId.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }