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
Android GRPC Protobuf not building/linking correctly
I am using protobufs in gradle java in my project but am having an issue parsing the proto below
https://github.com/lightningnetwork/lnd/blob/master/lnrpc/rpc.proto
It seems to not build correctly and all of my classes are not found
If I comment out…

MandelDuck
- 401
- 5
- 16
0
votes
0 answers
Deserializing Custom Payload in GRPC API
I am trying to create a GRPC API where the payload can have custom contract per user. The user can define the contract by extending the base (fixed) contract up front (probably stored in a database) and start sending as per his custom contract.
I…

Neil
- 5,919
- 15
- 58
- 85
0
votes
1 answer
When changing a proto field to `repeated` do I actually need to change the associated number?
Lets say I have a message
message Something {
int32 foo = 1;
int32 bar = 2;
string baz = 3;
}
and I want to change baz to be repeated string. Do I actually have to change the number? (For example to 4 and deprecate 3).
A friend and I are…

George Mauer
- 117,483
- 131
- 382
- 612
0
votes
1 answer
C++ google protobuf: How to create MutableExtension from extension's FieldDescriptor
I have a proto which has a message that contains extensions
message MsgA
{
extensions 10 to 50;
}
I have the other proto which has the extensions (showing only 1 of the extensions below)
extend MsgA
{
optional MsgB msgB = 10;
}
message…

rr0711
- 17
- 8
0
votes
1 answer
Unable to get parseFrom as an available method from generated proto
My build.sbt is
PB.targets in Compile := Seq(
PB.gens.java -> (sourceManaged in Compile).value,
scalapb.gen(javaConversions = true) -> (sourceManaged in Compile).value
)
libraryDependencies += "com.thesamet.scalapb" %% "scalapb-runtime" %…

vipulsodha
- 624
- 1
- 9
- 27
0
votes
1 answer
Object object is not working as it should
I learned about prototype and proto and i think i understand it but this just doesn't make sense? Can somebody explain to me why accessing directly Object like this doesn't work.
function createObj() {
this.name = 'user';
this.prezime =…

Vukasin Sevo
- 117
- 1
- 7
0
votes
2 answers
golang protobuf marshal empty struct with fixed size
I hava a protobuf struct Data
in .proto:
message Data {
uint64 ID = 1;
uint32 GUID = 2;
}
in golang
b, err := proto.Marshal(&pb.Data{})
if err != nil {
panic(err)
}
fmt.Println(len(b))
I got 0 length!
How can I make proto.Marshal…

xren
- 1,381
- 5
- 14
- 29
0
votes
2 answers
How to check if an object is a regular object in JavaScript
I have a created a merging library that merges objects recursively. Sometimes in the middle there would be an object that is actually a special class (like the Timestamp of Firestore).
In my merging function I check if something is an object or not…

mesqueeb
- 5,277
- 5
- 44
- 77
0
votes
1 answer
How to serialize different protobufs in a single data array and extract them later?
I have two protos like lets say
Message1 and Message2.
I will get these proto messages. I want to serialize them but append the serialized bytes to a single byte array. What is the proper way to do this?
I mean from the resultant byte array, the…

rajan sthapit
- 4,194
- 10
- 42
- 66
0
votes
1 answer
gRPC protobuf bindings: Are changes to fileDescriptor breaking changes?
I am currently developing a gRPC service in Go with gRPC Gateway as an HTTP proxy. I am generating .pb.go bindings from my .proto files, but I noticed that there are subtle changes to my bindings in two separate but related situations when I…

A. Davidson
- 397
- 1
- 4
- 14
0
votes
1 answer
Long values in objects not serialized and deserialized properly when using proto3 in Java
I am trying to serialize and deserialize an object in java using proto3. Here is what my object in proto looks like
option java_multiple_files = true;
option java_package = "com.project.dataModel";
option java_outer_classname = "FlowProto";
// The…

Abdul Rahman
- 1,294
- 22
- 41
0
votes
1 answer
netlink ipset list response format
I'm working on the golang netlink ipset control library.
Everything is working fine except I have no idea how to parse the answer I'm getting from netlink for the list command.
The data I'm getting obviously is what I'm looking for.
But I'm not able…

Daniel Podolsky
- 81
- 3
0
votes
1 answer
Twirp not working with proto
I seem to be unable to install twirp correctly to work with protobuf.
protoc --proto_path=$GOPATH/bin:. --twirp_out=. --go_out=. ./rpc/person/service.proto
is the command I'm trying to do when compiling and creating my twirp file, however I get the…

Carlos Rueda
- 11
- 2
0
votes
1 answer
JAVA GRPC libprotoc generated files and Grpc Ssl Context based subscription issue
I compiled GNMI proto file using proto compiler version 3.4.0 my proto file is shown below:
https://github.com/openconfig/gnmi/blob/master/proto/gnmi/gnmi.proto
syntax = "proto3";
import "google/protobuf/any.proto";
import…

Ammad
- 4,031
- 12
- 39
- 62
0
votes
1 answer
Protobuf lazy decoding of sub message
I am using proto 3 (java) in my projects . I have some huge protobufs embedded with smaller messages . Is there a way I can acheive partial decoding of only few nested sub messages that I want to look at. The current issue I am having is I need to…

user179156
- 841
- 9
- 31