7,862
questions
0
votes
0
answers
16
views
Protobuf compatibility for Events
I'm looking at protobuf for events, and struggling to reconcile with my understanding of schema compatibility/evolution.
With Avro and Json, compatibility rules are applied as follows:
API requests/...
0
votes
0
answers
26
views
Converting FHIR Json to Google proto generated model
We have the FHIR JSON model which needs to be serialized using protobuf but we are not able to serialize it as the JSON is not getting parsed to the generated google fhir models.
https://github.com/...
-1
votes
0
answers
23
views
proto already registered, already exists in database
I have one shared library, 'A.dylib', that contains all the protos I'm using. To build this library, protoc runs on each proto file and then I compile all the pb.cc files and build A. I have a ...
0
votes
1
answer
31
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
20
views
Can NOT generated class file with Proto DataStore 1.1.1 protobufPlugin 0.9.4 com.google.protobuf:protobuf-kotlin-lite/protoc 4.26.1 in simple project
I created HelloDataStore at Android Studio Koala with gradle 8.7. I am new to learn Proto DataStore. I checked codelab for proto DataStore BUT faild. Then I checked nia(now in android) app and found ...
1
vote
1
answer
35
views
How to represent an int64 value in JSON for GRPC?
I have a problem with GRPC representing int64 values in JSON.
I have a protobuf definition I'm using:
syntax = "proto3";
package foo;
message Bar {
string spec = 1;
int64 ...
0
votes
1
answer
65
views
Bulding protobuf for CPP
I'm trying to use protobuf for my application.
I would like to link it to run my programm
Steps I did
install via homebrew brew install protobuf
checked if abseil is included (hence the error I'm ...
0
votes
0
answers
33
views
setting default values in Python Protobuf fields
I am writing some python test routines with protobuf acting as the communication medium with a firmware module. I keep tripping over an issue. I receive a response from a module expecting a value in ...
0
votes
0
answers
17
views
How to omit a wrapper message in the data class when (de)serializing?
I have a Protobuf message structure like this:
message TopLevel {
required Identifier identifier = 1;
}
message Identifier {
required uint64 value = 1;
}
Now, I want to use kotlinx....
0
votes
1
answer
25
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 ...
1
vote
1
answer
29
views
How to decode a protobuf Firestore event payload
I have a Cloud Run Function, that gets triggered on google.cloud.firestore.document.v1.written Firestore event, as outlined below:
from cloudevents.http import CloudEvent
import functions_framework
...
1
vote
2
answers
72
views
Qt 6.8 Protobuf serialization default values to Json
I have a message in proto file
message GeoCoord
{
double lat = 1;
double lon = 2;
}
After serialization this message to json and sending it with WebSocket on other socket i getting ...
0
votes
0
answers
25
views
buf - how to remove existing path
Using a scala service with protobuf based grpc. I used to have 3 folders with .proto files in the service.
One of those is now moved to a different library. So my buf.yaml was adjusted as follows:
...
0
votes
0
answers
30
views
clang-format and TextProto / .txtpb and .textproto files
Modern clang-format supports text format protobuf. I have a simple .clang-format file:
---
BasedOnStyle: Google
---
Language: TextProto
ColumnLimit: <CHANGE_ME>
I have the following sample / ...
0
votes
1
answer
30
views
Repeating rpc calls doesnt add new objects to a queue
I'm trying to implement a simple gRPC service, where a client can queue up a task to the server.
I decided to test out multiple calls, where a client sends multiple request, yet the task count is ...