# krotoDC - protobuf plugin for Kotlin data class / gRPC service & stub generation

> Clean Markdown view of GeekNews topic #8860. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8860](https://news.hada.io/topic?id=8860)
- GeekNews Markdown: [https://news.hada.io/topic/8860.md](https://news.hada.io/topic/8860.md)
- Type: news
- Author: [mscheong](https://news.hada.io/@mscheong)
- Published: 2023-04-03T10:13:16+09:00
- Updated: 2023-04-03T10:13:16+09:00
- Original source: [medium.com/@icycle0409](https://medium.com/@icycle0409/introducing-krotodc-use-protobuf-and-grpc-with-kotlin-dataclasses-3144d0b20032)
- Points: 8
- Comments: 1

## Topic Body

- builder 로 다루어야 하는 기존 java protobuf class 들을 대신해 사용할 수 있는 data class 제너레이터  
- 생성된 클래스들을 request/response type 으로 사용하는 코루틴 service base, stub 들도 생성해주어서, java class 들을 아예 사용하지 않을 수 있음.  
- 생성된 타입과 자바 타입간의 컨버터 extension function 들도 생성해주기 때문에 반대로 protobuf serialization 등의 고유 기능들도 여전히 쉽게 사용 가능  
- 그 외에도 Kotlin specific 한 기능 (optional fields as nullable, oneof fields as sealed class)들도 제공

## Comments



### Comment 15500

- Author: mscheong
- Created: 2023-04-03T10:21:36+09:00
- Points: 1

오늘 새벽에 릴리즈된 따끈따끈한 신규 라이브러리입니다:) Geeknews 에 글을 등록하는 것은 처음인데 직접 만든 라이브러리로 공유드리게 되어서 기쁘네요.
