Questions tagged [protobuf-java]
289 questions
0
votes
1 answer
Protobuff message from Java List>
I've been trying to package Java List> to a protobuf3 message and I am just wondering what would be the best way to define a proto file that can package such a List and how to map it effectively, since I've been trying and couldn't make it work.
My…

Luka Špoljarić
- 988
- 1
- 10
- 23
0
votes
1 answer
How to set environment variable LD_LIBRARY_PATH through build.gradle to generate protobuf code
I am using protobuf gradle plugin in my build.gradle file to
generate grpc and reactor gprc java code.
Due to the security constraints, I cannot use the plugin directly
from the maven central. I have to download those plugins and provide
the local…

Rohan Gujarathi
- 133
- 1
- 1
- 4
0
votes
0 answers
How to serialize a instance of third party java class into protobuf in akka
currently, I'm sending Java class object as message to Scala Akka Actors.
The java classes are generated from json which is here.
So I have limited access to change anything related to this class.
Right now the messages are serialized using akka…

user51
- 8,843
- 21
- 79
- 158
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
1 answer
Spring MVC generating exception with google Protobuf 3
I need you guys to help me, please!
My application generates the following error when I use repeated, fixed64 or int64.
com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle…
0
votes
1 answer
convert protobuf to other protobuf
I have reading Protobuf from Kaka so finally I'm getting a generated Java Object.
I would like to rename/create other Protobuf based on the original I got.
let say I have 2 classes A and B.
my code listen to Kafka topic and gets A.
I would like to…

T1234
- 63
- 1
- 9
0
votes
1 answer
How to fix "While parsing a protocol message, the input ended unexpectedly in the middle of a field" error
Getting InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. error when parsing Protobuf
Not sure why parsing failing ever though I can see the output if I call…

Praveen K H
- 61
- 1
- 2
0
votes
1 answer
How to fix duplicate elements in repeated protocol-buffer field?
I want to load some data using protocoll-buffers (JSON was way too slow on Android) but somehow my repeated field called company contains 6 copies of every element - although I am not storing any duplicates.
How do I know that it shouldn't contain…

user3185698
- 1
- 4
0
votes
1 answer
How can I add my new .proto file and generate all necessary java files in gRPC's quick start template?
I wish to add my own .proto file from scratch in existing grpc-java quick start template. How can I generate all necessary class files and bind those with maven (or gradle) file.
0
votes
1 answer
com.android.tools.r8.errors.CompilationError: Program type already present: com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream
I am getting
"Program type already present:
com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream"
runtime error.I have tried using multidix and also referred more links
but still didnt get any solutions.
This is because in…

harini
- 1
- 2
0
votes
1 answer
Wrapping and shipping the protoc, so our build environments are not required to have protoc pre-installed
In order to be able to generate classes from .proto-files, I must have the protoc installed on my system. Then I can instruct the protoc manually to compile my .proto-files. Then I might get the idea to utilize our build system for that, for example…

Nikolas
- 2,066
- 1
- 19
- 20
0
votes
0 answers
How to parse a byte array to a GeneratedMessage using Descriptor (protobuf, java)?
Given a FieldDescriptor and a byte[], how do I parse the latter to my implementation of GeneratedMessage?
Neither I can see any references to the corresponding java class (which contains generated parseFrom(byte[] data)) nor any methods returning…

Jay Foreman
- 600
- 1
- 6
- 17
0
votes
1 answer
Error when generating tfrecord via MapReduce
I'm trying to use a MR job to generate TFRecord, but come across an error which I can't understand, it seems can't find a way to read the list?? It throws the following when I trying to build the Example which follows the hadoop example in…

mia ich
- 55
- 8
0
votes
1 answer
Method Marshaller errors in protoc generated Grpc Services on Android
I have a server running the grpc endpoints which I'd like to connect to using an android client. I am trying to generate the required ..Grpc.java so that I could use the .newStub() methods for creating a grpc request.
I have a proto file which…

Sudheesh Singanamalla
- 2,283
- 3
- 19
- 36
0
votes
1 answer
How to deserialize the ProtoBuf serialized HBase columns in Hive?
I have used ProtoBuf's to serialize the class and store in HBase Columns.
I want to reduce the number of Map Reduce jobs for simple aggregations, so I need SQL like tool to query the data.
If I use Hive, Is it possible to extend the…

karthikhr
- 3
- 5