Questions tagged [protoc]

protoc is the compiler for .proto files. It generates language bindings for the messages and/or RPC services from .proto files. protoc is a native executable, the scripts under this directory build and publish a protoc executable (a.k.a. artifact) to Maven repositories. The artifact can be used by build automation tools so that users would not need to compile and install protoc for their systems.

taken from google documentation

387 questions
1
vote
1 answer

grpc compile error protobuf 3.2.0 (file was generated with older version of protoc) Ubuntu 16.04

I tried compiling grpc for cpp in an Ubuntu 16.04.02 virtual machine. Since the protobuf version supplied with grpc doesn't compile (unzip say one of the zip files is corrupt) I compiled protobuf 3.2.0 (which should be the right version to my…
snoato
  • 644
  • 1
  • 5
  • 12
1
vote
1 answer

AttributeError : six missing "indexbytes" when compiling protobuf with a custom python plugin

I have an issue when compiling protobuf files with a custom python plugin. On one machine it is running as expected whereas on another one this leads to following error: Traceback (most recent call last): File "C:\...\my_plugin.py", line 14,…
Yohan
  • 113
  • 10
1
vote
1 answer

compilation of protobuf fails with D_GLIBCXX_USE_CXX11_ABI=0

I am running ubuntu 16.04 with gcc. My q.ccp file is #include #include #include #include…
v78
  • 2,803
  • 21
  • 44
1
vote
1 answer

how to add protoc.exe in path of windows 7

I tried Following : 1.D:\TestWorkSpace\protoc.exe where .exe file is residing. Method1 1.PROTO_HOME = "D:\TestWorkSpace\" 2.Path = "%PROTO_HOME%\protoc.exe" Method2 1.PROTO_HOME = "D:\TestWorkSpace\" 2.Path =…
Shaurya
  • 136
  • 1
  • 4
  • 20
1
vote
3 answers

CaffeonSpark build Error caffe.proto needed by 'src/main/java/caffe/Caffe.java

I am trying to get CaffeOnSpark running locally and I follow this procedure on CaffeOnSpark wiki:https://github.com/yahoo/CaffeOnSpark/wiki/GetStarted_local The first 4 items are good to me.However, when i am doing the Make build in Step 5. I got…
1
vote
1 answer

How to send .proto files from android device over USB connection

I'm involved in a project where there is communication between an android device and a vending machine over USB. We need to send .proto files, but I don't know how this is generally done.
Yannick Maris
  • 329
  • 1
  • 4
  • 16
1
vote
1 answer

Proto Generated class's toString causing Exception

I'm following Google's tutorial [ https://developers.google.com/protocol-buffers/docs/javatutorial?hl=en ] to write a Proto Class. My Proto file is package protoc_Shashi; option java_package="com.shashi.protoc.generated"; option…
Shashi
  • 746
  • 10
  • 39
1
vote
1 answer

protoc-gen-javanano not found

I'm trying to use Protobuf in my Android application. So to do that, I added the following lines in my gradle.build file : buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } …
Alexandre D.
  • 711
  • 1
  • 9
  • 28
0
votes
0 answers

How to convert RawExtension proto object into a regular Pod object?

I am receiving a WatchEvent message and the value stored in this kubernetes proto is - Type - for ex. event such as modified or added or deleted Object - raw bytes of actual object. Can be any object. I want to convert those raw bytes to actual…
0
votes
0 answers

Creating Python protocol buffer package using gradle plugin

We are already using Gradle to generate the code for Kotlin protocol buffers, and we use Google's protobuf gradle plugin to do this. On the data / analytics side, we need to work with Python, but there is a nice gradle tool generate the…
Mike Williamson
  • 4,915
  • 14
  • 67
  • 104
0
votes
0 answers

Issue in importing protoc-gen-go file

I am new to gRPC. I am implementing grpc transcoding in which I am facing an error regarding (missing method ProtoReflect). This me because of "google.golang.org/protobuf/proto" and "github.com/golang/protobuf/proto". The .pb.go file contains proto…
0
votes
0 answers

How to iterate a services, methods, and method arguments within a protoc python plugin?

The aim is to generate helper methods that will aid to call a GRPC service dynamically. The requirement is to take in keyword arguments and validate the name and type against the expected types within the GRPC service method argument. This is the…
smokedice
  • 900
  • 2
  • 10
  • 25
0
votes
0 answers

How to generate proto stubs in a specific directory structure via Makefile

I have the following project structure minified. ├── Makefile ├── pkg │ ├── proto │ │ ├── auth │ │ │ └── auth.proto │ │ ├── common │ │ │ └── common.proto │ │ ├── google │ │ │ ├── descriptor │ │ │ │ └──…
Mayukh Sarkar
  • 2,289
  • 1
  • 14
  • 38
0
votes
1 answer

Generating Rust protobuf code with a macro instead of build.rs

There are several Rust crates to support protobufs, but they all require running code generation during the build.rs stage. Is it possible to generate protobuf-serialization code without the extra build step? I see two ways: using Serde-like…
Yuri Astrakhan
  • 8,808
  • 6
  • 63
  • 97
0
votes
0 answers

Python gRPC makefile: mixed implicit and static pattern rules

Trying to write a Makefile that compiles python gRPC protos but only when the source proto file changed. I ran through it multiple times and can't figure out why I'm getting that error (when running make build). Supposedly it's because a file is…
jeanluc
  • 1,608
  • 1
  • 14
  • 28