Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [protocol-buffers]

For questions about Google's protocol buffers

protocol-buffers
0 votes
0 answers
15 views

Protobuf parse message fields one at a time

I am familiar with the protobuf wire format where the designers chose not to include the size of the serialized message on the wire. I am also familiar with the strategies to deal with it from scratch:...
supernun's user avatar
  • 482
1 vote
0 answers
39 views

Why the Protobuff is slower than JSON.stringify() in NodeJS?

In our system, we are trying to reduce the data transfer duration between two applications through RabbitMQ. To do so, we are doing some tests with Protobuff and Flatbuffer. According to our test, ...
anileates's user avatar
  • 138
-1 votes
0 answers
13 views

Set a field in a protobuf message by name [duplicate]

Is there a way to set a field in a protobuf Message given the name of the field? I see HasField, ClearField, and GetFields in the Message documentation but I don't see anything like SetField. Can I ...
Jason C's user avatar
  • 39.9k
0 votes
1 answer
13 views

How can I modify the data returned by WebSocket to plaintext

How can I modify the data returned by WebSocket to plaintext and use Protobuf decoding to keep getting an error decoding message RangeError: index out of range: 13 + 485538840 > 1428 What should I ...
csljc's user avatar
  • 1
0 votes
0 answers
23 views

Swift convert nested dictionary to protobuf

I am new to Protobuf. Is possible to convert nested dictionary in swift of type [String: Any?] with swift protobuf? How should I define it in a proto file?
bunbun's user avatar
  • 9
0 votes
1 answer
22 views

unknown reference swagger issue when issuing buf generate with stream rpc

I am trying to generate swagger.json using buf generate. Here is my sample proto file import "google/rpc/status.proto"; rpc Create(stream CreateRequest) returns (stream CreateResponse)...
Vatz's user avatar
  • 11
0 votes
0 answers
14 views

I can not add library of Protobuf to Eclipse IDE

I want to add protobuf lib to eclipse ide. I am using protof 27.2 and mingw g++ 9.2 to compile code. #include <iostream> #include "C:\Users\PC_5725\Desktop\Eclipse\Protobuf_ornek1\ProtoEx1\...
Enes Ayyildiz's user avatar
1 vote
1 answer
36 views

Golang proto not generate method SendAndClose for stream

Just start to looking how to configure grpc by examples (i am new into grpc, golang). I tried to build bidirectional stream using this greet.proto file message GreetRequest { string first_name = 1; }...
Igor-Men's user avatar
  • 113
2 votes
2 answers
27 views

is there a way to dynamically construct request message of a grpc method based from proto?

I am new to gRPC and would like to do input validation of a gRPC service. The testing would be carried out on a running server, and I would use grpcurl to invoke each of the method with dummy input ...
hellojoshhhy's user avatar
0 votes
0 answers
21 views

CMake: find_package(protobuf) / protobuf-generate with only protoc available

I would like to use the protobuf_generate_python CMake function (see here) to generate some python files from my .protos. I only have the downloaded protoc-binary and the includes available (no ...
energetic's user avatar
  • 897
0 votes
0 answers
34 views

TypeError: Channel.stream_stream() got an unexpected keyword argument '_registered_method'

Trying to use fabric-sdk-py repo by cloning. Completed "make install" successfully but then when tried to use the library got below traceback code related to the traceback is >>> ...
joeee's user avatar
  • 1
-1 votes
1 answer
41 views

Protoc and GRPC in Java. avoid camelCase convention

I have compiled the health.proto for my Java application, using protoc --java_out=...... --grpc-java_out=... -I=..... proto .....health.proto Compiles OK and creates the required java classes. The ...
dummyhead's user avatar
2 votes
1 answer
34 views

Nanopb: How to define a nanopb message that nests itself?

I'm having trouble defining a nanopb message that has a nested type whose type is the message itself. If the message doesn't nest itself, everything looks good: proto definition: syntax = "...
Charlene's user avatar
0 votes
1 answer
55 views

error TS2345: Argument of type `'ISchoolService' `is not assignable to parameter of type `'ServiceDefinition<UntypedServiceImplementation>'`

I generate grpc Typescript code with: "proto": "npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./grpc/client --grpc_out=./grpc/client --plugin=protoc-gen-grpc=`which ...
khteh's user avatar
  • 3,734
0 votes
0 answers
22 views

Hit `<foo>_pb.js` does not provide an export named `'<foo>'` syntax error

I generate proto js files with: npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./grpc/client --grpc_out=grpc_js:./grpc/client --plugin=protoc-gen-grpc=`which ...
khteh's user avatar
  • 3,734

15 30 50 per page
1
2 3 4 5
522