| 288 | /// [oneof]: https://developers.google.com/protocol-buffers/docs/proto3#oneof |
| 289 | #[derive(Clone, PartialEq, ::prost::Message)] |
| 290 | pub struct Any { |
| 291 | /// A URL/resource name that uniquely identifies the type of the serialized |
| 292 | /// protocol buffer message. This string must contain at least |
| 293 | /// one "/" character. The last segment of the URL's path must represent |
| 294 | /// the fully qualified name of the type (as in |
| 295 | /// `path/google.protobuf.Duration`). The name should be in a canonical form |
| 296 | /// (e.g., leading "." is not accepted). |
| 297 | #[prost(string, tag = "1")] |
| 298 | pub type_url: String, |
| 299 | /// Must be a valid serialized protocol buffer of the above specified type. |
| 300 | #[prost(bytes = "bytes", tag = "2")] |
| 301 | pub value: Bytes, |
| 302 | } |
| 303 | |
| 304 | impl Any { |
| 305 | /// Checks whether the message is of type `M` |
no outgoing calls