The proto file I defined is as follows.
```
syntax = "proto3";
package live;
message Op{
string cmd = 1;
bool rsp = 2;
map args = 3;
}
```
The above proto file was converted to javascript using PROTOC.
And the converted file contains the following functions:
```
proto.live.Op.toObject =
QtProtobuf – is opensource library distributed under MIT license. With
QtProtobuf you easily may use Google Protocol Buffers and gRPC in your Qt
project.
*Key changes:*
- Added support of nested types
- Added gRPC API for QML
- Fixed static build of well-known types
- Added
I am new to the gRPC and Protobuf. Wanted to know the significance of
encoding
number infront of field. In tutorial I saw about the usage of no between
1-15 for frequently used fields as it require 1 byte of encoding and 16 to
remaining carries 2 bytes of encoding. May I know when to to use
See
https://developers.google.com/protocol-buffers/docs/overview#assigning_field_numbers
Basically:
- positive integers
- unique within each message (can reuse between different messages)
- lower is cheaper
- avoid some reserved ranges
On Tue, 30 Jun 2020, 20:12 rohit nv, wrote:
>
> I am new