github.com/blend/go-sdk@v1.20220411.3/protoutil/message_type_name.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package protoutil 9 10 import "google.golang.org/protobuf/proto" 11 12 // MessageTypeName returns the message type name for a given message. 13 func MessageTypeName(msg proto.Message) string { 14 return string(msg.ProtoReflect().Type().Descriptor().FullName()) 15 }