protoc Questions

4

Solved

I'm trying to build a simple container which downloads a Protocol Buffers binary from the release page (https://github.com/protocolbuffers/protobuf/releases/tag/v3.13.0) and adds it to the path. Fo...
Kepler asked 20/10, 2020 at 14:52

6

Trying to compile my protos - I need to compile them to use in my react app. But I get this error. I run the command as follows: cd src/main/proto && protoc -I=. *.proto --js_out=import_sty...
Rembrandt asked 10/6, 2022 at 9:29

3

Solved

I have 2 proto compiled under different go packages but when I register them in a a server and run it, I get : panic: proto: file "common.proto" is already registered previously from: &q...
Humidify asked 25/5, 2021 at 17:50

3

Solved

I've installed protoc with homebrew and try to generate dart code with proto files. When I tried a simple case like protoc --dart_out=. test.proto it give me: protoc-gen-dart: program not found...
Lubbock asked 28/11, 2018 at 21:28

1

Here's my protoc jar plugin - <plugin> <groupId>com.github.os72</groupId> <artifactId>protoc-jar-maven-plugin</artifactId> <version>${protoc-maven-plugin.ve...
Barrister asked 13/11, 2017 at 13:36

3

Solved

I want know about good practices with golang and gRPC and protobuf. I am implementing the following gRPC service service MyService { rpc dosomethink(model.MyModel) returns (model.Model) { optio...
Scifi asked 2/8, 2017 at 8:13

3

Solved

Same symptom as protoc-gen-go: unable to determine Go import path for "simple.proto" For simple proto file with following content. syntax="proto3"; package main; message Pers...
Suppressive asked 4/5, 2022 at 4:27

4

I have a written a simple GRPC server and a client to call the server (both in Go). Please tell me if using golang/protobuf/struct is the best way to send a dynamic JSON with GRPC. In the example b...
Tiberius asked 24/10, 2018 at 10:16

3

I am grpc rookie and wanted to create a REST endpoint for health check of the grpc server. For this I decided to use grpc gateway. However, the example in docs for grpc-REST gateway for proxying gr...
Lanark asked 27/9, 2020 at 10:49

2

Solved

I am having a hard time figuring out protoc command and go plugin. What is the different between: protoc \ # Directory where you want the compiler to write your Go output. --go_out=. # vs ? --g...
Silvers asked 16/1, 2022 at 14:35

19

Solved

I am trying to build a sample application with Go gRPC, but I am unable to generate the code using "protoc" I have installed the required libraries and Go packages using: go get -u googl...
Lalalalage asked 28/8, 2019 at 22:39

3

Solved

I am trying to build a c++ library from some protobuf definitions using cmake. I added a custom command to compile the proto to c++, but I have some issues with the output part. I need to specify w...
Medellin asked 14/6, 2019 at 19:53

1

i am getting this error when i compile my proto file: protoc-gen-go-grpc: program not found or is not executable Please specify a program using absolute path or make sure the program is available i...
Adrenocorticotropic asked 1/4, 2022 at 12:42

2

I am trying to use the protoc jar maven plugin in intelij. I've added this to my pom.xml: <plugin> <groupId>com.github.os72</groupId> <artifactId>protoc-jar-maven-plugin...
Akira asked 24/12, 2016 at 3:34

14

Solved

go version: go version go1.14 linux/amd64 go.mod module [redacted] go 1.14 require ( github.com/golang/protobuf v1.4.0-rc.2 google.golang.org/grpc v1.27.1 google.golang.org/protobuf v1.20.0 ...
Faircloth asked 7/3, 2020 at 15:3

11

Solved

I have an existing project in Go where I'm using Protocol buffers / gRPC. Until recent the go_package option was optional and the resulting Go package name would be the same as the proto package na...
Offutt asked 7/5, 2020 at 20:7

5

Solved

I have simple proto file with following content. syntax="proto3"; package main; message Person { string name = 1; int32 age = 2; } I am trying to generate go code for it using proto...
Pritchett asked 5/1, 2022 at 0:22

2

Where need I to set the path to the protoc to get import standards Protocol Buffers (protobuf), like empty.proto and timestamp.proto in Windows and Dart? When the protoc is ran: protoc --dart_o...
Waldenses asked 17/2, 2019 at 19:38

3

Solved

I am using Java and Protoc 3.0 compiler and my proto file is mention below. https://github.com/openconfig/public/blob/master/release/models/rpc/openconfig-rpc-api.yang syntax = "proto3"; packag...
Wanitawanneeickel asked 18/4, 2017 at 18:1

1

Solved

Is it possible to get proto files from generated pb2.py with protoc? Will be the same reverse engineering possible for gRPC?
Colicweed asked 25/12, 2021 at 12:6

4

Solved

I am trying to use Google Cloud Endpoints to make a gRPC based api that can transcode incoming REST requests. I am following their example code but I can not any documentation on how to properly im...

1

Solved

I'm using protobuf (and protoc) for the first time with Go. message MyProtoStruct { string description = 1; } I'm a little bit confused: should I use methods to get values (like MyProtoStruct.Ge...
Mall asked 3/7, 2021 at 11:29

3

I've been working on implementing protobufs for IPC for a project. For some reason, values that are set to 0 are not being set/serialized. For context, the .proto file contains the following messag...
Ranunculaceous asked 19/11, 2017 at 5:23

2

I have been trying to use protocol buffers in my Python program, but cannot get it to work. I'm running a Windows 8 machine and have tried Python 2.7.6 and Python 3.3. I downloaded the binary proto...
Salvia asked 17/1, 2014 at 21:54

3

I am using the Play framework (which uses SBT build tool) with Java where I need to consume a Protobuf. So I have xxx.proto file. I got binary protoc compiler and added to class path. so I see - p...
Alp asked 24/11, 2016 at 18:41

© 2022 - 2024 — McMap. All rights reserved.