proto3 Questions
2
Solved
I'm trying to map some POJOs from Java to Protobuf (proto3). Some of them contain Lists. While mapping lists with POJOs (for example List) is no problem, I'm getting a UnsupportedOperationException...
Quits asked 19/7, 2018 at 7:38
3
Solved
I am converting a json file to string and then the string is converted to proto3 file.
Here is the json file:
{ "a": false,
"b": 0
}
Here is how I convert my json file to string:
String json...
Scheldt asked 11/7, 2018 at 11:53
9
I am using google grpc with a json proxy. for some reason i need to remove the omitempty tags from the struct generated in the *.pb.go files.
if i have a proto message like this
message Status {
i...
Jaffa asked 11/1, 2016 at 7:32
4
Solved
I'm recently using gRPC with proto3, and I've noticed that required and optional has been removed in new syntax.
Would anyone kindly explain why required/optional are removed in proto3? Such kind ...
Shoshana asked 4/8, 2015 at 5:23
5
Solved
As per the following page I should be able to send in json payload : https://developers.google.com/protocol-buffers/docs/proto3
under 'JSON Mapping'.
I would like to send in json payload as part ...
Embosser asked 15/12, 2016 at 1:4
1
Does optional supports in proto3 while working with Go? I tried with this:
protoc person.proto --go_out=. --experimental_allow_proto3_optional
but got this error
person.proto: is a proto3 file th...
Ephrayim asked 19/10, 2021 at 12:39
3
Solved
I am trying to figure out how to integrate the gorm.Model fields (deleted_at, create_at, id, etc) into my proto3 definitions. However, I can't a datetime type for proto3. I tried looking for docume...
Doubleness asked 27/12, 2017 at 14:43
5
I am migrating a java application from protocol buffers 2 to protocol buffer 3.
In proto 2 to check if a field is set you have hasfield() method
for which an example Java code generated is:
publ...
Incinerate asked 19/8, 2018 at 14:52
2
I have a proto schema defined as below,
message User {
int64 id = 1;
bool email_subscribed = 2;
bool sms_subscribed = 3;
}
Now as per official proto3 documentation, default values are not ser...
Townes asked 2/5, 2018 at 7:42
3
Solved
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 cons...
Rothstein asked 19/10, 2015 at 19:40
1
I want to use AutoMapper with proto3, but the biggest problem I have is in mapping from a source property that may allow null into a proto that never does. When doing such population manually, one ...
Doing asked 13/2, 2019 at 4:12
1
I am using the dcodeIO/protobuf.js lib (version 6.8.4) to parse protobuf messages in the browser.
I can make it work with simple proto files, as long as another proto file is not imported.
Importi...
Symonds asked 1/2, 2018 at 23:38
1
Solved
Lets say I have test.proto file:
syntax = "proto3";
option java_package = "testing";
option java_outer_classname = "Test_v1";
import "google/protobuf/wrappers.proto";
message TestMessage {
.go...
Duley asked 4/1, 2018 at 8:45
2
Solved
In protobuf, we only have the choice of using signed or unsigned 32- or 64-bit integer to limit the range of a value.
However, the datastructure I want to define contains a mixture of 8-bit, 16-bi...
Capriccio asked 3/12, 2017 at 11:29
1
Let's say that I have a proto3 message defined as follows, for use as a gRPC request (i.e. using protobuf's binary encoding):
message MyRequest {
string name = 1;
}
Can I change my server (i.e....
Springhouse asked 23/8, 2017 at 21:57
1
Solved
For the following Protocol Buffer message (proto3) how to I determine which type is set? There does not seem to be a "has_reply" method as is the case for the generated C++ version.
message Event ...
Potboiler asked 31/8, 2017 at 10:11
1
We often have use cases where we only want to update a subset fields on a resource. So if we have a resource Person:
type Person struct {
Age int
Name string
Otherfield string
}
Say the calli...
Armalda asked 13/6, 2017 at 6:18
2
Protocol buffer v3 claims, that library is json friendly (https://developers.google.com/protocol-buffers/docs/proto3#json), but I cannot find how to achieve get that mapping. Should I add some plug...
Tardy asked 20/1, 2016 at 17:12
1
Solved
I'm trying to write a generic java class that can be used to deserialize/parse any protobuf message.
Here's how the code should look in a perfect world:
public abstract class ProtoDeserializer<...
Fixation asked 23/5, 2017 at 12:22
2
I have a server written in Java and client written in PHP. How can client catch exception from server if anything goes wrong? I can't find anything about exception handling in gRPC documentation.
...
Pulchritude asked 7/8, 2016 at 3:39
1
Solved
If I have a service like this:
service MyService {
rpc GetThings(GetThingsRequest) returns (GetThingsResponse);
}
How would I mark GetThings as deprecated?
I know how to mark fields or message...
Begga asked 7/4, 2017 at 10:29
3
Let's say we use gRCP/Protobuf to connect many application.
Those application are developped and released at their own team, with their own speed. Over time there will be different version of the t...
Boanerges asked 10/11, 2016 at 3:40
1
Solved
One of selling points of Protobuf was backward compatibility, i.e. developers can evolve format, and older clients can still use it.
Now with new Protobuf version called proto3, the IDL language i...
Doyenne asked 18/11, 2016 at 15:5
1
Solved
I have a ProtoBuf object. I'd like to detect when a particular field is using the default, versus explicitly supplied.
message vector_measurement
{
measurement x = 1;
measurement y = 2;
measure...
1
We are planning to move our existing services to move grpc service. so need to convert the services to proto Defined Message Type. In the reponse, we have map with customize object as key.
eg res...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.