Interface IMessage<T> (3.15.8)

public interface IMessage<T> : IMessage, IEquatable<T>, IDeepCloneable<T> where T : IMessage<T>

Generic interface for a Protocol Buffers message, where the type parameter is expected to be the same type as the implementation class.

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll

Type Parameter

NameDescription
T

The message type.

Methods

MergeFrom(T)

void MergeFrom(T message)

Merges the given message into this one.

Parameter
NameDescription
messageT

The message to merge with this one. Must not be null.

Remarks

See the user guide for precise merge semantics.

Extension Methods