Data constitution method and device
A construction method and data technology, applied in the field of network communication, can solve the problems of high technical requirements of Protobuf users, poor data accuracy, slowness, etc., and achieve the effect of improving reusability and accuracy, reducing technical requirements, and simplifying the process.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] see figure 1 , the embodiment of the present invention provides a data construction method, the method includes:
[0062] 101. Compile the Proto file uploaded by the user to obtain the specified message structure corresponding to the specified message name preset by the user; the Proto file is a definition file of ProtoBuf data;
[0063] 102. Generate a web page corresponding to the specified message structure, and fill the data of the specified message into the web page to generate web page data;
[0064] 103. Convert Web page data into Json format data;
[0065] 104. Create a specified message object according to the data in Json format;
[0066] 105. Serialize the specified message object to obtain a ProtoBuf data file of the specified message.
[0067] Specifically, after obtaining the ProtoBuf data file of the specified message, it also includes:
[0068] Compile the Proto file to obtain the message structure of ProtoBuf data, and obtain the corresponding speci...
Embodiment 2
[0081] see figure 2 , the embodiment of the present invention provides a data construction method, the method includes:
[0082] 201. Obtain the Proto file uploaded by the user and the specified message name and data of the specified message preset by the user;
[0083] Specifically, the Proto file is the definition file of ProtoBuf data; the user also needs to reserve the specified message name and the data of the specified message for subsequent use.
[0084] 202. Compile the Proto file uploaded by the user to obtain the specified message structure corresponding to the specified message name preset by the user;
[0085] Specifically, the Proto file uploaded by the user is compiled to obtain the message structure of the ProtoBuf data; the specified message structure corresponding to the specified message name preset by the user is searched in the message structure of the ProtoBuf data.
[0086] Among them, the compilation of Proto files is realized by the Proto file compil...
Embodiment 3
[0127] see Figure 7 , an embodiment of the present invention provides a data construction device, the device includes:
[0128] The first compiling module 701 is used for compiling the Proto file uploaded by the user to obtain the specified message structure corresponding to the specified message name preset by the user; the Proto file is a definition file of ProtoBuf data;
[0129] The first Web generation module 702 is used to generate a Web page corresponding to the specified message structure, and fill the data of the specified message into the Web page to generate Web page data;
[0130] The first Json conversion module 703 is used to convert Web page data into Json format data;
[0131] The first object generation module 704 is used to create a specified message object according to the Json format data;
[0132] The ProtoBuf data generating module 705 is configured to serialize the specified message object to obtain the ProtoBuf data file of the specified message.
...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com