如何卷曲 protobuf type_url?

How to curl a protobuf type_url?

Envoy 文档给出了 configuration example,它为特定配置节指定 type_urltype.googleapis.com/envoy.extensions.listeners.tls_inspector.v3.TlsInspector

根据 protobuf documentation,针对此 URL 的 HTTP GET 应该 return 协议消息类型或错误。

运行 curl https://type.googleapis.com/envoy.extensions.listeners.tls_inspector.v3.TlsInspector return 是一个 404。有没有办法卷曲这个 URL 来查看类型?或者 404 是文档所指的错误?

这个功能会很有趣,但它似乎是一个遗迹,至少对于 public 版本的 protobuf 来说是这样。

src/google/protobuf/any.proto:

  // Note: this functionality is not currently available in the official
  // protobuf release, and it is not used for type URLs beginning with
  // type.googleapis.com.