8,439 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
1
vote
0
replies
83
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
105
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
63
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
133
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
55
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
479
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
45
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
53
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
127
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
174
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 ...
1
vote
1
answer
88
views
How do I set up automatic class generation from a contract using protobuf-net?
I configured the .csproj file as follows:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>...
0
votes
1
answer
118
views
Is it possible that two protobuf messages with same content generate different serialized bytes? [duplicate]
In C++ Protobuf, is it possible for two messages with the same contents to produce different serialized byte strings when using the SerializeToString method?
If so, under what circumstances can the ...
0
votes
1
answer
2k
views
Protobuf Compiler version does not match protobuf runtime version
On my mac machine, I installed the protobuf compiler of the latest version (5.29.3) [1] and the python protobuf runtime library pip install protobuf (6.31.1) [2].
The problem is that I got the ...
0
votes
1
answer
152
views
How to generate NPM package for protoc compiled Typescript
I have a desire to create a reusable NPM package for consumption in Angular 18+ (using old build system) based upon a set of .proto files. The desired usage would be a simple installation of the npm ...
0
votes
1
answer
108
views
gRPC serialized message size difference between Windows and POSIX
gRPC: 1.59.1; Protocol Buffers: 3.21.12;
I have a .proto file with proto2 syntax. One of the messages looks like this:
message Log
{
repeated Info info = 1; // can be very heavy
...
...