Also does it matter if .pb was created using proto lite and android end.
I believe the lite version doesn't store fields, so converting it to json
using proto-util won't work and i need to make use of reflection.
On Fri, 24 Feb, 2023, 6:54 am ritesh singh, wrote:
> Thanks Adam. I will give it
Thanks Adam. I will give it a shot. I thought of using *protoc* compiler,
but what if my proto file contains nested messages
*message A { B b = 1}*
*message B {*
*}*
After running *protoc *on the proto file, it will generate 2 java classes.
I won't know which generated class to use
I suspect that your code is getting an error because it's trying to parse a
.proto file as a serialized protocol buffer. (This won't work since .proto
files use a text representation very different from the standard protobuf
binary format.) Probably the best way to fix this problem would be to
Hello,
I am working on creating a Android Studio plugin for proto data store.
Android uses proto-lite, my current approach, i get the .pb file and .proto
file and use the same in intellij plugin to deserialise it.
*val psiFile = PsiManager.getInstance(project).findFile(protoFile)