ForMessage returns the file descriptor proto containing the message and the message descriptor proto for the message itself. The returned proto messages must not be mutated. Deprecated: Not all concrete message types satisfy the Message interface. Use MessageDescriptorProto instead. If possible, th
(m Message)
| 43 | // be rewritten to use protobuf reflection instead. |
| 44 | // See package "google.golang.org/protobuf/reflect/protoreflect" for details. |
| 45 | func ForMessage(m Message) (*descriptorpb.FileDescriptorProto, *descriptorpb.DescriptorProto) { |
| 46 | return MessageDescriptorProto(m) |
| 47 | } |
| 48 | |
| 49 | type rawDesc struct { |
| 50 | fileDesc []byte |
nothing calls this directly
no test coverage detected