def get_all_retained_messages(self) -> GetAllRetainedMessagesRequestBuilder:
        """
        Provides operations to call the getAllRetainedMessages method.
        """
        from .get_all_retained_messages.get_all_retained_messages_request_builder import GetAllRetainedMessagesRequestBuilder

        return GetAllRetainedMessagesRequestBuilder(self.request_adapter, self.path_parameters)

        Provides operations to call the getAllRetainedMessages method.
        
msgraph/generated/chats/chats_request_builder.py