<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quoll00</author_name>
  <author_url>https://blog.hatena.ne.jp/quoll00/</author_url>
  <blog_title>Carpe Diem</blog_title>
  <blog_url>https://christina04.hatenablog.com/</blog_url>
  <categories>
    <anon>CEL</anon>
    <anon>Protocol Buffers</anon>
  </categories>
  <description>概要 CELでは評価式で扱う変数をEnvironment内で定義しますが、既存のデータモデルを使いたい場合は 同じ定義を都度作らないといけない 変更があった際の追従漏れが発生する といった手間が発生してしまいます。 しかしそのデータモデルがprotobufで定義されていれば再利用することが可能です。 今回はその方法を紹介します。 環境 go v1.22.1 cel-go v0.20.1</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchristina04.hatenablog.com%2Fentry%2Fuse-custom-variable-in-cel&quot; title=&quot;CELで独自のオブジェクトをprotobufを使って変数定義する - Carpe Diem&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>2024-03-31 20:50:21</published>
  <title>CELで独自のオブジェクトをprotobufを使って変数定義する</title>
  <type>rich</type>
  <url>https://christina04.hatenablog.com/entry/use-custom-variable-in-cel</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
