Reset implements the v1 proto.Message.Reset method.
()
| 409 | |
| 410 | // Reset implements the v1 proto.Message.Reset method. |
| 411 | func (m *messageIfaceWrapper) Reset() { |
| 412 | if mr, ok := m.protoUnwrap().(interface{ Reset() }); ok { |
| 413 | mr.Reset() |
| 414 | return |
| 415 | } |
| 416 | rv := reflect.ValueOf(m.protoUnwrap()) |
| 417 | if rv.Kind() == reflect.Ptr && !rv.IsNil() { |
| 418 | rv.Elem().Set(reflect.Zero(rv.Type().Elem())) |
| 419 | } |
| 420 | } |
| 421 | func (m *messageIfaceWrapper) ProtoReflect() protoreflect.Message { |
| 422 | return (*messageReflectWrapper)(m) |
| 423 | } |