Re: [protobuf] Can the client parse the interface and message structures of the server?

2019-12-14 Thread erik stroeken
Thanks Marc. The current implementation of ASP.NET Core 3.1 doesn't support the Reflection but with the NuGet of James NK I managed to list the services. I can't figure out from the example how to list methods on a service or fields in messages. Shall I ask James NK or do you know someone who

Re: [protobuf] Can the client parse the interface and message structures of the server?

2019-12-14 Thread Marc Gravell
That would prpbably be a great question for James NK over on the relevant GitHub repo. IIRC the sample server includes reflection, though: https://github.com/grpc/grpc-dotnet/ On Sat, 14 Dec 2019, 12:22 erik stroeken, wrote: > Thanks Nadav Samet > I've been trying to implement the concepts

Re: [protobuf] Can the client parse the interface and message structures of the server?

2019-12-14 Thread erik stroeken
Thanks Nadav Samet I've been trying to implement the concepts described in https://github.com/grpc/grpc/blob/master/doc/server-reflection.md and for C#: https://github.com/grpc/grpc/blob/master/doc/csharp/server_reflection.md in the implementation of ASP.NET Core. You have to somehow configure

Re: [protobuf] Can the client parse the interface and message structures of the server?

2019-12-13 Thread Nadav Samet
If you are using gRPC, then it provides a way for introspecting methods and parameters for a remote server. This is a functionality that has to be enabled on the server side. See: https://github.com/grpc/grpc/blob/master/doc/server-reflection.md. For C#:

Re: [protobuf] Can the client parse the interface and message structures of the server?

2019-12-13 Thread 'Adam Cozzette' via Protocol Buffers
Protobuf reflection is about doing things like introspecting over the structure of a message. You could do things like recurse down from a top-level message and set every unset field to a default value for example. I'm not very familiar with C# but I guess C# reflection would let you do some of

[protobuf] Can the client parse the interface and message structures of the server with Protobuf reflection?

2019-12-13 Thread erik stroeken
This might be a dumb question but when you talk about Protobuf reflection, does that mean that the client can iterate through the interfaces and message structures of the connected server? I program C# and reflecting through the generated classes client side is already supported by C#

[protobuf] Can the client parse the interface and message structures of the server?

2019-12-13 Thread erik stroeken
This might be a dumb question but when you talk about Protobuf reflection, does that mean that the client can iterate through the interfaces and message structures of the connected client? I program C# and reflecting through the generated classes client side is already supported by C# itself