def by_chat_message_id(self,chat_message_id: str) -> ChatMessageItemRequestBuilder:
        """
        Provides operations to manage the messages property of the microsoft.graph.chat entity.
        param chat_message_id: The unique identifier of chatMessage
        Returns: ChatMessageItemRequestBuilder
        """
        if chat_message_id is None:
            raise TypeError("chat_message_id cannot be null.")
        from .item.chat_message_item_request_builder import ChatMessageItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["chatMessage%2Did"] = chat_message_id
        return ChatMessageItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the messages property of the microsoft.graph.chat entity.
        param chat_message_id: The unique identifier of chatMessage
        Returns: ChatMessageItemRequestBuilder
        
msgraph/generated/chats/item/messages/messages_request_builder.py