Related to Google Protocol Buffers, borrows its name from the .proto file extension containing a protocol schema.
Questions tagged [proto]
564 questions
0
votes
0 answers
Protobuf (C++) throws "missing required parameter" error for optional field
I'm communicating between embedded device that uses nanopb and desktop PC that uses protobuf-c, but get an error when parsing encoded message. Embedded device sends a message, "Response" with an optional field that is of a different message type…

dimipage
- 1
- 2
0
votes
0 answers
protobuf: Difference between new Prototype() and Prototype.Clear()
for two pieces of codes
for (loop) {
ProtoType instance;
// do something with instance;
}
/* --------------- */
ProtoType instance;
for (loop) {
// do something with instance;
instance.Clear();
}
I got core dump with the latter…

artour
- 1
0
votes
2 answers
Using protoc inside CMakeLists from a non-standard directory gives "cannot open shared object file: No such file or directory" error
I have a C application using CMake to generate Makefiles on Linux. The application contains .c as well as .proto files. Now I need to genearte .pb-c.c and .pb-c.h using protoc command in the CMakeLists.txt so that when I do cmake . the cmake…

Yug Singh
- 3,112
- 5
- 27
- 52
0
votes
2 answers
Should gRPC server and client be in the same repository?
I am playing around with a gRPC server using Go,
I understand that one of the benefits of gRPC/Protobuf is that you can use it to create a client library easily by using the same messages/service API that are being used in the server code.
If I am…

TheDude
- 361
- 4
- 13
0
votes
1 answer
How to parse data from gRPC response in python?
I have a gRPC response in this format:
label {
label {
key: "blablafhidsahfoia"
}
}
label {
label {
key: "asfhdkj"
weight: 0.15829162299633026
}
label {
key: "afdfafa"
weight: 0.1708715856075287
}
label {
key:…

no746
- 408
- 6
- 23
0
votes
1 answer
Generated Protobuf objc .m file has incorrect #import
I've tried to generate objc protofiles for each subfolder from root:
protoc */*.proto --objc_out="../result" -I.
Example proto:
syntax = "proto2";
message MyProtoType {
required string myProtoName = 1;
}
And protoc successfully generates…

Andriy Savran
- 535
- 3
- 19
0
votes
1 answer
Converting base64 proto binary to human readable (json/xml) using .proto schema
I'm new to Google Protobuf. I want to solve an issue and i can't find the answer on the internet, maybe i'm asking the wrong questions..
I want to build a tool which uses a .proto schema (and the generated classes) and convert input strings from…

Walidou
- 61
- 4
0
votes
1 answer
Protocol Buffer nanopb Serializing string and decoding error utf-8 character
I am currently trying to serialize a string using nanopb and decoding the message in python/java.
The ints I have no trouble and I can serialize and deserialize. But when it comes to string, I keep getting the same error:
'utf-8' codec can't decode…

Asan
- 327
- 3
- 17
0
votes
0 answers
proto.Marshal out of memory
we use github.com/gogo/protobuf, I get service crash at proto.Marshal(), this happens almost once a day,But I did not receive a memory alarm,This looks like a memory leak,has anyone encountered this situation?
fatal error: runtime: out of…

shenyajun
- 9
- 1
0
votes
0 answers
I want to copy all ".proto" files from one directory to another directory when i perform 'Build>Clean solution']
I am working with .proto files(Proto3) and I want to copy all the .proto files from one directory(Outside project) to another directory(Inside VS project) when i perform Build>Clean solution.
Thanks in advance.
I tried to modify "Visual C# Project…

Nikhil Vernekar
- 57
- 1
- 8
0
votes
1 answer
Skipping compiling flutter_web|web/main.dart] because some of its libraries have sdk dependencies that not supported on this platform
I am working on flutter web for some application. I am using grpc for some service requests.
While running only dart client program I can fetch data. But when using with my application it shows the following error.
build_web_compilers:entrypoint on…

Yogesh
- 273
- 1
- 3
- 10
0
votes
1 answer
How to write a proto3 message which will encode a golang struct as a json array with mixed types?
We're using proto3 and trying to write a proto message to generate a golang structure which can be marshaled as a JSON output with a particular structure.
The data needs to have nested arrays of mixed types (specifically, the vCard format as…

cristbait
- 1
- 1
0
votes
0 answers
How to map List c# --> proto3
How can I map List of object from c# to message repeated from proto3 using AutoMapper?
var list = new List()
{
new Model() {Id = 1, Name =
"something"}
};
cfg.CreateMap>().ReverseMap();
Proto:
message…

Silver Origami
- 133
- 1
- 8
0
votes
1 answer
How to create a message which have generic type as field?
I am using protobuf for my project. If its possible to create a message that have something like this.
message GenericType{
T value = 1;
}

Yogesh
- 273
- 1
- 3
- 10
0
votes
1 answer
Protobuf Fields - Deprecating a parameter as google.protobuf.Any instead of reserved
Due to a circular dependency issue. We needed deprecate and reserved a parameter foo. However, we also want to continue supplanting that parameter on older versions of our App for foo.
Instead of making a reserved parameter: Is it okay to return it…

apollow
- 1,250
- 2
- 14
- 22