423 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
1
vote
0
replies
85
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 ...
2
votes
0
answers
76
views
Invalid file descriptor when using protovalidate library
I'm building an API to host on Google API Gateway.
A recent change was to integrate with protovalidate for simple request validation.
Upon doing so, I began getting the following error when pushing my ...
1
vote
0
answers
53
views
Java accessors generated by protoc for string fields
For any field x of type string, protoc seems to generate two java accessors:
getX() that returns a String
getXBytes() that returns a ByteString
While the getXBytes() method may be useful, I am ...
-1
votes
1
answer
301
views
Cannot compile protobuf definition with edition syntax
I am trying to compile the following .proto file:
edition = "2023";
package example_proto;
import "google/protobuf/cpp_features.proto";
message BidAsk {
required double bid =...
0
votes
0
answers
32
views
Err dlopen fail: dprint-node.win32-x64-msvc.node not found
So I got this error when trying to run protoc with protoc-gen-ts_proto
protoc --plugin=protoc-gen-ts_proto=.\node_modules\.bin\protoc-gen-ts_proto.cmd --proto_path=.\src\@core\prototypes --...
2
votes
1
answer
362
views
Why does protoc fail with enum name conflict in C++ for valid .proto definitions?
I have a public proto files which cant be altered here is this for Refrence
syntax = "proto2";
package openrtb;
enum ContentCategory {
IAB1 = 1;
IAB1_1 = 2;
IAB1_2 = 3;
IAB11 = 191;...
0
votes
1
answer
66
views
cross-compiling proto files in Bazel
I'm using a ubuntu 22.04 and trying to compile .proto file to arm64. When I provide the platform with proper toolchains for the arm and try to build on my x86_64 pc, I get the following error.
I did ...
0
votes
0
answers
54
views
Server reflection doesn't work after using bazel build with static linking
We have a grpc server written in C++, our users sometimes make grpc calls via grpc_cli, all work well. With "grpc_cli ls host:port -l", all registered grpc services are printed.
Recently I ...
0
votes
1
answer
155
views
gRPC with jmeter is not working in alpine/jmeter:5.6.3 image
I was able to run the jmeter http sampler request script in Kubernetes, but when I try with the gRPC request, I get the below error:
2025年01月08日 10:33:25,530 ERROR v.z.b.GRPCSampler: java.lang....
3
votes
1
answer
73
views
Expected "required", "optional", or "repeated". GRPC Golang
When generating grpc code for protocol buffers. received this error
My .proto file - was following the basic tutorial from the GRPC Docs - GRPC Docs
message Point {
int32 latitude = 1 ;
int32 ...
1
vote
0
answers
171
views
Is it possible to support protobuf editions in a Dart codebase?
I discovered today that the proto generator for Dart does not support protobuf editions. Without explicit support from protoc-gen-dart, is there any way to integrate protobuf editions into my Dart ...
0
votes
1
answer
162
views
protoc generated c# code does not compile
I'm not a Windows/Visual Studio person, so maybe I'm doing something obviously wrong. I'm going to have to write a gRPC wrapper around a library for .NET 4.8. That means I won't be able to use the ...
0
votes
1
answer
220
views
Failed to compile the .proto file in IntelliJ Idea
Here are some .protoc files. The directory structure is as follows:
my-project
├── src
│ ├── main
│ │ ├── resource
│ │ │ └── exampleA.proto
│ │ │ └── exampleB.proto
├── ...
0
votes
1
answer
220
views
Using protofub in C++ when compiling to WASM with emscripten. Error compiling example from documentation
I need help figuring out a problem
I am rewriting part of the javascript library to wasm.
I compile the c++ code to wasm using this command: emcc idw.cpp -Oz -s WASM=1 -s --no-entry -o idw.wasm (...
0
votes
1
answer
133
views
Buf with protoc_builtin PHP has different behaviour than the actual protoc plugin?
I'm migrating a PHP project using protoc to the Buf CLI. To ensure backwards compatibility, I'm trying to have Buf produce more or less exactly the same output as the builtin PHP plugin would do.
I've ...