Skip to main content
Filter by
Sorted by
Tagged with
413 votes
4 answers
242k views

I noticed that required and optional have been removed in the new syntax. Why were required/optional removed in proto3? Such keywords introduce constraints which should improve robustness. proto2: ...
yjzhang's user avatar
  • 5,389
320 votes
15 answers
154k views

What are the biggest pros and cons of Apache Thrift vs Google's Protocol Buffers?
user avatar
266 votes
9 answers
373k views

I need to specify a message with an optional field in protobuf (proto3 syntax). In terms of proto 2 syntax, the message I want to express is something like: message Foo { required int32 bar = 1; ...
MaxP's user avatar
  • 3,144
246 votes
2 answers
215k views

Does the rpc syntax in proto3 allow null requests or responses? e.g. I want the equivalent of the following: rpc Logout; rpc Status returns (Status); rpc Log (LogData); Or should I just create a null ...
user avatar
245 votes
1 answer
91k views

I would like to know the merits & de-merits of Google Protocol Buffers JSON XML I want to implement one common framework for two application, one in Perl and second in Java. So, would like to ...
Manoj Kathiriya's user avatar
240 votes
9 answers
85k views

I try to understand protobuf and gRPC and how I can use both. Could you help me understand the following: Considering the OSI model what is where, for example is Protobuf at layer 4? Thinking through ...
lony's user avatar
  • 7,949
164 votes
1 answer
75k views

Both are serialization libraries and are developed by Google developers. Is there any big difference between them? Is it a lot of work to convert code using Protocol Buffers to use FlatBuffers?
mining's user avatar
  • 3,719
149 votes
3 answers
255k views

I'm considering to use Protocol Buffers for data exchange between a Linux and a Windows based system. Whats the recommended format for sending date/time (timestamp) values? The field should be small ...
asgaut's user avatar
  • 1,602
140 votes
15 answers
264k views

I would like to install the older version of Google Protocol Buffers (protobuf-2.4.1) on Mac using the command line/Terminal app. I tried with brew install protobuf, but the latest version 2.5.0 has ...
informatiker's user avatar
  • 2,909
140 votes
4 answers
169k views

I am using protocol buffers in python and I have a Person message repeated uint64 id but when I try to assign a value to it like: person.id = [1, 32, 43432] I get an error: Assigment not allowed for ...
PaolaJ.'s user avatar
  • 11.7k
135 votes
6 answers
44k views

All of these provide binary serialization, RPC frameworks and IDL. I'm interested in key differences between them and characteristics (performance, ease of use, programming languages support). If you ...
andreypopp's user avatar
  • 6,969
117 votes
7 answers
172k views

I have an object that I de-serialize using protobuf in Python. When I print the object it looks like a python object, however when I try to convert it to json I have all sorts of problems. For ...
exHash's user avatar
  • 1,295
112 votes
19 answers
215k views

I am trying to build a sample application with Go gRPC, but I am unable to generate the code using "protoc" I have installed the required libraries and Go packages using: go get -u google....
Mayank Gupta's user avatar
  • 2,217
110 votes
3 answers
105k views

Google Protocol Buffers can not only be serialized in binary format, also be serialized as text, known as textproto. However I can't easily find examples of such text; what would it look like? ...
Vi.'s user avatar
  • 39k
108 votes
2 answers
46k views

From what I've gathered so far, there are several different ways of dumping a TensorFlow graph into a file and then loading it into another program, but I haven't been able to find clear examples/...
Technicolor's user avatar
  • 1,619
104 votes
11 answers
140k views

I encountered it while executing from object_detection.utils import label_map_util in jupyter notebook. It is actually the tensorflow object detection tutorial notebook(it comes with the tensorflow ...
Reghunaath A A's user avatar
102 votes
2 answers
64k views

I'm trying to describe an RPC service using Google's Protocol Buffers service WhoamiService { rpc WhoAreYou() returns (Whoami) {} } message Whoami { optional bytes request_id = 1; optional ...
Michael Robinson's user avatar
99 votes
5 answers
79k views

JSON has application/json as a standard. For protobuf some people use application/x-protobuf, but I saw something as odd as application/vnd.google.protobuf being proposed. Do we have an RFC or some ...
Jader Dias's user avatar
  • 91.1k
98 votes
4 answers
64k views

Does anyone have any information on the performance characteristics of Protocol Buffers versus BSON (binary JSON) or versus JSON in general? Wire size Serialization speed Deserialization speed These ...
Jeff Meatball Yang's user avatar
93 votes
17 answers
291k views

I am following this guide and using the exact sample of addressbook.proto. Post the content of compiler generated addressbook_pb2.py file as well. When I run the following simple program, there is ...
Lin Ma's user avatar
  • 10.2k
93 votes
5 answers
103k views

Is it a good choice to use Google Protocol Buffers in JavaScript or is it better to do it with JSON? Also it'd be great if someone can give me a simple example about Protocol Buffers implementation ...
nikolakoco's user avatar
  • 1,403
92 votes
7 answers
184k views

I tried importing a proto file named test1.proto to another proto file named test2.proto using the import statement import "com/test/test1.proto"; But i get the following error com/test/test1.proto:...
Aarish Ramesh's user avatar
91 votes
4 answers
71k views

Can anyone explain when to use protocol buffer instead of JSON (and vice versa) for a microservices architecture? Both for synchronous and asynchronous communication.
Kaidul's user avatar
  • 16k
90 votes
3 answers
64k views

The proto2 version of Protocol Buffers allows to specify default values for message elements: optional double scaling_factor = 3 [default = 1.0]; Why is this no longer possible in proto3? I consider ...
Daniel Pauli's user avatar
  • 1,083
89 votes
4 answers
97k views

I want to attach a UUID to a field in my protobuf User message example. message User { // field containing id as UUID type required string email; optional string name; } I know that protobuf ...
Edward Maxedon's user avatar
88 votes
1 answer
85k views

I have the following schema in my .proto file: service MyService { rpc GetItem (ItemQuery) returns (Item) { } } message ItemQuery { int id = 1; } message Item { int id = 1; ...
Shoham's user avatar
  • 7,394
85 votes
8 answers
48k views

We want to build a Javascript/HTML gui for our gRPC-microservices. Since gRPC is not supported on the browser side, we thought of using web-sockets to connect to a node.js server, which calls the ...
Oliver's user avatar
  • 1,037
84 votes
4 answers
163k views

I am working on something which fetches data from database and constructs protobuff message. Given the possibility that null values can be fetched from the database for certain fields , I will get ...
Aarish Ramesh's user avatar
84 votes
2 answers
97k views

How to handle inheritance in Google Protocol Buffers 3.0? Java equivalent code: public class Bar { String name; } public class Foo extends Bar { String id; } What would be Proto ...
Vivek Sinha's user avatar
  • 1,761
83 votes
1 answer
92k views

For example, I have proto-file File.proto: enum Test { ONE = 1; TWO = 2; } I generate file File_pb2.py with protoc from File.proto. I want in a python-code get string "ONE" (that corresponds to ...
abyss.7's user avatar
  • 14.6k
82 votes
11 answers
224k views

I have an existing system, which is using protobuf-based communication protocol between GUI and server. Now I would like to add some persistence, but at the moment protobuf messages are straight ...
Denis Kulagin's user avatar
81 votes
1 answer
44k views

With protocol buffer, does changing field name of a message still let it compatible backward? I couldn't find any cite about that. Eg: original message message Person { required string name = 1; ...
zeroboo's user avatar
  • 9,213
79 votes
3 answers
63k views

I'm using protocol-buffers python lib to send data,but it's have some problems, so Traceback (most recent call last): File "test_message.py", line 17, in <module> ptask.task = task File ...
gezhonglunta's user avatar
  • 1,401
78 votes
5 answers
89k views

I have installed protobuf by using following commands: ./configure make make check make install However when I run protoc I get following error: protoc: error while loading shared libraries: ...
Kshitiz Sharma's user avatar
76 votes
16 answers
100k views

using protobuf version 2.6.1 ( which i installed via homebrew) I am trying to run $ protoc --go_out=../cloud/ *.proto I keep receiving this error. $ protoc-gen-go: program not found or is not ...
R.J. Robinson's user avatar
76 votes
1 answer
128k views

I have to compose a protobuf message which should have 1 integer variables and a integer array. package protobuf; message myProto { optional uint32 message_id =1; optional int update = 2; //here I ...
javaMan's user avatar
  • 6,720
74 votes
2 answers
61k views

I would like to include a protocol definition file in another protocol file. For example: // base.proto: message P_EndPoint { required int32 id = 1; required string host = 2; required int32 ...
Soroush Rabiei's user avatar
73 votes
1 answer
43k views

I have this small protobuf code (simplified, only the necessary is contained): message ParamsMessage { required int32 temperature = 1; } message MasterMessage { enum Type { GETPARAMS = 1; ...
Nidhoegger's user avatar
  • 5,322
72 votes
11 answers
37k views

I'm trying to read / write multiple Protocol Buffers messages from files, in both C++ and Java. Google suggests writing length prefixes before the messages, but there's no way to do that by default (...
tzaman's user avatar
  • 48k
72 votes
3 answers
155k views

Is there an equivalent to int8 or byte type in proto buffs? I would like to send a byte array object.
Usman Ismail's user avatar
  • 18.9k
71 votes
8 answers
67k views

We're looking into transport/protocol solutions and were about to do various performance tests, so I thought I'd check with the community if they've already done this: Has anyone done server ...
Parand's user avatar
  • 107k
71 votes
2 answers
27k views

I'm using protocol buffers and everything is working fine. except that the fact that I don't understand - why do I need the numbered tags in the proto file : message SearchRequest { required ...
Royi Namir's user avatar
  • 149k
70 votes
11 answers
29k views

Does anyone with experience with these libraries have any comment on which one they preferred? Were there any performance differences or difficulties in using?
0xC0DEFACE's user avatar
  • 9,300
69 votes
8 answers
43k views

Does anyone know of a good tool to generate Google Protobuf documentation using the .proto source files?
Markus K's user avatar
  • 1,733
66 votes
6 answers
61k views

I'm trying to long-term serialize a bunch of objects related by a strong class hierarchy in java, and I'd like to use protocol buffers to do it due to their simplicity, performance, and ease of ...
user364003's user avatar
66 votes
1 answer
24k views

I'm looking for a command-line utility that will, at a minimum, render binary protobuf data in human-readable form. Filtering and selection options (along the lines of cut for text) would be nice, ...
comingstorm's user avatar
  • 26.2k
65 votes
13 answers
155k views

I am unable to find clear instructions to install Google Protocol Buffers (including compiler) on Windows x64 platform. I went through the instructions README file for compiler and source: For ...
aces.'s user avatar
  • 4,162
62 votes
2 answers
58k views

I've recently encountered all sorts of wrappers in Google's protobuf package. I'm struggling to imagine the use case. Can anyone shed the light: what problem were these intended to solve? Here's ...
wvxvw's user avatar
  • 9,713

1
2 3 4 5
169