8,419 questions
0
votes
0
answers
57
views
Protobuf and Dotnet: protoc version is opaque but it can breaks the runtime
Protobuf documentation is kind of clear about the compatibility between the gen code and the runtime. According to this https://protobuf.dev/support/cross-version-runtime-guarantee/, you can use a ...
2
votes
1
answer
110
views
Protobuf and multiple layers of inheritence
Using Protobuf.net I have a List<Test> and objects inherited from Test (i.e. Test2, Test3, Test4).
Test is defined like this:
[ProtoContract, ProtoInclude(1,typeof(Test2)), ProtoInclude(2, ...
Tooling
2
votes
0
replies
77
views
Protobuf compiler that injects deprecation warnings for `[deprecated = true]` fields
Are there any protobuf compilers out there that make use of the `[deprecated = true]` tag to automatically build deprecation warnings into the compiler Python source code? The current approach I'm ...
0
votes
0
answers
40
views
Override field type in protobuf scheme using additional scheme
I have the following scenario. There is an external service that provides data in protobuf format that I need to parse, and I have original protobuf scheme for that data. The issue is that original ...
0
votes
0
answers
103
views
Read and write binary data to postgresql from dart server app
Dart app (Server side) + shelf + postgres plugin, all latest version.
I'm trying to read / write binary data to postgresql table bytea field, the data is a binary protobuf message.
This is how I write ...
Best practices
0
votes
1
replies
78
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 ...
Tooling
0
votes
4
replies
109
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
207
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
76
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
124
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
176
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
97
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
200
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
75
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
639
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 ...