Questions tagged [proto3]

Protocol Buffers - Google's data interchange format

Google Protocol Buffers questions related to version 3 of the Protocol Buffer format should be tagged with this tag.

At this time proto3 is still in alpha stage.

About Versioning

When protobuf was initially opensourced it implemented Protocol Buffers language version 2 (aka proto2), which is why the version number started from v2.0.0. From v3.0.0, a new language version (proto3) is introduced while the old version (proto2) will continue to be supported.

146 questions
0
votes
1 answer

Proto3 representing nested JSON structure

I'm wondering how I can represent a variable size JSON structure in my gRPC implementation with Node.js. I have a grpc service and a message that I want to receive the following structure: { "Key": "Value", "Nested": { ... } } Here's my…
ddibiase
  • 1,412
  • 1
  • 20
  • 44
0
votes
1 answer

How to define a protobuf message to pass an active record protobuf message directly as an input parameter into a ruby grpc code by compiling protomsg?

We are creating a grpc server using proto3. and compiling it into a ruby function.We have converted the Active Record Message into a protobuf-message (got by calling the "activerecord".to_proto method) using ActiveRecord-Protobuf gem. However while…
susheel
  • 36
  • 6
0
votes
1 answer

protobuf3 JsonFormat InvalidProtocolBufferException Unrecognized character

I am trying to convert json to proto message object, but if there are some characters in json like $ or . or _ I get an InvalidProtocolBufferException. My proto: syntax = "proto3"; package messages; option java_multiple_files = true; message Main…
idmitriev
  • 4,619
  • 4
  • 28
  • 44
0
votes
1 answer

Semi-colon required, optional, or disallowed in gRPC option value?

I'm seeing one piece of code like the following: rpc SayFallback (FooRequest) returns (FooResponse) { option (com.example.proto.options.bar) = { value : "{ message:\"baz\" }"; }; } and another like the…
Noel Yap
  • 18,822
  • 21
  • 92
  • 144
0
votes
1 answer

How to create a gRPC server in Python using proto3?

According to this http://www.grpc.io/docs/tutorials/basic/python.html#creating-the-server and the examples here https://github.com/grpc/grpc/tree/v1.0.0/examples/python/route_guide, when I generate my _pb2.py file, several classes named *Stub and…
skyler
  • 8,010
  • 15
  • 46
  • 69
0
votes
1 answer

Receiving Protobuf3 Message over Network

I'm utilizing Protobuf3 with c# for my client & c++ for my server, where the .proto's are generated from the corresponding protoc3 compiler. I'm new to utilizing Google Protocol Buffers, where I'm currently trying to figure out how to re-parse the…
m11hut
  • 11
  • 3
0
votes
1 answer

Nil values not allowed for gRPC in Ruby (proto3)

Hi I am using gRPC Ruby plugin to communicate to a service. The proto definition contains(proto3): uint32 id = 1; But, when I assign nil to id, it throws an error - expected number for integral field. But for strings, nil values work fine. How do I…
shiladitya
  • 2,290
  • 1
  • 23
  • 36
-1
votes
1 answer

How do you define a file response as a Message

I'm using proto to define a REST service In my service, I'm trying to document that a service responds with a file. I've looked through here https://github.com/protocolbuffers/protobuf/tree/master/src/google/protobuf but couldn't find anything that…
Daniel
  • 34,125
  • 17
  • 102
  • 150
-1
votes
2 answers

Are C# Proto3 classes immutable?

I'm passing a reference type (Proto3 generated) to a method to update some properties. When the method returns, the properties have reverted back as if it's not being passed by reference or are immutable. MyData dest = new MyData(); dest.Num =…
user3953989
  • 1,844
  • 3
  • 25
  • 56
-1
votes
1 answer

Sending protobuf java file or JsonFormat string

Some background first: I have a system in which client hits the API to get some resources. The API call a microservice to get the required data. The job of API is to finally send a json string (constructed from data obtained from microservice) to…
Manas Saxena
  • 2,171
  • 6
  • 39
  • 58
-2
votes
1 answer

What are downsides to storing decimals as strings in proto3?

I am using Googles protocol buffer library within my persistent storage system and want to persist currency values, but I am not sure that the floating point types provided by photo (float/double) are good enough. Are there any downsides to storing…
Jake Stout
  • 487
  • 1
  • 5
  • 17
1 2 3
9
10