<PackageReference Include="Google.Protobuf" Version="3.35.0" />

Google.Protobuf.IMessage

public interface IMessage
Interface for a Protocol Buffers message, supporting basic operations required for serialization.

Descriptor for this message. All instances are expected to return the same descriptor, and for generated types this will be an explicitly-implemented member, returning the same value as the static property declared on the type.

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Merges the data from the specified coded input stream with the current message.

Writes the data to the given coded output stream.