I'm not exactly sure what you're trying to do. For more information on how 
Protobuf parses/serializes messages take a look at this guide 
<https://developers.google.com/protocol-buffers/docs/pythontutorial>. If 
you're trying to access the fields of a message, you can use the message's 
descriptor 
<https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor.html>
. 

On Tuesday, January 25, 2022 at 2:46:18 AM UTC-8 [email protected] wrote:

> Hello, I have a proto file which I want to read in Python. I understand 
> the structure of the file and I need to read some primitive types form it. 
> I thought I could find something like the C# class ParsingPrimitives.cs, 
> <https://github.com/protocolbuffers/protobuf/blob/master/csharp/src/Google.Protobuf/ParsingPrimitives.cs>
>  
> ideally with public interface, and in Python, but I cannot find anything 
> like that.
>
> Is there such a thing?
> Do you see any alternative solutions?
> Many thanks,
> Filip Kral.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/afb37627-dd7c-48be-87f2-4749a2271bden%40googlegroups.com.

Reply via email to