protocol-buffers Questions

4

Solved

I'm trying to build a simple container which downloads a Protocol Buffers binary from the release page (https://github.com/protocolbuffers/protobuf/releases/tag/v3.13.0) and adds it to the path. Fo...
Kepler asked 20/10, 2020 at 14:52

2

How can I convert the following dict to protobuf ? I have to send a protobuf as a payload to an mqtt broker. I'm using python 3.8 publish_msg = { "token":"xxxxxxxx", "par...
Somniferous asked 25/5, 2021 at 11:44

1

Theres not that much information given in the TensorFlow documentation: https://www.tensorflow.org/api_docs/python/tf/train/Example https://www.tensorflow.org/api_docs/python/tf/train/SequenceExamp...
Hypochondria asked 20/10, 2017 at 21:28

2

I am trying to convert the response from Google Cloud Vision API Client Library to a json format. However i get the following error: AttributeError: 'google.protobuf.pyext._message.RepeatedCompo...

5

Solved

Having the following structure: - project1 - project1.py - protofile_pb2.py - protofile_pb2_grpc.py - project2 - project2.py - protofile_pb2.py - protofile_pb2_grpc.py project1.py: import...
Seanseana asked 13/6, 2018 at 14:24

10

Solved

I would like to store data using google protocol buffers (another serialized format would work, too), and then have an UI to browse that data. Is there a C++ framework/API that would allow me to do...
Marek asked 17/5, 2011 at 14:14

4

Solved

I have a coredump with encoded protobuf data and I want to decode this data and see the content. I have the .proto file which defines this message in raw protocol buffer. My proto file looks like ...
Runaway asked 27/1, 2016 at 22:50

5

Solved

I've spent some time looking for some alternative to handle generic objects, I've seen questions similar to mine, but not as specific I suppose? Protocol buffers has multiple scalar types that I ca...
Subsoil asked 6/9, 2012 at 17:27

3

Solved

I'm using Protobuf for python. I've been trying to use default values but everytime I run SerializeToString() i get nothing. For example, here is my .proto file object message Test{ optional ...
Ethanol asked 24/6, 2015 at 8:43

9

Solved

Following the docs on how to set up a gRPC gateway, I find myself stuck at step four of generating the grpc gateway. Namely, things fall apart when the following line is added: import "google/...
Permanganate asked 12/2, 2021 at 8:14

6

Solved

I have successfully compiled my .proto file with google.proto.Timestamp and generated the .cs file with protoc. The only problem i am having is initialization in my c# code. I have tried the follo...
Ethiopian asked 6/9, 2016 at 11:43

2

I want to map datetime in c# datetime in protobuf . Do you have any suggestion to do this?
Islas asked 15/9, 2020 at 9:55

7

Solved

Inside docker, it seems that I cannot compile my gRPC micro-service due to this error: Step 4/9 : RUN make build ---> Running in ceb6e4d0e19b protoc --version libprotoc 3.12.4 protoc --proto_pa...
Keratoid asked 30/8, 2020 at 22:39

3

The following are my protobuf definitions: enum Foo { BAR = 0; BAZ = 1; } message UpdateRequest { string id = 1; Foo foo = 2; . . . } I need the foo field of the UpdateRequest to be nulla...
Woolf asked 6/3, 2021 at 16:12

5

I have a gradle project which uses the Kotlin DSL build.gradle.kts plugins { kotlin("jvm") version "1.4.21" id("com.google.protobuf") version "0.8.10" } g...
Boanerges asked 21/12, 2020 at 10:6

4

I have a time.Time variable in Golang 10-30 00:49:07.1236 that needs to be converted to a Go Protobuf timestamp.Timestamp. Any idea on what functions can be used to accomplish this? Or am I looking...
Indohittite asked 3/11, 2021 at 2:11

3

Given, a serialized protobuf (protocol buffer) output in the string format. I want to convert it to a python dictionary. Suppose, this is the serialized protobuf, given as a python string: person {...
Moor asked 20/6, 2021 at 12:58

3

Solved

I've installed protoc with homebrew and try to generate dart code with proto files. When I tried a simple case like protoc --dart_out=. test.proto it give me: protoc-gen-dart: program not found...
Lubbock asked 28/11, 2018 at 21:28

2

I have a POST endpoint in my Java service that expects a protobuf 3 payload. This service is used by other services which send the protobuf payload. I would like to do some debugging and send a pro...
Jocularity asked 30/7, 2020 at 20:23

7

Solved

I am attempting to import one protocol buffer message into another, but the imports are not recognized. As long as I don't try to import one protobuf into another, the protobuf code is generated (i...
Decurrent asked 10/7, 2020 at 15:51

5

I'm calling an api to get the an input stream and then call static method parseFrom(inputstream) to convert it to the protobuffclass. If I do it with a specific class it works: public CustomerDTO...
Enchorial asked 24/12, 2014 at 20:46

1

We use protocol buffers(protobuf) to define our schemas internally and have translators to translate to various other internal representations such as JSON Schema(Protobuf to JSON schema converter)...

2

First time using protobuf, so following googles instructions I placed all my .protos in a protos folder in my android studio project. I know the .proto files are setup correctly. I compile the file...
Stripe asked 12/5, 2022 at 5:12

3

Solved

When using Protocol Buffers version 3, from what I can see, there are 2 ways you can deprecate a field: Either using the deprecate field using tags: message MyMessage { string deprecated_my_fiel...
Anticlerical asked 2/3, 2020 at 14:3

10

Relatively new to GRPC and getting an error in my proto file that I cannot seem to make sense of. I would like to send a time in a message using the "google.protobuf.Timestamp". I cannot ...
Homer asked 7/5, 2019 at 22:12

© 2022 - 2024 — McMap. All rights reserved.