Protobuf에서 google.protobuf.StringValue와 string의 차이점

Soonyoung Kim·2022년 3월 3일

🆓오늘의 gRPC

목록 보기
1/3
post-thumbnail

Protobuf에서 google.protobuf.StringValuestring의 차이점

  • Protobuf에서 message를 작성할 때 string 값을 google.protobuf.StringValue 또는 string 을 작성하는 경우가 있다.
  • google.protobuf.StringValue : null 허용 (nullable)
    • null 허용이 가능하기 때문에 JSON 표현할 수 있다.
  • string : null 허용 x (not null)

https://stackoverflow.com/questions/51707877/what-is-the-point-of-google-protobuf-stringvalue

profile
Sin prisa, sin pausa.

0개의 댓글