<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>innossh</author_name>
  <author_url>https://blog.hatena.ne.jp/innossh/</author_url>
  <blog_title>Usual Software Engineer</blog_title>
  <blog_url>https://innossh.hatenablog.com/</blog_url>
  <categories>
    <anon>gRPC</anon>
    <anon>Java</anon>
    <anon>Protocol Buffers</anon>
    <anon>oneof</anon>
  </categories>
  <description>若干タイトルが迷子な気がしますが、大きいことを言っているようで細かい話になります。 最近 grpc-java で protobuf の oneof の機能を使っていて疑問に思ったことがあったので試してみた記事になります。 その疑問とは、 oneof を使えば message のフィールドを追加削除したり type 変えたりしたい時でも古いクライアントの挙動を保ったまま変更できるのではないか、というものです。 新年一発目の記事ですが早くもネタが思いつかず、意外とサクッと読める記事になっていますｗ 早速ですが今回は面倒なので公式の grpc-java のリポジトリを fork してサンプルコードを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finnossh.hatenablog.com%2Fentry%2F2019%2F01%2F27%2F155405&quot; title=&quot;Protocol Buffers の oneof で message の形式変更に耐える - Usual Software Engineer&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-27 15:54:05</published>
  <title>Protocol Buffers の oneof で message の形式変更に耐える</title>
  <type>rich</type>
  <url>https://innossh.hatenablog.com/entry/2019/01/27/155405</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
