class_docstr: Provide a message factory for the Bokeh Server message protocol.
  
      
code: def __init__(self) -> None:
      self._messages = SPEC
  
imports: from __future__ import annotations
  import logging
  import json
  from typing import TYPE_CHECKING, Any, Literal, overload
  from .exceptions import ProtocolError
  from .message import Message
  from .messages.ack import ack
  from .messages.error import error
  from .messages.ok import ok
  from .messages.patch_doc import patch_doc
  from .messages.pull_doc_reply import pull_doc_reply
  from .messages.pull_doc_req import pull_doc_req
  from .messages.push_doc import push_doc
  from .messages.server_info_reply import server_info_reply
  from .messages.server_info_req import server_info_req
label_desc: Use image node_id 1 to create a new Protocol object  with example: obj = Protocol()