Bytes returns a copy of the Protobuf-serialized detail.
()
| 86 | |
| 87 | // Bytes returns a copy of the Protobuf-serialized detail. |
| 88 | func (d *ErrorDetail) Bytes() []byte { |
| 89 | out := make([]byte, len(d.pbAny.GetValue())) |
| 90 | copy(out, d.pbAny.GetValue()) |
| 91 | return out |
| 92 | } |
| 93 | |
| 94 | // Value uses the Protobuf runtime's package-global registry to unmarshal the |
| 95 | // Detail into a strongly-typed message. Typically, clients use Go type |
no outgoing calls