proto Questions

3

Solved

I am new to Go and Protobufs hence this might be a very noob question. Sorry for that. I have several packages in my go project and I wanted to create a seperate package which contains all my .prot...
Misgive asked 4/1, 2021 at 13:22

1

I have a proto scheme like this: import "google/protobuf/empty.proto"; ... service NodeInfoService { rpc NodeConfig (google.protobuf.Empty) returns (NodeConfigResponse); } Using grp...
Vaporize asked 3/12, 2020 at 14:16

2

Suppose I have the .proto file: message Bar { } message Foo { repeated Bar bars = 1; } How can you delete all of the elements in the field bar?
Roundfaced asked 25/11, 2020 at 18:56

2

I have a protobuf message like this: message MyMessage{ string foo = 1; int toBeRemovedBar = 2 [deprecated = true]; string zag = 3; } toBeRemovedBar attribute is no longer required and needs to...
Chlorosis asked 7/10, 2020 at 16:10

1

I have been learning about inheritance in JavaScript, and could not understand a line of code in the tutorial at https://www.tutorialsteacher.com/javascript/inheritance-in-javascript. The code is ...
Inhaul asked 7/6, 2020 at 5:17

1

Solved

I'm getting the following error "unmarshaling error: proto: cannot parse reserved wire type" while unmarshaling a binary protobuf message. newMessage := &MessageName{} err = proto.Unmarshal(d...
Ahead asked 27/5, 2020 at 0:8

1

Solved

I'm trying to build a simple gRPC client in rust using crates prost and tonic. My proto definitions are quite simple, but I suddenly stuck with using messages imported from other proto. // file s...
Intramuscular asked 1/5, 2020 at 17:19

1

Solved

go-dev -blog -blog-server -blogpb - blog.proto -other -dart i have a directory like that on my project blogpb is the directory where i create .proto file to dart directory, when i run thi...
Boito asked 13/4, 2020 at 13:7

1

Solved

I have a proto A that depends on proto B. Then I deprecated the field protoB: import "protoB.proto"; message ProtoA { string assignmentStatus = 1; protoB proto_b = 2 [deprecated = true]; } I'...
Cavender asked 18/2, 2020 at 11:48

1

Looking for a solution in gRPC protobuff to implement dynamic fields of different datatypes for an multi-tenant application. Also there can be any number of dynamic fields based on tenant. Using ...
Sassoon asked 30/12, 2019 at 12:19

1

Solved

I want to define a request message in gRPC which should have a Json Object as a field For e.g. message UserRequest{ string name = 1; string city = 2; string email = 3; metainfo = 4;//A Json Ob...
Lodged asked 2/1, 2020 at 10:12

1

I am getting a "File not found" error when using import in a .proto file. I am using Rider but have the same problem when using Visual Studio. First proto File: syntax = "proto3"; import "/fileT...
Persistent asked 15/11, 2019 at 10:28

1

Solved

I have added below new code in protobuf file and compiled to get the generated grpc_pb files. service EchoService { rpc Echo(EchoMessage) returns (EchoMessage) { #-----New code start----- optio...
Yorktown asked 13/6, 2019 at 12:29

1

Solved

I'm moving my gRPC app from .net framework to .net core I have two main proto files as follows /Proto/common/common.proto /Proto/my-service.proto my-service.proto importing common.proto as simple ...
Pris asked 22/9, 2019 at 14:21

2

Solved

I am playing with Typescript and trying to understand the compiled Javascript code generated by the compiler Typescript code: class A { } class B extends A { } Generated Javascript code: var _...

2

Solved

The following code is taken from the Perl 6 documentation, and I am trying to learn more about it before more experimentation: proto token command {*} token command:sym<create> { <sym&...
Indiction asked 17/2, 2017 at 7:13

1

Solved

I have seen that Evans CLI can be used to determine the exposed messages and sessions on the server from the client setup. Is it possible that the .proto file being used by the server (containing m...
Dalhousie asked 19/7, 2019 at 10:14

2

Solved

I have Stream that I need to return through a protobuf message as bytes. How do I convert the Stream into the ByteString that is expected by protobuf? Is it as simple as it appears in the documenta...
Olivette asked 21/3, 2019 at 14:52

1

I'm trying to create a gRPC binding for my python code via: python -m grpc_tools.protoc -I $(pwd)/protos --python_out=./fino/pb2 --grpc_python_out=./fino/pb2 -I=$GOPATH/src -I=$GOPATH/src/github.c...
Latour asked 9/2, 2018 at 14:55

3

I'm creating a system using a microservices architecture. There are two microservices A and B, each living in their own repository. There is a user.proto file containing protobuf definition and gR...
Moreville asked 10/5, 2019 at 17:42

1

Solved

in my proto file, I define a service interface: syntax = "proto3"; package mynamespace; import "google/protobuf/empty.proto"; service MyService { rpc isTokenValid (TokenRequest) returns (Token...
President asked 26/12, 2018 at 9:37

1

I would like to get a proto Descriptor from a string that defines the message protocol. For example I have: public final static String schema = "" + "message Person {\n" + " required string id ...
Marquise asked 26/8, 2016 at 17:17

1

Solved

Does anyone have a working example of io.grpc.Context propagation between client (stub) and server using gRPC in java? My understanding is that it's not possible and I must use Metadata instead. A...
Fredfreda asked 12/3, 2018 at 13:38

3

Solved

As part of an effort to remove a specific geom from a plot I've already created (SO link here), I'd like to dynamically determine the geom type of each layer of a ggplot2 object. Assuming I don't ...
Volumetric asked 19/11, 2012 at 16:3

1

I have imported an other proto which having different package name than mine. For usage of messages from other package, have accessed that message with package name. For Example : other.proto pa...
Hiramhirasuna asked 15/7, 2016 at 7:27

© 2022 - 2025 — McMap. All rights reserved.