8,431 questions
Best practices
0
votes
1
replies
34
views
Large messages in Protobuf
I'm using gRPC/Protobuf, and I need to stream byte objects that may be large, possibly more than one in each message. The default limits are set at 4MB, and I don't want to keep tweaking these. I also ...
0
votes
0
answers
73
views
protobuf dynamic linking: File already exists in database [closed]
I got a project that dynamically loads two shared objects. Both compile a different proto file that imports the same common.proto file.
When loading the second one, I get:
[libprotobuf ERROR ../../src/...
Tooling
0
votes
4
replies
58
views
What should I use to convert protobuf bin files to json with only pb files?
I'm trying to convert protobuf .bin files from a game to a human-readable json format. There are only .pb files around, what tool should I use to do it, or should I try developing a tool for it ...
Best practices
0
votes
15
replies
132
views
Representing Hexadecimal values in protobuf
What is the best way to represent hexadecimal like 0x5d4e41859170 in protobuf definition files.
0x5d4e41859170 is a memory address.
Should I use bytes, string or fixed64 types, or is there a better ...
2
votes
1
answer
53
views
Proto encoding for message with packed repeated elements
I am quite new to protobuf. I am trying to make sense of the example that is used in https://protobuf.dev/programming-guides/encoding/; there are repeated elements which I can't figure out.
It ...
Advice
1
vote
0
replies
95
views
Google gnostic: protoc-gen-openapi
I want to know if the protoc-gen-openapi plugin understands and processes annotations as in annotations.proto.
I want to use the custom options defined in that annotations.proto file as annotations on ...
1
vote
1
answer
138
views
How to make google.protobuf.Timestamp required?
I am using Typescript, Google Protobuf and library
"ts-proto": "^2.7.7", to generate ts types and use their encode/decode methods.
I have a message like
message DummyDraft {
...
0
votes
0
answers
68
views
Protobuf FieldMask doesn't accept * syntax for repeated field masking
I have a protobuf message with a repeated field:
message TestRepeatedMask {
repeated Inner inner_message = 1;
message Inner {
optional string first = 1;
optional string second = 2;
}
}
...
2
votes
2
answers
159
views
Unable to generate code for proto files that use import
I have been using .proto files without any issue with C# and Java. I have more than hundred proto files spread across a folder hierarchy. I can compile in Visual Studio and in JetBrains IntelliJ Idea. ...
0
votes
0
answers
61
views
supabase postgis tile server and javascript decoding base64 encoded data
I was trying to serve vector tiles on the fly using an rpc function in superbase but somehow when the responce arrives in the front end using a custom protocol. the vector tiles are not displayed.
...
4
votes
3
answers
553
views
Backward and forward compatibility issues with protobufs in Google Pub/Sub
We use protocol buffers both for gRPC server-to-server communication and for publishing messages to Pub/Sub.
Pub/Sub is fairly sensitive to schema changes, not allowing any schema changes that would ...
0
votes
1
answer
49
views
How to serialize protobuf message into a pre-allocated byte array with offset in c#? (Protobuf 3.32.0.0)
The methods AI showed me are not working. However, one method mentioned by AI seems to be usable, but it is private:
private CodedOutputStream(byte[] buffer, int offset, int length)
So, how can I ...
1
vote
0
answers
57
views
A generated protobuf python file is unable to locate another protobuf module it generated
I have a project set up like this with protos/ as a top level directory and the project that actually builds it under services/common-py.
├── protos
│ ├── common.proto
│ ├── doodad.proto
└── ...
0
votes
0
answers
154
views
Buf can't find google/api/annotations.proto in vendored directory for Cosmos SDK v0.53 module
I'm developing a new module for a Cosmos SDK v0.53 application and I'm completely stuck on a persistent buf error. I have resorted to vendoring all my Protobuf dependencies into a third_party ...
2
votes
1
answer
232
views
Intellij modules not finding generated protobuf classes in a multimodule maven project (but works fine via maven cli)
I have a project set up like this:
protos/ # protobuf files here
pom.xml # parent pom
services/common # this module generates the protobuf classes
services/mod-1 # imports ...