Category : protocol-buffers

I am completely new in c++/gRPC/protobuf. I am trying to build an executable on Ubuntu 20.04. I am getting a mismatch error between the protobuf compiler and libraries. The CMakefile.txt file is basically based on https://cmake.org/cmake/help/latest/module/FindProtobuf.html. I don’t understand how cmake is effectively using the version 3.14.0. I tried to follow a few fixes here ..

Read more

Is there a way to suppress emitting explicit accessors for protobuf message fields during protoc compilation? My server implementation is auto-generated from a backend component and uses the protobuf reflection mechanism instead of the explicit accessors. If I can suppress emitting those explicit accessors, that will reduce the compilation time. Source: Windows Que..

Read more

Is there a way to suppress emitting explicit getters/setters for protobuf message fields during protoc compilation? My server implementation is auto-generated from a backend component and uses the protobuf reflection mechanism instead of the explicit getters/setters. If I can suppress emitting those explicit getters/setters, that will reduce the compilation time. Source: Windows Que..

Read more

After hours of debugging, I have the following minimalist .proto file: syntax = "proto3"; message PbCaptureResult { bool checkedValid = 1; } message PbCaptureResultSequence { PbCaptureResult captureResults = 1; } It compiles and links successfully. But, if I add a "repeated" like: syntax = "proto3"; message PbCaptureResult { bool checkedValid = 1; } message PbCaptureResultSequence ..

Read more