Questions tagged [protocol-buffers-3]

27 questions
1
vote
0 answers

How to bring in a specific column into buffer or bytearray from a .dat file in python

I have a .dat file with 4 columns (and 4 rows). I am trying to bring in only the 3rd column called 'narratives' into a buffer. If that is not possible, can one bring in just the 'narrative' column into a bytearray? I haven't located anything on the…
1
vote
0 answers

How to use proto.Message type in a function?

I am using golang and protocolbuffers. I have two proto messages where one imports the other. I would like to do some processing using proto.Message type but I get an error. This is foo.proto syntax = "proto3"; package foo; message Page { …
andthereitgoes
  • 819
  • 2
  • 10
  • 24
1
vote
1 answer

Protobuf message - parsing difference between binary and text files

During my implementation on a protocol buffer application, I tried to work with the text pbtxt files to ease up my programming. The idea was to switch to the pb binary format afterward, once I had a clearer understanding of the API. (I am working in…
Emile D.
  • 602
  • 2
  • 11
  • 20
0
votes
1 answer

Generate a response without stripping off default values in protobuf

We have a API where we send the response by parsing it with protobuf contracts and we send the result to the consumers. It strips of some of the fields which has default values(0 for integer, false for boolean etc.) but we don't want to allow that…
Pratik
  • 1,351
  • 1
  • 20
  • 37
0
votes
1 answer

Marshal/Unmarshal google.protobuf.Any proto message

I'm currently using gRPC for my API communication. Now I need the value of my request can accept any data type, be it a struct object or just a primitive data type like single integer, string, or boolean. I tried using google.protobuf.Any as below…
Vanya
  • 1
  • 1
  • 1
0
votes
2 answers

Protobuff package vs option csharp_namespace

I am creating a gRPC service using Proto 3 and C#. In the Google developer guide for Protobuff it says about package: In C# the package is used as the namespace after converting to PascalCase, unless you explicitly provide an option…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
0
votes
1 answer

why does protobufs proto3 AssignDescriptors throw std::system_error?

I'm using protoc 3.19.4 message definition syntax = "proto3"; package wibble; option cc_enable_arenas = true; option optimize_for = CODE_SIZE; message Test { string id = 1; string name = 2; } client code capi #include…
VorpalSword
  • 1,223
  • 2
  • 10
  • 25
0
votes
1 answer

how to convert protobuf readable request to proto message

I am playing with google api for educational purpose to learn protobuf connection. But i am getting 400 Bad Request when i sending post request. I hope so my protobuf message have problem and don't understand how to i write 0: 0 message in proto…
0
votes
1 answer

Problem with Custom protobuf CodeGenerator

I am undergoing trouble writing the custom protoc plugin. I posted this question but no response. Atleast Kindly please let me know answers to few questions. I really need to do this. I havent gone past first step itself. From this question, how…
User
  • 1,186
  • 4
  • 22
  • 36
0
votes
2 answers

how to put multiple protobufs on a wire

We have a communication channel on which we send protobufs. In order to be able to send more than one type of protobuf, we double-serialise: message Coprolite { enum Bezoar { KBezoarUndef = 0; KBezoarFriedEggs = 1; …
jma
  • 3,580
  • 6
  • 40
  • 60
0
votes
1 answer

Why is an exception thrown during JSON de-serialization of protobuf3 well-known types?

Using Google.Protobuf Nuget package version 3.4.1 In its simplest form, I have a Google protocol-buffers message defined like this: syntax = "proto3"; package tests; option csharp_namespace = "MyTests"; import "wrappers.proto"; message Foo { …
David Razzetti
  • 167
  • 2
  • 11
0
votes
1 answer

How can I send this type of string with api call

I am using protobuf and need to send converted bytes with api request, and need to decode again on server, string will be like this: \b\xC0\xB3\xB9\xDD\xFC\x1C\x12XBalance debited with 62.0 Expiry Date is 09-11-2016 09:10:00 Remaining Balance is…
Thorin
  • 2,004
  • 1
  • 19
  • 30
1
2