func NewMessageEncodingRef(
	ctx context.Context,
	value string,
	defaultEncoding MessageEncoding,
) (MessageEncodingRef, error) {
	ctx, span := trace.StartSpan(ctx, "new_message_encoding_ref")
	defer span.End()
	path, messageEncoding, err := getPathAndMessageEncoding(ctx, value, defaultEncoding)
	if err != nil {
		return nil, err
	}
	return newMessageEncodingRef(path, messageEncoding), nil
}
// NewMessageEncodingRef returns a new MessageEncodingRef.
NewMessageEncodingRef returns a new MessageEncodingRef.
// NewMessageEncodingRef returns a new MessageEncodingRef .
func NewMessageEncodingRef(
	ctx context.Context,
	value string,
	defaultEncoding MessageEncoding,
) (MessageEncodingRef, error) {
	ctx, span := trace.StartSpan(ctx, "new_message_encoding_ref")
	defer span.End()
	path, messageEncoding, err := getPathAndMessageEncoding(ctx, value, defaultEncoding)
	if err != nil {
		return nil, err
	}
	return newMessageEncodingRef(path, messageEncoding), nil
}
func NewMessageEncodingRef ( ctx context . Context , value string , defaultEncoding MessageEncoding , ) ( MessageEncodingRef , error ) { ctx , span := trace . StartSpan ( ctx , " " ) defer span . End ( ) path , messageEncoding , err := getPathAndMessageEncoding ( ctx , value , defaultEncoding ) if err != nil { return nil , err } return newMessageEncodingRef ( path , messageEncoding ) , nil }
NewMessageEncodingRef returns a new MessageEncodingRef.
NewMessageEncodingRef returns a new MessageEncodingRef .