423 questions
2
votes
1
answer
79
views
protoc3 grpc (go) code generation problem
trying to generate protoc 3 code for my go project. The protoc documentation lists that I can just take the latest version like :
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest and
...
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 ...
2
votes
0
answers
84
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
352
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
40
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
414
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
70
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
56
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
164
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....
4
votes
1
answer
79
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
188
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
182
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
234
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
243
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 (...