private static void Write(ProtoBufferWriter writer, MessageId messageId) { var size = 1 + GetMessageSizeWithLength(ProtoBufferWriter.GuidSize); writer.WriteLength(size); writer.WriteRawTag(1 << 3 | 2); writer.WriteGuid(messageId.Value); }