Questions tagged [protocol-buffers]

For questions about Google's protocol buffers

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

gRPC protocol buffer generating invalid client stub (Javascript)

I am attempting to send requests from my React client to my backend directly via the browser with an envoy proxy. Along the way I have come to a standstill involving an issue with my client stub not ...
Surya's user avatar
  • 584
0 votes
1 answer
7 views

"No protos to compile" when using <includes> parameter in org.xolstice protobuf-maven-plugin

I know this project isn't maintained any more but hoping someone might have an idea. Using the configuration below the plugin finds my source protos in src/main/proto but it doesn't find my base ...
Tim's user avatar
  • 109
0 votes
0 answers
12 views

Couldn't resolve FqName com.google.protobuf.kotlin.ProtoDslMarker for Anvil

Adding all the protobuf dependencies and created proto file. Once trying to build the project seeing this error: com.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal ...
0xAliHn's user avatar
  • 18.4k
0 votes
0 answers
24 views

ScalaPb annotations on sealed trait

I am trying to put an annotation on top of a generated sealed trait using scalaPb this way: message SealedTrait { option (scalapb.message).annotations ="@zio.json.jsonDiscriminator("...
Matroska's user avatar
  • 6,895
0 votes
0 answers
37 views

How to parse a Protobuff Message With data from another message

I've been working some time with protobuff and c++, but some problem arrives to me and i'm unable to resolve by myself. I have two proto messages, and the field of one of them is the data of the other ...
vgarrido's user avatar
1 vote
2 answers
27 views

Protobuf change field wire type

I did't find any useful answer to this question: If I have a protobuf definition: message Mother{ Person child = 1; } message Person{ string name = 1; } message Baby{ string name = 1; } is it ...
Yuguang's user avatar
  • 135
1 vote
0 answers
10 views

Android MeasureUnit to Proto Datastore

I want to save a value to datastore with MeasureUnit type. I know it is not possible but for better explain here is what I want to: message Pref { MeasureUnit unit = 1 } and set like: pref....
sss sss's user avatar
  • 174
0 votes
0 answers
40 views

Ballerina gRPC stub file is not getting created correctly

I am using grpc to generate stub files and templates for a ballerina program for a school assignment, the issue is whenever I compile the .proto file it only gives me the pb.bal file not the other one....
dylan DA's user avatar
-1 votes
0 answers
44 views

How to share protobuf classes between Laravel applications using Composer? [closed]

UPDATE I stepped back and decided to use protobufs in a different way, but thank you so much to everyone who helped with this topic! I'm trying to share protobuf schemas between Laravel applications (...
MarcosAM's user avatar
1 vote
0 answers
16 views

Kafka Go/Sarama and schema registry registration issues with protobuf

I have a compiled proto from another repo that I would like to have registered for an integration test. I'm basically doing this: payload := map[string]interface{}{ "schemaType": ...
user38643's user avatar
  • 351
0 votes
0 answers
21 views

ModuleNotFoundError when Importing gRPC pb2 File Generated by Protoc in Python

I'm encountering a ModuleNotFoundError when trying to import a generated gRPC module in Python. In my project, I have a file structure like this: from test.api.grpc_test_cases.specific_folder.api_pb2 ...
ggare's user avatar
  • 1
1 vote
1 answer
65 views

Failing to Import Files Compiled from Protobuf in Python

My directory structure is as follows: test |-test.py |-test.proto |-test_pb2.py |-__init__.py |-comm |-comm.proto |-comm_pb2.py |-__init__.py both __init__.py is empty and test....
charlie's user avatar
  • 279
0 votes
0 answers
20 views

com.google.protobuf.InvalidProtocolBufferException: Invalid value: {"value":"640.0n","type":"Big Number"} for expected type: DOUBLE

I am parsing the json response but everytime i get this error message not sure how to fix it Loading JavaScript to validate ECMA262 regular expression in JsonSchema because java.util.regex package in ...
Sourav Singh's user avatar
1 vote
1 answer
29 views

How to fix redefined fields from protocol buffer definition in Go?

I'm building a gRPC client using the provider's .proto file and has a couple of enumerations that contains valued with the same name on it. syntax = "proto3"; enum Color { NONE = 0; ...
iapazmino's user avatar
-1 votes
0 answers
25 views

Issue about passing arguments to custom plugin with protoc

I use "libprotoc 22.2" and i want to write protoc plugin. My plugin prepared and it works but when i use my executable as a plugin of protoc then i get an error. My command: protoc --plugin=...
tango-2's user avatar
  • 92
0 votes
1 answer
30 views

use grpc reflection service to build static model

I am building a client to a specific grpc application, that exposes also the reflection service (so, for example, I can use grpc_cli to check the exposed call/types). ATM I don't have direct access to ...
Vito De Tullio's user avatar
-1 votes
0 answers
19 views

issue compiling a simple program with tensorflow c++: protobuf error

I've installed TensorFlow C++ for the first time (downloaded from GitHub and built with bazel). I'm trying to compile the following program based on this. My program is #include <tensorflow/cc/...
NNN's user avatar
  • 695
-2 votes
0 answers
36 views

How to represent a file content in protobuf definition? [duplicate]

I am writing a very simple application that the client will download multiple files from server. User supplies a key in the request and the server will send one or more files back to user. Another ...
Kintarō's user avatar
  • 2,953
0 votes
0 answers
13 views

how to use protocbuf in ndk

what needs to be done so that the compiler does not complain about include in .pb.h files I downloaded the latest version of Windows x 64. I uploaded it to drive C. I wrote it in the path. Used a ...
Eliz Ysiliv plakapenka's user avatar
0 votes
0 answers
21 views

How to enable reflection for message created with DynamicMessageFactory?

Code that creates a message: std::unique_ptr<Message> MessagePacker::BuildMessage() const { google::protobuf::DynamicMessageFactory factory; Message* msg = factory.GetPrototype(descriptor_)-&...
Eugene's user avatar
  • 9,252
0 votes
0 answers
41 views

How to use custom serde with provectus kafka-ui

I am doing poc with provectus kafka-ui, an open source GUI tool for kafka. For normal string value, my setup is running fine. However I am not able to use it with CloudEvent. I see encoded garbled ...
SWA PSTG's user avatar
0 votes
1 answer
43 views

Copying content of a dynamic message into a generated one

For reasons beyond my control I have to deal with generated and dynamic messages in the same codebase. I'm looking for an efficient way to copy content of a dynamic message into a specific generated ...
user9746775's user avatar
0 votes
1 answer
32 views

Can't deserialise AWS EventBridge Pipe Protobuf events from self-managed Kafka

I've configured a EventBridge Pipe to consume events from a self-managed Kafka and then forward them to a Step Function. The topic we are consuming from has Protobuf messages, so the events in the ...
Skod's user avatar
  • 435
-2 votes
0 answers
21 views

Get difference of proto buffer files without changed values

I've already asked similiar question, but now I have more details and it seems like a new challenge. I have two files 1.txt Config { OtherField: 42 GoodField: 13 AnotherField: 4200 } ...
wowonline's user avatar
  • 1,089
0 votes
0 answers
27 views

How to send protobuf request in c#

Pictured is a web request I captured using charles. I am able to repeat this request by pressing repeat on charles and it works for me. How can I send this same request in c#? protobuf text overview I'...
Ugur Can Öztürk's user avatar
0 votes
0 answers
18 views

Protobuf - can I skip a few field numbers?

can I do this? Skipping a few, so I can add those in the future? I do so to make sure some fields are always at the end. message { optional string field_1 = 1; optional string field_2 = 2; // skip ...
daydayup's user avatar
  • 2,069
0 votes
0 answers
9 views

ZHS Permission Problem on Proton generation on MacM1

I am using Apple MacBook Air with M2 Chip to develop softwares and etc. Currently my company using protocol buffers to serialize entity models. I am having issues with generating Dart files through ...
ilkerciblak's user avatar
0 votes
1 answer
42 views

Get difference of proto buffer files

Is there any options to get difference between two protobufs using C++ and protobuf API? For example: I have two files 1.txt Config { OtherField: 42 GoodField: 13 AnotherField: 4200 ...
wowonline's user avatar
  • 1,089
1 vote
1 answer
33 views

Can ::google::protobuf::MessageLite be serialized by ::google::protobuf::Message

Can wire data, written by ::google::protobuf::MessageLite-based runtime, be serialized by ::google::protobuf::Message(which is a derived class of MessageLite), provided both use same form of message ...
Swift - Friday Pie's user avatar
0 votes
1 answer
36 views

dump Protobuf class variables to a list/dict and swap keys

i'm working with the lovely Protobuf (cough) and i'm running into an odd problem: instead of returning 'value' as a member of the 'Metric' class in the MQTT message, it is returning, through the oneof ...
WhiteRau's user avatar
  • 818
1 vote
0 answers
37 views

Display protobuf in provectus kafka ui

I am trying to display Kafka topics in Provectus lab Kafka UI. The topics contain protobuf data. When I check the UI, the display of the fields are in binary format , not understandable. Below is my ...
Champak Das's user avatar
1 vote
0 answers
25 views

How to deserialize a protobuf packet from QUdpSocket [duplicate]

I am having trouble when I try to deserialize a protobuf packet when I receive it from a QUdpSocket. My project structure is ├── CMakeLists.txt ├── libs │   ├── CMakeLists.txt │   ├── main.cpp │   └── ...
Icksir's user avatar
  • 103
0 votes
0 answers
26 views

C#, Protobuf file, NuGet-package

I have a nuget package that has 'proto' files in the "lib/protos" path. How can I specify the path to these files in a project that uses the NuGet package? I don't know what to add to csproj....
A_M's user avatar
  • 49
-1 votes
1 answer
25 views

How does protobuf2 communicate with protobuf-net

In my project I use protobuf c for the server and protobuf-net for the client. But protobuf c cannot decode classes where the client uses the "ProtoInclude" attribute. This is the client ...
YueYuHai's user avatar
0 votes
0 answers
26 views

Problem compiling protobuf with clang 15.0.1 (Unable to find containing class of inner class)

I am trying to compile a project that depends on Google Protocol Buffers with clang version 15.0.1. But I get a compilation issue: include\google\protobuf\repeated_ptr_field.h(1155,1): warning ...
user2683038's user avatar
0 votes
0 answers
44 views

can't build c++ project with protobuf@24.2 in mac m2max

use brew install protobuf@24.2 and depend abseil@20230802, use cmake build with c++ project,but it not work. build error log: Undefined symbols for architecture arm64: "std::__1::basic_string&...
bkcarlos's user avatar
0 votes
1 answer
54 views

Protobuf float value transmission over TCP/IP and data corruption

I have two applications that communicate over TCP/IP written in C++ that use protobuf library to exchange data defined into a proto message. floatExample.proto syntax = "proto3"; message ...
Tex'N'Duet's user avatar
1 vote
1 answer
41 views

How to receive a JSON with arbitrary fields value types and Unmarshal to map[string]any using protobuf

This is my proto file: import "google/protobuf/struct.proto"; service Renderer { rpc Render(Request) returns (Response) {} } message Request { string template = 1; string locale = 2; ...
Eleandro Duzentos's user avatar
1 vote
1 answer
57 views

How to have a nullable DateTime property in gRPC .Net?

I'm using gRPC to write a method and give it to another microservice but I do not know how to generate a nullable DateTime property in protobuf and fill it with a data that I get from AppService! The ...
Rezzen's user avatar
  • 113
0 votes
0 answers
22 views

Android Kotlin DataStore with Protobufs - why can't I retrive my fields from the incoming flow?

I have read the Android Documentation for DataStore as well as the codelab but I'm still unable to implement a simple collection of a boolean value in the Protobuf. My proto definition file is: syntax ...
MW2023's user avatar
  • 183
1 vote
0 answers
21 views

Java serializing proto into JSON

I'm trying to seriealize a class containing proto back into a json response That's how I create the Class from a yaml file: for (String yamlString : strings) { ObjectMapper mapper = new ...
Liron Tal's user avatar
0 votes
0 answers
42 views

Why the result of descriptor.field_count() is different?

I'm using protobuf in Qt platform. function A and B are slot functions: function A : void MainWindow::pushButton_load_clicked(); function B : void MainWindow::listWidget_LBM_itemClicked(...
Moon's user avatar
  • 1
0 votes
0 answers
42 views

Java SnakeYAML error when converting yaml to class instance

I'm trying to convert the following yaml to class: ability: name: my-ability-name! types: - source1 - source2 description: Description tags: - tag1 - tag2 isActive: true using ...
Liron Tal's user avatar
0 votes
0 answers
82 views

How to link absl when using protobuf?

I want to try to protobuf example on the home page but I can not build the example code properly after copying the example makefile for cpp, The Makefile is something like this add_person_cpp: ...
Guichi's user avatar
  • 2,195
1 vote
1 answer
61 views

How to store PersistentList<> in Proto datastore on android using kotlin

I'm trying to store class with List in proto datastore on android using kotlin by following the instruction in theType-Safe Preferences With Proto DataStore (without Protobuf Files!) - Full Guide on ...
zap's user avatar
  • 145
0 votes
0 answers
24 views

Defined proto enum types cannot generate corresponding enum classes after compilation [python]

I have defined two enums in common.proto as follows: syntax = "proto3"; package common; message ClientTypeEnum { enum ClientType { SMB = 0; BV_VL = 1; } }; enum ErrCode{ ...
jia Jimmy's user avatar
  • 1,693
0 votes
1 answer
36 views

De/Serialzing custom java types with protobuf in java [duplicate]

protocul buffer supports only a close set of types, like int32, strings, repeted, etc. The problem is that I want to create a custom deserializer for specific things. For example, look at this proto ...
Elad Barkay's user avatar
0 votes
1 answer
25 views

GRPC access response byte-buffer

In continuation of Protobuf serialization/deserialization fails (On protobuf issue) I have GRPC service where response could be deep-recursion (Nested). syntax = "proto3"; service ...
ekchom's user avatar
  • 113
0 votes
1 answer
22 views

Is there a way to pass type arguments in message variable in protobuf file?

Is there a way to pass type arguements in response message of protobuf file. e.g. I have a response type of SResponse<E> with uses generic argument and I want to do same in my protobuf file. I ...
Divyanshu Supehia's user avatar
0 votes
1 answer
23 views

How to transfer tensorflow.TensorProto to custom xxx.TensorProto?

I define a custom xxx.TensorProto which has the same struct as tensorflow.TensorProto. I use tf.make_tensor_proto to transfer a ndarray to tensorflow.TensorProto, but when I try to write tensorflow....
Estiu's user avatar
  • 21

1
2 3 4 5
153